[hidden]{
  display:none !important;
}

.tool-container{
  width:100%;
  max-width:720px;
}

.tool-container section{
  margin-top:22px;
}

.tool-container section:first-child{
  margin-top:0;
}

/* 選択バッジ */
.selected-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #000;
  border-radius:12px;
  padding:8px 12px;
  font-size:15px;
  margin-top:8px;
}

.clear-btn{
  border:none;
  background:transparent;
  font-size:13px;
  opacity:.5;
  cursor:pointer;
  padding:0;
  line-height:1;
}

.clear-btn:hover{
  opacity:1;
}

/* 汎用入力行 */
.input-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.input-row input{
  width:160px;
  padding:10px;
  border:1px solid #000;
  border-radius:10px;
  font-size:16px;
  box-sizing:border-box;
}

/* 粉グリッド */
.powder-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.powder-item{
  display:flex;
  align-items:center;
  gap:8px;
}

.powder-label{
  font-weight:700;
  font-size:14px;
  width:48px;
  flex-shrink:0;
}

.powder-item input{
  flex:1;
  min-width:0;
  padding:10px;
  border:1px solid #000;
  border-radius:10px;
  font-size:16px;
  box-sizing:border-box;
}

.powder-max-btn{
  flex-shrink:0;
}

.powder-actions{
  margin-top:10px;
}

/* キノコ行 */
.kinoko-row{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
}

.kinoko-label{
  font-weight:700;
  white-space:nowrap;
}

.kinoko-row input{
  width:160px;
  padding:10px;
  border:1px solid #000;
  border-radius:10px;
  font-size:16px;
  box-sizing:border-box;
}

/* ステータスグリッド */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.stat-card{
  border:1px solid #000;
  border-radius:14px;
  padding:12px;
  text-align:center;
}

.stat-card--top{
  box-shadow:0 0 0 2px #000 inset;
}

.stat-label{
  font-weight:700;
  font-size:14px;
  margin-bottom:4px;
}

.stat-base{
  font-size:12px;
  opacity:.55;
  margin-bottom:4px;
}

.stat-val{
  font-size:22px;
  font-weight:700;
}

.stat-kinoko{
  font-size:12px;
  opacity:.65;
  margin-top:4px;
}

/* 固定ステータス */
.fixed-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.fixed-card{
  border:1px solid #000;
  border-radius:12px;
  padding:10px 16px;
  font-size:15px;
  font-weight:700;
}

.fixed-card span{
  font-weight:400;
  margin-left:6px;
}

.section-label{
  font-weight:700;
  margin-bottom:8px;
  margin-top:0;
}

.empty-msg{
  opacity:.45;
  font-size:15px;
  margin:16px 0;
}

@media (min-width:700px){
  .powder-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .kinoko-row{
    flex-direction:row;
    align-items:center;
  }

  .stats-grid{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }
}

@media (min-width:980px){
  .powder-grid{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }

  .stats-grid{
    grid-template-columns:repeat(7, minmax(0,1fr));
  }
}

/* 粉の使用上限の注記 */
.powder-note{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}
