/* 個体 管理「スタメン管理」専用スタイル。保存済み個体はボックスと共通のため、
   ここではタイプ/食材×枠の表と個体選択モーダルだけを持つ。 */

.starter-tool{ padding:12px 0 0; }
.starter-toolbar{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:8px;
  margin:0 0 12px;
  overflow-x:auto;
  scrollbar-width:none;
}
.starter-toolbar::-webkit-scrollbar{ display:none; }
.starter-toolbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  flex:none;
}
.starter-count{
  margin:0;
  flex:none;
  font-size:var(--fs-md);
  font-weight:800;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.starter-count.is-average{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  line-height:1.1;
  white-space:normal;
}
.starter-count-label{
  font-size:var(--fs-2xs);
  font-weight:700;
}
.starter-count-value{
  font-size:var(--fs-md);
  font-weight:800;
}
.starter-open-box{
  margin-left:0;
}
.starter-tool .starter-gacha-open,
.starter-tool .starter-open-box{
  box-sizing:border-box;
  width:117px;
  min-width:117px;
  height:32px;
  min-height:32px;
  padding:6px 8px;
  font-size:10px;
  line-height:1.2;
}
.starter-tool .starter-gacha-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:0;
  letter-spacing:0;
}
.starter-tool .starter-gacha-open[hidden]{ display:none; }
.starter-tool:not(.is-ingredient-mode) .starter-toolbar-actions{
  display:contents;
  margin-left:0;
}
.starter-tool:not(.is-ingredient-mode) .starter-open-box{
  margin-left:auto;
}
.starter-open-box{
  gap:4px;
}
.starter-open-box .tab-open-btn-icon{ width:15px; height:15px; }
.starter-gacha-modal{ z-index:calc(var(--app-popup-z, 140) + 1); }
.overlay-modal .starter-gacha-modal-card{
  max-width:min(96vw, 760px);
  max-height:calc(100vh - var(--sp-4) - var(--app-nav-inset-bottom, 88px));
  padding:22px 16px 16px;
}
.starter-gacha-tool{ padding:0; }
.starter-tool > .tab-intro p{
  font-size:10px;
  line-height:1.35;
}
.starter-mode-toggle-row,
.starter-display-toggles{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 14px;
  margin:0 0 10px;
}
.starter-mode-switch,
.starter-display-mode-toggle{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  min-width:max-content;
  max-width:100%;
  padding:2px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper-dim);
  overflow-x:auto;
  scrollbar-width:none;
}
.starter-mode-switch::-webkit-scrollbar,
.starter-display-mode-toggle::-webkit-scrollbar{ display:none; }
.starter-mode-toggle-row .starter-mode-switch,
.starter-display-toggles .starter-display-mode-toggle{ min-width:0; }
.starter-mode-toggle-row .starter-mode-switch,
.starter-display-toggles .starter-display-mode-toggle{
  flex:0 1 auto;
}
.starter-mode-toggle-row .starter-mode-switch{
  flex:1 1 220px;
  max-width:360px;
}
.starter-mode-button,
.starter-display-mode-toggle button{
  box-sizing:border-box;
  flex:0 0 auto;
  min-width:max-content;
  min-height:26px;
  padding:4px 9px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--ink-soft);
  font:inherit;
  font-size:var(--fs-2xs);
  font-weight:600;
  line-height:1.1;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}
.starter-mode-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex:1 1 0;
  min-height:38px;
  padding:8px 12px;
  font-size:var(--fs-sm);
  font-weight:800;
}
.starter-mode-button:hover,
.starter-mode-button:focus-visible,
.starter-display-mode-toggle button:hover,
.starter-display-mode-toggle button:focus-visible{
  color:var(--selected-soft-ink);
}
.starter-mode-button.is-active,
.starter-display-mode-toggle button.is-on{
  background:var(--selected-bg);
  color:var(--selected-ink);
  font-weight:700;
}
.starter-display-toggle-label{
  flex:0 0 auto;
  color:var(--ink-soft);
  font-size:var(--fs-2xs);
  font-weight:700;
  white-space:nowrap;
}
.starter-mode-button:focus-visible,
.starter-display-mode-toggle button:focus-visible{
  outline:2px solid var(--focus-ring);
  outline-offset:2px;
}
.starter-sim-condition-host{ margin:0 0 10px; }
.starter-sim-condition-card{ margin:0; }

/* タイプ列と見出しを固定し、5列をページ幅の中に収める。 */
.starter-table-scroll{
  max-height:min(70vh, 720px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:var(--paper);
}
.starter-table{
  width:100%;
  min-width:0;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
}
.starter-table th,
.starter-table td{
  border-bottom:1px solid var(--line);
  border-right:1px solid var(--line);
  background:var(--paper);
}
.starter-table tr:last-child th,
.starter-table tr:last-child td{ border-bottom:0; }
.starter-table th:last-child,
.starter-table td:last-child{ border-right:0; }
.starter-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  min-width:0;
  height:42px;
  padding:7px 8px;
  color:var(--ink-soft);
  font-size:var(--fs-xs);
  font-weight:800;
  text-align:center;
  white-space:nowrap;
}
.starter-table thead th:first-child{
  left:0;
  z-index:5;
  width:64px;
  min-width:64px;
  max-width:64px;
  color:var(--navy);
}
.starter-table tbody th{
  position:sticky;
  left:0;
  z-index:2;
  width:64px;
  min-width:64px;
  max-width:64px;
  padding:6px 4px;
  text-align:center;
}
.starter-type-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:var(--ink);
  font-size:var(--fs-2xs);
  line-height:1.2;
  white-space:nowrap;
}
.starter-type-label img{
  width:26px;
  height:26px;
  object-fit:contain;
}
.starter-table td{
  width:auto;
  min-width:0;
  height:54px;
  padding:2px 4px;
  vertical-align:middle;
}
.starter-table .starter-column{
  --starter-column-color:#78B84A;
  background:color-mix(in srgb, var(--starter-column-color) 16%, var(--paper));
}
.starter-table .starter-column-recovery{ --starter-column-color:#78B84A; }
.starter-table .starter-column-1{ --starter-column-color:#F28C28; }
.starter-table .starter-column-2{ --starter-column-color:#E6A15A; }
.starter-table .starter-column-3{ --starter-column-color:#F2CF44; }
.starter-table .starter-column-4{ --starter-column-color:#D8D47A; }
.starter-table .starter-column-A{ --starter-column-color:#F28C28; }
.starter-table .starter-column-B{ --starter-column-color:#E6A15A; }
.starter-table .starter-column-C{ --starter-column-color:#F2CF44; }
.starter-table thead .starter-column{
  background:color-mix(in srgb, var(--starter-column-color) 28%, var(--paper));
  color:var(--ink);
}
.starter-slot-cell{
  position:relative;
  min-height:50px;
}
.starter-slot{
  display:grid;
  grid-template-columns:34px minmax(0, 1fr);
  align-items:stretch;
  gap:5px;
  width:100%;
  position:relative;
  min-height:50px;
  padding:2px 6px;
  border:1px solid color-mix(in srgb, var(--starter-column-color) 24%, var(--line));
  border-radius:8px;
  background:color-mix(in srgb, var(--starter-column-color) 4%, var(--paper));
  color:var(--ink);
  font:inherit;
  cursor:pointer;
  overflow:hidden;
  transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.starter-slot:hover,
.starter-slot:focus-visible{
  border-color:var(--navy);
  background:var(--selected-soft-bg);
  color:var(--navy);
  box-shadow:0 2px 8px rgba(35,43,72,.14);
}
.starter-slot:active{ transform:translateY(1px); }
.starter-slot.is-filled{
  border-width:1px;
  border-color:color-mix(in srgb, var(--starter-column-color) 34%, var(--line));
  background:color-mix(in srgb, var(--starter-column-color) 2%, var(--paper));
  color:var(--ink);
  text-align:left;
}
.starter-slot.is-missing{
  border-color:var(--warning);
  background:var(--warning-bg);
  color:var(--warning);
}
.starter-slot-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border:1px solid currentColor;
  border-radius:50%;
  font-size:17px;
  font-weight:400;
  line-height:1;
}
.starter-slot img{
  display:block;
  width:30px;
  height:30px;
  border:0;
  border-radius:8px;
  background:var(--paper-dim);
  object-fit:contain;
}
.starter-slot-text{
  display:grid;
  grid-template-rows:13px 1fr 11px;
  align-content:center;
  align-items:center;
  min-width:0;
  overflow:hidden;
  line-height:1;
}
.starter-slot-name,
.starter-slot-species,
.starter-slot-level{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.starter-slot-name{
  font-size:var(--fs-2xs);
  font-weight:800;
}
.starter-slot-species,
.starter-slot-level{
  margin-top:2px;
  color:var(--ink-soft);
  font-size:10px;
}
.starter-slot-icons{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  grid-template-rows:repeat(2, 11px);
  align-items:center;
  justify-content:start;
  gap:1px;
  width:100%;
  max-width:100%;
  margin:0;
  overflow:hidden;
}
.starter-slot-nature{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:100%;
  gap:2px;
  margin:0;
}
.starter-slot-trait-empty{
  color:var(--ink-soft);
  font-size:9px;
  line-height:10px;
}
.starter-slot-icons .cmp-skill-icon{
  display:block;
  width:9px !important;
  height:9px !important;
}

/* 共通モーダル本体はページ直下へ移すため、createBoardの補助ボードは表示しない。 */
.starter-saved-picker-host{ display:none; }

@media (max-width:640px){
  .starter-open-box{ margin-left:0; }
  .starter-table thead th,
  .starter-table td{ min-width:0; width:auto; }
  .starter-table thead th:first-child,
  .starter-table tbody th{ width:52px; min-width:52px; max-width:52px; }
  .starter-table td{ height:82px; padding:3px 2px; }
  .starter-slot{
    flex-direction:column;
    min-height:74px;
    padding:4px 2px;
    gap:2px;
  }
  .starter-slot.is-filled{ text-align:center; }
  .starter-slot img{ width:28px; height:28px; }
  .starter-slot-text{ width:100%; align-items:center; }
  .starter-slot-name{ font-size:10px; }
}

/* カードは添付イメージに合わせ、左側にアイコンと名前、右側にレベルと特性を配置する。 */
.starter-tool .starter-table-scroll{
  max-height:none;
  overflow:visible;
}
/* 配置を保ったまま、表全体だけを少し縮小する。 */
.starter-tool .starter-table{ zoom:.9; }
.starter-tool .starter-table thead th{
  height:30px;
  padding:3px 5px;
  font-size:var(--fs-2xs);
}
.starter-tool .starter-table thead th:first-child,
.starter-tool .starter-table tbody th{
  width:64px;
  min-width:64px;
  max-width:64px;
}
.starter-tool .starter-table tbody th{ padding:6px 4px; }
.starter-tool .starter-type-label{
  flex-direction:column;
  gap:3px;
  font-size:var(--fs-2xs);
  line-height:1.2;
}
.starter-tool .starter-type-label img{
  width:20px;
  height:20px;
}
.starter-tool .starter-table td{
  height:54px;
  padding:2px 4px;
}
.starter-tool .starter-slot-cell{ min-height:50px; }
.starter-tool .starter-slot{
  grid-template-columns:34px minmax(0, 1fr);
  min-height:50px;
  height:50px;
  padding:2px 6px;
  gap:5px;
}
.starter-tool .starter-slot.is-metrics-mode{
  grid-template-columns:48px minmax(0, 1fr);
  gap:1px;
}
.starter-tool .starter-slot.is-filled{ text-align:left; }
.starter-tool .starter-slot img{
  width:30px;
  height:30px;
}
.starter-tool .starter-slot-identity{
  display:flex;
  flex-direction:row;
  align-items:flex-end;
  justify-content:flex-start;
  gap:3px;
  min-width:0;
  width:100%;
  height:100%;
}
.starter-tool .starter-slot-identity img{ flex:0 0 auto; }
.starter-tool .starter-slot-quick-subskills{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:1px;
  min-width:17px;
  flex:0 0 17px;
}
.starter-tool .starter-slot-quick-subskill{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:1px;
  color:var(--ink-soft);
  font-size:8px;
  line-height:1;
  white-space:nowrap;
}
.starter-tool .starter-slot-quick-subskill.is-active{ color:var(--warning); }
.starter-tool .starter-slot-quick-subskill:not(.is-active){ opacity:.52; }
.starter-tool .starter-slot-quick-subskill .cmp-skill-icon{
  flex:0 0 auto;
  width:14.5px !important;
  height:14.5px !important;
}
.starter-tool .starter-slot-identity-meta{
  position:absolute;
  top:2px;
  left:6px;
  right:6px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  justify-self:stretch;
  gap:4px;
  width:auto;
  min-width:0;
  text-align:left;
  line-height:1.1;
}
.starter-tool .starter-slot-name{
  display:block;
  flex:1 1 auto;
  min-width:0;
  max-width:none;
  margin-right:auto;
  font-size:10px;
  line-height:1;
  text-align:left;
}
.starter-tool .starter-slot-level{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:14px;
  padding:0 3px;
  border:1px solid color-mix(in srgb, var(--line) 70%, var(--paper));
  border-radius:999px;
  background:color-mix(in srgb, var(--paper-dim) 70%, var(--paper));
  flex:none;
  margin-left:auto;
  color:var(--ink-soft);
  font-size:9px;
  line-height:1;
  font-weight:600;
  opacity:.82;
}
.starter-tool .starter-slot-species{ display:none; }
.starter-tool .starter-slot-text{
  display:grid;
  grid-template-rows:13px 1fr 11px;
  align-items:center;
  justify-items:start;
  width:100%;
  min-width:0;
  height:100%;
  line-height:1;
}
.starter-tool .starter-slot-subskills{
  grid-row:2;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  grid-template-rows:repeat(2, 10px);
}
.starter-tool .starter-slot-nature{
  grid-row:3;
  justify-content:flex-start;
  width:100%;
}
.starter-tool .starter-slot-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:3px;
  grid-row:3;
  min-width:0;
  width:100%;
}
.starter-tool .starter-slot-footer .starter-slot-nature{
  flex:0 1 auto;
  min-width:0;
}
.starter-tool .starter-slot-metrics{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
  margin-left:0;
  color:var(--ink-soft);
  font-size:11px;
  line-height:1.1;
  white-space:nowrap;
  padding-bottom:1px;
}
.starter-tool .starter-slot-metric{
  display:inline-flex;
  align-items:center;
  gap:2px;
  flex:0 0 auto;
  min-width:max-content;
  overflow:visible;
  text-overflow:clip;
}
.starter-tool .starter-slot-metric-icon{
  flex:0 0 auto;
  width:13px;
  height:13px;
}
.starter-tool .starter-slot-metric-value{
  font-size:12.8px;
  line-height:1;
}
.starter-tool .starter-slot-metric-unit{
  font-size:8px;
  line-height:1;
}
.starter-tool .starter-slot-metric-ingredient-icon{
  border-radius:2px;
  background:transparent;
  object-fit:contain;
}
/* 食材別の日給・時給は食材ごとに横並びで大きく表示する。
   枠に収まらない場合は、この表示部分だけを横スクロールできるようにする。 */
.starter-tool .starter-table.is-ingredient-mode .starter-slot-metrics{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  font-size:11px;
  line-height:1.1;
  padding-bottom:1px;
}
.starter-tool .starter-table.is-ingredient-mode .starter-slot{
  grid-template-columns:48px minmax(0, 1fr);
  gap:1px;
}
.starter-tool .starter-table.is-ingredient-mode .starter-slot-quick-subskills{
  min-width:14.5px;
  flex-basis:14.5px;
}
.starter-tool .starter-table.is-ingredient-mode .starter-slot-metric{
  flex:0 0 auto;
  min-width:max-content;
  overflow:visible;
  text-overflow:clip;
}
.starter-tool .starter-table.is-ingredient-mode .starter-slot-metric-value{
  font-size:12.8px;
  line-height:1;
}
.starter-tool .starter-table.is-ingredient-mode .starter-slot-metric-icon{
  width:13px;
  height:13px;
}
.starter-tool .starter-table.is-ingredient-mode .starter-slot-metric-unit{
  font-size:8px;
  line-height:1;
}
.starter-tool .starter-table:not(.is-ingredient-mode) .starter-slot-metrics{
  gap:2px;
  align-items:center;
  justify-content:flex-start;
  font-size:9px;
}
.starter-tool .starter-table:not(.is-ingredient-mode) .starter-slot-metric{
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  min-width:34px;
  padding:0 2px;
}
.starter-tool .starter-table:not(.is-ingredient-mode) .starter-slot-metric-icon{
  width:11px;
  height:11px;
}
.starter-tool .starter-table:not(.is-ingredient-mode) .starter-slot-metric-value{
  font-size:11px;
  line-height:1;
}
.starter-tool .starter-slot-metrics::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}
.starter-tool .starter-slot-metrics::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:var(--line);
}
.starter-tool .starter-slot-metric-energy{ color:var(--warning); }
.starter-tool .starter-slot-metric-skill{ color:var(--info); }
.starter-tool .starter-slot-text:not(.has-traits) .starter-slot-metrics{
  grid-row:2;
  align-self:center;
  padding-bottom:0;
}
.starter-tool .starter-table.is-ingredient-mode .starter-slot-text:not(.has-traits) .starter-slot-metrics{
  align-self:end;
}
.starter-tool .starter-slot-text.has-metrics:not(.has-traits){
  grid-template-rows:13px minmax(0, 1fr);
}
.starter-tool .starter-slot-nature .starter-slot-trait-item{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:1px;
  width:20px;
  height:11px;
  padding:0 1px;
  border:.5px solid var(--line);
  border-radius:5px;
  background:var(--paper-dim);
  color:var(--ink-soft);
  font-size:8px;
  line-height:1;
}
.starter-tool .starter-slot-nature .starter-slot-nature-item.is-up.is-active{
  border-color:var(--danger);
  color:var(--danger);
}
.starter-tool .starter-slot-nature .starter-slot-nature-item.is-down.is-active{
  border-color:var(--info);
  color:var(--info);
}
.starter-tool .starter-slot-nature .starter-slot-nature-item.is-empty{
  opacity:.48;
}
.starter-tool .starter-slot-nature-marker{
  font-size:7px;
  font-weight:800;
  line-height:1;
}
.starter-tool .starter-slot-icons .cmp-skill-icon{
  width:9px !important;
  height:9px !important;
}
.starter-tool .starter-slot-trait-item{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:10px;
  height:10px;
  color:var(--ink-soft);
  font-size:10px;
  line-height:1;
}
.starter-tool .starter-slot-subskills .starter-slot-trait-item{ width:100%; }
.starter-tool .starter-slot-trait-item.is-empty{ opacity:.42; }
.starter-tool .starter-slot-trait-item .cmp-skill-icon{
  width:9px !important;
  height:9px !important;
}
.starter-tool .starter-slot-quick-subskill{
  width:14.5px;
  height:14.5px;
}
.starter-tool .starter-slot-quick-subskill.is-active{ color:var(--warning); }
.starter-tool .starter-slot-quick-subskill.is-empty{ opacity:.42; }
.starter-tool .starter-slot-plus{
  width:22px;
  height:22px;
  font-size:16px;
}

@media (max-width:640px){
  .starter-tool .starter-table thead th,
  .starter-tool .starter-table td{ min-width:0; width:auto; }
  .starter-tool .starter-table thead th:first-child,
  .starter-tool .starter-table tbody th{
    width:52px;
    min-width:52px;
    max-width:52px;
  }
  .starter-tool .starter-table td{ height:52px; padding:2px; }
  .starter-tool .starter-slot-cell{ min-height:48px; }
  .starter-tool .starter-slot{
    grid-template-columns:28px minmax(0, 1fr);
    min-height:48px;
    height:48px;
    padding:2px 3px;
    gap:3px;
    border-radius:8px;
  }
  .starter-tool .starter-slot.is-metrics-mode{
    grid-template-columns:44px minmax(0, 1fr);
    gap:1px;
  }
  .starter-tool .starter-slot img{
    width:24px;
    height:24px;
  }
  .starter-tool .starter-slot-text{
    grid-template-rows:12px 1fr 9px;
  }
  .starter-tool .starter-slot-level,
  .starter-tool .starter-slot-name{ font-size:10px; }
  .starter-tool .starter-slot-subskills{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    grid-template-rows:repeat(2, 9px);
  }
  .starter-tool .starter-slot-icons .cmp-skill-icon,
  .starter-tool .starter-slot-trait-item .cmp-skill-icon{
    width:8px !important;
    height:8px !important;
  }
  .starter-tool .starter-slot-quick-subskill .cmp-skill-icon{
    width:11.5px !important;
    height:11.5px !important;
  }
  .starter-tool .starter-slot-trait-item{
    width:9px;
    height:9px;
    font-size:8px;
  }
  .starter-tool .starter-slot-quick-subskill{
    width:11.5px;
    height:11.5px;
  }
  .starter-tool .starter-slot-subskills .starter-slot-trait-item{ width:100%; }
}

/* 食材別は名前が長いので、左列だけタイプ別より広く取る。1〜3枠は
   その食材について登録するポケモンの人数枠で、行の食材アイコンと名前を固定表示する。 */
.starter-tool .starter-table.is-ingredient-mode thead th:first-child,
.starter-tool .starter-table.is-ingredient-mode tbody th{
  width:118px;
  min-width:118px;
  max-width:118px;
}
.starter-tool .starter-table.is-ingredient-mode .starter-ingredient-label{
  flex-direction:row;
  justify-content:flex-start;
  gap:5px;
  text-align:left;
  white-space:normal;
}
.starter-tool .starter-table.is-ingredient-mode .starter-ingredient-label img{
  flex:none;
  width:22px;
  height:22px;
  border-radius:5px;
  background:var(--paper-dim);
  object-fit:contain;
}
@media (max-width:640px){
  .starter-tool .starter-table.is-ingredient-mode .starter-slot{
    grid-template-columns:44px minmax(0, 1fr);
  }
  .starter-tool .starter-table.is-ingredient-mode .starter-slot-quick-subskills{
    min-width:11.5px;
    flex-basis:11.5px;
  }
  .starter-tool .starter-table.is-ingredient-mode thead th:first-child,
  .starter-tool .starter-table.is-ingredient-mode tbody th{
    width:104px;
    min-width:104px;
    max-width:104px;
  }
  .starter-tool .starter-table.is-ingredient-mode .starter-ingredient-label{
    gap:3px;
    font-size:9px;
  }
  .starter-tool .starter-table.is-ingredient-mode .starter-ingredient-label img{
    width:20px;
    height:20px;
  }
}

/* 未設定スロットは控えめなグレーにし、追加ボタンを中央へ配置する。 */
.starter-tool .starter-slot:not(.is-filled){
  grid-template-columns:1fr;
  place-items:center;
  border-style:dashed;
  border-color:var(--line);
  background:color-mix(in srgb, var(--ink-soft) 8%, var(--paper));
  color:var(--ink-soft);
}
.starter-tool .starter-slot:not(.is-filled):hover,
.starter-tool .starter-slot:not(.is-filled):focus-visible{
  border-color:var(--navy);
  background:var(--selected-soft-bg);
  color:var(--navy);
}

/* 回復役と通常の編成枠を区切る。ヘッダーと全行で同じ太さにする。 */
.starter-tool .starter-table .starter-column-recovery{
  border-right:3px solid var(--ink-soft);
}
