/* Store Check. Base look (header, cards, buttons, fields) comes from images/style.css; this file adds the report. */
.workspace { --main-col: 4fr; --side-col: 6fr; }
.source-choices { margin: 0 0 18px; }
.source-panel { display: grid; gap: 8px; }
.source-panel .check { margin-top: 8px; }
.source-panel .check small { display: block; margin: 2px 0 0; }
.min-side { margin-top: 20px; }
#file-name { margin-top: 10px; color: var(--green-dark); font-weight: 600; }

/* Summary */
.report-summary { background: var(--tint); border-radius: 11px; padding: 16px 18px; margin-bottom: 18px; }
.report-summary p { margin: 0; }
.report-store { font-size: 13px; color: var(--green-dark); font-weight: 600; overflow-wrap: anywhere; }
.report-headline { font-size: 22px; letter-spacing: -.4px; font-weight: 650; color: #0b2a33 !important; margin: 4px 0 2px !important; }
.report-headline[data-tone=good]::before { content: "✓ "; color: var(--green); }
.report-counts { font-size: 13px; }
.report-note { font-size: 12px; margin-top: 8px !important; }
.report-summary .actions { margin-top: 14px; }

.checks-heading { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 20px 0 8px; font-weight: 650; }
.checks-heading:first-child { margin-top: 0; }

/* One expandable card per problem */
.issue { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.issue[open] { border-color: #b8d2d3; }
.issue summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; }
.issue summary::-webkit-details-marker { display: none; }
.issue summary::after { content: "+"; grid-column: 3; grid-row: 1; font-size: 20px; line-height: 1; color: var(--green); justify-self: end; }
.issue[open] summary::after { content: "−"; }
.issue summary:focus-visible { outline: 2px solid #1a8389; outline-offset: 2px; border-radius: 10px; }
.badge { font-size: 11px; font-weight: 650; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.issue[data-severity=fix] .badge { background: #fde8e1; color: #8f3524; }
.issue[data-severity=worth] .badge { background: #fdf0d9; color: #7a4a06; }
.issue[data-severity=info] .badge { background: #edf1f1; color: #46606a; }
.issue-title { font-size: 14px; font-weight: 650; color: #0b2a33; }
.issue-count { grid-column: 2; font-size: 13px; color: var(--muted); }
.issue-body { padding: 0 14px 14px; border-top: 1px solid #e5eded; }
.issue-body > p { margin: 10px 0 0; }
.issue-fix { color: #0b2a33 !important; }
.issue-body .actions { margin: 12px 0; }
.issue-body .actions .button, .issue-body .actions button { padding: 7px 12px; font-size: 12px; }
.items { list-style: none; margin: 0; padding: 0; border: 1px solid #e5eded; border-radius: 8px; max-height: 260px; overflow-y: auto; }
.items li { padding: 8px 12px; border-bottom: 1px solid #e5eded; display: grid; gap: 2px; font-size: 13px; }
.items li:last-child { border-bottom: 0; }
.items a, .item-name { font-weight: 600; overflow-wrap: anywhere; color: #0b2a33; }
.items a { color: var(--green); }
.item-detail { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

.passed, .skipped { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.passed li { font-size: 13px; color: #1d3d47; padding-left: 22px; position: relative; }
.passed li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
.skipped li { font-size: 13px; display: grid; gap: 1px; padding: 8px 12px; background: #f4f7f7; border-radius: 8px; }
.skipped strong { color: #1d3d47; }
.skipped span { font-size: 12px; color: var(--muted); }

@media (max-width: 480px) {
  .issue summary { grid-template-columns: minmax(0, 1fr) auto; }
  .issue summary .badge { grid-column: 1; justify-self: start; }
  .issue-title { grid-column: 1; }
  .issue-count { grid-column: 1; }
  .issue summary::after { grid-column: 2; grid-row: 1 / 3; }
}

/* Link checker */
textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid var(--input); border-radius: 7px; padding: 10px 11px; color: #1f3a44; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; min-height: 180px; }
textarea:focus { outline: 2px solid #1a8389; outline-offset: 2px; }
.link-count { margin: 6px 0 0; font-size: 13px; color: var(--green-dark); font-weight: 600; min-height: 1.4em; }
.file-link { display: inline-block; margin: 4px 0 8px; font-size: 13px; color: var(--green); text-decoration: underline; cursor: pointer; position: relative; }
.file-link:focus-within { outline: 2px solid #1a8389; outline-offset: 2px; border-radius: 4px; }
.issue[data-severity=ok] .badge { background: #e2f3ea; color: #1c6b45; }
.link-title { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.group-meaning { font-size: 13px; color: var(--muted); margin: -4px 0 10px !important; }
.issue[data-severity=check] .badge, .finding[data-severity=check] .finding-level { background: #e3eef8; color: #24527a; }
.issue[data-severity=optional] .badge, .finding[data-severity=optional] .finding-level { background: #edf1f1; color: #46606a; }
.finding { border-left: 3px solid #c9d6d7; padding: 2px 0 2px 14px; margin: 14px 0 0; }
.finding[data-severity=fix] { border-color: #e0846f; }
.finding[data-severity=worth] { border-color: #e2b45c; }
.finding[data-severity=check] { border-color: #8db3d6; }
.finding-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.finding-head strong { font-size: 14px; color: #0b2a33; }
.finding-level { font-size: 11px; font-weight: 650; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.finding[data-severity=fix] .finding-level { background: #fde8e1; color: #8f3524; }
.finding[data-severity=worth] .finding-level { background: #fdf0d9; color: #7a4a06; }
.finding-detail { font-size: 12px !important; color: var(--muted) !important; margin: 2px 0 0 !important; overflow-wrap: anywhere; }
.finding-why { font-size: 13px !important; margin: 8px 0 0 !important; color: #1d3d47 !important; }
.finding-steps-heading { font-size: 13px !important; font-weight: 650; color: #0b2a33 !important; margin: 8px 0 2px !important; }
.finding-steps { margin: 0; padding-left: 20px; font-size: 13px; color: #1d3d47; display: grid; gap: 3px; }
.fixed-link { margin-top: 16px; background: #eef7f2; border: 1px solid #c5e3d2; border-radius: 9px; padding: 12px 14px; }
.fixed-link-label { font-size: 12px !important; font-weight: 650; color: #1c6b45 !important; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 6px !important; }
.fixed-link code { display: block; font-size: 12px; overflow-wrap: anywhere; color: #0b2a33; background: #fff; border-radius: 6px; padding: 8px 10px; }
.fixed-link .actions { margin: 10px 0 0 !important; }
.route-heading { font-size: 12px !important; text-transform: uppercase; letter-spacing: .5px; color: var(--muted) !important; font-weight: 650; margin: 16px 0 6px !important; }
.route { list-style: none; margin: 0; padding: 0; border: 1px solid #e5eded; border-radius: 8px; }
.route li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 10px; border-bottom: 1px solid #e5eded; font-size: 12px; position: relative; }
.route li:last-child { border-bottom: 0; }
.route li + li::before { content: "↓"; position: absolute; left: 25px; top: -9px; font-size: 11px; color: var(--muted); background: #fff; line-height: 1; }
.hop-status { font-weight: 700; text-align: center; border-radius: 5px; padding: 1px 0; font-variant-numeric: tabular-nums; }
.hop-status[data-kind=redirect] { background: #edf1f1; color: #46606a; }
.hop-status[data-kind=ok] { background: #e2f3ea; color: #1c6b45; }
.hop-status[data-kind=error] { background: #fde8e1; color: #8f3524; }
.hop-url { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #1d3d47; }
.route-note { font-size: 12px !important; color: var(--muted) !important; margin: 6px 0 0 !important; }
.report-wrong { background: none !important; border: 0 !important; padding: 6px 2px !important; font-size: 12px !important; font-weight: 600; color: var(--muted) !important; text-decoration: underline; cursor: pointer; margin-top: 8px; }
.report-wrong:hover { color: var(--green) !important; }
.issue-body .actions .report-wrong { margin-left: auto; margin-top: 0; }
