/* for tools/tenji/index.html */
/* 共通スタイルは /src/lib.css を参照。ここでは点字変換に固有の見た目のみ。 */

.tenji-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 26px;
  padding: 8px 22px 22px;
}

.tenji-col-right {
  min-width: 0;
  gap: 10px;
  overflow: auto;
}

.tenji-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.tenji-mode {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: var(--s1);
  color: var(--text);
  width: 100%;
  transition: background .16s, box-shadow .16s;
}

.tenji-mode__dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: var(--line);
  transition: background .16s;
}

.tenji-modes[data-group="8"] .tenji-mode__dot {
  height: 22px;
}

.tenji-mode__label {
  flex: 1 1 auto;
  text-align: left;
  font-size: 13px;
}

.tenji-mode.is-active {
  box-shadow: inset 0 0 0 1px var(--p1);
}

.tenji-mode.is-active .tenji-mode__dot {
  background: var(--p1);
}

.tenji-rows {
  overflow: auto;
  padding: 12px 16px;
}

.tenji-rows .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.tenji-rows .row:last-child {
  border-bottom: none;
}

.tenji-rows .row .braille {
  color: var(--p1);
  word-break: break-all;
}

.tenji-rows .row .kana {
  color: var(--text-2);
  word-break: break-all;
}

@media screen and (max-width: 900px) {
  .tenji-main {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }

  #input,
  #output,
  #tj_rows {
    min-height: 8em;
  }
}
