/* SPEC-v4 L: page length meter and keyword panel (public/js/resume-fit.js). */

.rf-wrap { display: flex; flex-direction: column; gap: 12px; }
.rf-card { --rf: var(--like); }
.rf-card.rf-amber { --rf: #ffc23d; }
.rf-card.rf-red { --rf: var(--nope); }
.rf-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--rf); margin: 0 0 10px; }
.rf-meter { position: relative; height: 10px; border-radius: 999px; background: var(--surface3); overflow: hidden; display: flex; }
.rf-fill { display: block; height: 100%; background: var(--rf); border-radius: 999px; transition: width .4s ease; }
.rf-red .rf-fill { border-radius: 999px 0 0 999px; flex: none; }
.rf-over { display: block; flex: none; height: 100%; margin-left: 2px; background: repeating-linear-gradient(45deg, var(--rf), var(--rf) 4px, transparent 4px, transparent 8px); }
.rf-sub { font-size: 13px; margin: 8px 0 0; }
.rf-notes { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.rf-notes li + li { margin-top: 4px; }
.rf-cuts { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.rf-cuts summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.rf-cuts summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 6px; }
.rf-cuts ol { margin: 8px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.rf-cuts li + li { margin-top: 4px; }

.rf-score { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.rf-score b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); flex: none; }
.rf-score span { font-size: 13px; line-height: 1.35; }
.rf-card .label { margin-top: 12px; }
.rf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rf-hit { color: var(--like); border-color: rgba(47, 224, 138, .3); background: rgba(47, 224, 138, .08); }
.rf-hit svg { color: var(--like); }
.rf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rf-kw { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--bg2); }
.rf-kw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rf-term { font-weight: 700; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.rf-tag { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.rf-kw.add .rf-tag { background: var(--accent-soft); color: var(--accent-hi); border: 1px solid var(--accent); }
.rf-kw.gap .rf-tag { background: var(--surface2); color: var(--muted); border: 1px solid var(--line2); }
.rf-imp { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.rf-ev { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { .rf-fill { transition: none; } }
@media print { .rf-wrap { display: none !important; } }
.rf-base { margin-bottom: 16px; }
