.posture-checkin-flow{width:min(100%,560px);margin:auto;min-height:100dvh;padding:20px 20px max(30px,env(safe-area-inset-bottom));background:linear-gradient(165deg,#eeeaff,#f6f7ff);color:#18224b}.posture-checkin-flow[hidden],.correction-library[hidden]{display:none!important}.posture-flow-head{display:flex;align-items:center;gap:14px;font-weight:700;font-size:15px;margin-bottom:26px}.posture-flow-head button{font-size:30px;cursor:pointer}.posture-flow-step{margin-left:auto;font-size:13px;color:#8b80aa;font-weight:500}.posture-flow-intro{padding:0 4px 18px}.posture-flow-intro h1{font-size:28px;line-height:1.4;margin:12px 0 8px}.posture-flow-intro p{font-size:14px;line-height:1.7;margin:0;color:#7b83a3}.posture-flow-tag{display:inline-block;font-size:12px;padding:6px 10px;border-radius:20px;background:#ebe3ff;color:#7c56cd}.posture-flow-card{background:#ffffffed;border:1px solid #fff;border-radius:24px;padding:22px;margin:0 0 16px;box-shadow:0 8px 22px #705a8d07}.posture-flow-card h2{font-size:18px;line-height:1.5;margin:0 0 14px}.posture-flow-card>.posture-flow-tag{margin-bottom:10px}.posture-duration-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 22px}.posture-duration-options button{border:1px solid #e7e0f8;border-radius:18px;padding:18px 8px;background:#f8f6ff;color:#574d7c;font:inherit;cursor:pointer}.posture-duration-options button.selected{color:#fff;border-color:transparent;background:linear-gradient(140deg,#a286f8,#7151e9);box-shadow:0 7px 16px #7950de24}.posture-duration-options strong{display:block;font-size:23px;line-height:1.3}.posture-duration-options span{display:block;font-size:11px;margin-top:8px;opacity:.8}.posture-start-date{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:15px;background:#f7f5fe;font-size:14px}.posture-start-date input{min-width:0;max-width:60%;border:1px solid #dfd4f8;background:#fff;padding:10px;border-radius:10px;color:#65518f;font:inherit}.posture-flow-note{font-size:12px!important;line-height:1.8!important;color:#8a89a3!important;margin:10px 0 0}.posture-calendar-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0}.posture-calendar-head button{width:34px;height:34px;border:0;border-radius:11px;background:#f0eaff;color:#8d6adc;font-size:24px;cursor:pointer}.posture-calendar-head strong{font-size:16px}.posture-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.posture-calendar-week{text-align:center;color:#9d95b1;font-size:12px;padding:8px 0}.posture-calendar-grid button{min-height:49px;padding:7px 1px;border:1px solid transparent;background:#f7f7fc;border-radius:12px;font-family:inherit;font-weight:600;font-size:14px;line-height:1.3;color:#7d82a1;cursor:pointer}.posture-calendar-grid small{display:block;font-size:9px;font-weight:400;margin-top:4px}.posture-calendar-grid .is-training{background:#eee7ff;color:#8058d7}.posture-calendar-grid .is-start{border-color:#a68aef;box-shadow:inset 0 0 0 2px #fff}.posture-flow-primary{display:block;min-height:52px;width:100%;padding:14px 18px;border:0;border-radius:17px;font-family:inherit;font-weight:700;font-size:15px;line-height:1.5;cursor:pointer;color:#fff;background:linear-gradient(115deg,#9b79f4,#6e49e5);box-shadow:0 8px 20px #7350ce1f;margin:18px 0 12px}.posture-flow-primary:disabled{opacity:.55;cursor:wait}.posture-flow-pending{color:#8d769f;background:#f5f1fc;padding:16px;border-radius:16px;line-height:1.8;font-size:13px}.posture-task-meta{font-size:12px;line-height:1.7;color:#8c83a6}.posture-training-summary{background:#f1ecff;border-radius:12px;padding:13px;color:#7553bd;font-size:13px}.posture-action-detail{padding:15px 0;border-top:1px solid #eee9f8}.posture-action-detail summary{cursor:pointer;list-style:none;line-height:1.6}.posture-action-detail summary::-webkit-details-marker{display:none}.posture-action-detail summary strong{display:block;font-size:14px}.posture-action-detail summary span{display:block;margin-top:5px;font-size:12px;color:#9284ae}.posture-action-detail[open] summary strong{color:#8158ca}.posture-action-copy{padding-top:14px}.posture-action-copy video{width:100%;border-radius:14px;background:#eeeaf7;max-height:300px}.posture-action-copy p{font-size:13px;line-height:1.85;color:#737b98;white-space:pre-line}.posture-video-pending{display:inline-block;padding:7px 10px;border-radius:10px;background:#f2eff9;color:#9b89b1;font-size:12px}.posture-save-status{font-size:13px;line-height:1.7;text-align:center;color:#8b70a6}.posture-checkin-flow button:focus-visible,.posture-checkin-flow summary:focus-visible{outline:3px solid #bba2f2;outline-offset:3px}@media(max-width:420px){.posture-checkin-flow{padding:18px 14px 28px}.posture-flow-card{padding:19px 16px;border-radius:22px}.posture-flow-intro h1{font-size:25px}.posture-calendar-grid{gap:4px}.posture-calendar-grid button{min-height:47px}.posture-duration-options strong{font-size:21px}.posture-duration-options button{padding:16px 6px}}
.posture-checkin-flow.generated-training{position:relative;width:min(100%,480px);padding:0 0 max(30px,env(safe-area-inset-bottom));overflow:hidden;background:linear-gradient(180deg,#f7f8ff,#fff 55%,#f4f4ff);color:#080b2d}
.posture-checkin-flow .generated-hero{position:relative;height:300px;overflow:hidden;background:linear-gradient(90deg,rgba(248,250,255,.98),rgba(247,249,255,.8) 45%,rgba(244,247,255,.08)),url('/assets/plan/training-card-posture.webp') 86% 22%/cover no-repeat}
.posture-checkin-flow .generated-back{position:absolute;top:22px;left:18px;display:grid;place-items:center;width:38px;height:38px;border:0;background:transparent;color:#101531;font-size:33px;cursor:pointer}
.posture-checkin-flow .generated-step{position:absolute;right:24px;top:32px;color:#5555a5;font-size:20px;font-weight:700}
.posture-checkin-flow .generated-copy{position:absolute;top:90px;left:24px;right:24px}
.posture-checkin-flow .generated-copy p{color:#7c8199}
.posture-checkin-flow .generated-note{position:absolute;top:235px;right:22px;color:#5852bd;font:600 14px/1.38 "KaiTi","STKaiti",serif;text-align:center;transform:rotate(-8deg)}
.posture-checkin-flow .generated-note::after{content:"";display:block;width:138px;height:2px;margin:4px 0 0 -1px;background:#655cec;transform:rotate(-5deg)}
.posture-checkin-flow .posture-flow-card{margin:0 18px 20px;border-radius:24px;border:1px solid #e9e3ff;background:linear-gradient(135deg,#fff,#f5f2ff);padding:20px;box-shadow:none}
.posture-checkin-flow .posture-training-summary{padding:0;background:transparent;color:#76688f;line-height:1.7;font-size:12px}
.posture-checkin-flow .posture-flow-primary{width:calc(100% - 36px);margin:22px 18px 12px;min-height:54px;font-size:16px;border-radius:18px}
.posture-checkin-flow>.posture-flow-note,.posture-checkin-flow>.posture-save-status,.posture-checkin-flow>.posture-flow-pending{margin-left:20px;margin-right:20px}
.posture-checkin-flow .training-hierarchy-group{margin:12px 12px 22px;padding:12px;border-radius:24px;background:#ffffffdb;border:1px solid #efebff}
.posture-checkin-flow .plan-workout-head{border:0;color:#080a2b;background:transparent;cursor:pointer;font-family:inherit}
.posture-checkin-flow .plan-workout-rows[hidden]{display:none!important}
.posture-checkin-flow .posture-action-detail{padding:0;border:0}
.posture-checkin-flow .posture-action-detail summary.plan-workout-row{display:grid;grid-template-columns:80px minmax(0,1fr);gap:4px 10px;align-items:center;min-height:78px;margin:8px 0;padding:8px;border-radius:17px;color:#101432;background:#fff}
.posture-checkin-flow .posture-action-detail summary img,.posture-checkin-flow .posture-action-text{grid-column:1;grid-row:1/3;width:80px;height:45px;object-fit:cover;border-radius:12px;align-self:center}
.posture-checkin-flow .posture-action-text{display:grid;place-items:center;background:#f1edfc;color:#9279cf;font-size:25px}
.posture-checkin-flow .posture-action-detail summary b{grid-column:2;grid-row:1;align-self:end;font-size:16px;line-height:1.5}
.posture-checkin-flow .posture-action-detail summary>span{grid-column:2;grid-row:2;align-self:start;font-size:12px;line-height:1.65;color:#737393;margin:0}
.posture-checkin-flow .posture-action-copy{padding:10px 12px 16px}
@media(max-width:400px){.posture-checkin-flow.generated-training{padding-top:0}.posture-checkin-flow .training-stage-heading h2{font-size:32px}.posture-checkin-flow .training-hierarchy-group{padding:10px}}
.posture-start-date select{min-width:0;max-width:65%;padding:10px;border:1px solid #dfd4f8;border-radius:10px;background:#fff;color:#65518f;font:inherit}

.posture-checkin-flow .posture-row-pending{display:inline-block;margin-left:7px;padding:1px 6px;border-radius:6px;background:#f0ecf9;color:#8a739f;font-size:10px;font-style:normal;white-space:nowrap}

.posture-date-trigger{display:flex;align-items:center;gap:10px;min-height:48px;padding:11px 14px;border:1px solid #ded3ff;border-radius:15px;color:#6746c9;background:#fff;font:inherit;cursor:pointer}.posture-date-trigger strong{font-size:15px;font-weight:600}.posture-date-trigger i{font-size:20px}.posture-date-overlay{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:20px;background:#1a17495c;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.posture-date-dialog{width:min(100%,420px);max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #eae3ff;border-radius:28px;background:#fff;box-shadow:0 22px 70px #25165b30;color:#15204a}.posture-date-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}.posture-date-dialog small{color:#9279cb;font-size:12px}.posture-date-dialog h2{font-size:23px;margin:5px 0 18px}.posture-date-dialog button,.posture-date-dialog select{font:inherit;cursor:pointer}.posture-date-close{border:0;border-radius:12px;padding:10px;color:#8568c9;background:#f4f0ff}.posture-date-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 20px}.posture-date-toolbar button{width:40px;height:40px;border:0;border-radius:12px;background:#f1ebff;color:#8153dc;font-size:25px}.posture-date-toolbar select{min-width:0;border:0;border-radius:10px;background:#f9f7ff;color:#32365f;padding:9px 4px;font-weight:600}.posture-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;text-align:center}.posture-date-grid>span{min-height:28px;color:#a09bb7;font-size:13px}.posture-date-grid button{aspect-ratio:1;min-width:0;min-height:34px;border:0;border-radius:12px;background:#f8f7fd;color:#535d83}.posture-date-grid button.is-today{box-shadow:inset 0 0 0 1px #b9a1fc}.posture-date-grid button[aria-pressed=true]{color:#fff;background:linear-gradient(135deg,#a286fa,#6b46e7);font-weight:700;box-shadow:0 4px 10px #7650e42a}.posture-date-summary{white-space:pre-line;padding:14px;border-radius:14px;background:#f6f2ff;color:#8470ad;font-size:13px;line-height:1.8}.posture-date-dialog footer{display:flex;gap:10px}.posture-date-dialog footer button{min-height:46px;border:0;border-radius:14px;padding:10px 18px}.posture-date-today{background:#f0eafa;color:#8059c8}.posture-date-confirm{flex:1;background:linear-gradient(110deg,#9b80f7,#6643e6);color:white;font-weight:600}.posture-date-dialog :focus-visible,.posture-date-trigger:focus-visible{outline:3px solid #b9a1fc;outline-offset:3px}@media(max-width:400px){.posture-start-date{gap:10px;flex-wrap:wrap}.posture-date-dialog{padding:18px}.posture-date-overlay{padding:12px}.posture-date-grid{gap:4px}}

/* ── 滑轮式打卡时间选择器 + 日历导出 ────────────────────────── */
/* 设计 token：沿用页面紫色主色体系，卡片与弹窗共用一套语义色 */
.posture-checkin-flow,.posture-time-overlay{
  --ui-primary:#6e49e5;
  --ui-primary-deep:#5b36cf;
  --ui-primary-ink:#4b2bb5;
  --ui-primary-soft:#f1ecff;
  --ui-primary-border:#ded3ff;
  --ui-ink:#241b52;
  --ui-muted:#66608a;
  --ui-focus:#b9a1fc;
}

/* 独立时间卡片：和「选择打卡时长」分成两个视觉分区 */
.posture-time-kicker{display:block;margin:0 0 4px;color:#7c56cd;font-size:12px;font-weight:700;letter-spacing:.08em}
.posture-time-card h2{margin-bottom:6px}
/* 标题后的红色提醒：与 css/checkin-time.css 的 .checkin-time-alert 同一套观感，
   紧贴标题 6px、与下方 12px 说明文案拉开层级 */
.posture-time-alert{display:flex;align-items:flex-start;gap:7px;margin:0 0 14px;padding:7px 11px 7px 10px;
  border:1px solid #f8d5cf;border-left:3px solid #dc2626;border-radius:10px;
  background:linear-gradient(100deg,#fff8f6,#fff1ec);
  color:#b42318;font-size:12px;font-weight:700;line-height:1.6;letter-spacing:.01em}
.posture-time-alert::before{content:'';flex:none;width:6px;height:6px;margin-top:6px;border-radius:50%;
  background:#dc2626;box-shadow:0 0 0 3px #fde6e1}
.posture-time-trigger{display:flex;align-items:center;gap:14px;width:100%;min-height:76px;margin:2px 0 0;padding:14px 18px;
  border:1.5px solid var(--ui-primary-border);border-radius:18px;
  background:linear-gradient(120deg,#faf8ff,#f1ecff);color:var(--ui-primary-deep);
  font:inherit;text-align:left;cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.posture-time-trigger:hover{border-color:var(--ui-focus);box-shadow:0 6px 18px #7050d014}
.posture-time-trigger:active{transform:translateY(1px)}
.posture-time-trigger i:first-child{font-size:24px;line-height:1}
.posture-time-caret{width:10px;height:10px;margin-left:auto;flex:none;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg);opacity:.7}
.posture-time-value{font-size:32px;font-weight:700;line-height:1.2;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.posture-time-card .posture-flow-note{color:var(--ui-muted)!important;font-size:12px!important;line-height:1.8!important;margin-top:12px!important}
.posture-time-hint{margin:8px 0 0;font-size:12px;line-height:1.6;color:#7a72a0}

/* 滑轮弹窗：遮罩、圆角、阴影沿用现有日期弹窗的视觉语言 */
.posture-time-overlay{position:fixed;inset:0;z-index:21000;display:grid;place-items:center;padding:16px;
  background:#1a17495c;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.posture-time-dialog{width:min(100%,400px);max-height:calc(100dvh - 32px);overflow:auto;
  padding:0 22px 22px;border:1px solid #eae3ff;border-radius:28px;background:#fff;
  box-shadow:0 22px 70px #25165b30;color:var(--ui-ink);animation:postureTimeIn .22s ease-out}
@keyframes postureTimeIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.posture-time-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 0 16px}
.posture-time-head small{display:block;margin-bottom:4px;color:#7c56cd;font-size:12px;font-weight:700;letter-spacing:.08em}
.posture-time-head h2{margin:0;font-size:20px;line-height:1.4}
.posture-time-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;
  background:#f4f0ff;color:#6f4fd0;font-size:26px;line-height:1;cursor:pointer}
.posture-time-preview{display:grid;place-items:center;height:88px;border-radius:20px;
  background:linear-gradient(115deg,#7c5ae9,#5b36cf);box-shadow:0 10px 24px #6e49e533;color:#fff}
.posture-time-preview strong{font-size:40px;font-weight:700;line-height:1;letter-spacing:.04em;font-variant-numeric:tabular-nums}

/* 两列滚轮：原生 overflow + scroll-snap，触摸 / 鼠标滚轮 / 键盘走同一条逻辑 */
.posture-time-wheel{margin-top:18px}
.posture-time-wheel-labels{display:grid;grid-template-columns:1fr 22px 1fr;padding-bottom:8px;
  text-align:center;color:#7c56cd;font-size:12px;font-weight:600}
.posture-time-wheel-body{position:relative;display:grid;grid-template-columns:1fr 22px 1fr;height:220px}
.posture-time-highlight{position:absolute;left:0;right:0;top:88px;z-index:1;height:44px;
  border-top:1px solid var(--ui-primary-border);border-bottom:1px solid var(--ui-primary-border);
  border-radius:14px;background:var(--ui-primary-soft);pointer-events:none}
.posture-time-col{position:relative;z-index:2;height:220px;overflow-y:auto;
  scroll-snap-type:y mandatory;scrollbar-width:none;-ms-overflow-style:none;
  overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 25%,#000 75%,transparent);
  mask-image:linear-gradient(180deg,transparent,#000 25%,#000 75%,transparent)}
.posture-time-col::-webkit-scrollbar{display:none}
.posture-time-item{display:grid;place-items:center;height:44px;scroll-snap-align:center;
  color:#6f688c;font-size:18px;font-weight:500;font-variant-numeric:tabular-nums;cursor:pointer;
  transition:color .15s ease,font-size .15s ease}
.posture-time-item.is-active{color:var(--ui-primary-ink);font-size:24px;font-weight:700}
.posture-time-pad{height:88px}
.posture-time-colon{position:relative;z-index:2;display:grid;place-items:center;height:220px;
  color:#7c56cd;font-size:22px;font-weight:700}
.posture-time-help{margin:14px 0 18px;text-align:center;color:var(--ui-muted);font-size:12px;line-height:1.6}
.posture-time-actions{display:flex;gap:10px}
.posture-time-actions button{flex:1;min-height:50px;padding:10px 16px;border:0;border-radius:15px;
  font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.posture-time-cancel{background:#f0eafa;color:#6f4fd0}
.posture-time-actions .posture-time-confirm{flex:1.4;background:linear-gradient(110deg,#7c5ae9,#5b36cf);
  color:#fff;box-shadow:0 7px 18px #6e49e533}
.posture-time-dialog :focus-visible,.posture-time-trigger:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
.posture-flow-secondary{display:block;width:100%;min-height:48px;margin:0 0 12px;padding:12px 18px;border:1px solid #e2d8fb;border-radius:16px;background:#f7f4ff;color:#6f4fd0;font-family:inherit;font-weight:600;font-size:14px;line-height:1.5;cursor:pointer}
.posture-flow-secondary:active{background:#efe8ff}
@media(max-width:400px){
  .posture-time-overlay{padding:10px}
  .posture-time-dialog{padding:0 16px 16px;border-radius:24px}
  .posture-time-value{font-size:28px}
  .posture-time-alert{font-size:11.5px;padding:6px 9px;gap:6px}
  .posture-time-preview strong{font-size:34px}
}
@media(prefers-reduced-motion:reduce){
  .posture-time-dialog{animation:none}
  .posture-time-trigger,.posture-time-item{transition:none}
  .posture-time-col{scroll-behavior:auto}
}

/* 自动提醒状态面板 */
.posture-reminder-panel{margin:16px 0 0;padding:15px 16px;border:1px solid #e2d8fb;border-radius:18px;background:#f7f4ff}
.posture-reminder-title{margin:0 0 10px;font-size:14px;font-weight:700;color:#4b3390}
.posture-reminder-times{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.posture-reminder-times li{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#5d4b8e;line-height:1.5}
.posture-reminder-times i{font-size:16px;line-height:1.4;color:#8b6ae0}
.posture-reminder-note{margin:0;font-size:12px;line-height:1.6;color:#7a6aa0}
.posture-reminder-panel .posture-flow-secondary{margin:12px 0 0}
.posture-reminder-fallback{margin:10px 0 0;padding:0;border:0;background:transparent;color:#8b6ae0;font:inherit;font-size:12px;text-decoration:underline;cursor:pointer}
