/* ============================================================
   data-tab.css (v4)
   目標: TORIAI モックアップのデータページに完全準拠
   変数は #dpp にスコープ（他ページに影響を与えないため）
   ============================================================ */

/* ── ページ制御 ── */
#dpp { display: none; }
#dpp.show { display: block; }

/* ── 変数（#dpp スコープ） ── */
#dpp {
  --app-sidebar-w: 320px;
  --app-font-sans: "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --bg:         #f7f7f9;
  --surface:    #ffffff;
  --surface-2:  #fbfbfd;
  --surface-3:  #f3f3f7;
  --ink:        #141420;
  --ink-2:      #2a2a3e;
  --ink-3:      #5a5a78;
  --ink-4:      #71717a; /* master 仕様 (2026-05-10): 紫がかったグレー → 中性 zinc */
  --ink-5:      #b8b8c8;
  --line:        #e6e6ec;
  --line-strong: #d4d4dc;
  --line-soft:   #f0f0f4;
  /* master 仕様 (2026-05-10): COLOR_RULES v1 — TORIAI indigo に統一 */
  --ac:          #4f46e5;
  --ac-soft:     #e0e7ff;
  --ac-softer:   #eef2ff;
  --ac-border:   #a5b4fc;
  --radius:      14px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --gap:         20px;
  --pad:         24px;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--app-font-sans);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#dpp .mono {
  font-family: var(--app-font-sans);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   ページグリッド: 左サイドバー(280px) + 右メイン
   ============================================================ */
.dt-page-grid {
  display: grid;
  grid-template-columns: var(--app-sidebar-w) 1fr;
  min-height: calc(100vh - 64px);
  background: var(--bg);
}

/* ============================================================
   左サイドバー
   ============================================================ */
.data-sb {
  padding: var(--pad);
  width: var(--app-sidebar-w);
  min-width: var(--app-sidebar-w);
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}
/* master 仕様 (2026-05-10): group-title 文字を黒 */
.data-sb .group-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1a1a2e;
  margin: 20px 0 8px;
}
.data-sb .group-title:first-child { margin-top: 0; }

.data-sb-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
  border: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: background .12s, color .12s;
}
/* master 仕様 (2026-05-10): hover / active とも中性グレー、 active は太字 + indigo 文字で区別 */
.data-sb-item:hover {
  background: #f4f4f5 !important;
  color: var(--ink);
}
/* master 仕様 (2026-05-10): 文字色は黒固定、 active 強調は太字のみ */
.data-sb-item.on {
  background: #f4f4f5 !important;
  color: #1a1a2e !important;
  font-weight: 800 !important;
}
.data-sb-item .cnt {
  font-size: 10px;
  color: var(--ink-4);
  font-family: var(--app-font-sans);
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}
.data-sb-item.on .cnt { color: var(--ink-3); }

/* master 仕様 (2026-05-10): 取り合いタブ・重量タブの calc-steel-row と完全に同じ pill 形式 */
.dt-sb-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 3px 4px 3px 8px;
  margin-bottom: 10px;
  transition: border-color .12s;
}
.dt-sb-search:focus-within {
  border-color: #a1a1aa;
}
/* master 仕様 (2026-05-10): 虫眼鏡 button をクリック可能に (cmdOpenBrowse 同等) */
.dt-sb-search-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5; /* 虫眼鏡: TORIAI indigo */
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background .12s, color .12s;
}
.dt-sb-search-ico:hover {
  background: #f4f4f5;
  color: #4338ca;
}
.dt-sb-search:focus-within .dt-sb-search-ico { color: #4338ca; }
.dt-sb-search input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 6px;
  border: none;
  background: transparent !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #18181b;
  outline: none;
}
/* 入力 hover/focus でも親 (.dt-sb-search) の白を維持 */
.dt-sb-search input:hover,
.dt-sb-search input:focus {
  background: transparent !important;
  border-color: transparent !important;
}
.dt-sb-search input::placeholder { color: #a1a1aa; font-weight: 400; }

/* master 仕様 (2026-05-10): #dpp input:hover の !important 干渉対策、ID 含む高 specificity */
#dpp .dt-sb-search input,
#dpp .dt-sb-search input:hover,
#dpp .dt-sb-search input:focus {
  background: transparent !important;
  border-color: transparent !important;
}

/* 虫眼鏡 click 時に出る popup dropdown (= calc tab の cmdDropdown 同等) */
.dt-sb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
}
.dt-sb-dropdown.show { display: block; }
.dt-sb-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #18181b;
  cursor: pointer;
  transition: background .12s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.dt-sb-dropdown-item:hover,
.dt-sb-dropdown-item.is-focus {
  background: #f4f4f5;
}
.dt-sb-dropdown-item .cnt {
  font-size: 10px;
  color: #71717a;
  font-weight: 600;
  margin-left: 8px;
}
.dt-sb-search-clear {
  width: 26px; height: 26px; margin-right: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 4px;
  cursor: pointer;
  font-size: 14px; color: var(--ink-4);
  font-family: inherit; line-height: 1; padding: 0;
  transition: background .12s, color .12s;
}
.dt-sb-search-clear:hover { background: var(--ac-soft); color: var(--ac); }
.dt-sb-search-clear[hidden] { display: none; }

.dt-kind-empty {
  padding: 14px 8px;
  font-size: 11px;
  color: var(--ink-4);
  text-align: center;
}

.dt-sb-tooltip {
  position: fixed;
  z-index: 3000;
  min-width: 220px;
  max-width: min(340px, calc(100vw - 20px));
  max-height: min(420px, calc(100vh - 20px));
  overflow: hidden;
  padding: 10px 0;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  color: var(--ink, #141420);
  font-family: "Space Grotesk", "Noto Sans JP", "Segoe UI", sans-serif;
  pointer-events: auto;
}
/* master 仕様 (2026-05-10): tooltip 上に hover してスクロールできるよう、
   gap (= sidebar との間) を見えない invisible bridge で覆う。 sidebar 横 4px に
   左パディング相当の擬似要素を置き、マウスの移動を中断させない */
.dt-sb-tooltip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
}
.dt-sb-tooltip[hidden] { display: none; }
.dt-sb-tooltip-title {
  padding: 0 12px 7px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(20,20,32,0.56);
  letter-spacing: .08em;
}
/* master 仕様 (2026-05-10): 全 spec をスクロールで表示
   overscroll-behavior: contain で末端到達時に body にスクロール伝播しない */
.dt-sb-tooltip-list {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.dt-sb-tooltip-row {
  display: block;
  width: 100%;
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
/* master 仕様 (2026-05-10): hover 中性 #f4f4f5 (= COLOR_RULES) */
.dt-sb-tooltip-row:hover,
.dt-sb-tooltip-row:focus {
  background: #f4f4f5;
  outline: none;
}
.dt-sb-tooltip-more {
  margin-top: 6px;
  padding: 8px 12px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 11px;
  font-weight: 700;
  color: rgba(20,20,32,0.58);
}

/* ============================================================
   右メイン: 情報 (左) + 断面形状 (右 440px)
   ============================================================ */
.data-main {
  padding: var(--pad);
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: var(--gap);
  align-items: start;
  min-width: 0;
  box-sizing: border-box;
}
.data-info { min-width: 0; }

/* ヘッダー (eyebrow + h1 + subtitle) */
#dtHeader .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin-bottom: 4px;
}
#dtHeader h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 6px 0 4px;
  line-height: 1.15;
}
#dtHeader .subtitle {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 22px;
  line-height: 1.55;
}

/* ============================================================
   規格を選択: チップバー
   ============================================================ */
#dtHeader .eyebrow,
.data-info > .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
}
/* Phase 4: 規格を選択 — 検索入力 + 1行横スクロール + ドラッグスワイプ */
.data-specs-wrap {
  margin-bottom: 22px;
}
/* master 仕様 (2026-05-10): kind sidebar (.dt-sb-search) と同じ pill 形式に統一
   - 白ベース pill / 999px round / 虫眼鏡 indigo / focus 時の薄ブルーは廃止 */
.data-specs-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 3px 4px 3px 8px;
  margin-bottom: 8px;
  transition: border-color .12s;
}
.data-specs-search:focus-within {
  border-color: #a1a1aa;
  background: #ffffff;
}
.data-specs-search .ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5; /* TORIAI indigo */
  pointer-events: none;
}
.data-specs-search:focus-within .ico { color: #4338ca; }
.data-specs-search input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 6px;
  border: none;
  background: transparent !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #18181b;
  outline: none;
}
.data-specs-search input:hover,
.data-specs-search input:focus {
  background: transparent !important;
  border-color: transparent !important;
}
.data-specs-search input::placeholder { color: #a1a1aa; font-weight: 400; }
/* #dpp 配下の input:hover !important 干渉対策 */
#dpp .data-specs-search input,
#dpp .data-specs-search input:hover,
#dpp .data-specs-search input:focus {
  background: transparent !important;
  border-color: transparent !important;
}
.data-specs-search .clear {
  width: 26px; height: 26px; margin-right: 4px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 4px;
  cursor: pointer;
  font-size: 14px; color: var(--ink-4);
  font-family: inherit; line-height: 1; padding: 0;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}
.data-specs-search .clear:hover { background: #f4f4f5; color: #18181b; }
.data-specs-search .clear[hidden] { display: none; }

.data-specs-scroll {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* 端フェード（子の上に重ねる・ポインタ透過） */
.data-specs-scroll::before,
.data-specs-scroll::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 18px;
  pointer-events: none;
  z-index: 2;
}
.data-specs-scroll::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(255,255,255,0) 100%);
}
.data-specs-scroll::after {
  right: 0;
  background: linear-gradient(-90deg, var(--surface) 0%, rgba(255,255,255,0) 100%);
}
.data-specs-bar {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 4px 6px;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 42px;
  box-sizing: border-box;
}
.data-specs-bar::-webkit-scrollbar { display: none; }
.data-specs-bar.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.data-specs-bar.dragging .data-spec-chip { pointer-events: none; }
.data-specs-bar .data-spec-chip,
.data-specs-bar .dt-spec-add { flex-shrink: 0; }

.data-specs-empty {
  padding: 10px 6px;
  font-size: 12px;
  color: var(--ink-4);
}
.data-spec-chip {
  padding: 7px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
/* master 仕様 (2026-05-10): hover 中性、on は TORIAI indigo */
.data-spec-chip:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
  color: var(--ink);
}
.data-spec-chip.on {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* + カスタム追加ボタン (チップと同じ列) */
.dt-spec-add {
  padding: 7px 11px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1;
  transition: border-color .12s, color .12s, background .12s;
}
.dt-spec-add:hover {
  border-color: var(--ac-border);
  color: var(--ac);
  background: var(--ac-softer);
}

/* ============================================================
   dim-section (断面寸法 / 断面性能 / 流通定尺)
   ============================================================ */
.dim-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: var(--gap);
}
.dim-section h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dim-section h3 .ico {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* 断面性能: アコーディオン */
.dim-section.dt-collapsible .dt-perf-toggle {
  cursor: pointer;
  user-select: none;
  margin-bottom: 14px;
  transition: margin .15s;
  min-height: 24px;
}
.dim-section.dt-collapsible .dt-chev {
  display: inline-block;
  font-family: inherit;
  font-size: 10px;
  color: var(--ink-4);
  margin-left: 6px;
  transition: transform .2s;
}
.dim-section.dt-collapsible .dt-perf-meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: inherit;
}
.dim-section.dt-collapsible .dt-perf-note{
  color: var(--ink-4);
}
.dim-section.dt-collapsible .dt-perf-action{
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.dim-section.dt-collapsible.is-collapsed .dt-perf-toggle {
  margin-bottom: 0;
}
.dim-section.dt-collapsible.is-collapsed .dt-chev {
  transform: rotate(-90deg);
}
.dim-section.dt-collapsible.is-collapsed .dim-grid {
  display: none;
}
.dim-section.dt-collapsible.is-collapsed {
  padding: 14px 22px;
  min-height: 0;
}
.dim-section.dt-collapsible.is-collapsed h3 {
  margin-bottom: 0;
}
#dataPerfWrap{
  overflow:hidden;
}
#dataPerfWrap.is-collapsed{
  padding:14px 22px !important;
}
#dataPerfWrap.is-collapsed #dataPerfGrid{
  display:none !important;
}
#dataPerfWrap.is-collapsed .dt-perf-action{
  color: var(--ink-2);
}
#dataPerfWrap:not(.is-collapsed) .dt-perf-action{
  color: var(--ink-3);
}

/* dim-grid: 2列パネル */
/* master 仕様 (2026-05-10): セル間の十字グレーを白に、 cell bg も白で統一 */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.dim {
  background: #ffffff;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  margin: -1px;
}
.dim-l {
  font-size: 10px;
  color: var(--ink-4);
  font-weight: 700;
  letter-spacing: .06em;
}
.dim-v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  display: block;
}
.dim-v .unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-4);
  margin-left: 3px;
}

/* ============================================================
   流通定尺: stock-list / stock-chip
   ============================================================ */
.stock-bulk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
  padding: 4px 10px 4px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: border-color .12s, color .12s, background .12s;
}
/* master 仕様 (2026-05-10): hover も active も枠は濃い TORIAI indigo (--ac) */
.stock-bulk:hover { border-color: var(--ac); color: var(--ink); }
.stock-bulk input[type="checkbox"] {
  width: 13px; height: 13px;
  accent-color: var(--ac);
  cursor: pointer;
  margin: 0;
}
/* 一括適用 ON: 背景は白、 枠は濃い indigo */
.dim-section.is-bulk .stock-bulk {
  background: #ffffff;
  border-color: var(--ac);
  color: var(--ink);
}
.dim-section.is-bulk .stock-chip {
  border-color: var(--ac);
  box-shadow: 0 0 0 1px var(--ac) inset;
}
.dim-section.is-bulk .stock-add { border-style: solid; border-color: var(--ac); }

.stock-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
}
.stock-chip {
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: default;
  box-sizing: border-box;
  transition: border-color .12s;
}
.stock-chip:hover { border-color: var(--ac); }
.stock-chip .unit {
  font-size: 10px;
  color: var(--ink-4);
  font-weight: 500;
  margin-left: 2px;
}
.stock-chip .stock-x {
  width: 14px; height: 14px;
  border: none; background: transparent;
  color: var(--ink-4);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  margin-left: 4px;
  border-radius: 3px;
  font-family: inherit;
  transition: background .12s, color .12s;
}
.stock-chip .stock-x:hover { background: var(--bad-soft, #fee2e2); color: #dc2626; }

/* 流通定尺 +追加 （2列分確保して潰れないように） */
.stock-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  box-sizing: border-box;
  justify-self: start;
  grid-column: span 2;
  min-width: 190px;
  width: fit-content;
  height: 38px;
}
.stock-add input {
  width: 70px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}
.stock-add input:focus { border-color: var(--ac-border); }
.stock-add button {
  height: 28px;
  padding: 0 12px;
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .04em;
  cursor: pointer;
}
.stock-add button:hover { background: var(--ink-2); }

/* ============================================================
   断面形状パネル (右)
   ============================================================ */
.xs-panel {
  position: sticky;
  top: var(--pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.xs-panel h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ink-2);
}
.xs-svg {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 30px;
  margin-bottom: 14px;
  box-sizing: border-box;
  overflow: hidden;
}
.xs-svg svg { max-width: 100%; max-height: 100%; display: block; }
.xs-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-3);
}
.xs-foot .mono { color: var(--ink); }

/* master 仕様 (2026-05-10): メモ機能 (#dataNoteArea / .dt-note-*) は廃止、CSS も削除済 */

/* master 仕様 (2026-05-10): 流通定尺の注意書き — h3 横に小さく薄く
   絶対に黄色/茶色背景にならないよう全プロパティを明示 + !important */
.dt-std-note,
#dpp .dt-std-note,
.dim-section h3 .dt-std-note {
  display: inline !important;
  margin: 0 0 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  color: #a1a1aa !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  font-family: inherit !important;
}

/* ============================================================
   単位重量 / 塗装 (extra info)
   ============================================================ */
#dataExtraInfo {
  font-size: 12px;
  color: var(--ink-3);
  padding: 12px 0 0;
}
#dataExtraInfo .dt-extra-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-3);
}
#dataExtraInfo .dt-extra-row:last-child { border-bottom: none; }
#dataExtraInfo .dt-extra-row strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ============================================================
   カスタム鋼材モーダル
   ============================================================ */
#dtCustomModal { display: none; }
#dtCustomModal.open { display: flex; }

/* ============================================================
   レスポンシブ (モバイル)
   ============================================================ */
@media (max-width: 960px) {
  .dt-page-grid { grid-template-columns: 240px 1fr; }
  .data-main { grid-template-columns: 1fr; }
  .xs-panel { position: relative; top: auto; }
}

@media (max-width: 1280px) {
  #dpp {
    --app-sidebar-w: 300px;
    --gap: 16px;
    --pad: 18px;
  }

  .dt-page-grid {
    grid-template-columns: var(--app-sidebar-w) 1fr;
  }

  .data-main {
    grid-template-columns: 1fr 360px;
    gap: 16px;
    padding: 18px;
  }

  #dtHeader h1 {
    font-size: 24px;
    margin: 4px 0 4px;
  }

  #dtHeader .subtitle {
    font-size: 12px;
    margin: 0 0 18px;
  }

  .data-specs-wrap {
    margin-bottom: 18px;
  }

  .data-specs-bar {
    min-height: 38px;
    gap: 5px;
    padding: 4px 2px 4px;
  }

}

@media (max-width: 720px) {
  .dt-page-grid { grid-template-columns: 1fr; }
  .data-sb {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 280px;
  }
}
