#study-timer-final{
  --bg:#070b14;
  --line:rgba(255,255,255,.10);
  --txt:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --cyan:#33e3ff;
  --cyan2:#2aa9ff;
}
/* === DM Mono（ポモドーロと同じ数字フォント）=== */
#study-timer-final .st-time,
#study-timer-final .st-ringRemain,
#study-timer-final #stRemain,
#study-timer-final #stWeekTotal{
  font-family:"DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

#study-timer-final *{
  box-sizing:border-box;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Hiragino Sans","Noto Sans JP",sans-serif;
}

.st-wrap{
  background:
    radial-gradient(900px 480px at 40% 20%, rgba(51,227,255,.18), transparent 55%),
    radial-gradient(900px 480px at 70% 50%, rgba(42,169,255,.14), transparent 60%),
    var(--bg);
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;

  max-width: 980px;
  margin: 0 auto;
}

/* 上段 */
.st-top{
  display:grid;
  grid-template-columns: 260px 360px;
  gap:24px;
  align-items:center;
  justify-content:center;
}

/* リング */
.st-ringCard{
  position:relative;
  width:260px;height:260px;
  border-radius:18px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow:hidden;
}
.st-ringCenter{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  pointer-events:none;
}
.st-ringTitle{ color:var(--muted); font-size:13px; }
.st-ringRemain{ color:var(--txt); font-size:34px; font-weight:900; margin-top:6px; }
.st-ringSub{ color:rgba(255,255,255,.55); font-size:12px; margin-top:6px; }

/* 右エリア */
.st-rightArea{
  width:360px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
}

/* ラベル */
.st-label{
  width:max-content;
  padding:6px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--txt);
  font-weight:700;
  font-size:13px;
  align-self: center;
  text-align: center;
}

/* タイマーカード */
.st-timerCard{
  width:360px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.st-time{
  font-size:60px;
  letter-spacing:1.5px;
  color:var(--cyan);
  font-weight:900;
  text-shadow:0 0 14px rgba(51,227,255,.22);

  /* 時間で横ブレしない */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  display:inline-block;
  width:8ch;
  text-align:center;
  white-space:nowrap;
}
.st-status{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

/* ---- 画像風ピルボタン ---- */
.st-btnRow{
  width:360px;
  display:flex;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:10px;
}
.st-pill{
  height:46px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;

  background: radial-gradient(120% 140% at 30% 30%, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 20px rgba(0,0,0,.28);
  transition: transform .12s ease, filter .12s ease, background .12s ease, opacity .12s ease;
}

.st-pill:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.st-pill:active{ transform: translateY(0px); filter: brightness(.98); }

.st-ico{
  width:22px; height:22px;
  display:inline-flex;
  align-items:center; justify-content:center;
}

.st-ico svg{
  width:22px; height:22px;
  fill: currentColor;
  opacity:.95;
}

/* Startだけ明るいブルー */
.st-start{
  color:#061018;
  border-color: rgba(51,227,255,.28);
  background: linear-gradient(180deg, rgba(124,233,255,1), rgba(49,205,255,1));
  box-shadow:
    0 12px 24px rgba(51,227,255,.16),
    0 10px 20px rgba(0,0,0,.26);
  justify-content: center;
}

/* Pause/Resetはダーク */
.st-pause, .st-reset{
  color: rgba(255,255,255,.92);
  background: radial-gradient(120% 140% at 30% 30%, rgba(255,255,255,.10), rgba(255,255,255,.03));
}

/* disabled */
.st-pill:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
  filter:none;
}

/* 週カード */
.st-weekCard{
  margin-top:22px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.st-weekHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.st-weekTitle{ color:var(--txt); font-weight:800; }
.st-weekTotal{ color:var(--muted); font-weight:700; }

.st-barsWrap{
  margin-top:10px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  padding-left: 16px;
  padding-right: 16px;
}
.st-weekFooter{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}

/* 週リセットの小ボタン */
.st-btn{
  padding:8px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--txt);
  font-weight:700;
  cursor:pointer;
  transition:.15s;
}
.st-btn:hover{ transform: translateY(-1px); background:rgba(255,255,255,.07); }
.st-ghost{ background:transparent; }

/* レスポンシブ */
@media(max-width:900px){
  .st-top{ grid-template-columns: 1fr; }
  .st-ringCard{ margin:0 auto; }
  .st-rightArea{ width:100%; align-items:center; }
  .st-timerCard, .st-btnRow{ width:100%; }
  .st-time{ width:auto; }
  .st-btnRow{ justify-content:center; }
}

/* 小画面 */
@media(max-width:480px){
  .st-wrap{ padding:18px; }
  .st-ringCard{ width:240px; height:240px; }
  #stRing{ width:240px; height:240px; }
  .st-timerCard{ padding:10px 12px; }
  .st-time{ font-size:36px; }

  .st-pill{
    height:44px;
    font-size:14px;
    padding:0 12px;
  }
  .st-ico, .st-ico svg{
    width:20px; height:20px;
  }
  .st-start{ flex: 1 1 100%; }
}

/* === 週グラフ：モバイルで途切れ防止 === */
.st-barsWrap{
  overflow: visible;
}
#stBars{
  display:block;
  width:100% !important;
  height:auto;
}