/* PE-Class v1.14.18 — 모바일 종목별 진도표 전용
   모든 레이아웃 규칙은 768px 이하에만 적용됩니다. */
#mobileSubjectPlanSelector,
#mobileSubjectPlanHost,
.mobileProgressPickerSheet{display:none}

@media (max-width:768px){
  body.mobileSubjectPlanView #app{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }
  body.mobileSubjectPlanView #app>.pe87Crumb,
  body.mobileSubjectPlanView #app>.pe87PageHead,
  body.mobileSubjectPlanView #app>.panel{
    display:none!important;
  }

  .mobileSubjectPlanSelector{
    display:block!important;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    margin:0 0 12px;
    padding:14px;
    border:1px solid #d8e2ee;
    border-radius:14px;
    background:linear-gradient(180deg,#fff,#f7fbff);
    box-shadow:0 4px 14px rgba(31,56,88,.08);
  }
  .mobileSubjectPlanSelectorTitle{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:13px;
    color:#203247;
  }
  .mobileSubjectPlanSelectorTitle>span{font-size:24px;line-height:1}
  .mobileSubjectPlanSelectorTitle>div{display:flex;flex-direction:column;gap:3px;min-width:0}
  .mobileSubjectPlanSelectorTitle b{font-size:18px;line-height:1.25}
  .mobileSubjectPlanSelectorTitle small{font-size:12px;font-weight:750;color:#718096}
  .mobileSubjectPlanSelectorGrid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
  }
  .mobileProgressPickerField{display:flex;flex-direction:column;gap:6px;min-width:0}
  .mobileProgressPickerField.wide{grid-column:1/-1}
  .mobileProgressPickerField>span{font-size:12px;font-weight:900;color:#526274}
  .mobileProgressPickerButton{
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    min-width:0;
    height:48px;
    border:1px solid #c8d4e2;
    border-radius:11px;
    background:#fff;
    color:#172b3f;
    padding:0 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    text-align:left;
    font-size:16px;
    font-weight:850;
    box-shadow:0 1px 2px rgba(15,23,42,.04);
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .mobileProgressPickerButton>b{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .mobileProgressPickerButton>span{flex:0 0 auto;color:#6e7d8f;font-size:19px}
  .mobileProgressPickerButton:active:not(:disabled){background:#eef6ff;border-color:#63a4df}
  .mobileProgressPickerButton:disabled{background:#eef2f7;color:#8a98a8}
  .mobileSubjectPlanLocation{
    margin-top:11px;
    padding-top:10px;
    border-top:1px solid #e2e8f0;
    color:#748396;
    font-size:12px;
    font-weight:800;
    line-height:1.4;
    word-break:keep-all;
  }

  .mobileSubjectPlanHost{
    display:block!important;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .mobileSubjectPlanDashboard{
    width:100%;
    box-sizing:border-box;
    margin:0 0 12px;
    padding:14px;
    border:1px solid #dbe4ef;
    border-radius:14px;
    background:#fff;
    box-shadow:0 4px 14px rgba(31,56,88,.08);
  }
  .mobileSubjectPlanDashboardHead{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
  }
  .mobileSubjectPlanDashboardHead>div{min-width:0}
  .mobileSubjectPlanDashboard h2{
    margin:0;
    color:#203247;
    font-size:18px;
    line-height:1.3;
    overflow-wrap:anywhere;
  }
  .mobileSubjectPlanDashboard p{
    margin:4px 0 0;
    color:#718096;
    font-size:12px;
    font-weight:800;
  }
  .mobileSubjectPlanStatus{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    padding:0 9px;
    border:1px solid #b7e3c5;
    border-radius:999px;
    background:#ecfdf3;
    color:#16803a;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
  }
  .mobileSubjectPlanStatus.dirty{border-color:#f4d39a;background:#fff7e8;color:#b66900}
  .mobileSubjectPlanActions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    width:100%;
  }
  .mobileSubjectPlanActions button{
    width:100%;
    min-width:0;
    min-height:48px;
    margin:0;
    padding:7px 4px;
    border:1px solid #cbd6e2;
    border-radius:10px;
    background:#fff;
    color:#29415a;
    font-size:12px;
    font-weight:900;
    line-height:1.2;
    white-space:normal;
    word-break:keep-all;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .mobileSubjectPlanActions .mobileSubjectPlanSave{border-color:#1f7a45;background:#1f8b4c;color:#fff}
  .mobileSubjectPlanActions .danger{border-color:#f3b5b5;background:#fff4f4;color:#c53d3d}
  .mobileSubjectPlanActions button:disabled{opacity:.46;cursor:not-allowed}
  .mobileSubjectPlanActions button span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    margin-left:2px;
    border-radius:999px;
    background:rgba(197,61,61,.12);
    font-size:10px;
  }

  .mobileSubjectPlanCards{display:grid;grid-template-columns:1fr;gap:12px;width:100%;min-width:0}
  .mobileSubjectPlanCard{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    padding:14px;
    border:1px solid #dbe4ef;
    border-radius:15px;
    background:#fff;
    box-shadow:0 4px 14px rgba(31,56,88,.07);
    scroll-margin-top:142px;
    transition:border-color .15s ease,box-shadow .15s ease;
  }
  .mobileSubjectPlanCard.selected{border-color:#4a91d4;box-shadow:0 0 0 3px rgba(74,145,212,.13)}
  .mobileSubjectPlanCard>header{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:9px;
    padding-bottom:11px;
    margin-bottom:12px;
    border-bottom:1px solid #e5eaf0;
  }
  .mobileSubjectPlanCard>header>strong{text-align:center;color:#1f3348;font-size:17px}
  .mobileSubjectPlanCheck{
    display:inline-flex!important;
    align-items:center;
    gap:6px;
    margin:0!important;
    color:#607083;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
  }
  .mobileSubjectPlanCheck input{
    width:20px;
    height:20px;
    margin:0;
    accent-color:#2f80c7;
  }
  .mobileSubjectPlanCardState{
    justify-self:end;
    color:#7b8794;
    font-size:11px;
    font-weight:850;
    white-space:nowrap;
  }
  .mobileSubjectPlanFields{display:grid;grid-template-columns:1fr;gap:12px}
  .mobileSubjectPlanField{
    display:flex!important;
    flex-direction:column;
    gap:7px;
    min-width:0;
    margin:0!important;
  }
  .mobileSubjectPlanField>span{color:#526274;font-size:12px;font-weight:900}
  .mobileSubjectPlanField input,
  .mobileSubjectPlanField textarea{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    border:1px solid #cbd6e2;
    border-radius:10px;
    background:#fff;
    color:#172b3f;
    padding:10px 11px;
    font-size:16px;
    line-height:1.45;
    text-align:left;
    -webkit-user-select:text;
    user-select:text;
  }
  .mobileSubjectPlanField input{height:46px}
  .mobileSubjectPlanField textarea{min-height:112px;resize:vertical}
  .mobileSubjectPlanField input:focus,
  .mobileSubjectPlanField textarea:focus{outline:3px solid rgba(52,152,219,.15);border-color:#5fa7df}

  .mobileSubjectPlanEmpty,
  .mobileSubjectPlanNoRows{
    width:100%;
    box-sizing:border-box;
    border:1px solid #dbe4ef;
    border-radius:14px;
    background:#fff;
    padding:30px 18px;
    text-align:center;
    color:#718096;
    box-shadow:0 4px 14px rgba(31,56,88,.06);
  }
  .mobileSubjectPlanEmpty{display:flex;flex-direction:column;align-items:center;gap:8px}
  .mobileSubjectPlanEmpty>span{font-size:30px}
  .mobileSubjectPlanEmpty>b,.mobileSubjectPlanNoRows>b{color:#263b53;font-size:16px}
  .mobileSubjectPlanEmpty p{margin:0;max-width:290px;font-size:13px;line-height:1.55;word-break:keep-all}
  .mobileSubjectPlanEmpty.error{border-color:#f3c1c1;background:#fffafa}
  .mobileSubjectPlanEmpty.loading>span{animation:mobileProgressPulse 1.1s ease-in-out infinite alternate}
  .mobileSubjectPlanNoRows{display:flex;flex-direction:column;gap:6px}
  .mobileSubjectPlanNoRows span{font-size:13px}
  @keyframes mobileProgressPulse{from{opacity:.45;transform:scale(.94)}to{opacity:1;transform:scale(1.04)}}

  .mobileProgressPickerSheet{
    display:block;
    position:fixed;
    inset:0;
    z-index:33000;
    pointer-events:none;
    visibility:hidden;
  }
  .mobileProgressPickerSheet.open{pointer-events:auto;visibility:visible}
  .mobileProgressPickerBackdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    background:rgba(15,23,42,.5);
    opacity:0;
    transition:opacity .2s ease;
  }
  .mobileProgressPickerSheet.open .mobileProgressPickerBackdrop{opacity:1}
  .mobileProgressPickerPanel{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    flex-direction:column;
    max-height:min(72vh,620px);
    max-height:min(72dvh,620px);
    overflow:hidden;
    border-radius:22px 22px 0 0;
    background:#fff;
    padding:10px 18px max(20px,env(safe-area-inset-bottom));
    box-shadow:0 -18px 55px rgba(15,23,42,.28);
    transform:translateY(102%);
    transition:transform .24s ease;
  }
  .mobileProgressPickerSheet.open .mobileProgressPickerPanel{transform:translateY(0)}
  .mobileProgressPickerHandle{flex:0 0 auto;width:42px;height:5px;border-radius:999px;background:#d5dde7;margin:0 auto 8px}
  .mobileProgressPickerHead{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:7px 2px 14px;
    border-bottom:1px solid #e5eaf0;
  }
  .mobileProgressPickerHead strong{color:#203247;font-size:21px;font-weight:900}
  .mobileProgressPickerClose{
    width:42px;
    height:42px;
    min-height:42px;
    border:1px solid #dbe3ef;
    border-radius:10px;
    background:#fff;
    color:#526274;
    font-size:18px;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .mobileProgressPickerList{
    flex:1 1 auto;
    min-height:0;
    display:grid;
    align-content:start;
    gap:9px;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:10px 0 2px;
    touch-action:pan-y;
  }
  .mobileProgressPickerOption{
    display:grid;
    grid-template-columns:minmax(0,1fr) 28px;
    align-items:center;
    width:100%;
    min-width:0;
    min-height:58px;
    height:auto;
    border:1px solid #dbe3ef;
    border-radius:13px;
    background:#fff;
    color:#203247;
    padding:10px 14px;
    text-align:left;
    font-size:17px;
    font-weight:800;
    line-height:1.35;
    box-shadow:0 1px 2px rgba(15,23,42,.03);
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .mobileProgressPickerOption>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobileProgressPickerOption>b{text-align:right;color:#2f80c7;font-size:20px}
  .mobileProgressPickerOption.active{background:#314a63;border-color:#314a63;color:#fff}
  .mobileProgressPickerOption.active>b{color:#fff}
  .mobileProgressPickerEmpty{padding:28px 12px;text-align:center;color:#8a94a3;font-weight:800}
  body.mobileProgressPickerOpen{overflow:hidden!important;overscroll-behavior:none!important}
}

@media (max-width:390px){
  .mobileSubjectPlanSelector{padding:12px}
  .mobileSubjectPlanSelectorGrid{gap:8px}
  .mobileSubjectPlanDashboard,.mobileSubjectPlanCard{padding:12px}
  .mobileSubjectPlanActions{gap:5px}
  .mobileSubjectPlanActions button{font-size:11px;padding-left:2px;padding-right:2px}
  .mobileSubjectPlanDashboard h2{font-size:17px}
}

@media (min-width:769px){
  #mobileSubjectPlanSelector,
  #mobileSubjectPlanHost,
  .mobileProgressPickerSheet{display:none!important}
}
