[hidden] { display: none !important; }
.tools-container { width: min(1120px, 100%); margin: 0 auto; }
.tools-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tools-nav a { padding: 10px 14px; border: 1px solid var(--wikiurl-border); border-radius: 999px; background: #fff; color: var(--wikiurl-blue); text-decoration: none; font-weight: 650; }
.tools-nav a[aria-current], .tools-nav a:hover { background: #eff6ff; border-color: var(--wikiurl-blue); }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tool-entry { display: block; color: inherit; text-decoration: none; transition: transform .15s; }
.tool-entry:hover { transform: translateY(-3px); }
.tool-entry-icon { display: inline-block; color: var(--wikiurl-blue); font-size: 32px; margin-bottom: 16px; }
.tool-entry p, .tool-explainer p { color: var(--wikiurl-muted); line-height: 1.7; }
.tool-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tool-workspace { min-width: 0; max-width: 800px; }
.tool-hint { color: var(--wikiurl-muted); font-size: 14px; line-height: 1.6; }
.wikiurl-tools textarea { width: 100%; padding: 12px 15px; border: 1px solid #cbd6e4; border-radius: 11px; background: #fff; font: inherit; color: var(--wikiurl-text); resize: vertical; overflow-wrap: anywhere; }
.wikiurl-tools textarea:focus { outline: 2px solid #7aa9ff; outline-offset: 2px; }
.tool-result { border-top: 1px solid var(--wikiurl-border); margin-top: 28px; padding-top: 28px; }
.tool-result h2 { font-size: 22px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tool-actions a, .tool-actions button { overflow-wrap: anywhere; }
.qr-preview { padding: 16px; margin-top: 20px; background: #fff; text-align: center; }
.qr-preview svg { display: block; width: min(100%, 320px); height: auto; margin: auto; }
.check-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; }
.check-details dt { font-weight: 700; }
.check-details dd { margin: 0; overflow-wrap: anywhere; }
.wikiurl-tools button:disabled { opacity: .6; cursor: wait; }
.resources-list details { padding: 20px 0; border-bottom: 1px solid var(--wikiurl-border); line-height: 1.7; }
.resources-list summary { cursor: pointer; color: var(--wikiurl-text); font-weight: 750; }
.resources-list a { color: var(--wikiurl-blue); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--wikiurl-blue); outline-offset: 4px; }
@media (max-width: 700px) { .tools-grid, .tool-columns { grid-template-columns: 1fr; } .check-details { grid-template-columns: 1fr; gap: 6px; } .check-details dd { margin-bottom: 12px; } }

.resources-list .help-example { padding: 12px 16px; border-inline-start: 3px solid var(--wikiurl-blue); background: #eff6ff; border-radius: 8px; }
.resources-list code { overflow-wrap: anywhere; }

/* Result presentation is scoped to the URL checker; no remote preview assets. */
.check-result { --result-ink:#166534; --result-tint:#f0fdf4; --result-line:#bbf7d0; padding:0; border:1px solid #dce5ef; border-radius:20px; overflow:hidden; background:#fff; box-shadow:0 12px 30px rgba(34,75,130,.06); }
.check-result--amber { --result-ink:#854d0e; --result-tint:#fffbeb; --result-line:#fde68a; }
.check-result--red { --result-ink:#991b1b; --result-tint:#fef2f2; --result-line:#fecaca; }
.check-result-summary { display:flex; align-items:center; gap:16px; padding:24px; background:linear-gradient(110deg,var(--result-tint),#fff); border-bottom:1px solid var(--result-line); }
.check-result-icon { display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; background:#fff; color:var(--result-ink); border:1px solid var(--result-line); border-radius:16px; box-shadow:0 4px 10px rgba(16,24,40,.04); }
.check-result-icon svg { width:26px; height:26px; }
.check-result-heading { flex:1; min-width:0; }
.wikiurl-tools .check-result-heading h2 { margin:0 0 5px; color:var(--result-ink); font-size:22px; line-height:1.25; letter-spacing:-.5px; overflow-wrap:anywhere; }
.check-result-heading p { margin:0; color:#526684; font-size:14px; line-height:1.5; }
.check-http { flex:0 0 auto; min-width:80px; padding-inline-start:20px; border-inline-start:1px solid var(--result-line); text-align:center; color:var(--result-ink); }
.check-http span { display:block; font-size:11px; font-weight:700; line-height:1.5; }
.check-http strong { display:block; font-size:30px; line-height:1.2; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.check-page { padding:24px; }
.check-page-host { display:flex; align-items:center; gap:8px; color:#526684; font-size:13px; font-weight:650; overflow-wrap:anywhere; }
.check-page-host svg { flex:0 0 18px; width:18px; height:18px; color:#2563eb; }
.check-page-host bdi { min-width:0; }
.check-result .check-details { display:block; margin:18px 0 0; }
.check-result .check-details dt { color:#667085; font-size:12px; font-weight:600; line-height:1.5; margin-bottom:6px; }
.check-result .check-details dd { margin:0; overflow-wrap:anywhere; }
.check-page-title dd { color:#0d1830; font-size:19px; font-weight:700; line-height:1.45; letter-spacing:-.3px; }
.check-page-url { margin-top:20px; padding:14px 16px; border:1px solid #e8edf4; border-radius:12px; background:#f8fafc; }
.check-page-url dd { color:#526684; font-size:13px; line-height:1.65; }
.check-result-warning { margin:0; padding:16px 24px; background:var(--result-tint); color:var(--result-ink); border-bottom:1px solid var(--result-line); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
@media (max-width:540px) {
 .check-result-summary { flex-wrap:wrap; gap:12px; padding:18px; }
 .check-result-icon { flex-basis:40px; width:40px; height:40px; border-radius:12px; }
 .wikiurl-tools .check-result-heading h2 { font-size:20px; }
 .check-http { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; padding:10px 0 0; border-inline-start:0; border-top:1px solid var(--result-line); text-align:start; }
 .check-http strong { font-size:24px; }
 .check-page { padding:18px; }
 .check-page-title dd { font-size:17px; }
 .check-result-warning { padding:14px 18px; }
}
