/* FeeMath AI Listing Grader - tool styles. Uses the site variables from /assets/style.css
   with fallbacks so the page still works if a variable is missing. Pure ASCII. */
.lg-page { overflow-x: hidden; }
.lg-page *, .lg-page *::before, .lg-page *::after { box-sizing: border-box; }
.lg-hero { padding-top: 24px; padding-bottom: 8px; }
.lg-hero .hx { margin: 6px 0 10px; line-height: 1.15; overflow-wrap: anywhere; }
.lg-lead { color: var(--muted, #555); font-size: 1.05rem; max-width: 62ch; }
.lg-note { margin-top: 12px; }
.lg-app { display: grid; gap: 16px; padding-bottom: 24px; }
.lg-card { padding: 16px; border: 1px solid var(--line, #e3e3e3); border-radius: 14px; background: var(--surface, #fff); color: var(--ink, #111); box-shadow: var(--shadow, none); min-width: 0; }
.lg-h2 { font-size: 1.15rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.lg-h3 { font-size: 1rem; margin: 20px 0 8px; }
.lg-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #2457ff); color: var(--accent-ink, #fff); font-size: .85rem; flex: none; }
.lg-small { color: var(--muted, #555); font-size: .84rem; }
.lg-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }

.lg-grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 640px) { .lg-grid2 { grid-template-columns: 220px 1fr; } }
.lg-limits { margin: 0 0 10px; }
.lg-field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; min-width: 0; margin-bottom: 12px; }
.lg-field > span, .lg-lab label { color: var(--muted, #555); }
.lg-lab { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.lg-lab label { font-weight: 600; color: var(--ink, #111); }
.lg-field input, .lg-field select, .lg-field textarea {
  width: 100%; min-height: 42px; padding: 8px 10px; font: inherit; font-size: 1rem; color: var(--ink, #111);
  background: var(--bg, #fff); border: 1px solid var(--line, #ccc); border-radius: 10px;
}
.lg-field textarea { resize: vertical; line-height: 1.45; }
.lg-field input:focus, .lg-field select:focus, .lg-field textarea:focus, .lg-page .btn:focus-visible, .lg-page summary:focus-visible, .lg-page a:focus-visible {
  outline: 3px solid var(--accent, #2457ff); outline-offset: 2px;
}
.lg-count { font-size: .8rem; color: var(--muted, #555); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-count.is-over { color: var(--bad, #b42318); font-weight: 700; }

.lg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lg-actions .btn { flex: 1 1 180px; justify-content: center; text-align: center; }
.lg-page .btn { min-height: 42px; cursor: pointer; }
.lg-page .btn[disabled] { opacity: .55; cursor: progress; }
.lg-page .btn.lg-sm { min-height: 34px; padding: 4px 12px; font-size: .85rem; }
.lg-plan { margin: 12px 0 0; font-size: .88rem; color: var(--muted, #555); }

.lg-status { min-height: 1.2em; margin: 0 0 12px; font-size: .92rem; }
.lg-status.is-ok { color: var(--good, #137a3a); }
.lg-status.is-warn { color: var(--bad, #b42318); }

.lg-scorebox { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .lg-scorebox { grid-template-columns: 150px 1fr; } }
.lg-score { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.lg-ring { width: 100%; height: 100%; display: block; }
.lg-ring circle { fill: none; stroke-width: 12; }
.lg-ring-bg { stroke: var(--rule, var(--line, #e3e3e3)); }
.lg-ring-fg { stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.lg-ring.is-good .lg-ring-fg { stroke: var(--good, #137a3a); }
.lg-ring.is-mid .lg-ring-fg { stroke: var(--accent, #2457ff); }
.lg-ring.is-bad .lg-ring-fg { stroke: var(--bad, #b42318); }
.lg-score-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lg-score-txt strong { font-size: 2.4rem; line-height: 1; }
.lg-score-txt span { font-size: .85rem; color: var(--muted, #555); }
.lg-score-label { margin: 0 0 6px; font-size: 1.1rem; }
.lg-score-label .is-good { color: var(--good, #137a3a); }
.lg-score-label .is-mid { color: var(--accent, #2457ff); }
.lg-score-label .is-bad { color: var(--bad, #b42318); }
.lg-src { font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft, #eef1ff); color: var(--ink, #111); vertical-align: middle; }
.lg-summary { margin: 0 0 10px; color: var(--ink, #111); }
.lg-subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-subs li { display: grid; grid-template-columns: minmax(0, 9.5em) 1fr 2.4em; gap: 8px; align-items: center; font-size: .9rem; }
.lg-sub-name { overflow-wrap: anywhere; }
.lg-sub-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-bar { display: block; height: 10px; border-radius: 999px; background: var(--rule, var(--line, #e3e3e3)); overflow: hidden; }
.lg-bar span { display: block; height: 100%; border-radius: 999px; }
.lg-bar .is-good { background: var(--good, #137a3a); }
.lg-bar .is-mid { background: var(--accent, #2457ff); }
.lg-bar .is-bad { background: var(--bad, #b42318); }

.lg-fixes { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.lg-fix { line-height: 1.45; overflow-wrap: anywhere; }
.lg-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line, #ccc); color: var(--ink, #111); vertical-align: 1px; }
.lg-error .lg-chip { border-color: var(--bad, #b42318); color: var(--bad, #b42318); }
.lg-warn .lg-chip, .lg-ai .lg-chip { border-color: var(--accent, #2457ff); color: var(--accent, #2457ff); }
.lg-area { font-weight: 600; }
.lg-warn:not(li) { border-left: 4px solid var(--bad, #b42318); padding: 8px 12px; margin: 8px 0 12px; background: var(--soft, #f6f7fb); color: var(--ink, #111); }
.lg-ph { border-left: 4px solid var(--accent, #2457ff); padding: 8px 12px; margin: 8px 0 12px; background: var(--soft, #f6f7fb); color: var(--ink, #111); font-size: .9rem; }

.lg-upgrade { border: 2px solid var(--accent, #2457ff); background: var(--soft, #f6f7fb); }
.lg-upgrade .lg-h3 { margin-top: 0; }
.lg-upgrade .btn { flex: 1 1 160px; justify-content: center; text-align: center; }
.lg-next ul { margin: 0; padding-left: 1.2em; }
.lg-next li { margin-bottom: 6px; }
.lg-seo { padding-top: 16px; padding-bottom: 32px; max-width: 860px; }
.lg-seo h2 { margin-top: 28px; }
.lg-seo li { margin-bottom: 6px; }
.lg-steps { padding-left: 1.3em; }
.lg-disclaimer { margin-top: 16px; }
[hidden] { display: none !important; }
