/* concretecalc — tool-specific styles
   只放这个工具独有的东西。公共外观（toolbox / field / alert / chip / hint）
   已经在全局样式表里。

   ★ 不写任何裸色值：一律走主题变量（--surface / --line / --fg …）。
   ★ 类名前缀 .cc- 是本工具私有的 —— 借别的工具的类名 = 没有样式
     （工具样式按工具隔离加载）。 */

/* 分类横幅：`分类名 · 说明` 两段拼的（验收脚本会单独比对后半句） */
.cc-status {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── 输入行 ──
   ★ 不用全局的 .toolbox__controls：那套是 `grid-template-columns: 1fr 240px`，
     只适合"两个字段一行"。本工具的字段数随形状变（2 或 3），
     塞进两列栅格会第三项换行、右边留空 —— 用 auto-fit 让它自己决定列数。 */
.cc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.cc-row + .cc-row {
  margin-top: 14px;
}

/* 标签 + 单位符号。★ 单位符号**不能**放进 .field__label 里面：
   验收脚本读 .field__label 的 textContent 去比对语言包，
   "Length ft" 不等于语言包里的任何一条 ⇒ 必然假红。 */
.cc-lab {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
}

.cc-lab .field__label {
  margin-bottom: 0;
}

/* 单位符号（ft / in / m / cm）—— 小一号、淡一点，
   让"这个框填什么单位"一眼可见，而不必去读说明 */
.cc-unit {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-muted);
}

/* ── 主结果：一个数，占满一行 ── */
.cc-lead {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.cc-lead__k {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.cc-lead__v {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg);
}

.cc-lead__u {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
}

/* ── 明细四格：宽屏一行、窄屏折列 ── */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.cc-cell {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.cc-cell__k {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.cc-cell__v {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
  word-break: break-word;
}

.cc-cell__u {
  margin-left: 5px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--fg-muted);
}

/* 副标题（袋规格 / 损耗百分比）—— 比数值再淡一档 */
.cc-cell__x {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--fg-muted);
  word-break: break-word;
}
