:root{--bg:#f5f3ed;--paper:#fffefa;--ink:#253d36;--muted:#75817a;--line:#e4e7df;--green:#214e43;--accent:#d8e9bc;--orange:#e8bc83;--red:#a53f37}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:10px 16px;background:var(--paper);color:var(--ink)}button:hover{filter:brightness(.96)}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:var(--red)}a{color:var(--green)}input,select,textarea{display:block;width:100%;padding:10px 12px;border:1px solid #cfd7cc;border-radius:8px;background:#fff;color:var(--ink);margin-top:6px}input[type=checkbox]{display:inline-block;width:auto;margin:0 8px 0 0;accent-color:var(--green)}label{display:block;margin:14px 0}textarea{resize:vertical}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.35;letter-spacing:-.6px;margin-bottom:8px}h2{font-size:20px;margin-bottom:16px}h3{font-size:17px;margin-bottom:8px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--muted);margin-bottom:10px}.muted{color:var(--muted)}.small{font-size:13px}.full{width:100%}[hidden]{display:none!important}.login{max-width:430px;margin:12vh auto;padding:30px}.brandmark{width:56px;height:56px;border-radius:18px;background:var(--green);color:var(--accent);display:grid;place-items:center;font-size:28px;margin-bottom:30px}.login .primary{width:100%;margin:14px 0}aside{position:fixed;inset:0 auto 0 0;width:228px;padding:35px 24px;border-right:1px solid var(--line);background:#edeee6;display:flex;flex-direction:column}.logo{font-size:22px;font-weight:700;text-decoration:none;margin-bottom:12px}.logo span{margin-left:6px}nav{display:grid;gap:8px;margin-top:28px}nav button{text-align:left;border:none;background:transparent;padding:12px 16px}nav button.active{background:var(--green);color:white}.aside-bottom{margin-top:auto;display:grid;gap:12px}.text-button{border:none;background:transparent;padding:4px;text-align:left}.content{margin-left:228px;max-width:1450px;padding:42px 5vw}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.notice{padding:14px 18px;background:#fff0d7;border:1px solid #ecd7b8;border-radius:10px;margin-bottom:24px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.card,.panel{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:16px}.card.feature{background:var(--green);color:white;border-color:var(--green)}.card.feature .muted{color:#c8d9cd}.metric{font-size:38px;font-weight:650;line-height:1.3;margin:12px 0}.metric small{font-size:15px;font-weight:400;margin-left:6px}.grid{display:grid;grid-template-columns:1.35fr 1fr;gap:24px}.stack{display:grid;gap:20px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-head h2{margin:0}.timeline{list-style:none;padding:0;margin:0}.timeline li{padding:18px 0;border-bottom:1px solid var(--line);display:flex;gap:18px;align-items:flex-start}.timeline li:last-child{border:none}.timeline time{min-width:48px;color:var(--muted);font-size:13px}.timeline .body{flex:1;min-width:0}.timeline strong{display:block}.timeline p{margin:3px 0;font-size:13px;overflow-wrap:anywhere}.actions{display:flex;gap:6px;flex-wrap:wrap}.actions button{font-size:12px;padding:5px 10px}.pill{display:inline-block;border-radius:20px;background:#edf1e8;padding:3px 9px;font-size:12px;margin:3px 4px 3px 0}.empty{padding:35px 12px;text-align:center;color:var(--muted)}.chart{width:100%;max-height:280px;display:block}.chart text{font-size:11px;fill:var(--muted)}.chart rect{fill:#72937b}.chart line{stroke:var(--line)}.filters,.row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.row>label{flex:1;min-width:130px}.filters select{width:auto;margin:0}.capability{border-left:4px solid #a9c297}.cap-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}details>summary{cursor:pointer;color:var(--green)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 monospace;background:#f0f2ea;padding:14px;border-radius:8px;max-height:380px;overflow:auto}.form-note{background:#f0f2ea;padding:12px;border-radius:8px}.setting-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.setting-tabs button.active{background:var(--accent)}.error-text{color:var(--red)}dialog{border:1px solid var(--line);border-radius:18px;max-width:480px;width:calc(100% - 32px);padding:28px;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#19322966}.dialog-title{display:flex;justify-content:space-between;align-items:start}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;max-width:90vw;background:#253d36;color:white;border-radius:10px;padding:12px 20px;display:none;box-shadow:0 8px 25px #0002}#toast.visible{display:block}table{border-collapse:collapse;width:100%;font-size:14px}td,th{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line)}.table-scroll{overflow-x:auto}.device-status{font-size:13px;color:var(--green)}.stat-note{font-size:12px;color:var(--muted);margin-top:14px}.checkbox-line{display:flex;align-items:center}.archived{opacity:.6;text-decoration:line-through}
.phone-steps{padding-left:23px;margin-bottom:24px}.phone-steps li{margin:14px 0}.pairing-box{margin:24px 0;padding:20px;border-radius:12px;background:#f0f2ea}.pairing-code{font-size:34px;letter-spacing:7px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.phone-list{margin-top:24px}
.vaccine-intro{margin-bottom:24px;max-width:760px}.vaccine-intro p{margin:0 0 7px}.vaccine-overview{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-bottom:24px}.vaccine-overview h2{font-size:25px;margin:8px 0}.vaccine-overview p{margin-bottom:5px}.vaccine-count{display:flex;align-items:center;justify-content:space-around;gap:20px}.vaccine-count>div{display:flex;flex-direction:column;align-items:center}.vaccine-count .metric{margin:0 0 4px}.vaccine-panel{margin-bottom:22px}.vaccine-filters{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:12px;border-bottom:1px solid var(--line)}.vaccine-filters button{font-size:13px;padding:8px 12px}.vaccine-filters .active{background:var(--accent);border-color:#b9cfa6}.vaccine-timeline{list-style:none;margin:0;padding:0}.vaccine-month{font-size:14px;font-weight:650;letter-spacing:1px;padding:26px 0 12px}.vaccine-entry{position:relative;display:flex;gap:17px;padding:0 0 0 3px}.vaccine-entry:before{content:"";position:absolute;left:8px;top:14px;bottom:0;border-left:1px solid #d5decf}.vaccine-dot{position:relative;z-index:1;flex:none;width:11px;height:11px;border-radius:50%;border:2px solid #9aac91;background:var(--paper);margin-top:7px}.vaccine-entry.completed .vaccine-dot{background:#68876a;border-color:#68876a}.vaccine-entry.appointment .vaccine-dot{background:#d09e54;border-color:#d09e54}.vaccine-entry-body{min-width:0;flex:1;padding:0 0 22px}.vaccine-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.vaccine-entry-heading time{font-size:13px;color:var(--muted)}.vaccine-entry-heading h3{margin:4px 0 8px;overflow-wrap:anywhere}.vaccine-entry-heading h3 span{font-size:14px;font-weight:400;white-space:nowrap}.vaccine-badge{font-size:11px;white-space:nowrap;padding:4px 9px;border-radius:6px;background:#f0f2ea}.vaccine-badge.appointment{background:#fff0d7;color:#835c25}.vaccine-badge.completed{background:#e3edde;color:#446544}.vaccine-badge.cancelled{background:#edeeeb;color:var(--muted)}.vaccine-confirmation{font-size:12px;color:#94642f;margin:0 0 7px}.vaccine-note{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 8px}.vaccine-source{font-size:12px;margin:6px 0}.vaccine-source p{margin:7px 0}.vaccine-entry-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.vaccine-entry-actions button{font-size:12px;padding:6px 10px}.vaccine-entry.cancelled .vaccine-entry-heading h3{color:var(--muted)}.vaccine-reminder>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:17px;font-weight:600;list-style:none}.vaccine-reminder>summary:after{content:"＋";font-size:20px;line-height:1}.vaccine-reminder[open]>summary:after{content:"−"}.vaccine-reminder>summary .small{margin-left:auto;font-weight:400}.vaccine-reminder form{padding-top:18px}.vaccine-reminder [name=at]{max-width:220px}#vaccination-dialog{max-width:550px;max-height:90vh;overflow-y:auto}#vaccination-form[aria-busy=true]{opacity:.7}
@media(max-width:700px){.vaccine-overview{grid-template-columns:1fr;gap:12px}.vaccine-overview h2{font-size:23px}.vaccine-count{padding:14px}.vaccine-count>div{flex-direction:row;gap:10px}.vaccine-count .metric{font-size:28px;margin:0}.vaccine-count .muted{font-size:13px}.vaccine-panel .section-head{align-items:flex-start;gap:10px}.vaccine-panel .section-head h2{font-size:18px}.vaccine-panel .section-head .actions{justify-content:flex-end;gap:5px}.vaccine-panel .section-head .actions button{font-size:12px;padding:6px 8px}.vaccine-entry{gap:12px}.vaccine-entry-heading{flex-direction:column;gap:2px}.vaccine-badge{margin-bottom:8px}.vaccine-entry-heading h3{font-size:16px}.vaccine-reminder>summary{flex-wrap:wrap;font-size:15px}.vaccine-reminder>summary .small{font-size:11px}.vaccine-filters button{font-size:12px;padding:7px 9px}}
.reminder-delivery{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f7f8f2}.reminder-delivery legend{padding:0 7px;font-weight:650}.reminder-delivery p{margin-bottom:10px}.speaker-choice-heading{margin:16px 0 10px;font-weight:600}.speaker-choice-heading .small{font-weight:400;margin-left:6px}.speaker-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px}.reminder-choice{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);cursor:pointer;min-width:0}.reminder-choice input[type=checkbox]{flex:0 0 auto;margin:5px 0 0}.reminder-choice span{min-width:0;overflow-wrap:anywhere}.reminder-choice strong{font-weight:600}.reminder-choice small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:3px}.reminder-choice.unavailable{border-style:dashed}.delivery-summary{padding:10px 12px;background:#eaf0e3;border-radius:8px;color:var(--green);margin-top:14px}#reminders-form[aria-busy=true] .reminder{opacity:.7}#reminders-form[aria-busy=true]{cursor:wait}
@media(max-width:1000px){.content{padding:30px;margin-left:200px}aside{width:200px;padding:28px 18px}.cards{gap:12px}.card{padding:18px}.grid{grid-template-columns:1fr}.metric{font-size:30px}}
.reminder-repeat,.speaker-window{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.reminder-repeat legend,.speaker-window legend{font-weight:650;padding:0 7px}.reminder-repeat .checkbox-line{margin-top:0}.repeat-controls>label{min-width:100px}.speaker-window-summary{margin:0;color:var(--muted)}.speaker-window .row>label{margin-top:4px}.schedule-preview{padding:12px 14px;background:#f0f2ea;border-radius:9px;margin-top:12px}.schedule-preview>strong{font-size:14px}.schedule-preview p{margin:8px 0 0}.schedule-times{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.schedule-times .schedule-slot{display:flex;flex-direction:column;font-size:13px;background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:6px 8px;max-width:100%;overflow-wrap:anywhere}.schedule-slot strong{font-size:13px;font-weight:600}.schedule-slot small{font-size:11px;color:var(--muted)}.schedule-slot.speaker-muted{border-style:dashed;background:#faf8f0}.legacy-repeat-warning{margin-top:16px;margin-bottom:16px;font-size:14px}.reminder [data-reminder-type] input{max-width:360px}
.reminder-copy{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.reminder-copy legend{font-weight:650;padding:0 7px}.reminder-copy .checkbox-line{margin-top:0}.copy-token-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.copy-token-buttons button{font-size:12px;padding:5px 9px}.copy-token-buttons .small{width:100%}.copy-fallback{margin:14px 0;font-size:13px}.copy-original{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.copy-actions{margin:14px 0}.copy-actions button{font-size:13px;padding:8px 12px}.copy-preview{background:#f0f2ea;border-radius:9px;padding:12px 14px;overflow-wrap:anywhere}.copy-preview>strong{font-size:14px}.copy-preview ol{padding-left:20px;margin:10px 0}.copy-preview li{margin:10px 0}.copy-preview p{margin:4px 0}.copy-preview textarea{max-width:100%}
@media(max-width:700px){aside{position:static;width:100%;padding:18px 20px;border-right:none;border-bottom:1px solid var(--line)}aside>.eyebrow,.aside-bottom{display:none}.logo{font-size:20px;margin:0}nav{display:flex;overflow-x:auto;margin-top:14px;gap:5px}nav button{white-space:nowrap;font-size:13px;padding:8px 12px}.content{margin:0;padding:24px 18px}header{margin-bottom:22px;gap:10px}h1{font-size:23px}header .primary{white-space:nowrap;padding:9px 12px}.cards{grid-template-columns:1fr 1fr}.cards .card:last-child{grid-column:1/-1}.metric{font-size:32px}.panel{padding:18px}.two{grid-template-columns:1fr;gap:0}.timeline li{gap:10px}.timeline .actions{max-width:60px}.row{gap:8px}.login{margin:8vh auto}.setting-tabs{gap:6px}}
.module-icon{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;font-weight:700;font-size:14px;color:var(--ink);vertical-align:middle}.tone-leaf{background:#dff3c6}.tone-butter{background:#fff0c7}.tone-pink{background:#ffe3e7}.tone-sky{background:#e3eef8}.tone-stone{background:#ede6cf}.modules-layout{display:flex;flex-wrap:wrap;gap:22px;align-items:flex-start}.module-list{flex:1 1 240px;max-width:320px;display:grid;gap:8px}.module-editor{flex:999 1 480px;min-width:0}.module-item{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;border-radius:14px;border:2px solid transparent;background:var(--paper)}.module-item.active{border-color:var(--green)}.module-item.closed{opacity:.7;background:#f3f1ea}.module-item span{display:flex;flex-direction:column;min-width:0}.module-item small{color:var(--muted);font-size:12px}.new-module{margin-top:10px;padding:18px}.new-module h3{margin-bottom:0}.module-editor h2{display:flex;align-items:center;gap:10px}.spacer{flex:1}.stage-card{min-width:0;margin:0;padding:16px 18px;border:1px solid var(--line);border-radius:14px}.stage-card legend{font-weight:650;padding:0 7px}.stage-modules{list-style:none;padding:0;margin:0 0 6px;display:grid;gap:8px}.stage-module{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfbf7}.stage-module-name{flex:1 1 120px;font-weight:600}.stage-module select{width:auto;margin:0}.stage-main{margin:0}.growth-child form{align-items:end}.growth-child label .small{display:block;margin-top:6px}@media(max-width:700px){.module-list{max-width:none}.growth-child form{grid-template-columns:1fr}}
/* 小秧主题：嫩绿为主，奶油黄与可爱粉点缀 */
:root{--bg:#fff9e8;--paper:#fff;--ink:#2f3b2a;--muted:#66705f;--line:#f0e7cc;--green:#3f7a34;--accent:#dff3c6;--orange:#ffd98a;--red:#a33a52;--leaf:#7ccb7a;--pink:#ffe3e7}
body{background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif}
h1,h2,h3{font-weight:800;letter-spacing:0}h1{letter-spacing:-.3px}
button{border-radius:999px;border-color:#e6dcbc;padding:10px 18px;font-weight:600}button.primary{background:var(--green);border-color:var(--green)}button.danger{border-color:#f0c4cc}
input,select,textarea{border-radius:14px;border:1.5px solid #eadfbf}input:focus,select:focus,textarea:focus{outline:3px solid #cfe9b6;border-color:var(--leaf)}
.card,.panel{border-radius:26px;border:none;box-shadow:0 2px 0 #efe6c8}
.card.feature{background:var(--green)}
aside{background:#fdf3d6;border-right:none}
.logo{display:flex;align-items:center;gap:10px;color:var(--green)}.logo img{width:44px;height:44px;border-radius:50%;background:var(--accent);object-fit:cover}.logo span{margin:0}
nav button{border-radius:16px;font-weight:500}nav button.active{background:var(--accent);color:var(--green);font-weight:700}
.login{text-align:center}.login-yang{display:block;margin:0 auto 18px;object-fit:contain}.login form{text-align:left}
.notice{background:#fff0c7;border:none;border-radius:18px}
.pill{background:var(--accent);color:var(--green)}
.empty img{display:block;margin:0 auto 8px;object-fit:contain}.empty p{margin:0}
.timeline .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;vertical-align:middle;background:#ede6cf}.timeline .dot.tone-leaf{background:var(--leaf)}.timeline .dot.tone-butter{background:#f2b84b}.timeline .dot.tone-pink{background:#e8899a}
.chart rect{fill:#a8e08d}.chart rect.today{fill:var(--green)}
.setting-tabs button.active,.vaccine-filters .active{background:var(--accent);border-color:#b9dca0}
.home-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px;margin-bottom:24px}
.home-card{display:flex;flex-direction:column;gap:12px}.home-card.big{grid-column:1/-1}
.home-card-head{display:flex;align-items:center;gap:10px;color:var(--green)}
.home-big{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.home-big img{object-fit:contain;margin:-30px 0 -10px}
.elapsed{font-size:22px;font-weight:700;line-height:1.1;margin:4px 0}.elapsed b{font-size:56px;font-weight:900;letter-spacing:-1px;margin:0 2px;font-variant-numeric:tabular-nums}
.progress{height:10px;border-radius:5px;background:#f1f6e6;overflow:hidden}.progress span{display:block;height:10px;border-radius:5px;background:var(--leaf)}
.state-overdue .progress span{background:#e8899a}.state-overdue .elapsed b{color:#7a2238}
.home-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:auto}
.home-small{display:flex;align-items:center;gap:12px}.home-small img{object-fit:contain;flex:none}.home-small h3{margin:0 0 4px}.home-small p{margin:0}
.tone-card-butter{background:#fff0c7}.tone-card-pink{background:#fff}.tone-card-butter.state-done{background:var(--accent)}.tone-card-butter.state-overdue{outline:2px solid #f2b84b}
.badge{font-size:12px;border-radius:8px;padding:3px 8px;margin-left:auto}.badge.alert{background:var(--red);color:#fff}
.speak{display:flex;gap:16px;align-items:flex-start}.speak img{object-fit:contain;flex:none}
@media(max-width:700px){aside{position:static;width:auto;padding:16px 16px 8px}nav{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));margin-top:12px}.aside-bottom{display:none}.content{margin-left:0;padding:20px 16px}.elapsed b{font-size:44px}.home-big img{width:72px;height:auto}.cards{grid-template-columns:1fr}.two{grid-template-columns:1fr}header{flex-wrap:wrap}}.progress .w0{width:0%}.progress .w5{width:5%}.progress .w10{width:10%}.progress .w15{width:15%}.progress .w20{width:20%}.progress .w25{width:25%}.progress .w30{width:30%}.progress .w35{width:35%}.progress .w40{width:40%}.progress .w45{width:45%}.progress .w50{width:50%}.progress .w55{width:55%}.progress .w60{width:60%}.progress .w65{width:65%}.progress .w70{width:70%}.progress .w75{width:75%}.progress .w80{width:80%}.progress .w85{width:85%}.progress .w90{width:90%}.progress .w95{width:95%}.progress .w100{width:100%}
