/* Practical planning lives on the existing writing surface, never over the room. */
#time-concierge{border-block:1px solid #c8cfbd;padding:24px 0;margin:12px 0 24px}.time-heading{display:flex;align-items:start;gap:20px;justify-content:space-between}.time-heading h3{font:400 24px/1.45 var(--sh-serif,serif);margin:0 0 10px}.time-heading p{font-size:13px;line-height:1.8;color:#4a5e50;margin:0;max-width:36em}.time-heading>button{white-space:nowrap;min-height:44px;font-size:13px}#time-ledger{display:flex;flex-wrap:wrap;gap:12px 26px;margin-top:18px;color:#405646;font-size:12px}#time-ledger strong{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums;margin-right:3px}#time-editor{margin-top:24px}.time-settings{display:grid;grid-template-columns:1fr 1fr;gap:22px}.time-settings label,.time-row-fields label{font-size:12px;color:#435744;display:flex;flex-direction:column;gap:8px}.time-settings label>span,.time-row-fields label>span{display:flex;align-items:center;gap:10px}.time-settings input,.time-settings select,.time-row-fields input,#routine-name{font:14px/1.5 var(--sans,system-ui);color:#20372f;background:#fffff8;border:1px solid #b9c3ae;border-radius:9px;padding:11px 12px;min-height:44px;box-sizing:border-box;width:100%;min-width:0}.time-settings input{width:104px}.time-fit{font-size:13px;background:#dfE6d7;color:#263e2e;border:0;border-radius:10px;padding:12px 18px;margin-top:18px;min-height:44px;transition:background 160ms}.time-fit:hover{background:#cedbc1}.time-help{font-size:12px;line-height:1.8;color:#4d6050;margin:10px 0 22px}.time-row{padding:18px 0;border-top:1px solid #ccd3c1}.time-row-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}.time-row-heading>label{display:flex;align-items:center;gap:12px;line-height:1.7;font-size:15px;flex:1;min-width:0;overflow-wrap:anywhere}.time-row-heading input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:#38573c}.time-order{display:flex;gap:3px}.time-order button{display:grid;place-items:center;width:44px;height:44px;border-radius:9px;background:none;color:#3e573e}.time-order button:hover{background:#e1e7d8}.time-order button:disabled{opacity:.35}.time-row-fields{display:grid;grid-template-columns:115px 1fr;gap:20px;margin-top:12px}.time-row-fields input[type=number]{width:75px}.time-row.is-deferred .time-row-fields{opacity:.55}.time-row.is-deferred .time-row-heading>label>span{color:#61705e}#time-balance{font-size:13px;line-height:1.85;color:#36563d;background:#e3e9db;border-radius:10px;padding:13px 16px;margin:18px 0}#time-balance[data-over=true]{background:#eee4cc;color:#684c20}.time-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}#time-status:empty{display:none}#time-status{font-size:13px;line-height:1.8;color:#3c5840;margin-bottom:0}.routine-library{border-top:1px solid #ccd3c1;margin-top:30px;padding:20px 0}.routine-library>summary{cursor:pointer;font-size:16px;min-height:44px;padding-block:9px}.routine-library>summary>span{margin-left:15px;font-size:12px;color:#53644f}.routine-library>p,.routine-empty{font-size:13px;line-height:1.85;color:#4a5d4d}.routine-row{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid #d4dacb}.routine-row>div:first-child{min-width:0}.routine-row strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}.routine-row p{margin:6px 0;font-size:12px;color:#4a5d4d}.routine-row small{display:block;font-size:12px;line-height:1.8;color:#52634f;overflow-wrap:anywhere}.routine-row>div:last-child{flex:none;display:flex;flex-direction:column;align-items:end}.routine-row button{min-height:44px;font-size:12px}.routine-remove{color:#63715c}#routine-form{margin-top:20px}#routine-form>label{font-size:13px;display:block;margin-bottom:10px}#routine-form>div{display:flex;gap:14px}#routine-form button{white-space:nowrap;min-width:70px}#routine-status{font-size:13px;color:#465c47;line-height:1.8}#routine-status:empty{display:none}.daily-desk #routine-library button:disabled{opacity:.45;cursor:not-allowed}.daily-desk [hidden]{display:none!important}
@media(max-width:760px){.time-heading{display:block}.time-heading h3{font-size:22px}.time-heading>button{margin-top:8px}.time-settings{gap:14px}.time-row-fields{grid-template-columns:1fr;gap:12px}.time-row-fields>label:first-child{flex-direction:row;align-items:center;gap:15px}.time-row-heading{gap:6px}.time-order{gap:0}.routine-row{display:block}.routine-row>div:last-child{flex-direction:row;gap:20px;margin-top:8px}.time-actions{align-items:stretch;flex-direction:column;gap:5px}.time-actions>button{width:100%}#time-concierge{padding-top:20px}.routine-library{margin-bottom:28px}.daily-desk{padding-bottom:125px!important}}
@media(prefers-reduced-motion:reduce){.time-fit{transition:none}}
.time-settings label>span,.time-row-fields label>span{white-space:nowrap}.time-row-fields{grid-template-columns:130px 1fr}.time-row-fields input[type=number]{flex:0 0 75px}.time-settings input{flex:0 1 104px}.time-adjusting #daily-highlights,.time-adjusting .daily-summary-actions,.time-adjusting #time-ledger{display:none}.time-adjusting #time-concierge{margin-bottom:0;border-bottom:0}
@media(max-width:760px){.time-row-fields{grid-template-columns:1fr}.time-settings input{flex-basis:90px}}

/* Free vs Pro fence inside 行笺 */
.time-pro-fence{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 8px}
.time-pro-card{padding:16px 18px;border-radius:12px;background:#e8ede0;border:1px solid #c9d3bc}
.time-pro-card[data-tier=pro]{background:#20372f;color:#f4f1e4;border-color:#20372f}
.time-pro-card p{margin:0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.time-pro-card strong{display:block;margin:8px 0 6px;font:500 16px/1.5 var(--sh-serif,serif)}
.time-pro-card span{display:block;font-size:12px;line-height:1.8;opacity:.9}
.time-pro-card .daily-primary{margin-top:14px;width:100%}
.time-pro-card[data-tier=pro] .daily-primary{background:#eee8d5;color:#20372f;border:0;border-radius:8px;min-height:44px}
#time-concierge.is-pro-locked .time-quick{opacity:.45;pointer-events:none}
#routine-library.is-pro-locked>summary{color:#52634f}
.routine-pro-lock{padding:16px 0;border-top:1px solid #d4dacb}
.routine-pro-lock strong{font-size:15px;font-weight:500}
.routine-pro-lock p{font-size:13px;line-height:1.85;color:#4a5d4d;margin:8px 0 14px;max-width:36em}
.routine-pro-lock .daily-primary{min-height:44px}
@media(max-width:760px){.time-pro-fence{grid-template-columns:1fr}}

/* r3 · Pro knife: unmistakable timeline preview */
.time-busy{display:flex;flex-direction:column;gap:4px;margin:14px 0 8px;padding:14px 16px;border-radius:12px;background:#eee4cc;border:1px solid #d9c79a;color:#684c20}
.time-busy[hidden]{display:none!important}
.time-busy strong{font:500 14px/1.5 var(--sh-serif,serif)}
.time-busy span{font-size:12px;line-height:1.8}
.time-preview-banner{margin:8px 0 16px;padding:14px 16px;border-radius:12px;background:#20372f;color:#f4f1e4}
.time-preview-banner p{margin:0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.72}
.time-preview-banner strong{display:block;margin-top:6px;font:400 16px/1.55 var(--sh-serif,serif)}
.time-rail{margin:0 0 22px}
.time-rail-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#4a5e50;margin-bottom:10px}
.time-rail-track{display:flex;align-items:stretch;gap:0;min-height:76px;padding:6px;border-radius:12px;background:#e8ede0;border:1px solid #c9d3bc;overflow:hidden}
.time-rail-track.is-over{background:#eee4cc;border-color:#d9c79a}
.time-block{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;padding:10px 12px;border-radius:8px;background:#20372f;color:#f4f1e4;margin:2px}
.time-block em{font:11px/1 Georgia,serif;opacity:.7;font-style:normal}
.time-block strong{font:500 13px/1.4 var(--sh-serif,serif);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.time-block span{font-size:11px;opacity:.85;font-variant-numeric:tabular-nums}
.time-gap{display:grid;place-items:center;align-self:stretch;margin:2px 1px;border-radius:6px;background:repeating-linear-gradient(-45deg,#dfe6d7,#dfe6d7 4px,#cfd9c4 4px,#cfd9c4 8px);color:#405646;font-size:10px}
.time-gap span{transform:rotate(-90deg);white-space:nowrap;font-variant-numeric:tabular-nums}
.time-left{display:grid;place-items:center;margin:2px;border-radius:8px;border:1px dashed #aebba3;color:#53644f;font-size:11px;background:#f7f8f2}
.time-rail-empty{padding:18px 16px;border-radius:12px;background:#f0f3ea;border:1px dashed #b9c3ae;color:#4a5d4d}
.time-rail-empty strong{display:block;font:500 14px/1.5 var(--sh-serif,serif);margin-bottom:4px}
.time-rail-empty span{font-size:12px;line-height:1.8}
.time-undo-apply{margin:8px 0 0;min-height:44px;font-size:13px}
.time-undo-apply[hidden]{display:none!important}
.time-quick{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 4px}
.time-quick>span{font-size:12px;color:#4a5e50;margin-right:4px}
.time-quick button{min-width:72px;min-height:52px;padding:8px 14px;border:1px solid #b9c3ae;border-radius:12px;background:#fffff8;color:#20372f;font:500 18px/1 Georgia,serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:background 160ms,border-color 160ms,transform 160ms}
.time-quick button small{font:400 11px/1 system-ui;color:#53644f}
.time-quick button:hover{background:#e8ede0;border-color:#8fa082}
.time-quick button:active{transform:scale(.98)}
.time-quick button:disabled{opacity:.45;cursor:not-allowed}
#time-concierge.is-session-locked .time-quick{opacity:.55}
#time-concierge.is-pro-open .time-heading h3{letter-spacing:-.01em}
#time-concierge .time-actions .daily-primary{min-width:180px}
.time-pro-fence{margin-top:20px}
.time-pro-card[data-tier=pro]{box-shadow:0 10px 28px #20372f22}
@media(max-width:760px){
  .time-rail-track{flex-wrap:wrap;min-height:0}
  .time-block{flex:1 1 40%!important;min-width:42%}
  .time-gap{flex:0 0 auto!important;width:auto;min-width:36px;writing-mode:horizontal-tb}
  .time-gap span{transform:none}
  .time-left{flex:1 1 30%!important}
  .time-quick button{flex:1;min-width:0}
}
@media(prefers-reduced-motion:reduce){.time-quick button{transition:none}}
