
:root { --fg: #1a1a1a; --muted: #666; --accent: #c0392b; --bg: #fdfcf9;
        --card: #fff; --border: #e0ddd5; --link: #1f5fa8; }
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       max-width: 760px; margin: 2rem auto; padding: 0 1rem;
       color: var(--fg); background: var(--bg); line-height: 1.5; }
header { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
header a { color: var(--fg); text-decoration: none; }
h1 { margin: 0 0 0.25rem 0; font-size: 2rem; }
h1 .meta { font-size: 0.95rem; font-weight: normal; color: var(--muted); }
h2 { margin-top: 2rem; padding-top: 0.5rem; border-top: 1px solid var(--border); font-size: 1.15rem; }
.sense { color: var(--muted); font-style: italic; }
.example { background: var(--card); border-left: 3px solid var(--accent); padding: 0.6rem 0.9rem; margin: 0.5rem 0; border-radius: 0 4px 4px 0; }
.example .en { color: var(--muted); font-size: 0.95em; }
.example .ua { font-size: 1.05em; margin-top: 0.2rem; }
.example .src { font-size: 0.8em; color: var(--muted); margin-top: 0.3rem; font-family: ui-monospace, Menlo, monospace; }
.dict-row { padding: 0.4rem 0; border-bottom: 1px dotted var(--border); font-size: 0.95em; }
.dict-row .dict-name { color: var(--accent); font-size: 0.85em; font-weight: 600; }
.renderings { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.6rem 0; }
.rendering { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.4rem 0.7rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; }
.rendering.high     { border-left: 4px solid #2e7d32; }
.rendering.medium   { border-left: 4px solid #f9a825; }
.rendering.tentative{ border-left: 4px solid #bdbdbd; opacity: 0.85; }
.rendering .phrase { font-size: 1.1rem; color: #2e7d32; font-weight: 600; }
.rendering .conf { font-size: 0.7em; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.rendering.high .conf     { background: #e8f5e9; color: #2e7d32; }
.rendering.medium .conf   { background: #fff8e1; color: #b86d00; }
.rendering.tentative .conf{ background: #f5f5f5; color: #666; }
.rendering .freq { color: var(--muted); font-size: 0.85em; }
.rendering .gram { color: #555; font-size: 0.85em; font-style: italic; }
.rendering .modern { color: #2e7d32; font-size: 0.75em; font-weight: 600; }
.rendering .src { color: var(--muted); font-size: 0.8em; font-family: ui-monospace, Menlo, monospace; margin-left: auto; text-align: right; max-width: 50%; }
.confidence-legend { font-size: 0.85em; color: var(--muted); margin: 0.3rem 0 0.8rem 0; }
.confidence-legend strong { color: var(--fg); }
.avoid-block { background: #fff3e0; border: 1px solid #ffb74d; padding: 0.8rem 1rem; border-radius: 4px; margin: 0.6rem 0; }
.avoid-block .word { color: #c0392b; font-weight: 600; }
.avoid-block .arrow { color: var(--muted); margin: 0 0.4rem; }
.avoid-block .prefer { color: #2e7d32; font-weight: 600; }
.avoid-block .meta { color: var(--muted); font-size: 0.85em; margin-left: 0.5rem; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85em; }
.lvl-tag { display: inline-block; padding: 1px 6px; background: var(--card); border: 1px solid var(--border); border-radius: 3px; font-size: 0.75em; font-family: ui-monospace, Menlo, monospace; margin-right: 0.5rem; }
.idx-list { list-style: none; padding: 0; }
.idx-list li { padding: 0.3rem 0; border-bottom: 1px dotted var(--border); }
.idx-list a { color: var(--link); text-decoration: none; }
.idx-list a:hover { text-decoration: underline; }
.idx-list .sense { font-size: 0.85em; }
