/* ルビ付きプリントメーカー */
.rb-samples { gap: 6px; margin-bottom: 10px; }
.rb-toolbar .btn .i { width: 16px; height: 16px; }
.rb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .rb-layout { grid-template-columns: 1fr; } }
.rb-edit, .rb-side { display: grid; gap: 12px; min-width: 0; }
.rb-ta { font-size: 15px; line-height: 1.8; min-height: 300px; resize: vertical; font-family: var(--font); }
.rb-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--kyotsu) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--yellow) 16%, var(--card)); box-shadow: var(--sh-sm); position: sticky; top: calc(var(--header-h) + 6px); z-index: 4; }
.rb-qword { display: grid; min-width: 6em; }
.rb-qword b { font-size: 24px; line-height: 1.2; font-family: var(--head); }
.rb-qword small { font-size: 11px; }
.rb-qword .badge { justify-self: start; margin-top: 2px; }
.rb-qin { width: 11em; flex: 1 1 9em; font-size: 17px; }
.rb-stat { min-height: 0; }
.rb-bars { display: grid; gap: 6px; }
.rb-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; border: 1px solid var(--line-soft); }
.rb-bar span { display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #1d2433; min-width: 3px; white-space: nowrap; overflow: hidden; }
.rb-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink2); }
.rb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.g1 { background: #ffd7cf; } .g2 { background: #ffe2a8; } .g3 { background: #fff1a6; } .g4 { background: #d9f2c4; } .g5 { background: #c6ece4; } .g6 { background: #cfe0ff; } .g7 { background: #ddd3ff; } .g8 { background: #f3c6dc; }
.rb-check .note { margin: 0; display: grid; gap: 8px; }
.rb-misschips { gap: 5px; }
.rb-misschips .chip { font-size: 16px; padding: 3px 10px; }
.rb-misschips .chip .n { font-size: 10px; }
.rb-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); }
.rb-sec > summary { cursor: pointer; padding: 10px 14px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.rb-sec > summary::-webkit-details-marker { display: none; }
.rb-sec > summary::after { content: '▾'; color: var(--ink3); }
.rb-sec:not([open]) > summary::after { content: '▸'; }
.rb-sec > div { padding: 0 14px 14px; }
.rb-settings { display: grid; gap: 10px; }
.rb-dict { gap: 5px; max-height: 220px; overflow: auto; }
.rb-dict .chip { cursor: default; padding: 2px 8px 2px 10px; }
.rb-dict ruby { font-size: 15px; }
.rb-dict rt { font-size: 9px; color: var(--ink2); }
.rb-dict .x { border: 0; background: none; padding: 0 0 0 4px; font-weight: 900; color: var(--ink3); cursor: pointer; }
.rb-pvwrap { display: grid; gap: 8px; }
.rb-pv { display: grid; gap: 14px; justify-items: center; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--bg2) 75%, var(--card)); border: 1px solid var(--line-soft); max-height: 820px; overflow: auto; min-width: 0; }
.rb-pgbox { overflow: hidden; border-radius: 3px; box-shadow: 0 1px 2px rgba(17, 22, 34, .12), 0 10px 28px -12px rgba(17, 22, 34, .35); background: #fff; }
.rb-pgbox > .rb-pg { transform-origin: 0 0; }
@media (max-width: 640px) {
  .rb-ta { min-height: 220px; font-size: 14px; }
  .rb-pv { padding: 8px; }
}
