/* GoPower Web PC · 学习页“调整目标”工作台
 * V127：保留原完整页面骨架，只重构“今日训练计划”局部区域。
 */

#studyTodayPlanCard[hidden],
#studyConfigInline[hidden]{display:none!important}

@media (min-width:901px){
  .study-page-config{
    position:relative;
    box-sizing:border-box;
    width:100%;
    padding:14px;
    border:1px solid #ebe6f8;
    border-radius:22px;
    background:linear-gradient(180deg,#fff 0%,#fcfbff 100%);
    box-shadow:0 12px 30px rgba(106,78,212,.07);
    overflow:hidden;
  }

  .study-config-head{
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:2px 2px 12px;
    border-bottom:1px solid #eee9f6;
  }
  .study-config-head::after{
    content:"";
    position:absolute;
    right:42px;
    top:-6px;
    width:176px;
    height:86px;
    border-radius:18px;
    background:
      radial-gradient(circle at 70% 28%, rgba(70,73,116,.28) 0 8px, rgba(255,255,255,0) 9px),
      radial-gradient(circle at 56% 42%, rgba(70,73,116,.18) 0 8px, rgba(255,255,255,0) 9px),
      radial-gradient(circle at 84% 48%, rgba(255,255,255,.92) 0 8px, rgba(255,255,255,0) 9px),
      linear-gradient(145deg,rgba(255,255,255,.9),rgba(246,243,255,.82)),
      repeating-linear-gradient(0deg, rgba(203,194,241,.44) 0 1px, transparent 1px 18px),
      repeating-linear-gradient(90deg, rgba(203,194,241,.44) 0 1px, transparent 1px 18px);
    border:1px solid rgba(232,225,248,.86);
    box-shadow:0 10px 22px rgba(105,77,212,.08);
    transform:perspective(560px) rotateY(-28deg) rotateX(10deg);
    opacity:.86;
    pointer-events:none;
  }
  .study-config-head-copy{position:relative;z-index:1;min-width:0;max-width:68%}
  .study-config-head small{
    display:block;
    color:#735de2;
    font-size:11px;
    font-weight:900;
    line-height:1.3;
  }
  .study-config-head h2{
    margin:4px 0 0;
    color:#1f1937;
    font-size:29px;
    line-height:1.04;
    letter-spacing:-.03em;
  }
  .study-config-head p{
    margin:5px 0 0;
    color:#8f88a4;
    font-size:11.5px;
    line-height:1.45;
    font-weight:650;
  }
  .study-config-close{
    position:relative;
    z-index:2;
    width:36px;height:36px;
    display:grid;place-items:center;
    flex:0 0 36px;
    border:1px solid #e6e0f2;
    border-radius:12px;
    background:#faf8ff;
    color:#7058e8;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(103,75,216,.04);
  }
  .study-config-close .ui-icon{width:16px;height:16px}

  .study-config-step{
    box-sizing:border-box;
    min-width:0;
    margin-top:12px;
    padding:12px 13px;
    border:1px solid #ebe6f2;
    border-radius:18px;
    background:linear-gradient(180deg,#fff 0%,#fcfbff 100%);
  }
  .study-config-step > header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
  }
  .study-config-step > header > span{
    width:30px;height:30px;
    display:grid;place-items:center;
    flex:0 0 30px;
    border-radius:11px;
    background:linear-gradient(180deg,#886af7,#6f4ff0);
    color:#fff;
    font-size:13px;
    font-weight:900;
    box-shadow:0 6px 12px rgba(103,77,226,.16);
  }
  .study-config-step > header > div{min-width:0}
  .study-config-step > header b{display:block;color:#2d2640;font-size:15px;line-height:1.25;font-weight:900}
  .study-config-step > header small{display:block;margin-top:2px;color:#938ba2;font-size:10.5px;line-height:1.4}

  .study-config-mode-grid,
  .study-mode-options.study-config-mode-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .study-config-mode-grid .study-mode-choice{
    position:relative;
    box-sizing:border-box;
    min-width:0;
    min-height:88px;
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    column-gap:10px;
    align-items:flex-start;
    padding:11px 11px 10px;
    border:1px solid #e7e2f1;
    border-radius:14px;
    background:#fff;
    color:#332b45;
    text-align:left;
    cursor:pointer;
    transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
  }
  .study-config-mode-grid .study-mode-choice:hover{border-color:#d4c7f5;box-shadow:0 8px 16px rgba(105,77,212,.06);transform:translateY(-1px)}
  .study-config-mode-grid .study-mode-choice.active{
    border-color:#8d76ff;
    background:linear-gradient(180deg,#f8f5ff 0%,#fff 100%);
    box-shadow:inset 0 0 0 1px rgba(141,118,255,.12),0 8px 16px rgba(105,77,212,.06);
  }
  .study-config-mode-grid .study-mode-choice > span{
    width:34px;height:34px;
    display:grid;place-items:center;
    border-radius:11px;
    background:#f0ebff;
    color:#7558ed;
  }
  .study-config-mode-grid .study-mode-choice > span .ui-icon{width:16px;height:16px}
  .study-config-mode-grid .study-mode-choice > div{min-width:0}
  .study-config-mode-grid .study-mode-choice b{display:block;font-size:12.5px;line-height:1.28;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .study-config-mode-grid .study-mode-choice small{
    display:-webkit-box;
    margin-top:4px;
    color:#948ca0;
    font-size:9.5px;
    line-height:1.38;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .study-config-mode-grid .study-mode-choice > em{
    position:absolute;
    right:8px;
    top:8px;
    width:18px;height:18px;
    display:grid;place-items:center;
    border-radius:50%;
    background:#eef9f3;
    color:#37a56c;
  }
  .study-config-mode-grid .study-mode-choice > em .ui-icon{width:11px;height:11px}

  .study-config-inline-options,
  .study-inline-options.study-config-inline-options{
    min-height:46px;
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    padding:10px 12px;
    border:1px solid #ece6f6;
    border-radius:14px;
    background:linear-gradient(180deg,#fbfaff 0%,#f9f8fc 100%);
  }
  .study-config-inline-options + .study-config-inline-options{margin-top:8px}
  .study-config-inline-options[hidden]{display:none!important}
  .study-config-option-label{
    min-width:68px;
    color:#665d78;
    font-size:10px;
    line-height:1.3;
    font-weight:900;
  }
  .study-config-inline-options button{
    height:34px;
    min-width:88px;
    padding:0 14px;
    border:1px solid #e3ddef;
    border-radius:18px;
    background:#fff;
    color:#635a74;
    font-size:12px;
    font-weight:850;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(105,77,212,.03);
    transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease;
  }
  .study-config-inline-options button:hover{border-color:#d1c3f3;color:#684bdb;transform:translateY(-1px)}
  .study-config-inline-options button.active{border-color:#7c60ea;background:linear-gradient(135deg,#8b69f2,#694ae4);color:#fff;box-shadow:0 8px 16px rgba(103,73,215,.16)}

  .study-config-confirm{
    display:grid;
    grid-template-columns:minmax(0,1fr) 302px;
    grid-template-areas:"head head" "summary actions";
    align-items:stretch;
    gap:10px 12px;
  }
  .study-config-confirm > header{grid-area:head;margin-bottom:0}
  .study-config-summary,
  .study-adjust-summary.study-config-summary{
    grid-area:summary;
    min-width:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .study-config-summary-item{
    min-width:0;
    min-height:64px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border:1px solid #ece6f8;
    border-radius:14px;
    background:linear-gradient(180deg,#fbf9ff 0%,#f8f6fc 100%);
  }
  .study-config-summary-icon{
    width:38px;height:38px;
    display:grid;place-items:center;
    border-radius:12px;
    background:#efeaff;
    color:#7658eb;
  }
  .study-config-summary-icon .ui-icon{width:18px;height:18px}
  .study-config-summary-meta{min-width:0}
  .study-config-summary-meta small{display:block;color:#8c84a0;font-size:9.5px;line-height:1.2}
  .study-config-summary-meta b{display:block;margin-top:3px;color:#261f39;font-size:12.5px;line-height:1.34;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .study-config-summary-item.is-mode .study-config-summary-meta b,
  .study-config-summary-item.is-target .study-config-summary-meta b{white-space:normal}

  .study-config-actions{
    grid-area:actions;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:9px;
    padding:10px;
    border:1px solid #ebe4fb;
    border-radius:16px;
    background:linear-gradient(180deg,#fdfcff 0%,#f4f0ff 100%);
  }
  .study-config-hint{
    min-width:0;
    display:flex;
    align-items:flex-start;
    gap:5px;
    color:#8d859c;
    font-size:10px;
    line-height:1.4;
  }
  .study-config-hint .ui-icon{width:12px;height:12px;flex:0 0 12px;color:#dfa131;margin-top:1px}
  .study-config-refresh{display:none!important}
  .study-config-start{
    width:100%!important;
    min-height:54px!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    padding:0 14px!important;
    border:0!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,#9b54f2 0%,#6745e8 100%)!important;
    color:#fff!important;
    box-shadow:0 12px 24px rgba(102,65,231,.18)!important;
    cursor:pointer!important;
    overflow:hidden;
  }
  .study-config-start-icon{
    width:34px;height:34px;
    display:grid;place-items:center;
    border-radius:50%;
    background:#fff;
    color:#6d4de7;
  }
  .study-config-start-icon .ui-icon{width:14px;height:14px}
  .study-config-start-main{min-width:0;display:flex;align-items:center;height:100%}
  .study-config-start-main b,
  #studyConfigStartText{
    margin:0;
    color:#fff;
    font-size:15px;
    line-height:1;
    font-weight:900;
    white-space:nowrap;
  }
  .study-config-start-reward,
  #studyConfigStartReward{
    display:flex;
    align-items:center;
    min-height:22px;
    padding-left:12px;
    border-left:1px solid rgba(255,255,255,.18);
    color:rgba(255,255,255,.96);
    font-size:11px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
  }
}

@media (min-width:901px) and (max-width:1380px){
  .study-config-head-copy{max-width:65%}
  .study-config-head::after{width:146px;height:74px;right:36px}
  .study-config-mode-grid,.study-mode-options.study-config-mode-grid{gap:8px!important}
  .study-config-mode-grid .study-mode-choice{min-height:82px;padding:10px}
  .study-config-mode-grid .study-mode-choice b{font-size:12px}
  .study-config-mode-grid .study-mode-choice small{font-size:9px}
  .study-config-inline-options button{min-width:80px;padding:0 12px}
  .study-config-confirm{grid-template-columns:minmax(0,1fr) 286px}
}

@media (min-width:901px) and (max-height:860px){
  .study-page-config{padding:12px}
  .study-config-head{padding-bottom:10px}
  .study-config-step{margin-top:10px;padding:11px 12px}
  .study-config-step > header{margin-bottom:9px}
  .study-config-mode-grid .study-mode-choice{min-height:82px}
  .study-config-inline-options{padding-top:8px;padding-bottom:8px}
  .study-config-actions{padding:9px}
  .study-config-start{min-height:50px!important}
}
