.tabs{grid-template-columns:repeat(7,minmax(0,1fr));max-width:1480px;padding:0 3%}.tabs button{padding-left:10px;padding-right:10px;column-gap:8px;grid-template-columns:20px minmax(0,1fr)}.tabs button .nav-title{letter-spacing:0}.habits-intro{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:28px;padding:26px;background:#e7e0d4;margin:25px 0}.habits-intro h2{font-size:28px;font-weight:400;margin:12px 0}.habits-intro p{color:var(--muted);margin:0;max-width:710px}.habits-summary{border-left:1px solid #b8a990;padding-left:24px;display:flex;flex-direction:column;justify-content:center;gap:8px}.habits-summary strong{font-size:27px;font-weight:400}.habits-summary a{font-size:14px;text-decoration:underline;text-underline-offset:4px}.habits-summary small{font-size:13px;color:var(--muted)}.habits-nav{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0}.habits-nav a{font-size:14px;padding:8px 13px;border:1px solid var(--line)}.habits-nav a:hover{background:#e6dfd1;color:#554430}.habit-group{border:1px solid var(--line);background:#faf8f3;margin:0 0 16px;scroll-margin-top:120px}.habit-group>summary{display:flex;align-items:center;gap:20px;padding:23px;cursor:pointer;list-style:none}.habit-group>summary::-webkit-details-marker{display:none}.habit-group>summary:after{content:'＋';font-size:22px;color:#826e52}.habit-group[open]>summary:after{content:'−'}.habit-number{font:22px Georgia,serif;color:#8e7757}.habit-heading{font-family:'Noto Serif TC','Songti TC',serif;font-size:23px;flex:1;line-height:1.6}.habit-heading small{display:block;font-family:Arial,'Microsoft JhengHei',sans-serif;font-size:14px;color:var(--muted);margin-top:5px}.habit-progress{font-size:14px;font-variant-numeric:tabular-nums;color:#796247;white-space:nowrap}.habit-options{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:0 25px}.habit-option{display:flex;align-items:flex-start;gap:12px;padding:15px 8px;border-top:1px solid #e2dbcf;cursor:pointer;font-size:16px}.habit-option input{flex-shrink:0;width:19px;height:19px;margin:5px 0 0;accent-color:#6d5a40}.habit-option:has(input:checked){background:#ece4d7;color:#473a2a}.habit-direction{background:#eee8de;padding:18px 22px;margin:12px 25px 25px}.habit-direction strong{font-size:14px;font-weight:500;color:#6c5336}.habit-direction p{font-size:16px;margin:8px 0 0;color:var(--muted)}.habits-review{scroll-margin-top:125px;background:#e7e0d4;padding:30px;margin:35px 0}.habits-review h2{font-size:29px;font-weight:400;margin:12px 0 18px}.habits-review h3{font-size:19px;font-weight:500;margin:20px 0 10px}.habits-review ul{padding-left:24px;margin:0 0 20px}.habits-review li{margin:8px 0;font-size:16px}.habit-more{display:block;font-size:15px;margin-top:20px}.habit-more textarea,.habits-review>textarea{display:block;width:100%;margin-top:10px;background:#faf8f3;padding:15px;border:1px solid #b3a58f;font:inherit;font-size:16px}.habits-review>textarea{min-height:220px}.habits-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 10px}.habits-actions button,.habits-actions a{font:inherit;padding:13px 20px;border:1px solid #796348;font-size:16px;cursor:pointer}.habits-actions button{background:#5c4d3c;color:#fff}.habits-actions button:disabled{opacity:.5;cursor:not-allowed}.habits-actions a{background:transparent;color:#5c4d3c}#habits-status,#habits-empty{color:var(--muted);font-size:14px}.habit-group summary:focus-visible{outline:2px solid #8d795e;outline-offset:-4px}.habits-review:focus{outline:2px solid #8d795e;outline-offset:5px}@media(max-width:1299px) and (min-width:701px){.tabs{grid-template-columns:repeat(7,174px);width:max-content;max-width:none;padding:0 20px}.tabs button{width:174px}}@media(max-width:700px){.tabs{display:none}.habits-intro{grid-template-columns:1fr;padding:22px;gap:20px}.habits-summary{padding:18px 0 0;border-left:0;border-top:1px solid #b8a990}.habits-intro h2,.habits-review h2{font-size:25px}.habit-group>summary{padding:18px 14px;gap:12px}.habit-heading{font-size:21px}.habit-heading small{font-size:14px}.habit-number{font-size:18px}.habit-progress{font-size:13px}.habit-options{grid-template-columns:1fr;padding:0 14px}.habit-direction{margin:12px 14px 18px;padding:16px}.habits-review{padding:22px}.habits-actions>*{width:100%;text-align:center}.habits-nav a{padding:8px 10px}.habit-group{scroll-margin-top:90px}}
