:root {
  color-scheme: light;
  --gx-bg: #f5f6f7;
  --gx-surface: rgba(255, 255, 255, 0.82);
  --gx-surface-solid: #ffffff;
  --gx-text: #17191b;
  --gx-secondary: #5d6369;
  --gx-border: #d9dde1;
  --gx-border-strong: #bfc5ca;
  --gx-accent: #e33232;
  --gx-accent-soft: rgba(227, 50, 50, 0.1);
  --gx-success: #00b894;
  --gx-warning: #e17055;
  --gx-danger: #d63031;
  --gx-info: #0984e3;
  --gx-highlight-purple: #6c5ce7;
  --gx-highlight-purple-soft: rgba(108, 92, 231, 0.08);
  --gx-success-soft: rgba(0, 184, 148, 0.10);
  --gx-warning-soft: rgba(225, 112, 85, 0.11);
  --gx-danger-soft: rgba(214, 48, 49, 0.10);
  --gx-info-soft: rgba(9, 132, 227, 0.10);
  --gx-grid: rgba(32, 38, 44, 0.055);
  --gx-shadow: 0 22px 60px rgba(20, 24, 28, 0.08);
  --gx-radius: 18px;
  --gx-header-height: 76px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --gx-bg: #202428;
  --gx-surface: rgba(39, 44, 49, 0.86);
  --gx-surface-solid: #292e33;
  --gx-text: #f4f6f7;
  --gx-secondary: #c0c6cb;
  --gx-border: #41484e;
  --gx-border-strong: #596168;
  --gx-accent: #ff6767;
  --gx-accent-soft: rgba(255, 103, 103, 0.12);
  --gx-success: #55efc4;
  --gx-warning: #fdcb6e;
  --gx-danger: #ff7675;
  --gx-info: #74b9ff;
  --gx-highlight-purple: #a29bfe;
  --gx-highlight-purple-soft: rgba(162, 155, 254, 0.12);
  --gx-success-soft: rgba(85, 239, 196, 0.13);
  --gx-warning-soft: rgba(253, 203, 110, 0.13);
  --gx-danger-soft: rgba(255, 118, 117, 0.13);
  --gx-info-soft: rgba(116, 185, 255, 0.13);
  --gx-grid: rgba(255, 255, 255, 0.045);
  --gx-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--gx-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--gx-grid) 1px, transparent 1px),
    var(--gx-bg);
  background-size: 42px 42px;
  color: var(--gx-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.tools-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--gx-header-height);
  border-bottom: 1px solid var(--gx-border);
  background: transparent;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.tools-header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: var(--gx-header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tools-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.tools-brand strong { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.tools-brand span { color: var(--gx-secondary); font-size: 14px; font-weight: 500; }
.tools-nav { display: flex; align-items: center; gap: 8px; }
.tools-nav a, .theme-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--gx-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.tools-nav a:hover, .theme-button:hover { border-color: var(--gx-border); color: var(--gx-text); background: var(--gx-surface); }
.theme-button { width: 42px; padding: 0; }

.tools-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 84px 0 96px; }
.tools-hero { max-width: 920px; padding: 20px 0 72px; }
.tools-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gx-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tools-kicker::before { content: ""; width: 24px; height: 2px; background: var(--gx-accent); }
.tools-hero h1 {
  max-width: 940px;
  margin: 22px 0 20px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 600;
}
.tools-hero p { max-width: 760px; margin: 0; color: var(--gx-secondary); font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.gx-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--gx-border-strong);
  border-radius: 999px;
  background: var(--gx-surface-solid);
  color: var(--gx-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.gx-button:hover { transform: translateY(-1px); border-color: var(--gx-text); }
.gx-button-primary { border-color: var(--gx-text); background: var(--gx-text); color: var(--gx-bg); }
.gx-button-primary:hover { background: var(--gx-accent); border-color: var(--gx-accent); color: #fff; }
.gx-button[disabled] { cursor: wait; opacity: 0.68; transform: none; }

.tools-list { border-top: 1px solid var(--gx-border); }
.tool-entry {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--gx-border);
  text-decoration: none;
}
.tool-entry-number { color: var(--gx-accent); font-size: 15px; font-weight: 600; }
.tool-entry h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; }
.tool-entry p { margin: 0; max-width: 720px; color: var(--gx-secondary); }
.tool-entry-arrow { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--gx-border); border-radius: 50%; font-size: 24px; transition: transform 160ms ease, background 160ms ease; }
.tool-entry:hover .tool-entry-arrow { transform: translateX(4px); background: var(--gx-text); color: var(--gx-bg); }

.checker-shell { display: grid; gap: 42px; }
.checker-intro { max-width: 920px; }
.checker-intro h1 { margin: 18px 0; font-size: clamp(42px, 7vw, 80px); line-height: 0.96; letter-spacing: -0.06em; font-weight: 600; }
.checker-intro p { max-width: 760px; margin: 0; color: var(--gx-secondary); font-size: 19px; }
.checker-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--gx-border-strong);
  border-radius: 999px;
  background: var(--gx-surface);
  box-shadow: var(--gx-shadow);
}
.checker-form input {
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gx-text);
  font-size: 16px;
  font-weight: 400;
}
.checker-form input::placeholder { color: var(--gx-secondary); }
.checker-form .gx-button { min-height: 52px; }
.checker-privacy { margin: 12px 18px 0; color: var(--gx-secondary); font-size: 14px; }

.analysis-status {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gx-secondary);
}
.analysis-spinner { width: 24px; height: 24px; border: 2px solid var(--gx-border); border-top-color: var(--gx-accent); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.report { display: grid; gap: 48px; }
.report-tabs {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--gx-border);
  border-radius: 18px;
  background: var(--gx-surface);
}
.report-tab {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--gx-secondary);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.report-tab strong { color: inherit; font-size: 16px; font-weight: 600; }
.report-tab[aria-selected="true"] {
  border-color: var(--gx-border-strong);
  background: var(--gx-surface-solid);
  color: var(--gx-text);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.report-tab:focus-visible { outline: 2px solid var(--gx-accent); outline-offset: 2px; }
.report-tab-panel { display: grid; gap: 48px; }
.report-tab-panel[hidden] { display: none !important; }
.score-panel-wide { width: 100%; }
.report-summary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
}
.score-panel {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  background: var(--gx-surface);
}
.score-panel::after { content: ""; position: absolute; inset: auto -42px -82px auto; width: 180px; height: 180px; border: 1px solid var(--gx-border); border-radius: 50%; }
.score-label { color: var(--gx-secondary); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.score-value { margin-top: 12px; font-size: clamp(68px, 10vw, 112px); line-height: .9; letter-spacing: -.07em; font-weight: 600; }
.score-value small { font-size: 20px; letter-spacing: 0; color: var(--gx-secondary); }
.score-note { max-width: 430px; margin: 18px 0 0; color: var(--gx-secondary); }

.report-section { border-top: 1px solid var(--gx-border); padding-top: 28px; }
.category-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 26px 44px;
}
.category-score-card { min-width: 0; }
.category-score-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.category-score-head span { font-size: 18px; font-weight: 500; }
.category-score-head strong { font-size: 22px; line-height: 1; font-weight: 600; white-space: nowrap; }
.category-score-track { height: 12px; overflow: hidden; border-radius: 999px; background: var(--gx-border); }
.category-score-fill { display: block; height: 100%; border-radius: inherit; background: var(--gx-success); transition: width 500ms ease; }
.category-score-card[data-level="warning"] .category-score-fill { background: var(--gx-warning); }
.category-score-card[data-level="danger"] .category-score-fill { background: var(--gx-danger); }
.category-score-card[data-level="good"] .category-score-head strong { color: var(--gx-success); }
.category-score-card[data-level="warning"] .category-score-head strong { color: var(--gx-warning); }
.category-score-card[data-level="danger"] .category-score-head strong { color: var(--gx-danger); }
.category-score-meta { margin: 8px 0 0; color: var(--gx-secondary); font-size: 14px; }
.check-groups { display: grid; gap: 38px; }
.check-group { min-width: 0; }
.check-group + .check-group { padding-top: 30px; border-top: 1px solid var(--gx-border); }
.check-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.check-group-head h3 { margin: 0; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.check-group-head p { max-width: 720px; margin: 6px 0 0; color: var(--gx-secondary); }
.check-group-score { flex: 0 0 auto; min-width: 72px; padding: 7px 11px; border: 1px solid currentColor; border-radius: 999px; color: var(--gx-success); text-align: center; font-size: 15px; font-weight: 600; }
.check-group[data-level="warning"] .check-group-score { color: var(--gx-warning); }
.check-group[data-level="danger"] .check-group-score { color: var(--gx-danger); }
.report-section-head { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
.report-section-head span { color: var(--gx-accent); font-size: 14px; font-weight: 600; }
.report-section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; }
.report-section-head p { margin: 7px 0 0; color: var(--gx-secondary); }
.check-list { display: grid; }
.check-row {
  display: grid;
  grid-template-columns: 34px minmax(190px, .55fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--gx-border);
}
.check-status { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 14px; font-weight: 600; }
.check-row[data-status="pass"] .check-status { color: var(--gx-success); }
.check-row[data-status="warning"] .check-status { color: var(--gx-warning); }
.check-row[data-status="fail"] .check-status { color: var(--gx-danger); }
.check-row[data-status="info"] .check-status { color: var(--gx-info); }
.check-row[data-status="warning"] { padding-left: 14px; padding-right: 14px; border-radius: 12px; background: var(--gx-warning-soft); box-shadow: inset 3px 0 0 var(--gx-warning); }
.check-row[data-status="fail"] { padding-left: 14px; padding-right: 14px; border-radius: 12px; background: var(--gx-danger-soft); box-shadow: inset 3px 0 0 var(--gx-danger); }
.check-row[data-status="info"] { padding-left: 14px; padding-right: 14px; border-radius: 12px; background: var(--gx-info-soft); box-shadow: inset 3px 0 0 var(--gx-info); }
.check-label { font-weight: 500; }
.check-detail { min-width: 0; color: var(--gx-secondary); overflow-wrap: anywhere; }
.check-points { color: var(--gx-secondary); font-size: 14px; white-space: nowrap; }
.check-recommendation { grid-column: 3 / -1; margin-top: -7px; color: var(--gx-text); font-size: 14px; }


.device-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 20px;
}
.device-analysis-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  background: var(--gx-surface);
}
.device-analysis-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.device-analysis-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 600;
}
.device-analysis-head strong {
  color: var(--gx-success);
  font-size: 22px;
  font-weight: 600;
}
.device-analysis-card[data-level="warning"] .device-analysis-head strong { color: var(--gx-warning); }
.device-analysis-card[data-level="danger"] .device-analysis-head strong { color: var(--gx-danger); }
.device-score-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gx-border);
}
.device-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gx-success);
}
.device-analysis-card[data-level="warning"] .device-score-track span { background: var(--gx-warning); }
.device-analysis-card[data-level="danger"] .device-score-track span { background: var(--gx-danger); }
.device-findings {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.device-findings p {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: var(--gx-secondary);
}
.device-findings p > span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gx-info-soft);
  color: var(--gx-info);
  font-size: 14px;
  font-weight: 600;
}
.device-findings p[data-status="pass"] > span:first-child { background: var(--gx-success-soft); color: var(--gx-success); }
.device-findings p[data-status="warning"] > span:first-child { background: var(--gx-warning-soft); color: var(--gx-warning); }
.device-findings p[data-status="fail"] > span:first-child { background: var(--gx-danger-soft); color: var(--gx-danger); }
.device-analysis-note {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--gx-info);
  color: var(--gx-secondary);
}
.device-differences {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.device-differences p {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--gx-highlight-purple);
  background: var(--gx-highlight-purple-soft);
  color: var(--gx-text);
}

.raw-list { display: grid; }
.raw-row { display: grid; grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr); gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--gx-border); }
.raw-row dt { color: var(--gx-secondary); font-size: 14px; font-weight: 500; }
.raw-row dd { margin: 0; overflow-wrap: anywhere; }
.report-notice { padding-left: 18px; border-left: 3px solid var(--gx-accent); color: var(--gx-secondary); }
.error-box { padding: 20px 0 20px 18px; border-left: 3px solid var(--gx-danger); }
.error-box strong { display: block; margin-bottom: 4px; }
.error-box p { margin: 0; color: var(--gx-secondary); }

.tools-footer { border-top: 1px solid var(--gx-border); }
.tools-footer-inner { width: min(1180px, calc(100% - 40px)); min-height: 110px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--gx-secondary); font-size: 14px; }
.tools-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.tools-footer a { text-decoration: none; }
.tools-footer a:hover { color: var(--gx-text); }

@media (max-width: 760px) {
  :root { --gx-header-height: 68px; }
  .tools-header-inner, .tools-main, .tools-footer-inner { width: min(100% - 28px, 1180px); }
  .tools-brand span, .tools-nav .optional-link { display: none; }
  .tools-nav { gap: 2px; }
  .tools-main { padding-top: 48px; padding-bottom: 70px; }
  .tools-hero { padding-bottom: 50px; }
  .tools-hero h1, .checker-intro h1 { font-size: clamp(42px, 14vw, 68px); }
  .tool-entry { grid-template-columns: 48px minmax(0, 1fr) 42px; gap: 12px; padding: 26px 0; }
  .tool-entry-arrow { width: 40px; height: 40px; }
  .checker-form { grid-template-columns: 1fr; border-radius: 20px; }
  .checker-form .gx-button { width: 100%; }
  .report-summary { grid-template-columns: 1fr; }
  .category-score-grid { grid-template-columns: 1fr; gap: 22px; }
  .device-analysis-grid { grid-template-columns: 1fr; }
  .device-analysis-card { padding: 20px; }
  .category-score-head span { font-size: 16px; }
  .category-score-head strong { font-size: 19px; }
  .check-group-head { gap: 14px; }
  .check-group-score { min-width: 66px; padding: 6px 9px; font-size: 14px; }
  .report-tabs { gap: 5px; padding: 5px; border-radius: 16px; }
  .report-tab { min-height: 58px; padding: 0 14px; }
  .report-tab strong { font-size: 14px; }
  .score-panel { min-height: 200px; }
  .report-section-head { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .check-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .check-label { grid-column: 2; }
  .check-detail { grid-column: 2 / -1; }
  .check-points { grid-column: 3; grid-row: 1; }
  .check-recommendation { grid-column: 2 / -1; margin-top: 0; }
  .raw-row { grid-template-columns: 1fr; gap: 4px; }
  .tools-footer-inner { min-height: 140px; flex-direction: column; justify-content: center; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


.resource-block { margin-top: 34px; }
.resource-block + .resource-block { padding-top: 34px; border-top: 1px solid var(--gx-border); }
.resource-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.resource-block-head h3 { margin: 0; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.15; font-weight: 600; }
.resource-block-head span { color: var(--gx-secondary); font-size: 14px; font-weight: 500; }
.resource-list { display: grid; }
.resource-row { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--gx-border); }
.image-resource-row { grid-template-columns: 128px minmax(0, 1fr); align-items: stretch; }
.resource-preview { position: relative; min-height: 94px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--gx-border); border-radius: 14px; background: var(--gx-surface); color: var(--gx-secondary); font-size: 14px; font-weight: 600; }
.resource-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--gx-surface-solid); }
.resource-preview.is-loaded > span { opacity: 0; }
.resource-file-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--gx-border); border-radius: 14px; background: var(--gx-surface); color: var(--gx-info); font-size: 14px; font-weight: 600; }
.resource-row[data-level="warning"] .resource-file-mark, .resource-row[data-level="warning"] .resource-preview { border-color: var(--gx-warning); }
.resource-row[data-level="danger"] .resource-file-mark, .resource-row[data-level="danger"] .resource-preview { border-color: var(--gx-danger); }
.resource-body { min-width: 0; }
.resource-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.resource-topline > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.resource-badge { flex: 0 0 auto; padding: 4px 9px; border: 1px solid currentColor; border-radius: 999px; color: var(--gx-success); font-size: 14px; font-weight: 500; }
.resource-row[data-level="warning"] .resource-badge { color: var(--gx-warning); }
.resource-row[data-level="danger"] .resource-badge { color: var(--gx-danger); }
.resource-row[data-level="neutral"] .resource-badge { color: var(--gx-secondary); }
.resource-url { display: block; margin-top: 5px; overflow: hidden; color: var(--gx-secondary); text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.resource-meta-item { display: inline-flex; gap: 6px; color: var(--gx-secondary); font-size: 14px; }
.resource-meta-item strong { color: var(--gx-text); font-weight: 500; }
.resource-empty { margin: 0; padding: 18px 0; color: var(--gx-secondary); border-bottom: 1px solid var(--gx-border); }

@media (max-width: 760px) {
  .resource-block { margin-top: 28px; }
  .resource-block + .resource-block { padding-top: 28px; }
  .resource-row, .image-resource-row { grid-template-columns: 1fr; gap: 12px; align-items: start; padding: 16px 0; }
  .resource-preview { width: 100%; min-height: 170px; }
  .resource-file-mark { width: 52px; height: 52px; }
  .resource-topline { align-items: flex-start; }
  .resource-topline > strong { white-space: normal; overflow-wrap: anywhere; }
  .resource-url { white-space: normal; overflow-wrap: anywhere; }
  .resource-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .resource-meta-item { display: grid; gap: 0; }
}

.domain-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.domain-score-value { font-size: clamp(48px, 8vw, 84px); line-height: .95; }
.domain-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.domain-record-card { min-width: 0; padding: 22px; border: 1px solid var(--gx-border); border-radius: var(--gx-radius); background: var(--gx-surface); }
.domain-record-card[data-level="warning"] { border-color: var(--gx-warning); }
.domain-record-card[data-level="good"] { border-color: var(--gx-border-strong); }
.domain-record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.domain-record-head h3 { margin: 0; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.domain-record-head span { color: var(--gx-secondary); font-size: 14px; font-weight: 500; }
.domain-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.domain-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 999px; background: var(--gx-info-soft); color: var(--gx-text); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.domain-empty-text, .domain-record-note { margin: 0; color: var(--gx-secondary); }
.domain-record-note { margin-top: 12px; font-size: 14px; }
@media (max-width: 760px) { .domain-summary-grid, .domain-records { grid-template-columns: 1fr; } .domain-score-value { font-size: clamp(42px, 13vw, 72px); } .domain-record-card { padding: 18px; } }

.check-group[data-level="neutral"] .check-group-score { color: var(--gx-secondary); }

/* GX Email Checker */
.email-checker-wrap { display: grid; gap: 14px; }
.email-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.email-score-value {
  max-width: 100%;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .98;
  overflow-wrap: anywhere;
}
.email-score-panel[data-level="good"] .email-score-value { color: var(--gx-success); }
.email-score-panel[data-level="warning"] .email-score-value { color: var(--gx-warning); }
.email-score-panel[data-level="danger"] .email-score-value { color: var(--gx-danger); }
.email-score-panel[data-level="neutral"] .email-score-value { color: var(--gx-secondary); }

@media (max-width: 760px) {
  .email-summary-grid { grid-template-columns: 1fr; }
  .email-score-value { font-size: clamp(38px, 13vw, 66px); }
}


/* Limitation des outils publics ------------------------------------------------ */
body.gx-cooldown-open { overflow: hidden; }
.gx-cooldown-overlay {
  position: fixed;
  z-index: 4000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 246, 247, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}
html[data-theme="dark"] .gx-cooldown-overlay { background: rgba(20, 23, 26, 0.82); }
.gx-cooldown-card {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(30px, 7vw, 54px);
  border: 1px solid var(--gx-border-strong);
  border-radius: 28px;
  background: var(--gx-surface-solid);
  box-shadow: 0 32px 100px rgba(20, 24, 28, 0.18);
  text-align: center;
}
html[data-theme="dark"] .gx-cooldown-card { box-shadow: 0 34px 100px rgba(0, 0, 0, 0.46); }
.gx-cooldown-spinner {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border: 3px solid var(--gx-border);
  border-top-color: var(--gx-accent);
  border-radius: 50%;
  animation: gx-cooldown-spin 850ms linear infinite;
}
.gx-cooldown-kicker {
  margin: 0;
  color: var(--gx-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.gx-cooldown-card h2 {
  margin: 0;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.gx-cooldown-label {
  margin: 4px 0 0;
  color: var(--gx-secondary);
  font-size: 17px;
}
.gx-cooldown-countdown {
  display: block;
  margin: 4px 0;
  color: var(--gx-text);
  font-variant-numeric: tabular-nums;
  font-size: clamp(54px, 13vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
}
.gx-cooldown-note {
  max-width: 390px;
  margin: 2px 0 0;
  color: var(--gx-secondary);
  font-size: 14px;
}
@keyframes gx-cooldown-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .gx-cooldown-overlay { padding: 14px; }
  .gx-cooldown-card { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-cooldown-spinner { animation-duration: 1800ms; }
}

/* GX Favicon Maker & Checker -------------------------------------------------- */
.maker-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}
.maker-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  background: var(--gx-surface);
  box-shadow: var(--gx-shadow);
}
.maker-drop-card { display: grid; align-content: start; }
.favicon-dropzone {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1.5px dashed var(--gx-border-strong);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0)), var(--gx-surface-solid);
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.favicon-dropzone:hover,
.favicon-dropzone:focus-visible,
.favicon-dropzone.is-dragover {
  border-color: var(--gx-accent);
  background: var(--gx-accent-soft);
  transform: translateY(-1px);
  outline: none;
}
.favicon-dropzone-inner { display: grid; justify-items: center; gap: 12px; }
.favicon-dropzone strong { font-size: 28px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; }
.favicon-dropzone p { max-width: 320px; margin: 0; color: var(--gx-secondary); }
.maker-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.maker-preview-head h2 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.maker-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.favicon-preview-stage {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.favicon-preview-large {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--gx-border);
  border-radius: 24px;
  background: var(--gx-surface-solid);
}
.favicon-preview-large span { color: var(--gx-secondary); font-weight: 500; }
.favicon-preview-large img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.favicon-preview-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.favicon-size-chip {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 110px;
  padding: 16px 12px;
  border: 1px solid var(--gx-border);
  border-radius: 18px;
  background: var(--gx-surface-solid);
}
.favicon-size-chip canvas {
  border: 1px solid var(--gx-border);
  border-radius: 12px;
  background: linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%), linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%), var(--gx-surface);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.favicon-size-chip span { color: var(--gx-secondary); font-size: 14px; font-weight: 500; }
.maker-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.maker-score-value { font-size: clamp(40px, 6vw, 70px); }
.code-block {
  margin: 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--gx-border);
  border-radius: 18px;
  background: var(--gx-surface-solid);
  color: var(--gx-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 920px) {
  .maker-grid { grid-template-columns: 1fr; }
  .favicon-preview-stage { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .maker-card { padding: 18px; }
  .maker-preview-head { flex-direction: column; }
  .maker-actions { width: 100%; }
  .maker-actions .gx-button { width: 100%; }
  .favicon-dropzone { min-height: 240px; padding: 20px; }
  .favicon-dropzone strong { font-size: 24px; }
  .favicon-preview-large { min-height: 180px; }
  .favicon-preview-sizes, .maker-summary-grid { grid-template-columns: 1fr; }
}

/* GX Favicon Maker — éditeur de recadrage --------------------------- */
.favicon-guidelines { margin-bottom: 22px; }
.favicon-guidelines h2 {
  margin: 12px 0 18px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.favicon-guideline-list { display: grid; gap: 12px; }
.favicon-guideline-list > div {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-left: 3px solid var(--gx-border-strong);
  background: var(--gx-surface-solid);
}
.favicon-guideline-list strong { font-size: 15px; font-weight: 600; }
.favicon-guideline-list span { color: var(--gx-secondary); font-size: 14px; line-height: 1.45; }
.favicon-source-info {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--gx-border);
  border-radius: 16px;
  background: var(--gx-surface-solid);
}
.favicon-source-info > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.favicon-source-info span { color: var(--gx-secondary); font-size: 14px; }
.favicon-source-info strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.favicon-source-info p { margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--gx-border); color: var(--gx-secondary); font-size: 14px; }
.favicon-source-info[data-level="good"] p { color: var(--gx-success); }
.favicon-source-info[data-level="warning"] p { color: var(--gx-warning); }
.maker-preview-head > div:first-child { max-width: 610px; }
.maker-preview-head > div:first-child > p { margin: 10px 0 0; color: var(--gx-secondary); }
.favicon-editor-layout { display: grid; gap: 20px; }
.favicon-crop-shell {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1;
  overflow: hidden;
  justify-self: center;
  border: 1px solid var(--gx-border-strong);
  border-radius: 24px;
  background:
    linear-gradient(45deg, rgba(20, 24, 28, 0.055) 25%, transparent 25%, transparent 75%, rgba(20, 24, 28, 0.055) 75%),
    linear-gradient(45deg, rgba(20, 24, 28, 0.055) 25%, transparent 25%, transparent 75%, rgba(20, 24, 28, 0.055) 75%),
    var(--gx-surface-solid);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
html[data-theme="dark"] .favicon-crop-shell {
  background:
    linear-gradient(45deg, rgba(255,255,255,0.055) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.055) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.055) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.055) 75%),
    var(--gx-surface-solid);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}
.favicon-crop-shell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.favicon-crop-shell canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--gx-accent); }
.favicon-crop-shell.is-dragging canvas { cursor: grabbing; }
.favicon-crop-shell[data-empty="true"] canvas { cursor: default; }
.favicon-crop-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 28px;
  color: var(--gx-secondary);
  text-align: center;
  pointer-events: none;
}
.favicon-crop-placeholder strong { color: var(--gx-text); font-size: 24px; font-weight: 600; }
.favicon-crop-placeholder span { font-size: 14px; }
.favicon-crop-help {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: rgba(20,24,28,0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.favicon-editor-controls {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--gx-border);
  border-radius: 18px;
  background: var(--gx-surface-solid);
}
.favicon-zoom-control { display: grid; gap: 10px; }
.favicon-control-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.favicon-control-label label { font-weight: 600; }
.favicon-control-label output { color: var(--gx-accent); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }
.favicon-zoom-control input[type="range"] { width: 100%; accent-color: var(--gx-accent); cursor: ew-resize; }
.favicon-editor-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.favicon-editor-buttons .gx-button { min-height: 42px; padding: 0 15px; font-size: 14px; }
.favicon-editor-note { margin: 0; color: var(--gx-secondary); font-size: 13px; }
.favicon-preview-block {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--gx-border);
}
.favicon-preview-title { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.favicon-preview-title strong { font-size: 17px; font-weight: 600; }
.favicon-preview-title span { color: var(--gx-secondary); font-size: 14px; }

@media (max-width: 760px) {
  .favicon-crop-shell { border-radius: 18px; }
  .favicon-editor-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .favicon-editor-buttons .gx-button { width: 100%; }
  .favicon-preview-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .favicon-source-info > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .favicon-editor-buttons { grid-template-columns: 1fr; }
}

/* GX Favicon Maker — disposition en sections v1.10.3 ------------------------ */
.maker-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.maker-drop-card,
.maker-preview-card {
  width: 100%;
}
.maker-drop-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.maker-preview-card {
  display: grid;
  gap: 0;
}
@media (min-width: 900px) {
  .favicon-guideline-list {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  }
  .favicon-dropzone {
    min-height: 250px;
  }
  .favicon-editor-controls {
    width: min(100%, 760px);
    justify-self: center;
  }
}

/* GX Image Optimizer & Srcset Generator ------------------------------------- */
.image-optimizer-shell { gap: 34px; }
.image-optimizer-shell code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.optimizer-section {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--gx-border);
}
.optimizer-section-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.optimizer-section-head > span {
  padding-top: 7px;
  color: var(--gx-accent);
  font-size: 14px;
  font-weight: 600;
}
.optimizer-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
}
.optimizer-section-head p { max-width: 780px; margin: 8px 0 0; color: var(--gx-secondary); }
.optimizer-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.optimizer-guides article {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px solid var(--gx-border);
  border-radius: 17px;
  background: var(--gx-surface);
}
.optimizer-guides strong { font-size: 16px; font-weight: 600; }
.optimizer-guides span { color: var(--gx-secondary); font-size: 14px; }
.optimizer-dropzone {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1.5px dashed var(--gx-border-strong);
  border-radius: 24px;
  background: var(--gx-surface);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.optimizer-dropzone:hover,
.optimizer-dropzone:focus-visible,
.optimizer-dropzone.is-dragover {
  border-color: var(--gx-accent);
  background: var(--gx-accent-soft);
  outline: none;
  transform: translateY(-1px);
}
.optimizer-drop-content { display: grid; justify-items: center; gap: 12px; }
.optimizer-drop-content strong { font-size: clamp(26px, 4vw, 38px); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.optimizer-drop-content p { margin: 0; color: var(--gx-secondary); }
.optimizer-source-card {
  display: grid;
  grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  background: var(--gx-surface);
}
.optimizer-source-preview {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--gx-border);
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(0,0,0,.035) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.035) 75%),
    linear-gradient(45deg, rgba(0,0,0,.035) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.035) 75%),
    var(--gx-surface-solid);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}
.optimizer-source-preview img { width: 100%; height: 100%; max-height: 440px; object-fit: contain; }
.optimizer-source-info { min-width: 0; display: grid; align-content: center; justify-items: start; }
.optimizer-source-info h3 { max-width: 100%; margin: 14px 0 18px; overflow-wrap: anywhere; font-size: clamp(26px, 4vw, 42px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.optimizer-source-info dl { width: 100%; margin: 0 0 22px; }
.optimizer-source-info dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--gx-border); }
.optimizer-source-info dt { color: var(--gx-secondary); font-size: 14px; }
.optimizer-source-info dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.optimizer-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
}
.optimizer-control-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  background: var(--gx-surface);
}
.optimizer-control-card legend,
.optimizer-control-card > span:first-child {
  padding: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
}
.optimizer-radio-row,
.optimizer-check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.optimizer-radio-row input,
.optimizer-check-row input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gx-accent); }
.optimizer-radio-row span,
.optimizer-check-row span { display: grid; gap: 3px; }
.optimizer-radio-row strong,
.optimizer-check-row strong { font-weight: 600; }
.optimizer-radio-row small,
.optimizer-check-row small,
.optimizer-field small { color: var(--gx-secondary); font-size: 13px; }
.optimizer-field { min-width: 0; display: grid; gap: 8px; }
.optimizer-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 600; }
.optimizer-field input[type="text"],
.optimizer-field input[type="number"],
.optimizer-field textarea,
.optimizer-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--gx-border-strong);
  border-radius: 12px;
  background: var(--gx-surface-solid);
  color: var(--gx-text);
  font: inherit;
  outline: none;
}
.optimizer-field textarea { resize: vertical; }
.optimizer-field input:focus,
.optimizer-field textarea:focus,
.optimizer-field select:focus { border-color: var(--gx-accent); box-shadow: 0 0 0 3px var(--gx-accent-soft); }
.optimizer-field input:disabled { opacity: .55; cursor: not-allowed; }
.optimizer-field input[type="range"] { width: 100%; accent-color: var(--gx-accent); }
.optimizer-example { margin: 0; padding: 11px 13px; border-radius: 10px; background: var(--gx-info-soft); color: var(--gx-secondary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.optimizer-subsection {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  background: var(--gx-surface);
}
.optimizer-subsection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.optimizer-subsection-head h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.optimizer-subsection-head p { margin: 6px 0 0; color: var(--gx-secondary); }
.optimizer-subsection-head > span { flex: 0 0 auto; padding: 6px 11px; border: 1px solid var(--gx-border-strong); border-radius: 999px; color: var(--gx-secondary); font-size: 13px; font-weight: 600; }
.optimizer-choice-grid { display: grid; gap: 10px; }
.optimizer-width-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.optimizer-choice-grid label,
.optimizer-format-grid label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.optimizer-choice-grid input,
.optimizer-format-grid input { position: absolute; opacity: 0; pointer-events: none; }
.optimizer-choice-grid label > span {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--gx-border);
  border-radius: 13px;
  background: var(--gx-surface-solid);
  color: var(--gx-secondary);
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.optimizer-choice-grid input:checked + span { border-color: var(--gx-text); background: var(--gx-text); color: var(--gx-bg); }
.optimizer-choice-grid label.is-unavailable { cursor: not-allowed; }
.optimizer-choice-grid label.is-unavailable > span,
.optimizer-choice-grid input:disabled + span {
  border-style: dashed;
  background: color-mix(in srgb, var(--gx-surface-solid) 75%, var(--gx-border));
  color: var(--gx-secondary);
  opacity: .42;
}
.optimizer-choice-grid input:focus-visible + span,
.optimizer-format-grid input:focus-visible + span { outline: 2px solid var(--gx-accent); outline-offset: 2px; }
.optimizer-inline-control { display: grid; grid-template-columns: minmax(180px, 320px) auto; gap: 10px; align-items: end; }
.optimizer-custom-widths { display: flex; flex-wrap: wrap; gap: 8px; }
.optimizer-width-pill { min-height: 36px; padding: 5px 11px; border: 1px solid var(--gx-border-strong); border-radius: 999px; background: var(--gx-surface-solid); color: var(--gx-text); font: inherit; font-size: 14px; cursor: pointer; }
.optimizer-width-pill:hover { border-color: var(--gx-danger); color: var(--gx-danger); }
.optimizer-format-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.optimizer-format-grid label > span {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--gx-border);
  border-radius: 16px;
  background: var(--gx-surface-solid);
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}
.optimizer-format-grid label strong { font-size: 22px; font-weight: 600; }
.optimizer-format-grid label small { color: var(--gx-secondary); font-size: 13px; }
.optimizer-format-grid input:checked + span { border-color: var(--gx-text); background: var(--gx-text); color: var(--gx-bg); }
.optimizer-format-grid input:checked + span small { color: color-mix(in srgb, var(--gx-bg) 75%, transparent); }
.optimizer-format-grid label.is-disabled { cursor: not-allowed; }
.optimizer-format-grid label.is-disabled > span { opacity: .45; }
.optimizer-format-warning { margin: 0; padding: 12px 14px; border-left: 3px solid var(--gx-warning); background: var(--gx-warning-soft); color: var(--gx-secondary); }
.optimizer-generation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  background: var(--gx-border);
}
.optimizer-generation-summary > div { min-width: 0; display: grid; gap: 5px; padding: 18px; background: var(--gx-surface); }
.optimizer-generation-summary span { color: var(--gx-secondary); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.optimizer-generation-summary strong { overflow-wrap: anywhere; font-weight: 600; }
.optimizer-summary-note { grid-column: 1 / -1; margin: 0; padding: 13px 18px; background: var(--gx-warning-soft); color: var(--gx-secondary); }
.optimizer-main-button { width: 100%; min-height: 60px; font-size: 17px; }
.optimizer-progress { height: 10px; overflow: hidden; border-radius: 999px; background: var(--gx-border); }
.optimizer-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gx-accent); transition: width 180ms ease; }
.optimizer-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.optimizer-score-value { max-width: 100%; font-size: clamp(38px, 6vw, 72px); overflow-wrap: anywhere; }
.optimizer-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.optimizer-output-preview { min-height: 280px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--gx-border); border-radius: var(--gx-radius); background: var(--gx-surface); }
.optimizer-output-preview img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: contain; }

@media (max-width: 980px) {
  .optimizer-width-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .optimizer-format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .optimizer-generation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .optimizer-section-head { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .optimizer-guides,
  .optimizer-settings-grid,
  .optimizer-summary-grid { grid-template-columns: 1fr; }
  .optimizer-source-card { grid-template-columns: 1fr; padding: 18px; }
  .optimizer-source-preview { min-height: 200px; }
  .optimizer-control-card,
  .optimizer-subsection { padding: 18px; }
  .optimizer-subsection-head { display: grid; }
  .optimizer-subsection-head > span { justify-self: start; }
  .optimizer-width-grid,
  .optimizer-format-grid,
  .optimizer-generation-summary { grid-template-columns: 1fr 1fr; }
  .optimizer-inline-control { grid-template-columns: 1fr; }
  .optimizer-inline-control .gx-button { width: 100%; }
  .optimizer-result-actions { display: grid; }
  .optimizer-result-actions .gx-button { width: 100%; }
}

@media (max-width: 460px) {
  .optimizer-width-grid,
  .optimizer-format-grid,
  .optimizer-generation-summary { grid-template-columns: 1fr; }
}

/* Headers visuels des outils ------------------------------------------------- */
.has-tools-media-hero { padding-top: 48px; }
.tools-media-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 94px);
}
.tools-media-hero-visual {
  position: relative;
  overflow: visible;
  width: 100%;
  aspect-ratio: 1672 / 941;
  margin: 0;
  border: 0;
  border-radius: clamp(20px, 3vw, 32px);
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}
.tools-media-hero-visual::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.tools-media-hero-frame {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  display: block;
  border: 1px solid var(--gx-border);
  border-radius: inherit;
  background: #fff;
  box-shadow: var(--gx-shadow);
}
.tools-media-hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1vw, 14px);
  box-sizing: border-box;
  display: block;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  will-change: transform;
}
.tools-media-hero-ghost {
  position: absolute;
  z-index: 1;
  inset: 5% -5% -5% 5%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid color-mix(in srgb, var(--gx-accent) 38%, var(--gx-border));
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20, 24, 28, .08);
  opacity: .20;
  filter: grayscale(.85) saturate(.35) contrast(.84);
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}
.tools-media-hero-copy {
  min-width: 0;
  max-width: none;
}
.tools-media-hero-copy h1 {
  max-width: 980px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 600;
}
.tools-media-hero-home .tools-media-hero-copy h1 {
  font-size: clamp(46px, 7vw, 92px);
}
.tools-media-hero-copy > p {
  max-width: 780px;
  margin: 0;
  color: var(--gx-secondary);
  font-size: clamp(18px, 2vw, 22px);
}
.tools-media-hero-copy code {
  padding: .08em .28em;
  border: 1px solid var(--gx-border);
  border-radius: 6px;
  background: var(--gx-surface);
  font-size: .88em;
}

html[data-theme="dark"] .tools-media-hero-frame {
  border-color: #4b5259;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}
html[data-theme="dark"] .tools-media-hero-ghost {
  opacity: .15;
  box-shadow: 0 28px 74px rgba(0, 0, 0, .28);
}

.gx-tools-motion-ready .tools-media-hero-visual,
.gx-tools-motion-ready .tools-media-hero-copy,
.gx-tools-motion-ready .tool-entry,
.gx-tools-motion-ready .optimizer-section,
.gx-tools-motion-ready .report-section {
  transform: translateZ(0);
}

@media (max-width: 900px) {
  .tools-media-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .has-tools-media-hero { padding-top: 28px; }
  .tools-media-hero { gap: 28px; margin-bottom: 58px; }
  .tools-media-hero-visual { border-radius: 20px; }
  .tools-media-hero-image { height: 100%; padding: 10px; }
  .tools-media-hero-ghost { inset: 4% -2.5% -4% 2.5%; }
  .tools-media-hero-copy h1,
  .tools-media-hero-home .tools-media-hero-copy h1 {
    font-size: clamp(40px, 13vw, 66px);
  }
  .tools-media-hero-copy > p { font-size: 18px; }
}

/* Animations au scroll v1.12.6 -----------------------------------------------
   La classe est ajoutée dans le <head>, avant le chargement de la feuille de
   style. Elle empêche le flash du contenu avant que GSAP pose ses états initiaux. */
html.gx-tools-motion-pending .tools-header,
html.gx-tools-motion-pending .tools-media-hero-visual,
html.gx-tools-motion-pending .tools-media-hero-copy > .tools-kicker,
html.gx-tools-motion-pending .tools-media-hero-copy > h1,
html.gx-tools-motion-pending .tools-media-hero-copy > p,
html.gx-tools-motion-pending .tools-media-hero-copy > .hero-actions,
html.gx-tools-motion-pending .tools-main > section:not(.tools-media-hero) > .tools-kicker,
html.gx-tools-motion-pending .tools-list > .tool-entry,
html.gx-tools-motion-pending .checker-shell > section:not(.tools-media-hero):not(.report) > .checker-form,
html.gx-tools-motion-pending .checker-shell > section:not(.tools-media-hero):not(.report) > .email-checker-wrap,
html.gx-tools-motion-pending .checker-shell > section:not(.tools-media-hero):not(.report) > .checker-privacy,
html.gx-tools-motion-pending .checker-shell > section:not(.tools-media-hero):not(.report) > .report-tabs,
html.gx-tools-motion-pending .optimizer-section:not([hidden]):not(.report),
html.gx-tools-motion-pending .report-tab-panel:not([hidden]) .maker-card,
html.gx-tools-motion-pending .tools-footer-inner > * {
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
}

/* Le cadre reste fixe. L’image intérieure dispose seulement de la réserve
   nécessaire au parallaxe vertical léger piloté par le scroll. */
.tools-media-hero-image {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .tools-media-hero-image {
    height: 100%;
    padding: 10px;
    transform: none !important;
    will-change: auto;
  }
  .tools-media-hero-ghost {
    transform: rotate(-1deg) !important;
    will-change: auto;
  }
}

html.gx-tools-motion-disabled .tools-header,
html.gx-tools-motion-disabled .tools-media-hero-visual,
html.gx-tools-motion-disabled .tools-media-hero-copy > *,
html.gx-tools-motion-disabled .tools-list > .tool-entry,
html.gx-tools-motion-disabled .optimizer-section,
html.gx-tools-motion-disabled .maker-card,
html.gx-tools-motion-disabled .tools-footer-inner > *,
html.gx-tools-motion-fallback .tools-header,
html.gx-tools-motion-fallback .tools-media-hero-visual,
html.gx-tools-motion-fallback .tools-media-hero-copy > *,
html.gx-tools-motion-fallback .tools-list > .tool-entry,
html.gx-tools-motion-fallback .optimizer-section,
html.gx-tools-motion-fallback .maker-card,
html.gx-tools-motion-fallback .tools-footer-inner > * {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.optimizer-width-pill.is-unavailable {
  border-style: dashed;
  color: var(--gx-secondary);
  opacity: .48;
}
.optimizer-width-pill.is-unavailable:hover {
  border-color: var(--gx-border-strong);
  color: var(--gx-secondary);
}
