/* 計算機 — uses theme.css tokens */
#calc-tabs { margin-bottom: 22px; }
.calc-section > h3 { font-family: var(--display); font-size: 22px; font-weight: 700; }
.cb-team { display: grid; gap: 10px; margin: 6px 0 12px; }
.cb-row { display: grid; grid-template-columns: 52px minmax(180px, 260px) minmax(0, 1fr); gap: 6px 12px; align-items: center; background: var(--white); border: 1px solid #ececf0; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.cb-pos { font-size: 13px; font-weight: 700; color: var(--accent); }
.cb-row input { height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; background: var(--white); color: var(--ink); min-width: 0; width: 100%; }
.cb-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 55, 42, .14); }
.cb-skills { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.cb-own { font-size: 13px; font-weight: 650; background: var(--tint); border-radius: 980px; padding: 6px 12px; white-space: nowrap; }
.cb-meta { grid-column: 2 / -1; color: var(--muted); font-size: 12.5px; }
.cb-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cb-filters { margin-bottom: 18px; }
.cb-filters input { height: 43px; width: 120px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; background: var(--white); color: var(--ink); }
.cb-head { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cb-head > div { background: var(--tint); border-radius: 16px; padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.cb-head span { font-size: 12.5px; color: var(--ink-soft); }
.cb-head strong { font-family: var(--display); font-size: 26px; font-weight: 750; }
.cb-head small { font-size: 12px; color: var(--muted); }
.cb-win strong { font-size: 40px; }
.cb-win.is-good strong { color: var(--good, #1f8a4c); }
.cb-win.is-mid strong { color: #b7791f; }
.cb-win.is-bad strong { color: var(--accent); }
.cb-advice { font-size: 15px; font-weight: 600; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.cb-advice .text-button { padding: 0; font-size: 14px; }
.cb-sub { font-size: 15px; margin: 18px 0 10px; }
.cb-table td:nth-child(2), .cb-table td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-more, .cb-report, .cb-how { margin-top: 12px; font-size: 13.5px; }
.cb-more > summary, .cb-report > summary, .cb-how > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.cb-report { background: var(--white); border: 1px solid #ececf0; border-radius: 16px; padding: 4px 18px 12px; }
.cb-round { font-weight: 700; margin: 10px 0 4px; font-size: 13px; color: var(--accent); }
.cb-lines { margin: 0; padding-left: 18px; color: var(--ink-soft); line-height: 1.8; }
.cb-how p { color: var(--ink-soft); line-height: 1.8; margin-top: 6px; }
@media (max-width: 760px) {
  .cb-row { grid-template-columns: 1fr; }
  .cb-skills { grid-template-columns: 1fr 1fr; }
  .cb-own { grid-column: 1 / -1; justify-self: start; }
  .cb-meta { grid-column: 1; }
  .cb-head { grid-template-columns: 1fr 1fr; }
  .cb-win { grid-column: 1 / -1; }
  .cb-filters input { width: 100%; }
}
.ct-grid { display: grid; grid-template-columns: minmax(120px, 1.2fr) 110px 130px 90px minmax(160px, 1.6fr) 110px; gap: 8px 12px; align-items: center; background: var(--white); border: 1px solid #ececf0; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.ct-h { font-size: 12px; color: var(--muted); }
.ct-name strong { display: block; font-size: 15px; }
.ct-name small { color: var(--muted); font-size: 12px; }
.ct-grid input { height: 38px; width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; text-align: right; background: var(--white); color: var(--ink); }
.ct-num { font-size: 14px; font-variant-numeric: tabular-nums; }
.ct-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ct-sum > div { background: var(--tint); border-radius: 16px; padding: 16px 18px; display: grid; gap: 2px; min-width: 0; }
.ct-sum span { font-size: 12.5px; color: var(--ink-soft); }
.ct-sum strong { font-family: var(--display); font-size: 20px; font-weight: 750; }
.ct-sum small { font-size: 12px; color: var(--muted); }
.ct-per { background: var(--white); border: 1px solid #ececf0; border-radius: 16px; padding: 14px 18px; }
.ct-per h4 { margin: 0 0 6px; font-size: 15px; }
.ct-per p { font-size: 14px; color: var(--ink-soft); line-height: 1.8; margin: 0; }
.ct-tips { margin: 0 0 18px; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.ct-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr 1fr; }
  .ct-grid .ct-h { display: none; }
  .ct-name { grid-column: 1 / -1; }
  .ct-sum { grid-template-columns: 1fr; }
}
.cb-skills { grid-template-columns: auto minmax(130px, auto) minmax(0, 1fr) minmax(0, 1fr); }
.cb-pt { height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 13px; background: var(--white); color: var(--ink); }
.cb-adv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 10px; }
.cb-card { background: var(--white); border: 1px solid #ececf0; border-radius: 18px; box-shadow: var(--shadow-sm); padding: 18px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.cb-card h4 { font-family: var(--display); font-size: 17px; margin: 0; }
.cb-card > .small { margin: 0; }
.cb-card > .button { justify-self: start; }
.cb-adv-out { display: grid; gap: 8px; font-size: 14px; }
.cb-adv-out:empty { display: none; }
.cb-adv-out p { margin: 0; line-height: 1.7; }
.cb-adv-out .button { justify-self: start; }
.cb-adv-main { font-weight: 700; font-size: 15px; }
.cb-rank { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.cb-rank li span { color: var(--muted); font-size: 12.5px; margin: 0 8px; }
.cb-rank li em { font-style: normal; color: var(--ink-soft); font-size: 13px; }
.cb-team2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.cb-team2 input { height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; min-width: 0; width: 100%; background: var(--white); color: var(--ink); }
.cb-team2 label { grid-column: 1 / -1; }
.cb-team2 label > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.cb-team2 label input { max-width: 180px; }
.cb-share-input { width: 100%; margin-top: 6px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px; font-size: 12px; }
@media (max-width: 900px) { .cb-adv { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .cb-skills { grid-template-columns: 1fr 1fr; }
  .cb-pt { grid-column: 1 / -1; width: 100%; }
  .cb-team2 { grid-template-columns: 1fr; }
}
.cs-now { font-size: 15px; font-weight: 650; margin: 4px 0 16px; }
.cs-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cs-day { background: var(--white); border: 1px solid #ececf0; border-radius: 18px; box-shadow: var(--shadow-sm); padding: 16px 18px; display: grid; gap: 8px; align-content: start; }
.cs-day.is-today { box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }
.cs-day.is-past { opacity: .6; }
.cs-day header { display: flex; align-items: baseline; gap: 10px; }
.cs-day header strong { font-family: var(--display); font-size: 18px; }
.cs-day header span { color: var(--muted); font-size: 12.5px; }
.cs-day header em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 980px; padding: 2px 10px; }
.cs-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cs-goals li { display: grid; gap: 1px; padding: 8px 10px; background: var(--tint); border-radius: 10px; font-size: 14px; }
.cs-goals li small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.cs-goals li.is-warn { background: var(--accent-soft); }
.cs-goals li.cs-lord { background: #eef6f1; }
.cs-events { font-size: 12.5px; color: var(--ink-soft); margin: 0; line-height: 1.7; }
.cs-jade { font-size: 12.5px; color: var(--muted); margin: 0; }
.cs-later { margin-top: 12px; }
