/* 集章进度在任务内部；输入框保留左侧原位，手机采用紧凑两行。 */
body.hd2d-preview #app-view .task-copy:has(.task-streak-slot:not(:empty)){display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.9fr);align-items:center;gap:0 18px}
body.hd2d-preview #app-view .task-copy:has(.task-streak-slot:not(:empty))>:not(.task-streak-slot){grid-column:1;min-width:0}
body.hd2d-preview #app-view .task-streak-slot{grid-column:2;grid-row:1/4;min-width:0;max-width:100%}
body.hd2d-preview #app-view .task-streak-slot:empty{display:none}
.task-streak-goal{min-width:0;color:#e9f5fc}
.task-streak-details{border:0!important;margin:0!important;padding:0!important}
.task-streak-details>summary{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;cursor:pointer;list-style:none;min-height:44px;padding:3px 0;border:0}
.task-streak-details>summary::-webkit-details-marker{display:none}
.task-streak-details>summary:focus-visible{outline:2px solid #9be6e5;outline-offset:4px;border-radius:5px}
.task-streak-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font:700 14px/1.4 Xiaolai,sans-serif}
.task-streak-heading strong{color:#b9eff2}
.streak-rules-hint{font:12px/1.4 Xiaolai,sans-serif;color:#bbcfdd;white-space:nowrap}
body.hd2d-preview .task-streak-goal .task-streak-message{display:block;margin:0;color:#ffe3a4;font:700 13px/1.5 Xiaolai,sans-serif}
.streak-stamps{display:flex;align-items:center;justify-content:space-between;gap:5px;position:relative;max-width:240px;isolation:isolate}
.streak-stamps::before{content:'';position:absolute;left:12px;right:12px;top:12px;height:2px;background:#8ec4d14d;z-index:-1}
.streak-stamp{display:grid;justify-items:center;flex:none;gap:2px;color:#c4dae5}
.streak-stamp b{display:grid;place-items:center;box-sizing:border-box;width:25px;height:25px;border:1px solid #82b1c880;border-radius:50%;background:#203e55;font:700 12px/1 Xiaolai,sans-serif}
.streak-stamp.is-earned b{background:linear-gradient(145deg,#c3f4d6,#74cfcf);border-color:#c6fae4;color:#173e4b;box-shadow:0 0 8px #8de8d333}
.streak-stamp img{width:27px;height:27px;object-fit:contain;filter:drop-shadow(0 0 4px #ffe19d55)}
.streak-stamp small{font:11px/1.2 Xiaolai,sans-serif}
.streak-rules{margin-top:7px;padding:8px 10px;border-radius:9px;background:#102d4377;color:#c6dce8;font:12px/1.7 Xiaolai,sans-serif}
.streak-rules ul{margin:0;padding-left:16px}
.streak-rules p{margin:4px 0 0}
.task-streak-pending{display:block;color:#c2d8e5;font-size:12px;margin-top:3px}
.task-streak-goal.is-achieved .task-streak-heading strong{color:#b5f0d1}
.task-streak-goal.is-achieved .task-streak-heading strong::before{content:'✓ ';color:#9ce5c5}
.task-streak-goal.is-achieved .task-streak-details>summary{align-content:center}
@media(max-width:1150px){
 body.hd2d-preview #app-view .task-copy:has(.task-streak-slot:not(:empty)){gap:8px}
 .task-streak-heading{font-size:13px}
}
@media(max-width:767px){
 body.hd2d-preview #app-view .task-copy:has(.task-streak-slot:not(:empty)){display:block}
 body.hd2d-preview #app-view .task-streak-slot{margin-top:7px}
 .task-streak-details>summary{grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center}
 .task-streak-heading{font-size:12px}
 .streak-rules-hint{font-size:0}
 .streak-rules-hint::after{content:'⌄';font-size:12px}
 .streak-stamps{max-width:145px;gap:3px}
 .streak-stamp b{width:18px;height:18px;font-size:10px}
 .streak-stamp img{width:21px;height:21px}
 .streak-stamps::before{top:9px;left:9px;right:9px}
 body.hd2d-preview .task-streak-goal .task-streak-message{grid-column:1/-1;font-size:12px}
 .streak-rules small{font-size:11px}
}
body.hd2d-preview #app-view #today-workspace .home-insights #home-overview-panel{margin-top:0}
@media(min-width:600px) and (max-width:1024px) and (orientation:portrait){body.hd2d-preview #app-view #today-workspace .home-insights{display:none}}
