/* Free tools UI. Uses the theme variables (--ink, --muted, --line, --violet, --cyan, --grad) defined by home.css and app.css. */
.tool { --ok: #3ee8c4; --warn: #ffb84d; --bad: #ff6b8b; --note: #8b7bff; }
.tool h3 { font-size: 17px; margin: 26px 0 10px; }
.t-form { display: grid; gap: 14px; }
.t-grid2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .t-grid2 { grid-template-columns: 1fr; } }
.t-field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); border: 0; padding: 0; margin: 0; min-width: 0; }
.t-field.wide, .t-actions.wide, .t-form > .t-grid2 { grid-column: 1 / -1; }
.t-field legend { margin-bottom: 8px; }
.tool input[type=text], .tool select, .tool textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.tool textarea { resize: vertical; min-height: 80px; }
.tool select option { background: #15132e; }
.tool input:focus, .tool select:focus, .tool textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,123,255,.18); }
.t-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.t-run { padding: 13px 26px; border: 0; border-radius: 12px; background: var(--grad); color: #0b0a1a; font: inherit; font-weight: 750; cursor: pointer; box-shadow: 0 8px 26px -10px rgba(139,123,255,.8); }
.t-run:hover { transform: translateY(-1px); }
.t-run:disabled { opacity: .65; cursor: progress; transform: none; }
.t-quota { color: var(--muted); font-size: 13px; }
.t-out { margin-top: 10px; }
.t-out:empty { display: none; }
.t-loading { display: flex; gap: 12px; align-items: center; padding: 30px 0; color: var(--muted); }
.t-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(139,123,255,.25); border-top-color: var(--cyan); animation: tspin .8s linear infinite; }
@keyframes tspin { to { transform: rotate(360deg); } }
.t-error { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,107,139,.4); background: rgba(255,107,139,.08); color: var(--ink); margin-top: 16px; }
.t-cta { font-weight: 700; margin-left: 6px; }
.t-next { margin-top: 26px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(139,123,255,.35); background: rgba(139,123,255,.08); }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); } .t-note { color: var(--note); } .t-muted { color: var(--muted); }
.t-ok-bg { background: var(--ok) !important; } .t-warn-bg { background: var(--warn) !important; } .t-bad-bg { background: var(--bad) !important; }
.t-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; border: 1px solid currentColor; white-space: nowrap; }
.t-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 16px 0; }
.t-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.t-kpis b { display: block; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.t-kpis span { color: var(--muted); font-size: 12.5px; }
.t-hero { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
.t-hero h3 { margin-top: 0; word-break: break-all; }
@media (max-width: 600px) { .t-hero { grid-template-columns: 1fr; justify-items: center; } }
.t-ring { width: 120px; height: 120px; color: var(--ink); filter: drop-shadow(0 0 12px rgba(139,123,255,.35)); }
.t-scores { display: flex; gap: 18px; flex-wrap: wrap; }
.t-score { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.t-score .t-ring { width: 96px; height: 96px; }
.t-issue { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: rgba(255,255,255,.02); }
.t-issue summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; }
.t-issue summary::-webkit-details-marker { display: none; }
.t-issue p { margin: 0 14px 10px 54px; color: var(--muted); }
.t-n { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #0b0a1a; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.t-dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 14px; margin: 0; }
.t-dl dt { color: var(--muted); } .t-dl dd { margin: 0; word-break: break-word; }
.t-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.t-checks li { display: grid; grid-template-columns: 22px minmax(140px, 220px) 1fr; gap: 8px; align-items: baseline; }
.t-checks li span:last-child { color: var(--muted); word-break: break-word; }
.t-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.t-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table th, .t-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.t-table th { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.t-table tr:last-child td { border-bottom: 0; }
.t-url { word-break: break-all; }
.t-table small { color: var(--muted); }
.t-chain { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.t-chain li { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; position: relative; background: rgba(255,255,255,.02); }
.t-chain li + li { margin-top: 18px; }
.t-chain li + li::before { content: "↓"; position: absolute; top: -19px; left: 34px; color: var(--muted); }
.t-chain small { color: var(--muted); }
.t-notes { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.t-notes li { padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.03); border-left: 3px solid currentColor; }
.t-pre { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow: auto; max-height: 460px; font-size: 13px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.t-copy { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.t-copy:hover { background: rgba(255,255,255,.1); }
.t-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .t-cols { grid-template-columns: 1fr; } }
.t-callout { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(62,232,196,.35); background: rgba(62,232,196,.07); }
.t-meter { margin: 12px 0; }
.t-meter-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.t-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.t-bar i { display: block; height: 100%; border-radius: 4px; }
.t-heads { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.t-heads li span { display: inline-block; width: 34px; font-size: 11px; font-weight: 800; color: var(--cyan); }
.t-heads .t-h2 { padding-left: 18px; } .t-heads .t-h3 { padding-left: 36px; color: var(--muted); }
.t-checks-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; color: var(--ink); }
.t-ai { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: rgba(255,255,255,.02); }
.t-ai-text { font-weight: 600; margin-bottom: 6px; }
.t-ai-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.t-ai-meta .t-copy { margin-left: auto; }
/* Google result preview (light, like Google) */
.serp { background: #fff; color: #202124; border-radius: 12px; padding: 18px 20px; max-width: 652px; font-family: Arial, sans-serif; margin: 10px 0 16px; }
.serp-site { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #5f6368; }
.serp-name { font-size: 14px; color: #202124; } .serp-url { font-size: 12px; color: #4d5156; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; }
/* Social previews */
.og-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.og { margin: 0; }
.og-img { aspect-ratio: 1.91 / 1; background: #222 center / cover no-repeat; display: grid; place-items: center; color: #888; }
.og-none { font-size: 13px; }
.og.fb, .og.x { background: #fff; color: #1c1e21; border-radius: 12px; overflow: hidden; border: 1px solid #dadde1; }
.og.fb figcaption { padding: 10px 12px; background: #f0f2f5; display: grid; gap: 2px; font-family: Helvetica, Arial, sans-serif; }
.og.fb small { color: #65676b; font-size: 12px; } .og.fb b { font-size: 16px; } .og.fb span { color: #65676b; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.og.x { border-radius: 16px; } .og.x figcaption { padding: 10px 12px; display: grid; gap: 2px; font-family: Helvetica, Arial, sans-serif; } .og.x small { color: #536471; }
.og.wa .wa-bubble { background: #005c4b; color: #e9edef; border-radius: 10px; padding: 6px; display: grid; gap: 6px; font-family: Helvetica, Arial, sans-serif; }
.og.wa .wa-bubble > div:last-child { background: #025144; border-radius: 6px; padding: 8px 10px; display: grid; gap: 2px; font-size: 13px; }
.og.wa small { color: #8696a0; } .og-img.sm { border-radius: 6px; }
.og-label { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; text-align: center; }
/* hub + cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card { display: grid; gap: 8px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.tool-card:hover { border-color: rgba(139,123,255,.55); transform: translateY(-2px); background: rgba(139,123,255,.06); text-decoration: none; }
.tool-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: linear-gradient(135deg, rgba(139,123,255,.25), rgba(62,232,196,.18)); border: 1px solid var(--line); }
.tool-card b { font-size: 17px; } .tool-card span { color: var(--muted); font-size: 14.5px; }
.tool-card small { color: var(--cyan); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.t-kw { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.t-kw li { padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.t-kw li:last-child { border-bottom: 0; }
.t-outline { padding-left: 22px; display: grid; gap: 10px; }
.t-outline ul { margin: 6px 0 0; color: var(--muted); }
.t-outline p { margin: 4px 0 0; font-size: 14px; }
.t-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; }
.t-tech h3 { margin-top: 14px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.t-chip { display: inline-block; margin: 0 6px 6px 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(139,123,255,.08); font-size: 14px; }
.t-chip small { color: var(--cyan); margin-left: 4px; }
.t-spark { width: 160px; height: 40px; }
.t-shot { max-height: 260px; border-radius: 12px; border: 1px solid var(--line); }
.t-checks em { color: var(--ink); font-style: normal; opacity: .85; font-size: 13.5px; }
.t-wbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 14px 0 6px; gap: 2px; }
.t-wbar i { display: block; min-width: 4px; } .w-html { background: #8b7bff; } .w-css { background: #3ee8c4; } .w-js { background: #ffb84d; } .w-image { background: #ff6bd5; }
.t-shotwrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; max-height: 720px; background: #fff; margin: 12px 0; }
.t-shotwrap.mobile { max-width: 420px; }
.t-shotwrap img { display: block; width: 100%; height: auto; }
.t-steps { padding-left: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.t-steps li { display: grid; grid-template-columns: 22px minmax(160px, 240px) 1fr; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); align-items: baseline; }
.t-steps li span { color: var(--muted); word-break: break-word; }
.t-steps li.bad { border-color: rgba(255,107,139,.5); } .t-steps li.warn { border-color: rgba(255,184,77,.45); }
.t-bigage { width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--grad); color: #0b0a1a; }
.t-bigage b { font-size: 40px; line-height: 1; } .t-bigage span { font-weight: 700; font-size: 13px; }

/* batch 4 */
.t-hl td { background: rgba(139, 123, 255, .1); }
.t-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.t-groups .t-ai { margin: 0; }


/* batch 5 */
.t-favs { display: flex; gap: 8px; margin-top: 8px; } .t-favs img { width: 32px; height: 32px; border-radius: 6px; background: #fff; padding: 2px; }
.t-years { display: flex; gap: 3px; align-items: flex-end; height: 120px; margin: 14px 0; } .t-years a { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; text-decoration: none; color: var(--muted); font-size: 10px; gap: 4px; }
.t-years i { display: block; width: 100%; background: var(--grad); border-radius: 3px 3px 0 0; } .t-years i.empty { background: var(--line); }
.t-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.t-drop input[type=file] { padding: 18px; border: 2px dashed var(--line); border-radius: 12px; width: 100%; cursor: pointer; } .t-drop.over input { border-color: var(--violet); }


/* batch 6 */
.t-quote { margin: 8px 0 16px; padding: 12px 16px; border-left: 3px solid #8b7bff; background: rgba(139,123,255,.08); border-radius: 0 10px 10px 0; line-height: 1.6; }
ul.t-cols { list-style: none; padding: 0; } ul.t-cols li { padding: 4px 0; border-bottom: 1px dashed rgba(160,150,255,.18); }
