/* 低保真线框图。灰块 + 文字标注，不做视觉还原、不配色、不还原 Micro token。 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Segoe UI", sans-serif;
  color: #18181b;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.5;
}

.wire-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.wire-toc {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #d4d4d8;
  background: #f4f4f5;
  padding: 16px 12px;
}
.wire-toc h1 { font-size: 13px; margin: 0 0 12px; color: #52525b; }
.wire-toc a {
  display: block;
  font-size: 12.5px;
  color: #3f3f46;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
}
.wire-toc a:hover, .wire-toc a:focus { background: #e4e4e7; }

main { padding: 24px 32px 96px; max-width: 1120px; }

section.scene {
  border-top: 1px solid #d4d4d8;
  padding: 28px 0 40px;
}
section.scene:first-of-type { border-top: none; }

.scene h2 { font-size: 18px; margin: 0 0 4px; }
.scene .scene-sub { color: #52525b; font-size: 12.5px; margin: 0 0 16px; max-width: 760px; }
.scene .why {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px dashed #d97706;
  font-size: 12.5px;
  color: #78350f;
  max-width: 760px;
}
.scene .why b { color: #92400e; }

/* ---------- 通用灰块基元 ---------- */
.block {
  background: #e4e4e7;
  border: 1px solid #a1a1aa;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #3f3f46;
}
.block-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717a;
  margin-bottom: 4px;
  display: block;
}
.placeholder-text { color: #a1a1aa; font-style: italic; }

/* ---------- 可写性层级色标（信息标注用，非品牌视觉） ---------- */
.tag { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 3px; font-weight: 600; margin-right: 4px; }
.tag-l1 { background: #e4e4e7; color: #3f3f46; border: 1px solid #a1a1aa; }
.tag-l2 { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.tag-l3 { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.tag-l4 { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.tag-ro { background: #f4f4f5; color: #52525b; border: 1px solid #d4d4d8; }
.tag-editable { background: #dbeafe; color: #1d4ed8; border: 1px solid #60a5fa; font-weight: 700; }
.tag-disabled { background: #fafafa; color: #a1a1aa; border: 1px dashed #d4d4d8; }

.legend-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }

/* ---------- S1: 设置外壳 ---------- */
.settings-shell { display: grid; grid-template-columns: 200px 1fr; border: 1px solid #a1a1aa; height: 420px; }
.settings-nav { border-right: 1px solid #d4d4d8; background: #f4f4f5; padding: 10px; }
.settings-nav-item {
  padding: 9px 10px; margin-bottom: 4px; border-radius: 4px; font-size: 13px;
  border: 1px solid transparent; cursor: default;
}
.settings-nav-item.active { background: #e4e4e7; border-color: #a1a1aa; font-weight: 600; }
.settings-nav-item.disabled { color: #a1a1aa; border: 1px dashed #d4d4d8; display: flex; justify-content: space-between; }
.settings-nav-item .soon { font-size: 10px; background: #fafafa; border: 1px dashed #d4d4d8; padding: 0 5px; border-radius: 3px; }
.settings-detail { padding: 16px; overflow: auto; }

/* ---------- S2: Agents 列表 ---------- */
.kind-group { margin-bottom: 18px; }
.kind-group-title { font-size: 12px; font-weight: 700; color: #52525b; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.agent-card {
  border: 1px solid #a1a1aa; border-radius: 5px; padding: 10px; background: #fff;
  font-size: 12px;
}
.agent-card .name { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.agent-card .desc { color: #71717a; margin-bottom: 6px; }
.agent-card .row { display: flex; justify-content: space-between; color: #52525b; margin-top: 2px; }
.agent-card.dim-missing .row .missing { color: #a1a1aa; font-style: italic; }

/* ---------- S3: 详情 ---------- */
.detail-shell { border: 1px solid #a1a1aa; }
.detail-head { padding: 12px 16px; border-bottom: 1px solid #d4d4d8; background: #f4f4f5; }
.detail-head .name { font-size: 16px; font-weight: 700; }
.detail-body { padding: 16px; display: grid; gap: 18px; }
.field-group { border: 1px solid #d4d4d8; border-radius: 4px; }
.field-group-title { background: #f4f4f5; padding: 6px 10px; font-size: 12px; font-weight: 700; border-bottom: 1px solid #d4d4d8; }
.field-row {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: start;
  padding: 8px 10px; border-bottom: 1px solid #f0f0f1; font-size: 12.5px;
}
.field-row:last-child { border-bottom: none; }
.field-row .fname { color: #3f3f46; font-weight: 600; }
.field-row .fval { color: #52525b; }
.kv-list { display: flex; flex-direction: column; gap: 3px; }
.kv-item { display: flex; gap: 6px; }
.kv-item .k { color: #71717a; }

/* ---------- tab order badges ---------- */
.tab-order-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #1d4ed8; color: #fff; font-size: 10px; font-weight: 700;
  margin-right: 4px;
}

table.spec { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.spec th, table.spec td { border: 1px solid #d4d4d8; padding: 6px 8px; text-align: left; vertical-align: top; }
table.spec th { background: #f4f4f5; }
