@import url("/lib/tools/textkit/kit.css?v=1");
/* Roman numeral converter */
.rn-clock { align-self: flex-end; min-height: 36px; }
.rn-out { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rn-out:empty { display: none; }
.rn-res { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); padding: 10px 12px; min-width: 0; }
.rn-res.bad { border-color: #4a2626; }
.rn-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.rn-in { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.rn-arrow { color: var(--muted); }
.rn-big { font-size: 26px; font-weight: 700; letter-spacing: .04em; color: var(--text); overflow-wrap: anywhere; min-width: 0; flex: 1 1 auto; font-family: "Times New Roman", Georgia, "Noto Serif", serif; line-height: 1.35; }
.rn-res .tk-copy { margin-left: auto; }
.rn-tag { font-size: 13px; font-weight: 600; }
.rn-work, .rn-note, .rn-why, .rn-fix { font-size: 13px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.rn-why { color: var(--text); }
.rn-fix b { color: var(--accent); font-size: 16px; font-family: "Times New Roman", Georgia, serif; }
.rn-fix .tk-copy { margin-left: 6px; min-height: 30px; padding: 3px 10px; }
.rn-datebox { border: 1px solid var(--border); border-left: 3px solid var(--accent-2); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.rn-datebox b { display: block; font-size: 12px; color: var(--muted); }
.rn-actions { margin-top: 12px; }
.rn-dategrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.rn-dategrid .in, .rn-dategrid .sel { font-size: 16px; min-height: 42px; }
.rn-dout { margin-top: 16px; }
.rn-dline { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 4px 6px; padding: 18px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.rn-dline.stack { flex-direction: column; align-items: center; }
.rn-part { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rn-part b { font-size: 34px; line-height: 1.2; letter-spacing: .05em; font-family: "Times New Roman", Georgia, "Noto Serif", serif; font-weight: 600; overflow-wrap: anywhere; text-align: center; }
.rn-part small { font-size: 11px; color: var(--accent); text-transform: none; letter-spacing: 0; }
.rn-dsep { font-size: 34px; line-height: 1.2; color: var(--muted); font-family: "Times New Roman", Georgia, serif; }
.rn-dacts { margin-top: 10px; justify-content: space-between; }
.rn-reads { font-size: 14px; color: var(--muted); }
.rn-reads b { color: var(--text); }
.rn-amb { margin: 10px 0 0; font-size: 14px; }
.rn-h { margin-top: 18px !important; }
.rn-chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px; margin-top: 12px; }
.rn-chart.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rn-cell { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 6px; background: var(--panel-2); font-size: 13px; break-inside: avoid; }
.rn-cell span { color: var(--muted); font-variant-numeric: tabular-nums; }
.rn-cell b { font-family: "Times New Roman", Georgia, serif; font-weight: 600; letter-spacing: .03em; }
.rn-fontsfor:empty { display: none; }
.rn-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rn-font { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.rn-pic { background: #f3efe9; display: flex; align-items: center; justify-content: center; padding: 10px; min-height: 120px; }
.rn-pic svg { display: block; width: 100%; height: auto; max-height: 220px; }
.rn-font figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; }
.rn-font figcaption span { flex: 1 1 auto; font-weight: 600; }
@media (max-width: 560px) {
  .rn-dategrid { grid-template-columns: 1fr 1fr; }
  .rn-dategrid label:first-child { grid-column: 1 / -1; }
  .rn-big { font-size: 22px; }
  .rn-part b, .rn-dsep { font-size: 26px; }
}
@media print { #pChart { display: block !important; } .rn-chart { grid-template-columns: repeat(5, 1fr); } .rn-cell { background: #fff; color: #000; border: 1px solid #ccc; } .rn-cell span { color: #555; } }
