/* 言の葉の木と引き換えコード（src/kotonoha.js。2026-12-06 H-015）。公開用の HTML にだけつなぐ（build_single.mjs）。
   絵は仮（SVG）。H-016 の GPT の絵が届いたら kotonoha.json の art に住所を書く */
.kt-lead { margin-bottom: 4px; }
.kt-tree-box { padding-top: 12px; }
.kt-tabs, .kt-zoom { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.kt-tab { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(60, 80, 50, .28); background: #fff; color: #2F3A2A; font: inherit; font-size: 14px; cursor: pointer; }
.kt-tab[aria-pressed="true"] { background: #E5EFD6; border-color: #7E9B62; font-weight: 700; }
.kt-zoom .kt-tab { min-width: 64px; min-height: 36px; font-size: 13px; }
.kt-count { margin: 2px 0 6px; font-weight: 700; letter-spacing: .02em; }
.kt-scroll { overflow: auto; max-height: 78vh; border-radius: 16px; background: linear-gradient(#F7FAF1, #EEF4E4); border: 1px solid rgba(90, 120, 70, .18); -webkit-overflow-scrolling: touch; }
.kt-inner { min-width: 100%; }
.kt-svg { display: block; width: 100%; height: auto; }
.kt-leaf { cursor: pointer; outline: none; }
.kt-leaf:focus-visible .kt-hit { stroke: #2F5D2A; stroke-width: 3; }
.kt-leaf:hover path:first-of-type { filter: brightness(1.08); }
.kt-pop-bg { position: fixed; inset: 0; z-index: 1200; background: rgba(30, 40, 25, .38); display: flex; align-items: center; justify-content: center; padding: 16px; }
.kt-pop { width: min(340px, 100%); background: #FFFDF7; border-radius: 18px; padding: 20px 18px 16px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.kt-pop-art { display: flex; justify-content: center; margin-bottom: 6px; }
.kt-pop-name { font-size: 18px; font-weight: 700; margin: 4px 0; overflow-wrap: anywhere; }
.kt-pop-word { font-size: 16px; margin: 4px 0 12px; overflow-wrap: anywhere; line-height: 1.7; }
.kt-pop-close { width: 100%; min-height: 44px; }
.kt-search input { width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid rgba(60, 80, 50, .3); border-radius: 10px; background: #fff; }
.kt-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.kt-row-b { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 10px; border: 1px solid rgba(60, 80, 50, .16); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.kt-row-b svg { flex: 0 0 auto; }
.kt-row-t { display: flex; flex-direction: column; min-width: 0; }
.kt-row-n { font-weight: 700; overflow-wrap: anywhere; }
.kt-row-w { font-size: 14px; color: #4A5543; overflow-wrap: anywhere; }
.kt-empty { padding: 10px; color: #5A6553; }
.kt-pager { margin-top: 10px; }
.kt-page-no { text-align: center; }
.kt-code-lab { display: block; font-weight: 700; margin: 8px 0 4px; }
.kt-code-in { width: 100%; box-sizing: border-box; min-height: 52px; font-size: 20px; letter-spacing: .12em; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; padding: 8px 12px; border: 1px solid rgba(60, 80, 50, .35); border-radius: 12px; background: #fff; }
.kt-gets { margin: 6px 0 10px; padding-left: 1.3em; }
.kt-gets li { margin: 2px 0; }
.kt-radio { display: grid; gap: 6px; margin: 6px 0; }
.kt-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 1px solid rgba(60, 80, 50, .2); border-radius: 12px; background: #fff; cursor: pointer; }
.kt-opt input { width: 20px; height: 20px; flex: 0 0 auto; }
.kt-opt-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kt-opt-s { font-size: 12px; color: #6A7463; white-space: nowrap; }
.kt-opt.is-off { opacity: .55; cursor: default; }
.kt-md { display: inline-flex; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.kt-md select { font: inherit; font-size: 16px; min-height: 44px; padding: 4px 10px; border: 1px solid rgba(60, 80, 50, .3); border-radius: 10px; background: #fff; }
.kt-books { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.kt-book { padding: 8px 12px; border: 1px solid rgba(60, 80, 50, .2); border-radius: 12px; background: #fff; }
.kt-book .kt-opt-t { display: block; }
.kt-msg { padding: 10px 12px; border-radius: 10px; background: #FBEFEA; color: #7A3B2A; }
.kt-msg.is-ok { background: #EAF3DF; color: #2F4A25; }
.kt-plan { font-weight: 700; }
.kt-card { border: 1px solid rgba(60, 80, 50, .18); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.kt-card.is-new { border-color: #7E9B62; box-shadow: 0 0 0 2px rgba(126, 155, 98, .25); }
.kt-card h3 { margin: 0 0 6px; }
.kt-leaf-head { display: flex; gap: 12px; align-items: flex-start; }
.kt-leaf-head svg { flex: 0 0 auto; }
.kt-leaf-st { min-width: 0; }
.kt-leaf-st p { margin: 2px 0; overflow-wrap: anywhere; }
.kt-leaf-name { font-weight: 700; }
.kt-st { font-size: 14px; color: #4A5543; }
.kt-st.is-ok { color: #2F5D2A; font-weight: 700; }
.kt-st.is-fix, .kt-st.is-no { color: #8A3B26; }
.kt-st-note { font-size: 14px; background: #FBF3E6; border-radius: 8px; padding: 6px 8px; }
.kt-form { margin-top: 10px; display: grid; gap: 10px; }
.kt-f-row { display: grid; gap: 4px; }
.kt-f-l { font-weight: 700; font-size: 14px; margin: 0; }
.kt-f-row input { width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid rgba(60, 80, 50, .3); border-radius: 10px; background: #fff; }
.kt-cnt { font-size: 12px; color: #6A7463; justify-self: end; }
.kt-cnt.is-over { color: #A33A22; font-weight: 700; }
.kt-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.kt-sw { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 6px 4px; border: 1px solid rgba(60, 80, 50, .2); border-radius: 12px; background: #fff; font: inherit; font-size: 12px; cursor: pointer; color: inherit; }
.kt-sw[aria-checked="true"] { border-color: #5E7F45; background: #EEF5E4; box-shadow: 0 0 0 2px rgba(94, 127, 69, .3); font-weight: 700; }
.kt-sw-n { line-height: 1.3; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.kt-hide { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.kt-hide input { width: 20px; height: 20px; flex: 0 0 auto; }
.kt-rules { margin: 0; }
.kt-pair { border-top: 1px dashed rgba(60, 80, 50, .25); padding-top: 8px; margin: 8px 0; }
.kt-pair p { margin: 4px 0; }
.kt-pair-nick { display: block; width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid rgba(60, 80, 50, .3); border-radius: 10px; background: #fff; margin: 4px 0; }
.kt-entry .v7-actions { margin-top: 6px; }
@media (max-width: 360px) {
  .kt-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kt-code-in { font-size: 18px; letter-spacing: .06em; }
}
