.check-entry { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px; margin:0 0 24px; background:var(--soft-surface,#faf4ec); border:1px solid #e0ccba; border-radius:8px; }
.check-entry strong { display:block; color:var(--ink); font-size:1rem; }
.check-entry p { color:var(--muted); font-size:.875rem; margin-top:3px; }
.check-entry a { flex-shrink:0; }
.check-heading { margin:32px 0 25px; }
.check-heading h1 { font-family:var(--serif); font-size:clamp(1.75rem,3.5vw,2.5rem); margin:6px 0 12px; font-weight:500; }
.check-heading>p { color:var(--muted); }
.check-layout { display:grid; grid-template-columns:minmax(270px,.8fr) minmax(0,1.2fr); align-items:start; gap:32px; padding-bottom:40px; }
.check-form { padding:24px; background:var(--soft-surface,#faf4ec); border:1px solid var(--line); border-radius:8px; scroll-margin-top:20px; }
.check-form fieldset { padding:0; margin:0; border:0; min-width:0; }
.check-name-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.check-name-fields label { display:block; font-size:.9375rem; font-weight:650; margin-bottom:8px; }
.check-name-fields label span { font-size:.75rem; color:var(--muted); font-weight:400; }
.check-name-fields input { width:100%; min-width:0; min-height:52px; border:1px solid #bdb4a5; border-radius:4px; background:#fff; padding:10px; font-size:1.125rem; }
.check-name-fields input[aria-invalid=true] { border:2px solid #9b3445; background:#fff8f8; }
.check-name-fields input:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.check-input-help,.check-method>p,.check-method label { color:var(--muted); font-size:.8125rem; line-height:1.8; }
.check-input-help { margin:12px 0; }
.check-method { border-top:1px solid var(--line); padding-top:8px; }
.check-method summary,.check-formulas summary,.check-letter-details summary { cursor:pointer; padding:12px 0; min-height:44px; font-size:.875rem; color:var(--accent); }
.check-method label { display:block; margin:5px 0; }
.check-method select { width:100%; min-height:44px; font-size:1rem; padding:8px; border:1px solid #bdb4a5; background:white; border-radius:4px; }
.check-method>p { margin:8px 0; }
.check-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-top:20px; }
.check-form-actions .primary { flex:1; }
.check-form .field-error { font-size:.8125rem; }
.check-status { margin-top:12px; color:var(--muted); font-size:.875rem; overflow-wrap:anywhere; }
.check-placeholder { padding:34px; border:1px dashed #cfc3b4; border-radius:8px; text-align:center; color:var(--muted); }
.check-placeholder h2 { font-family:var(--serif); font-size:1.25rem; color:var(--ink); margin-bottom:14px; font-weight:500; }
.check-placeholder p { font-size:.875rem; }
.check-preview-grids { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; margin-bottom:18px; }
.check-preview-grids span { padding:5px 9px; border:1px solid var(--line); border-radius:4px; background:#faf8f3; }
.check-result { min-width:0; }
.check-result-heading { margin-bottom:14px; }
.check-result-heading h2 { scroll-margin-top:20px; }
.check-result-heading h2 { font-family:var(--serif); font-size:2rem; overflow-wrap:anywhere; margin:5px 0; font-weight:500; }
.check-result-heading p { color:var(--muted); font-size:.8125rem; }
.check-result .five-grid { margin:0; }
.check-result .five-grid-svg { max-width:320px; }
.check-formulas,.check-letter-details { border-bottom:1px solid var(--line); padding:4px 0; }
.check-formulas .calc-table { font-size:.875rem; }
.check-strokes-form { padding-bottom:16px; }
.check-strokes-form>p,.check-missing>p { color:var(--muted); font-size:.875rem; margin-bottom:12px; }
.check-letter-list { display:grid; gap:8px; margin:16px 0; }
.check-letter-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); }
.check-letter-row label { display:flex; align-items:center; gap:12px; }
.check-letter-row strong { font-size:1.5rem; font-weight:500; }
.check-letter-row label span { font-size:.8125rem; color:var(--muted); }
.check-letter-row>div { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.check-letter-row input { width:76px; min-height:44px; border:1px solid #bdb4a5; border-radius:4px; padding:8px; font-size:1rem; background:white; }
.check-missing { background:#fcf5e9; padding:20px; border-radius:8px; }
.check-missing h3 { font-size:1.0625rem; margin-bottom:8px; }
.check-next-step { margin:0 0 22px; padding:0 0 18px; border-bottom:1px solid var(--line); }
.check-result-actions { display:flex; flex-wrap:wrap; gap:10px; }
.check-result-actions .button { min-height:48px; padding:10px 16px; font-size:.9375rem; }
.check-result .name-meaning { margin-top:22px; }
.check-next-step p,.check-source { margin-top:8px; color:var(--muted); font-size:.8125rem; overflow-wrap:anywhere; }
.check-source { margin-top:24px; }
@media(max-width:760px) {
  .check-entry { flex-direction:column; align-items:flex-start; gap:12px; padding:18px; }
  .check-entry a { width:100%; text-align:center; }
  .check-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
  .check-form { padding:20px 16px; }
  .check-name-fields { gap:12px; }
  .check-result .grid-selector { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .check-placeholder { padding:24px 16px; }
}
@media(max-width:420px) {
  .check-result-actions { display:grid; grid-template-columns:minmax(0,1fr); }
  .check-result-actions .button { width:100%; }
}
