.romaji-rule{max-width:50rem;margin-inline:auto}.romaji-rule h1{margin-bottom:.5rem;font-size:clamp(1.5rem,5vw,2rem)}.romaji-rule h2{margin:1.75rem 0 .5rem;font-size:1.1rem}.romaji-rule h3{margin:1.25rem 0 .4rem;font-size:.95rem}.romaji-rule-note{color:var(--text-muted);margin:0 0 .6rem;font-size:.9rem}.romaji-rule-toolbar,.romaji-rule-actions,.romaji-rule-add{flex-wrap:wrap;align-items:end;gap:.5rem;margin-top:.5rem;display:flex}.romaji-rule button{border:1px solid var(--border);color:inherit;font:inherit;cursor:pointer;background:0 0;border-radius:6px;padding:.3rem .75rem}.romaji-rule button:hover:not(:disabled){background:var(--surface-muted)}.romaji-rule button:disabled{opacity:.45;cursor:default}.romaji-rule label{gap:.25rem;font-size:.9rem;display:grid}.romaji-rule .romaji-rule-check{align-items:center;gap:.4rem;display:flex}.romaji-rule-name{max-width:20rem;margin-top:.5rem}.romaji-rule select,.romaji-rule input[type=text]{border:1px solid var(--border-strong);background:var(--surface);min-width:0;color:inherit;font:inherit;border-radius:6px;padding:.3rem .5rem}.romaji-rule-table{border-collapse:collapse;width:100%;font-size:.9rem}.romaji-rule-table th,.romaji-rule-table td{border-bottom:1px solid var(--border);text-align:left;padding:.25rem .5rem;font-weight:400}.romaji-rule-table thead th{color:var(--text-muted)}.romaji-rule-table tbody th{font-weight:700}.romaji-rule-table input[type=text]{width:8rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.romaji-rule-base{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.romaji-rule-table tr[data-differs=true]{background:var(--surface-muted)}.romaji-rule-mark{white-space:nowrap;font-weight:700}.romaji-rule-invalid{color:var(--danger);margin-left:.5rem;font-size:.85rem}.romaji-rule-sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}
