/* COCORO Sync. 無料ツール — 共通スタイル
   本サイト cocoro-sync-theme/assets/css/shared.css のトークンと部品（ヘッダー70px・
   ダークフッター・form-card 18px・btn 10px・sec-label/sec-title）に揃える。 */
:root {
  --purple-deep: #532b76;
  --purple: #7c4fa5;
  --purple-soft: #9a73b8;
  --violet: #c27efe;
  --teal: #77e3d6;
  --teal-deep: #3fc9b5;
  --teal-text: #1f8f80;
  --ink: #1f1e2e;
  --heading: #2b2740;
  --text: #4a4560;
  --muted: #8b86a0;
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-tint: #faf9fc;
  --line: #e9e6f0;
  --line-strong: #d9d4e6;
  --ok: #1f8f80;
  --ok-bg: #e6f8f5;
  --warn: #9a5b00;
  --warn-bg: #fff5e2;
  --ng: #b4233a;
  --ng-bg: #fdeef0;
  --info: #5a5570;
  --info-bg: #f1eff6;
  --sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
  --latin: 'Outfit', var(--sans);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --grad: linear-gradient(115deg, var(--violet), var(--teal));
  --shadow-card: 0 14px 40px rgba(43, 39, 64, 0.08);
  --shadow-btn: 0 10px 26px rgba(83, 43, 118, 0.32);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'palt';
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(124, 79, 165, 0.22); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.5; }
p a, li a, .link { color: var(--purple); text-decoration: underline; text-decoration-color: rgba(124, 79, 165, 0.35); text-underline-offset: 3px; }
p a:hover, li a:hover, .link:hover { text-decoration-color: var(--purple); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-gray); padding: 1px 6px; border-radius: 5px; color: var(--heading); }
pre { font-family: var(--mono); font-size: 0.84em; line-height: 1.7; background: var(--bg-gray); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow: auto; white-space: pre-wrap; word-break: break-all; color: var(--heading); }
pre code { background: none; padding: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; }
@media (max-width: 900px) { .wrap { padding: 0 22px; } }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* ================= header ================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 24px; width: auto; }
.nav-logo .tool-tag { font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple); border-left: 1px solid var(--line-strong); padding-left: 12px; line-height: 1; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; font-weight: 500; color: var(--text); align-items: center; }
.nav-links a { position: relative; transition: color 0.25s; white-space: nowrap; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:not(.nav-cta):hover { color: var(--heading); }
.nav-cta { border-radius: 8px; padding: 9px 22px; background: var(--purple); color: #fff; font-weight: 700; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; }
.nav-cta:hover { background: var(--purple-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(83, 43, 118, 0.3); }
@media (max-width: 720px) {
  .nav { height: 60px; }
  .nav-logo img { height: 22px; }
  .nav-logo .tool-tag { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 12.5px; }
}

/* ================= page head ================= */
.page-head { padding: 64px 0 40px; background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); transition: color 0.25s; }
.crumbs a:hover { color: var(--purple); }
.crumbs span[aria-hidden] { opacity: 0.6; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--violet), var(--teal), var(--violet)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: labelShimmer 4s linear infinite; margin-bottom: 14px;
}
.sec-label::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--teal)); -webkit-text-fill-color: initial; }
@keyframes labelShimmer { from { background-position: 0% center; } to { background-position: 200% center; } }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; letter-spacing: 0.06em; color: var(--heading); line-height: 1.45; }
.page-head .lead { margin-top: 18px; font-size: 15.5px; color: var(--text); max-width: 760px; }
.pill-free { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--teal-text); background: var(--ok-bg); border-radius: 999px; padding: 5px 14px; }
.pill-free::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-deep); }

/* ================= sections ================= */
section.sec { padding: 56px 0; }
section.sec.tint { background: var(--bg-gray); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.55; color: var(--heading); }
.sec-title::after { content: ''; display: block; width: 54px; height: 4px; margin: 16px auto 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--teal)); box-shadow: 0 6px 18px rgba(124, 79, 165, 0.18); }
.sec-sub { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ================= cards ================= */
.form-card, .card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.card + .card { margin-top: 20px; }
.card.lift { box-shadow: var(--shadow-card); border-color: transparent; }
.card h2 { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2 .step { font-family: var(--latin); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: #fff; background: var(--purple); border-radius: 6px; padding: 2px 8px; }
.card h2 .score-mini { font-family: var(--latin); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: auto; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.card .desc { font-size: 13.5px; color: var(--muted); margin: -6px 0 16px; }
@media (max-width: 720px) { .form-card, .card { padding: 22px 18px; border-radius: 16px; } }

/* ================= forms ================= */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.04em; color: var(--heading); }
.field label.inline { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.req { font-size: 10.5px; color: var(--purple); border: 1px solid currentColor; border-radius: 4px; padding: 1px 8px; margin-left: 10px; letter-spacing: 0.1em; vertical-align: 1.5px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
input[type='text'], input[type='url'], textarea, select {
  width: 100%; background: var(--bg-gray); border: 1px solid transparent; border-radius: 10px; padding: 13px 16px;
  color: var(--heading); font-family: var(--sans); font-size: 15px; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
input:focus, textarea:focus, select:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12); outline: none; }
textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input[type='checkbox'] { accent-color: var(--purple); width: 16px; height: 16px; }
.url-form { display: flex; gap: 10px; }
.url-form input { flex: 1; font-size: 16px; }
@media (max-width: 560px) { .url-form { flex-direction: column; } .url-form .btn { width: 100%; } }

/* ================= buttons ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14.5px; font-weight: 700; padding: 13px 30px; border-radius: 10px; letter-spacing: 0.05em; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); white-space: nowrap; transition: background 0.3s, transform 0.25s, box-shadow 0.3s, border-color 0.3s, color 0.3s; }
.btn .ar { display: inline-block; font-family: var(--latin); transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.btn:hover .ar { transform: translateX(5px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.btn-line { border-color: var(--line-strong); color: var(--purple-deep); background: #fff; }
.btn-line:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(83, 43, 118, 0.14); }
.btn-line:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--purple); border: none; padding: 6px 8px; font-size: 13px; }
.btn-ghost:hover { color: var(--purple-deep); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.icon-btn { background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); cursor: pointer; padding: 6px 10px; font-size: 13px; line-height: 1; transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--ng); border-color: var(--ng); }

/* ================= alerts / badges ================= */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin: 14px 0; line-height: 1.7; }
.alert-error { background: var(--ng-bg); color: var(--ng); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.status { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0; }
.status-pass { background: var(--ok-bg); color: var(--ok); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-fail { background: var(--ng-bg); color: var(--ng); }
.status-info, .status-skip { background: var(--info-bg); color: var(--info); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--info-bg); color: var(--info); white-space: nowrap; letter-spacing: 0.02em; }
.pill-training { background: #f3ebfb; color: var(--purple-deep); }
.pill-search { background: var(--ok-bg); color: var(--ok); }
.pill-user { background: var(--warn-bg); color: var(--warn); }
.progress-note { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(124, 79, 165, 0.25); border-top-color: var(--purple); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
.btn-primary .spinner { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= report ================= */
.score-card { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; }
@media (max-width: 600px) { .score-card { grid-template-columns: 1fr; text-align: center; } .score-card .btn-row { justify-content: center; } }
.score-ring { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; position: relative; background: conic-gradient(var(--ring-color, var(--teal-deep)) calc(var(--pct, 0) * 1%), var(--line) 0); }
.score-ring::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.score-ring .val { position: relative; z-index: 1; font-family: var(--latin); font-weight: 700; font-size: 46px; color: var(--heading); line-height: 1; text-align: center; }
.score-ring .val small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; letter-spacing: 0.08em; }
.grade { display: inline-block; font-family: var(--latin); font-weight: 700; font-size: 26px; padding: 0 14px; border-radius: 10px; line-height: 1.5; }
.grade-A, .grade-B { background: var(--ok-bg); color: var(--ok); }
.grade-C { background: var(--warn-bg); color: var(--warn); }
.grade-D, .grade-E { background: var(--ng-bg); color: var(--ng); }
.summary-counts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.summary-counts b { font-family: var(--latin); font-size: 18px; margin-right: 3px; }
.page-meta { font-size: 13px; color: var(--muted); margin-top: 12px; word-break: break-all; line-height: 1.8; }
.page-meta b { color: var(--heading); }

.check-list { list-style: none; }
.check-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: none; padding-top: 4px; }
.check-list .label { font-weight: 700; color: var(--heading); font-size: 14.5px; }
.check-list .detail { font-size: 13.5px; color: var(--text); word-break: break-word; margin-top: 2px; }
.check-list .fix { font-size: 13.5px; color: var(--purple-deep); background: var(--bg-tint); border-left: 3px solid var(--purple-soft); padding: 8px 12px; margin-top: 8px; border-radius: 0 8px 8px 0; line-height: 1.7; }
.check-list .fix a { font-weight: 700; color: var(--purple); }
.cat-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 4px 0 16px; }
.cat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--purple)); }

.actions { counter-reset: act; list-style: none; }
.actions li { counter-increment: act; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.actions li:first-child { border-top: none; padding-top: 4px; }
.actions li::before { content: counter(act); width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-family: var(--latin); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.actions .t { font-weight: 700; color: var(--heading); font-size: 14.5px; }
.actions .d { font-size: 13.5px; margin-top: 2px; }
.actions .d a { font-weight: 700; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.crawlers { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.crawlers th, table.crawlers td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.crawlers th { background: var(--purple-deep); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; }
table.crawlers th:first-child { border-radius: 8px 0 0 0; }
table.crawlers th:last-child { border-radius: 0 8px 0 0; }
table.crawlers td.tok { font-family: var(--mono); white-space: nowrap; color: var(--heading); }
table.crawlers td .rule { color: var(--muted); font-size: 12px; display: block; }

/* ================= generators (single column, step by step) ================= */
.steps-col { display: grid; gap: 20px; }
.steps-col > * { min-width: 0; } /* wide tables/SVGs inside a card must scroll, not widen the page */
.output pre { min-height: 240px; max-height: 60vh; margin: 0; }
.output .btn-row { margin-bottom: 12px; }

/* sitemap picker */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip { border: 1px solid var(--line-strong); background: #fff; color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-family: var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip b { font-family: var(--latin); font-weight: 600; color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--purple); color: var(--purple-deep); }
.chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.chip.on b { color: rgba(255, 255, 255, 0.75); }
.picker-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.picker-toolbar input { flex: 1 1 220px; padding: 9px 12px; font-size: 13.5px; }
.picker { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.picker label { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; font-size: 13.5px; transition: background 0.15s; }
.picker label:hover { background: var(--bg-tint); }
.picker label:last-child { border-bottom: none; }
.picker label.added { color: var(--muted); cursor: default; }
.picker .u { word-break: break-all; color: var(--heading); line-height: 1.5; }
.picker label.added .u { color: var(--muted); }
.picker .u .dir { color: var(--muted); }
.picker .m { color: var(--muted); font-size: 12px; white-space: nowrap; }
.picker .tag { font-size: 11px; color: var(--teal-text); background: var(--ok-bg); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.picker .empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13.5px; }
.picker-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.picker-foot select { width: auto; min-width: 200px; padding: 10px 40px 10px 14px; font-size: 13.5px; }
.sel-count { font-size: 13px; color: var(--muted); }
.sel-count b { color: var(--purple-deep); font-family: var(--latin); font-size: 15px; }

/* section / link editor */
.section-block { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: #fff; }
.section-block .sec-head-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.section-block .sec-head-row .hash { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.section-block .sec-head-row input { font-weight: 700; font-size: 15px; flex: 1; }
.section-block .sec-empty { font-size: 13px; color: var(--muted); padding: 6px 0 10px; }
/* Stacked rows: title | URL | description. Long Japanese titles need the full width. */
.link-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--purple-soft); border-radius: 10px; background: var(--bg-tint); margin-bottom: 8px; align-items: center; }
.link-card input { padding: 9px 12px; font-size: 13.5px; background: #fff; }
.link-card input[data-role='l-title'] { font-weight: 700; }
.link-card input[data-role='l-url'] { grid-column: 1 / -1; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.link-card .desc-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.link-card .desc-row .len { font-family: var(--latin); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.link-card .desc-row .len.over { color: var(--warn); }

/* robots crawler table (grouped) */
.crawler-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.crawler-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.crawler-table tr.group td { padding: 14px 12px 10px; background: var(--bg-tint); border-bottom: 1px solid var(--line-strong); }
.crawler-table tr.group + tr td { border-top: none; }
.crawler-table .group-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crawler-table .group-row .g-title { font-weight: 700; color: var(--heading); font-size: 14px; }
.crawler-table .group-row .g-desc { font-size: 12.5px; color: var(--muted); flex: 1 1 240px; }
.crawler-table .group-row .g-actions { display: flex; gap: 6px; margin-left: auto; }
.crawler-table td.tok { font-family: var(--mono); white-space: nowrap; color: var(--heading); font-size: 13.5px; width: 1%; padding-right: 18px; }
.crawler-table td.desc { color: var(--text); font-size: 13px; line-height: 1.6; }
.crawler-table td.desc a { font-size: 12px; margin-left: 4px; }
.crawler-table td.set { white-space: nowrap; text-align: right; width: 1%; }
.crawler-table .vendor { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 6px 14px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.on-allow { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.seg button.on-block { background: var(--ng-bg); color: var(--ng); font-weight: 700; }
.seg.mini button { padding: 4px 10px; font-size: 12px; }
@media (max-width: 640px) {
  .crawler-table td.desc { display: none; }
  .crawler-table td.tok { white-space: normal; width: auto; }
}
.policy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .policy-cards { grid-template-columns: 1fr; } }
.policy-card { text-align: left; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; cursor: pointer; font-family: var(--sans); transition: border-color 0.2s, box-shadow 0.2s; }
.policy-card:hover { border-color: var(--purple-soft); }
.policy-card.on { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 79, 165, 0.12); }
.policy-card .p-title { font-weight: 700; color: var(--heading); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.policy-card .p-title .rec { font-size: 10.5px; color: var(--teal-text); background: var(--ok-bg); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.policy-card .p-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* floating action bar (generators) */
.floatbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-strong); box-shadow: 0 14px 40px rgba(43, 39, 64, 0.16); border-radius: 14px; padding: 10px 12px 10px 16px; max-width: calc(100% - 32px); transition: opacity 0.25s, transform 0.25s; }
.floatbar.is-hidden { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.floatbar .info { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.floatbar .info b { color: var(--heading); font-family: var(--latin); font-size: 14px; }
.floatbar .btn-sm { padding: 8px 14px; }
@media (max-width: 560px) { .floatbar { left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; padding: 10px 12px; } .floatbar.is-hidden { transform: translateY(12px); } .floatbar .info { display: none; } .floatbar .btn-sm { flex: 1; } }

/* report category nav */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--heading); background: #fff; transition: border-color 0.2s, background 0.2s; }
.cat-nav a:hover { border-color: var(--purple); background: var(--bg-tint); }
.cat-nav a .sc { font-family: var(--latin); font-weight: 700; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.cat-nav a .sc.good { background: var(--ok-bg); color: var(--ok); }
.cat-nav a .sc.mid { background: var(--warn-bg); color: var(--warn); }
.cat-nav a .sc.bad { background: var(--ng-bg); color: var(--ng); }
.cat-nav a .sc.na { background: var(--info-bg); color: var(--info); }

/* ================= explainer / faq ================= */
.steps { counter-reset: st; list-style: none; display: grid; gap: 14px; }
/* Number is absolutely positioned so inline children (code, a) stay in the text flow */
.steps li { counter-increment: st; position: relative; padding-left: 42px; font-size: 14px; line-height: 1.8; min-height: 28px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: var(--heading); font-family: var(--latin); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--latin); font-size: 20px; color: var(--purple); transition: transform 0.25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: 14px; margin-top: 10px; color: var(--text); }
.faq p + p { margin-top: 8px; }

/* ================= cta band ================= */
.cta-band { background: linear-gradient(118deg, #532b76 0%, #6d3f8e 34%, #8a5ca8 62%, #7fa8bc 100%); border-radius: 18px; padding: 36px 40px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 6px; }
.cta-band p { font-size: 14px; color: rgba(255, 255, 255, 0.85); max-width: 640px; }
.cta-band .btn-white { background: #fff; color: var(--purple-deep); }
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 10, 40, 0.28); }
@media (max-width: 720px) { .cta-band { padding: 28px 22px; } .cta-band .btn { width: 100%; } }

/* ================= footer ================= */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 60px 0 46px; font-size: 13px; margin-top: 56px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 26px; margin-bottom: 38px; }
.foot-top img { height: 20px; width: auto; }
.foot-brand p { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.9; }
.foot-nav { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 500; }
.foot-nav a { transition: color 0.25s; color: rgba(255, 255, 255, 0.75); }
.foot-nav a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.42); border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 26px; }
@media (max-width: 640px) { .site-footer { padding: 44px 0 36px; } .foot-top { gap: 20px; margin-bottom: 26px; } .foot-nav { gap: 18px; font-size: 12.5px; } .foot-bottom { font-size: 11px; } }

/* ================= misc ================= */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 80; }
.toast.show { opacity: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ================= analysis tools (inventory / bot log / heading compare) ================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .lb { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.stat .v { font-family: var(--latin); font-size: 26px; font-weight: 700; color: var(--heading); line-height: 1.2; margin-top: 4px; }
.stat .v small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* bar chart (single series, SVG) */
.chart { position: relative; margin: 6px 0 4px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--purple); }
.chart .bar.dim { fill: var(--line-strong); }
.chart .bar.hot { fill: var(--purple-deep); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--latin); }
.chart .axis.ja { font-family: var(--sans); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.5; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity 0.12s; z-index: 5; }
.chart-tip.show { opacity: 1; }
.chart-tip b { font-family: var(--latin); font-size: 13px; }
.chart-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.multiple { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; }
.multiple .mt-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.multiple .mt-title .tok { font-family: var(--mono); font-weight: 600; }
.multiple .mt-title b { font-family: var(--latin); color: var(--muted); font-weight: 600; font-size: 12px; }

/* horizontal share bars (directory table) */
.share { display: inline-block; height: 8px; border-radius: 4px; background: var(--purple); vertical-align: middle; margin-right: 8px; }

/* data table */
.data-table-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table th { position: sticky; top: 0; background: var(--bg-tint); color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; z-index: 1; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--purple-deep); }
.data-table th .arrow { font-family: var(--latin); margin-left: 4px; opacity: 0.6; }
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-tint); }
.data-table td.num { font-family: var(--latin); text-align: right; white-space: nowrap; color: var(--heading); }
.data-table td.url { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--text); }
.data-table td.url a { color: var(--purple); text-decoration: none; }
.data-table td.url a:hover { text-decoration: underline; }
.data-table td.ttl { color: var(--heading); font-weight: 500; }
.data-table td.muted { color: var(--muted); }
.data-table td.tok { font-family: var(--mono); color: var(--heading); white-space: nowrap; }
.table-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.table-tools input { flex: 1 1 220px; padding: 9px 12px; font-size: 13.5px; }
.table-tools .count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.table-tools .count b { font-family: var(--latin); color: var(--heading); }

/* progress */
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-deep), var(--purple)); transition: width 0.25s; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.progress-label b { font-family: var(--latin); color: var(--heading); }

/* file drop zone (client-side log analysis) */
.dropzone { display: block; border: 2px dashed var(--line-strong); border-radius: 14px; padding: 34px 20px; text-align: center; background: var(--bg-tint); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.dropzone:hover, .dropzone.over { border-color: var(--purple); background: #f6f0fc; }
.dropzone .dz-title { font-weight: 700; color: var(--heading); font-size: 15px; }
.dropzone .dz-sub { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.dropzone input { display: none; }
.file-list { list-style: none; margin-top: 10px; font-size: 13px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.file-list li .fn { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.file-list li .fs { color: var(--muted); white-space: nowrap; font-family: var(--latin); }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); color: var(--teal-text); border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.7; margin-top: 12px; }
.privacy-note::before { content: '🔒'; font-size: 14px; line-height: 1.7; }

/* heading comparison */
.url-rows { display: grid; gap: 8px; }
.url-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; }
.url-row .role { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; white-space: nowrap; }
.url-row .role.base { color: var(--purple-deep); }
.url-row input { padding: 10px 12px; font-size: 14px; }
@media (max-width: 560px) { .url-row { grid-template-columns: 1fr auto; } .url-row .role { grid-column: 1 / -1; text-align: left; } }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.cmp-table th, .cmp-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table th { background: var(--bg-tint); color: var(--heading); font-weight: 700; font-size: 12.5px; min-width: 180px; }
.cmp-table th.metric, .cmp-table td.metric { position: sticky; left: 0; background: #fff; color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; min-width: 140px; z-index: 1; border-right: 1px solid var(--line); }
.cmp-table th.metric { background: var(--bg-tint); }
.cmp-table th.base { box-shadow: inset 0 3px 0 var(--purple); }
.cmp-table td { font-family: var(--latin); color: var(--heading); }
.cmp-table td.ja { font-family: var(--sans); }
.cmp-table td .best { color: var(--teal-text); font-weight: 700; }
.cmp-table td .worst { color: var(--ng); }
.cmp-table .host { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; word-break: break-all; }
.outline-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.outline-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; min-width: 0; }
.outline-col.base { border-color: var(--purple-soft); box-shadow: 0 0 0 3px rgba(124, 79, 165, 0.08); }
.outline-col .oc-head { font-size: 12px; color: var(--muted); margin-bottom: 8px; word-break: break-all; }
.outline-col .oc-head b { display: block; color: var(--heading); font-size: 13.5px; margin-bottom: 2px; }
.outline { list-style: none; font-size: 13px; line-height: 1.55; }
.outline li { padding: 4px 0 4px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
.outline li .lv { font-family: var(--latin); font-size: 10.5px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.outline li.h1 { font-weight: 700; color: var(--heading); }
.outline li.h1 .lv { color: var(--purple); }
.outline li.h2 { color: var(--heading); font-weight: 600; }
.outline li.h3 { color: var(--text); padding-left: 14px; }
.outline li.hit { background: var(--ok-bg); border-radius: 6px; }
.outline li.miss { background: var(--warn-bg); border-radius: 6px; }
.legend-inline { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.legend-inline span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.legend-inline .l-hit::before { background: var(--ok-bg); border: 1px solid var(--teal-deep); }
.legend-inline .l-miss::before { background: var(--warn-bg); border: 1px solid var(--warn); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-chips .tc { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--heading); background: #fff; }
.topic-chips .tc b { font-family: var(--latin); color: var(--muted); font-weight: 600; margin-left: 4px; }
.seg-tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg-tabs button { border: none; background: #fff; padding: 6px 14px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.seg-tabs button + button { border-left: 1px solid var(--line-strong); }
.seg-tabs button.on { background: var(--purple); color: #fff; font-weight: 700; }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--purple); font-weight: 600; }

/* ================= hero (first view) ================= */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(620px 320px at 88% 0%, rgba(194, 126, 254, 0.16), transparent 70%),
  radial-gradient(520px 300px at 100% 70%, rgba(119, 227, 214, 0.18), transparent 70%),
  linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); }
.hero .wrap { position: relative; }
.hero .crumbs { margin: 18px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 40px; align-items: center; padding: 28px 0 40px; }
.hero-main .sec-label { margin-bottom: 10px; }
.hero h1 { font-size: clamp(26px, 2.9vw, 36px); font-weight: 900; letter-spacing: 0.02em; line-height: 1.42; color: var(--heading); text-wrap: balance; }
.hero h1 .accent { background: linear-gradient(90deg, var(--purple), var(--purple-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero .lead { margin-top: 14px; font-size: 15px; line-height: 1.85; color: var(--text); max-width: 34em; text-wrap: pretty; }
.hero-form { margin-top: 22px; }
.hero-form .url-form { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(43, 39, 64, 0.08); transition: border-color 0.2s, box-shadow 0.2s; }
.hero-form .url-form:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 79, 165, 0.12), 0 10px 30px rgba(43, 39, 64, 0.08); }
.hero-form .url-form input { background: transparent; border: none; box-shadow: none; font-size: 16px; padding: 10px 12px; }
.hero-form .url-form input:focus { background: transparent; box-shadow: none; border: none; }
.hero-form .url-form .btn { border-radius: 10px; padding: 12px 24px; }
.hero-form .alert, .hero-form .progress-note { margin-top: 12px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-bg); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-5' fill='none' stroke='%231f8f80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero-side { display: flex; justify-content: center; }
.preview-card { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 18px 50px rgba(43, 39, 64, 0.12); transform: rotate(-1.2deg); }
.preview-card .pc-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--latin); font-weight: 600; margin-bottom: 14px; }
.preview-card .pc-score { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.preview-card .score-ring { width: 96px; height: 96px; }
.preview-card .score-ring::after { inset: 9px; }
.preview-card .score-ring .val { font-size: 28px; }
.preview-card .score-ring .val small { font-size: 10px; margin-top: 2px; }
.preview-card .pc-grade { display: flex; align-items: center; gap: 10px; }
.preview-card .grade { font-size: 22px; padding: 0 10px; }
.preview-card .pc-counts { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; }
.preview-card .pc-counts b { font-family: var(--latin); font-size: 14px; }
.preview-card .pc-rows { margin-top: 14px; display: grid; gap: 8px; }
.preview-card .pc-row { display: grid; grid-template-columns: 1fr 52px; gap: 8px; align-items: center; font-size: 12px; color: var(--heading); }
.preview-card .pc-row .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 3px; }
.preview-card .pc-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--purple)); }
.preview-card .pc-row .n { font-family: var(--latin); font-size: 12px; color: var(--muted); text-align: right; }
.preview-card .pc-foot { margin-top: 14px; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding: 22px 0 30px; }
  .hero-side { display: none; }
  .hero h1 br.pc { display: none; }
}
@media (max-width: 560px) {
  .hero-form .url-form { flex-direction: column; padding: 8px; }
  .hero-form .url-form .btn { width: 100%; }
}
/* result area: takes no space until a report is rendered */
.report-sec { padding: 0; }
.report-sec #report:not(.hidden) { padding: 28px 0 56px; }

/* hero variants for generators / analyzers */
.hero-form .url-rows input { background: #fff; border: 1px solid var(--line-strong); }
.hero-form .url-rows input:focus { border-color: var(--purple); }
.hero-form .dropzone { background: #fff; padding: 26px 18px; }
.hero-form .privacy-note { margin-top: 10px; }
.hero-form .file-list { margin-top: 8px; }
.hero-form .hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.preview-card pre { font-size: 11px; line-height: 1.65; padding: 12px 14px; margin: 0; background: var(--bg-tint); border: none; max-height: 200px; overflow: hidden; border-radius: 10px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pc-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pc-table tr:last-child td { border-bottom: none; }
.pc-table td.tok { font-family: var(--mono); color: var(--heading); }
.pc-table td.n { font-family: var(--latin); text-align: right; color: var(--heading); font-weight: 600; white-space: nowrap; }
.pc-table td.bad { color: var(--ng); font-weight: 700; }
.pc-table .pill { font-size: 10px; padding: 1px 7px; }
.pc-policy { display: grid; gap: 8px; }
.pc-policy .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--heading); }
.pc-policy .row .pill { font-size: 10px; }
.pc-outline { list-style: none; font-size: 11.5px; display: grid; gap: 5px; }
.pc-outline li { display: grid; grid-template-columns: 22px 1fr; gap: 4px; color: var(--heading); line-height: 1.45; }
.pc-outline li .lv { font-family: var(--latin); font-size: 10px; color: var(--muted); font-weight: 700; padding-top: 2px; }
.pc-outline li.h3 { padding-left: 10px; color: var(--text); }
.pc-outline li.miss span:last-child { background: var(--warn-bg); border-radius: 4px; padding: 0 5px; }
.pc-outline li.hit span:last-child { background: var(--ok-bg); border-radius: 4px; padding: 0 5px; }
.pc-mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 72px; margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.pc-mini-chart i { flex: 1; background: var(--purple); border-radius: 3px 3px 0 0; display: block; opacity: 0.9; }
.pc-mini-chart i.hot { background: var(--purple-deep); }
.pc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pc-tiles div { background: var(--bg-tint); border-radius: 8px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.pc-tiles b { display: block; font-family: var(--latin); font-size: 18px; color: var(--heading); line-height: 1.2; }
/* headline phrases wrap as units on narrow screens (no mid-word breaks) */
.hero h1 .nw { white-space: nowrap; }
@media (max-width: 560px) { .hero h1 { font-size: 24px; letter-spacing: 0.01em; } }

/* ================= shared fragments: header link, tools grid, footer columns ================= */
.nav-pulse { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--heading); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.nav-pulse:hover { border-color: var(--purple); box-shadow: 0 6px 18px rgba(83, 43, 118, 0.14); transform: translateY(-1px); }
.nav-links .nav-pulse::after { display: none; }
.np-mark { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--teal)); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(194, 126, 254, 0.18); }
.nav-pulse .np-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-pulse .np-text b { font-family: var(--latin); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.nav-pulse .np-text small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.nav-pulse .ar { font-family: var(--latin); color: var(--purple); transition: transform 0.25s; }
.nav-pulse:hover .ar { transform: translateX(3px); }
@media (max-width: 720px) {
  .nav-links a.nav-pulse { display: inline-flex; padding: 6px 10px 6px 8px; }
  .nav-pulse .np-text small { display: none; }
}

.tools-sec { background: var(--bg-gray); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; color: inherit; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.tcard:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); border-color: var(--purple-soft); }
.tcard .tc-top { display: flex; justify-content: space-between; align-items: center; }
.tcard .tc-abbr { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--violet)); color: #fff; font-family: var(--latin); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.tcard .tc-cat { font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; }
.tcard b { font-size: 15px; color: var(--heading); line-height: 1.45; }
.tcard p { font-size: 13px; color: var(--text); line-height: 1.7; flex: 1; }
.tcard .tc-go { font-size: 13px; font-weight: 700; color: var(--purple); }
.tcard .tc-go .ar { display: inline-block; font-family: var(--latin); transition: transform 0.25s; }
.tcard:hover .tc-go .ar { transform: translateX(4px); }

.pulse-band { margin-top: 22px; background: linear-gradient(118deg, #532b76 0%, #6d3f8e 34%, #8a5ca8 62%, #7fa8bc 100%); border-radius: 18px; padding: 30px 36px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pulse-band .pb-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--latin); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-bottom: 8px; }
.pulse-band .pb-label .np-mark { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.pulse-band h3 { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 6px; line-height: 1.5; }
.pulse-band p { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); max-width: 640px; line-height: 1.8; }
.pulse-band .btn-white { background: #fff; color: var(--purple-deep); }
.pulse-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 10, 40, 0.28); }
@media (max-width: 720px) { .pulse-band { padding: 24px 20px; } .pulse-band .btn { width: 100%; } }

.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 38px; }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); margin-bottom: 12px; text-transform: uppercase; font-family: var(--latin); }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a { color: rgba(255, 255, 255, 0.78); font-size: 13px; transition: color 0.25s; }
.foot-col a:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }

/* footer: brand column + link columns (fixes oversized logo) */
.foot-grid .foot-brand img { height: 22px; width: auto; }
.foot-grid .foot-brand p { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.9; max-width: 300px; }
.foot-grid { align-items: start; gap: 40px; }
.foot-col h4 { margin-bottom: 14px; }
.foot-col ul { gap: 9px; }
.foot-col a { line-height: 1.5; }

/* header: tool index link + Pulse pill */
.nav-links .nav-index { font-size: 13.5px; font-weight: 600; color: var(--heading); padding: 6px 2px; }
.nav-links .nav-index::after { bottom: 2px; }
@media (max-width: 720px) {
  .nav-links a.nav-index { display: inline-flex; font-size: 12.5px; }
  .nav { gap: 10px; }
}
/* header on narrow screens: shorter labels so logo + index link + Pulse pill fit in 375px */
.nav .short { display: none; }
@media (max-width: 480px) {
  .nav .full { display: none; }
  .nav .short { display: inline; }
  .nav-logo img { height: 20px; }
  .nav-links { gap: 10px; }
  .nav-links .nav-index { font-size: 12.5px; }
  .nav-pulse { padding: 6px 9px 6px 8px; gap: 7px; }
  .nav-pulse .np-text b { font-size: 12.5px; }
}

/* tool card: plan + category tags */
.tcard .tc-tags { display: inline-flex; gap: 6px; align-items: center; }
.tcard .tc-plan { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.tcard .tc-plan.is-free { background: var(--ok-bg); color: var(--ok); }
.tcard .tc-plan.is-freemium { background: #f3ebfb; color: var(--purple-deep); }
.tcard .tc-plan.is-paid { background: var(--purple-deep); color: #fff; }

/* Ad slot (one manual AdSense unit below the tools grid; rendered only when tools.json adsense is set).
   The reserved height keeps the footer from jumping when the ad loads (CLS). */
.ad-sec { background: var(--bg-gray); padding: 0 0 56px; }
.ad-sec .ad-label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.ad-sec .ad-unit { display: block; min-height: 280px; }
@media (max-width: 640px) { .ad-sec { padding-bottom: 40px; } .ad-sec .ad-unit { min-height: 250px; } }
