/* design/mock/type-chart.html の <style> から書き出し */

  /* 表の種類（3つに分かれたボタン） */
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--main); border-radius: 12px; overflow: hidden; margin: 8px 0; }
  .seg button {
    min-height: 56px; padding: 6px 4px; border: none; border-right: 1px solid var(--main);
    background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1.3;
  }
  .seg button:last-child { border-right: none; }
  .seg button small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
  .seg button[aria-pressed="true"] { background: var(--main-soft); box-shadow: inset 0 -4px 0 var(--main); }
  .seg button[aria-pressed="true"]::before { content: "✓ "; color: var(--main); }
  .uses { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
  .count-line { font-weight: 700; margin: 8px 0 0; }

  .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 8px 0 0; }
  .legend span.item { display: inline-flex; align-items: center; gap: 6px; }

  /* 1タイプずつ表示 */
  .type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .type-grid button {
    min-height: 44px; padding: 0; border: 1.5px solid transparent; border-radius: 8px;
    background: none; cursor: pointer; display: flex;
  }
  .type-grid button .type { width: 100%; justify-content: flex-start; font-size: 14px; border-radius: 6px; }
  .type-grid button[aria-pressed="true"] { border-color: var(--text); }
  .type-grid button[aria-pressed="true"] .type::after { content: "✓"; margin-left: auto; padding-left: 4px; }
  .pane { margin-top: 16px; }
  .pane h3 { font-size: 17px; }
  .pane .rowx { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; align-items: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
  .pane .k { font-weight: 700; font-size: 14px; }
  .pane .k small { display: block; font-weight: 400; color: var(--muted); }
  .second { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; font-size: 14px; }
  .second select { min-height: 44px; font: inherit; padding: 4px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }

  /* ぜんぶの表 */
  .chart-wrap { overflow: auto; max-height: 80vh; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-top: 8px; }
  table.chart { border-collapse: separate; border-spacing: 0; font-size: 12px; }
  table.chart th, table.chart td { width: 32px; min-width: 32px; height: 32px; padding: 0; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  table.chart thead th { position: sticky; top: 0; z-index: 2; background: var(--tbg, var(--surface)); color: var(--tfg, var(--text)); font-weight: 700; }
  table.chart tbody th { position: sticky; left: 0; z-index: 1; background: var(--tbg); color: var(--tfg); font-weight: 700; min-width: 40px; }
  table.chart thead th.corner { left: 0; z-index: 3; background: var(--surface); color: var(--muted); font-size: 10px; line-height: 1.2; min-width: 40px; }
  table.chart td button { width: 100%; height: 100%; min-height: 32px; border: none; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--text); }
  table.chart td .m { min-width: 0; width: 100%; height: 100%; border-radius: 0; display: grid; place-items: center; font-size: 11px; }
  table.chart td button:focus-visible { outline-offset: -3px; }
  .cell-info { min-height: 48px; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--main-soft); font-size: 14px; }
  .chart-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; font-size: 14px; }
  .chart-tools label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
  .chart-tools input { width: 20px; height: 20px; }

  .changes li { margin-bottom: 6px; }
