/* Audit page */
.audit-head { padding: 24px 0 36px; }
.audit-head h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.audit-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: 30px; }
.panel h2 { font-size: 24px; margin-bottom: 16px; }
.input-panel { display: grid; gap: 18px; }
.input-panel h2 { margin-bottom: 0; }
.notice { margin: 0; padding: 12px 14px; border-left: 3px solid var(--clay); background: var(--blush); border-radius: 0 10px 10px 0; font-size: 15px; }
.field textarea { min-height: 260px; resize: vertical; font-size: 15px; line-height: 1.5; }
.field input[type=file] { padding: 10px; }
code { font-size: 0.92em; background: var(--blush); padding: 1px 5px; border-radius: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--clay); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.input-panel .form-status { margin: 0; font-weight: 400; color: var(--muted); }
.input-panel .form-status[data-state="error"] { color: #9E3B2E; font-weight: 600; }

.report .empty { color: var(--muted); padding: 40px 0; }
.report-summary { font: 500 22px/1.4 var(--display); letter-spacing: -0.01em; margin-bottom: 6px; max-width: none; }
.report-meta { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.report h3 { font-size: 18px; font-weight: 700; margin: 30px 0 12px; }
.issues { margin: 0; padding: 0; list-style: none; counter-reset: issue; }
.issues li { counter-increment: issue; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.issues li::before { content: counter(issue); grid-row: span 2; font: 700 30px/1 var(--display); color: var(--rose); }
.issues b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.issues p { margin: 0; color: var(--muted); font-size: 15px; }
.theme-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.theme-table th, .theme-table td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.theme-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.theme-table td.num { font-variant-numeric: tabular-nums; width: 64px; }
.bar { height: 8px; border-radius: 4px; background: var(--rose); width: 0; }
.bar-cell { width: 26%; }
.complaints { list-style: none; margin: 0; padding: 0; }
.complaints li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.complaints .rating { color: var(--clay); font-weight: 600; margin-right: 8px; }
.complaints mark { background: none; padding: 0; color: inherit; }
.complaints mark.neg, .legend mark.neg { background: #F1DAD5; box-shadow: inset 0 -2px 0 var(--clay); border-radius: 2px; }
.complaints mark.pos, .legend mark.pos { text-decoration: underline dotted #9C8A82; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legend { font-size: 14px; color: var(--muted); }
.legend mark { background: none; color: inherit; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.plan { margin-top: 24px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; background: var(--blush); border-color: #D5BDB5; }
.plan-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.plan-form .wide { grid-column: 1 / -1; }
.method { margin: 28px 0 56px; max-width: 80ch; }

@media (max-width: 900px) {
  .audit-grid, .plan { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
}
@media (max-width: 520px) { .plan-form { grid-template-columns: 1fr; } }

@media print {
  .site-head, .input-panel, .plan, .method, .site-foot, .report-actions, .audit-head, .skip { display: none !important; }
  body { background: #fff; }
  .audit-grid { display: block; }
  .panel { border: 0; padding: 0; }
}
@media (max-width: 560px) {
  .bar-cell { display: none; }
  .theme-table td.num { width: auto; }
  .report { overflow-wrap: anywhere; }
}
