:root { color-scheme: light; }

  .study-evo-card{
    position:relative;
    border:1px solid #e9e9e9;
    border-radius:18px;
    padding:18px;
    background:#fff;
    box-shadow:0 10px 26px rgba(0,0,0,.06);
    max-width:860px;
    margin:16px auto;
  }

  .study-evo-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:10px;
    flex-wrap:wrap;
  }

  .study-evo-title{
    font-weight:900;
    letter-spacing:.02em;
  }

  .study-evo-buttons{
    display:flex;
    gap:10px;
  }

  .study-evo-btn{
    border:1px solid #e6e6e6;
    background:#fff;
    border-radius:14px;
    padding:10px 14px;
    font-weight:800;
    cursor:pointer;
  }

  .study-evo-btn.primary{
    background:#111;
    color:#fff;
    border-color:#111;
  }

  .study-evo-btn:disabled{
    opacity:.4;
    cursor:not-allowed;
  }

  .study-evo-body{
    border:1px dashed #e6e6e6;
    border-radius:16px;
    padding:22px 18px;
    text-align:center;
  }

  .study-evo-time{
    font-size:18px;
    font-weight:800;
    margin-bottom:12px;
  }

  .study-evo-time span{
    font-size:32px;
    font-weight:900;
    margin-left:6px;
  }

  .study-evo-avatar{
    width:140px;
    height:140px;
    margin:16px auto;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
  }

  .study-evo-avatar img{
    width:100%;
    height:100%;
    object-fit:contain;
    background:transparent;
    box-shadow:none;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
  }

  .study-evo-rank{
    font-size:22px;
    font-weight:900;
  }

  .study-evo-msg{
    margin-top:6px;
    font-weight:700;
    color:#444;
  }

  .study-evo-progress{
    height:12px;
    background:#f1f5f9;
    border-radius:999px;
    overflow:hidden;
    margin:18px auto 8px;
    max-width:520px;
  }

  .study-evo-progressBar{
    height:100%;
    width:0%;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition:width .25s ease;
  }

  .study-evo-next{
    font-weight:900;
    margin-top:4px;
  }

  .between-reset-row{
    display:flex;
    justify-content:flex-end;
    margin:10px 0 12px;
  }

  .study-evo-reset{
    border:none;
    background:#f3f4f6;
    color:#555;
    font-size:12px;
    font-weight:700;
    padding:6px 14px;
    border-radius:999px;
    cursor:pointer;
  }

  .study-evo-reset:hover{
    background:#e5e7eb;
  }

  .study-week-card{
    margin-top:0;
    border:1px solid #e9e9e9;
    border-radius:16px;
    padding:14px 14px 12px;
    background:#fff;
  }

  .study-week-head{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap:10px;
    margin-bottom:10px;
    flex-wrap:wrap;
  }

  .study-week-title{ font-weight:900; }
  .study-week-total{ font-weight:800; color:#444; }

  .study-week-bars{
    display:flex;
    gap:10px;
    align-items:flex-end;
    height:140px;
    padding:8px 6px 2px;
    border-radius:12px;
    background:#f8fafc;
    border:1px solid #eef2f7;
  }

 .sw-bar{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  height:100%;              /* ✅ 追加：親(週の箱)の高さを受ける */
}

.sw-bar-col{
  width:100%;
  max-width:14px; 
  flex:1;                   /* ✅ 変更：height:100% をやめて flex で高さ確定 */
  display:flex;
  align-items:flex-end;
  border-radius:10px;
  overflow:hidden;
  /* height:100%; ← これが原因になりやすいので消す */
}

  .sw-bar-fill{
    width:100%;
    height:0%;
    border-radius:10px 10px 0 0;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    transition:height .25s ease;
  }

  .sw-bar-val{
    font-size:12px;
    font-weight:800;
    color:#334155;
    white-space:nowrap;
  }

  .sw-bar-day{
    font-size:12px;
    font-weight:900;
    color:#475569;
  }

  .study-week-foot{
    display:flex;
    justify-content:flex-end;
    margin-top:10px;
  }

  .study-week-reset{
    border:none;
    background:#f3f4f6;
    color:#555;
    font-size:12px;
    font-weight:700;
    padding:6px 12px;
    border-radius:999px;
    cursor:pointer;
  }

  .study-week-reset:hover{
    background:#e5e7eb;
  }