:root{--bg:#f6f0e8;--paper:#fffcf8;--ink:#51433a;--muted:#806f63;--stroke:#e6d7c7;--accent:#8e715a}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 8% 4%,#fffaf2,transparent 33%),linear-gradient(160deg,#f8f3ed,#efe3d7);color:var(--ink);font:16px/1.75 'Noto Sans TC','Microsoft JhengHei',sans-serif;min-height:100vh}header{border-bottom:1px solid var(--stroke);background:#fffcf9e8}.nav{max-width:1050px;margin:auto;display:flex;justify-content:space-between;gap:15px;padding:18px 22px}.nav a:first-child{font:700 22px Georgia,serif;letter-spacing:.05em}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}main{max-width:1050px;margin:auto;padding:48px 22px 65px}.eyebrow{font-size:12px;letter-spacing:.17em;color:#9e7659;font-weight:700}h1{font:600 clamp(34px,5vw,50px) Georgia,'Noto Serif TC',serif;margin:8px 0 8px}h1 span{font-size:.72em}.lead{color:var(--muted);margin:0 0 26px}.privacy{background:#f3e9dd;border:1px solid var(--stroke);padding:13px 18px;border-radius:13px;font-size:13px;color:#6d5b50;margin-bottom:24px}.datebar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:23px}.datebar label{display:flex;flex-direction:column;font-size:13px;gap:4px}.datebar input{min-width:165px}.datebar button,.control button,.primary,.outline{border:1px solid #c8aa8c;background:var(--paper);color:var(--ink);padding:10px 16px;border-radius:12px;cursor:pointer;font:inherit}.datebar button:hover,.control button:hover,.outline:hover{background:#efe0d0}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:var(--paper);border:1px solid var(--stroke);border-radius:22px;padding:24px;box-shadow:0 15px 30px #70583e0b}.symbol{font-size:29px}.card h2{font:600 25px Georgia,'Noto Serif TC',serif;margin:2px 0 10px}.card p{margin:0 0 15px;color:var(--muted)}.card strong{font-size:30px;color:var(--ink)}.card label{display:block;color:#665549;font-weight:600;font-size:13px;margin:11px 0 6px}.control{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.control input{width:125px;flex:1;min-width:100px}.control button{background:#806551;color:white;border-color:#806551}.control button:hover{background:#6d5542}.card input,.card select,.card textarea,.datebar input{background:#fffdf9;border:1px solid #d9c4ad;border-radius:10px;padding:10px 12px;color:#463b33;font:inherit}.card select,.card textarea{width:100%}.card small{display:block;font-size:12px;color:#877668;margin-top:13px}.savebar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:24px 0 28px}.primary{background:#806551;color:white;border-color:#806551;font-weight:700}.savebar p{width:100%;min-height:20px;margin:0;color:#71604e;font-size:13px}.summary{background:linear-gradient(130deg,#eceadf,#f9f2e8);border:1px solid #ddd4bd;border-radius:20px;padding:22px 28px}.summary h2{margin:0 0 12px;font-size:23px}.small{font-size:12px;color:var(--muted)}.back{margin:36px 0;text-align:center;color:#8b7059}footer{text-align:center;padding:28px;color:#968474;font-size:12px}@media(max-width:700px){.cards{grid-template-columns:1fr}main{padding:34px 16px}.card{padding:20px}.nav a:first-child{font-size:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}

/* C16b: respectful, contextual encouragement and wellbeing notes */
.feedback{display:grid;grid-template-columns:1fr 1.15fr;gap:16px;margin:22px 0 14px}.feedback-card{padding:20px 22px;border:1px solid #dbcbb5;border-radius:18px;background:#fffbf5}.feedback-card.praise{background:linear-gradient(135deg,#fff7e9,#f2e9e0)}.feedback-card.tips{background:linear-gradient(135deg,#f7f8ee,#eff0e6)}.feedback-card h3{font-size:17px;margin:0 0 12px;color:#624e41}.feedback-card p{margin:0;color:#6a594c}.tip-item{margin:0 0 12px;color:#625649;line-height:1.8}.tip-item:last-child{margin-bottom:0}.tip-item strong{display:block;color:#725640}.feedback-card .no-data{color:#84756a}@media(max-width:720px){.feedback{grid-template-columns:1fr}}

/* C16c seven-day trends and portable backup */
.weekly{margin:28px 0;padding:25px;border:1px solid #e0d2bc;background:#fffaf4;border-radius:23px;box-shadow:0 12px 38px #634b350a}.weekly-head{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap}.weekly h2{font:600 27px Georgia,'Noto Serif TC',serif;margin:8px 0}.weekly-head p,.trend p,.backup p{color:#806f63;font-size:13px}.week-controls,.backup-buttons{display:flex;gap:9px;flex-wrap:wrap}.week-controls button,.backup-buttons button,.import-label{font:inherit;color:#634c3d;border:1px solid #cbb59b;border-radius:12px;background:#fffdf9;padding:8px 13px;cursor:pointer}.week-controls button:disabled{opacity:.4;cursor:not-allowed}.week-range{color:#897057;font-size:13px}.trend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:18px}.trend{min-width:0;border:1px solid #e5d8c9;border-radius:17px;padding:17px;background:#fff}.trend h3{font-size:17px;margin:0}.trend p{margin:3px 0 16px;min-height:41px}.bar-chart{height:180px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:5px}.bar-col{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0}.bar-value{font-size:10px;color:#675447;height:17px;white-space:nowrap}.bar-track{flex:1;width:100%;max-width:34px;display:flex;align-items:end;background:#f4eee6;border-radius:7px 7px 0 0;overflow:hidden}.bar-fill{display:block;width:100%;min-height:0;background:linear-gradient(#a2b8bc,#789ba6);border-radius:6px 6px 0 0}.trend:nth-child(2) .bar-fill{background:linear-gradient(#adc8a0,#7ca778)}.trend:nth-child(3) .bar-fill{background:linear-gradient(#c3b5d5,#998eb8)}.bar-day{font-size:10px;color:#6f5e52;white-space:nowrap}.bar-col.missing .bar-value{color:#b8aaa0}.week-reflection{margin-top:18px;background:#f4f2e6;border:1px solid #e0dcc7;border-radius:16px;padding:17px 20px}.week-reflection h3,.backup h3{margin:0 0 7px}.week-reflection p{color:#65564a;margin:8px 0}.backup{margin-top:18px;padding:18px 20px;border-radius:16px;background:#f7eee5;border:1px solid #e8d6c5}.backup #backupStatus{color:#70523e;font-size:13px;min-height:18px}.import-label{display:inline-flex;align-items:center}.backup-buttons button:hover,.import-label:hover{background:#ecddce}@media(max-width:820px){.trend-grid{grid-template-columns:1fr}.trend p{min-height:0}.bar-chart{height:170px}}@media(max-width:560px){.weekly{padding:16px}.weekly h2{font-size:23px}}
