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

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

/* 分类横幅：`分类名 · 说明` 两段拼的（验收脚本会单独比对后半句） */
.bt-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：那套是固定两列，只适合"两个字段一行"。
     本工具两行分别是 3 个与 4 个字段，塞进固定列数会换行留空 ——
     用 auto-fit 让行自己决定列数。 */
.bt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

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

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

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

.bt-unit-sym {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-muted);
}

/* ── 厨房勾选：跟着输入行的栅格走，但要自己处理纵向对齐 ── */
.bt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 2px;
  cursor: pointer;
}

.bt-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.bt-check__t {
  font-size: 13px;
  color: var(--fg);
}

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

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

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

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

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

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

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

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

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

/* 副标题（占比）—— 比数值再淡一档 */
.bt-cell__x {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--fg-muted);
  word-break: break-word;
}
