/* =====================================================================
   style.css — 絵文字→コードポイント変換 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 等幅表示（コードポイント・バイト列など） */
.emi-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  word-break: break-all;
}

/* 例プリセット */
.emi-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sg-space-1, 4px);
}
.emi-preset {
  cursor: pointer;
  font-size: 0.9rem;
  padding: 5px 10px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 999px;
  background: var(--sg-surface, #fff);
  color: var(--sg-text, #222);
}
.emi-preset:hover {
  border-color: var(--sg-accent, #3b5bdb);
}

/* 書記素ブロック */
.emi-graphemes {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-3, 12px);
  margin-top: var(--sg-space-3, 12px);
}
.emi-graph {
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}
.emi-graph__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--sg-surface-2, #f4f6fb);
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
  flex-wrap: wrap;
}
.emi-graph__idx {
  font-size: 0.78rem;
  color: var(--sg-muted, #777);
  font-weight: 600;
}
.emi-graph__char {
  font-size: 1.9rem;
  line-height: 1;
}
.emi-graph__meta {
  font-size: 0.82rem;
  color: var(--sg-muted, #555);
  flex: 1 1 auto;
}

/* コードポイント単位 */
.emi-cp {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.emi-cp:last-child {
  border-bottom: none;
}
.emi-cp__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.emi-cp__glyph {
  min-width: 1.6em;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
}
.emi-cp__u {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sg-accent, #3b5bdb);
}
.emi-cp__name {
  font-size: 0.8rem;
  color: var(--sg-muted, #555);
  letter-spacing: 0.02em;
}
.emi-cp__role {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--sg-muted, #555);
}

/* 各コードポイントの数値情報 */
.emi-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 16px;
  margin-top: 8px;
}
.emi-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.emi-stat__label {
  font-size: 0.72rem;
  color: var(--sg-muted, #777);
}
.emi-stat__value {
  font-size: 0.92rem;
}

/* 出力フォーマット */
.emi-formats {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-3, 12px);
}
.emi-format {
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 10px;
  padding: 10px 12px;
}
.emi-format__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.emi-format__label {
  font-size: 0.85rem;
  font-weight: 600;
}
.emi-format__value {
  font-size: 0.92rem;
  line-height: 1.6;
}
.emi-format__copy {
  flex: 0 0 auto;
}

/* 凡例のキー列は少し広めに */
.emi-legend-key {
  flex: 0 0 auto;
  min-width: 12em;
  text-align: left;
  font-weight: 600;
}
