:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-soft: #f2f6fb;
  --card: #ffffff;
  --card-soft: #fbfdff;
  --text: #1d1d1f;
  --text-2: #515154;
  --muted: #6e6e73;
  --line: #e4e9f0;
  --line-strong: #d5dce6;
  --blue: #007aff;
  --blue-2: #0a84ff;
  --blue-soft: #eef6ff;
  --blue-line: #cfe5ff;
  --green: #16834a;
  --green-soft: #ecf9f1;
  --green-line: #b7e7ca;
  --amber: #9a6700;
  --amber-soft: #fff7e6;
  --amber-line: #f4d79b;
  --red: #b42318;
  --red-soft: #fff1f0;
  --red-line: #f5c7c2;
  --navy: #0f2742;
  --shadow-sm: 0 2px 10px rgba(21, 43, 69, .045);
  --shadow: 0 12px 34px rgba(21, 43, 69, .085);
  --shadow-blue: 0 12px 34px rgba(0, 122, 255, .14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -120px, rgba(0, 122, 255, .09), transparent 390px),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: rgba(0, 122, 255, .18); }

.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }

/* Header / brand */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(213, 220, 230, .82);
  box-shadow: 0 1px 12px rgba(21, 43, 69, .035);
  padding-top: env(safe-area-inset-top);
}
@supports (backdrop-filter: blur(16px)) {
  .topbar { background: rgba(255,255,255,.91); backdrop-filter: saturate(145%) blur(16px); }
}
.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-area { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo-link { display: block; flex: 0 0 auto; }
.brand-logo-wrap {
  position: relative;
  width: 142px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.brand-logo-wrap::before {
  content: "SSLFOR";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.brand-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.brand-title { font-size: 17px; font-weight: 800; letter-spacing: -.025em; color: var(--text); white-space: nowrap; }
.brand-subtitle { color: var(--muted); font-weight: 600; font-size: 10.5px; margin-top: 5px; letter-spacing: .01em; white-space: nowrap; }

.tools-menu {
  position: relative;
  flex: 0 0 auto;
}
.tools-menu summary { list-style: none; }
.tools-menu summary::-webkit-details-marker { display: none; }
.tools-menu-button {
  min-width: 188px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
}
.tools-menu[open] .tools-menu-button,
.tools-menu-button:hover { border-color: #b9c9dc; background: #fbfdff; }
.tools-menu-button-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.tools-menu-button-text small { color: var(--muted); font-size: 9.5px; font-weight: 760; text-transform: uppercase; letter-spacing: .055em; }
.tools-menu-button-text strong { margin-top: 4px; color: #344054; font-size: 12.5px; font-weight: 800; max-width: 144px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tools-menu-chevron { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 2; transition: transform .16s ease; }
.tools-menu[open] .tools-menu-chevron { transform: rotate(180deg); }
.tools-menu-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, calc(100vw - 24px));
  max-height: min(72vh, 650px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 22px 60px rgba(21,43,69,.17);
}
.tools-menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 5px 10px; border-bottom: 1px solid var(--line); }
.tools-menu-head span { color: var(--text); font-size: 13px; font-weight: 820; }
.tools-menu-head small { color: var(--muted); font-size: 10.5px; text-align: right; }
.tools-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding-top: 9px; }
.tools-menu-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
}
.tools-menu-item:hover { background: #f5f9fe; border-color: #e2ecf8; }
.tools-menu-item.active { background: var(--blue-soft); border-color: var(--blue-line); }
.tools-menu-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f2f6fb; color: #31506f; }
.tools-menu-item.active .tools-menu-icon { background: #fff; color: var(--blue); }
.tools-menu-icon svg { width: 19px; height: 19px; stroke-width: 1.8; }
.tools-menu-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tools-menu-copy strong { color: #27364a; font-size: 11.5px; line-height: 1.3; }
.tools-menu-copy small { color: #7a8595; font-size: 9.8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tools-menu-home { margin-top: 8px; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }
.tools-menu-home:hover { background: var(--blue-2); }

/* Page foundations */
.main { flex: 1; padding: 46px 0 68px; }
h1, h2, h3 { color: var(--text); }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.045em; }
h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.025em; }
h3 { margin: 0 0 8px; letter-spacing: -.014em; }
p { margin: 0 0 14px; color: var(--text-2); }
.lead { font-size: 18px; line-height: 1.62; color: #5d6677; max-width: 780px; }
.no-margin { margin: 0; }

.hero { text-align: center; max-width: 920px; margin: 0 auto 42px; }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(0,122,255,.08); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0568d4;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .045em;
  margin-bottom: 18px;
}
.hero .lead { margin: 0 auto; }
.hero-trust-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); color: #556274; font-size: 12px; font-weight: 650; }
.trust-pill strong { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  min-height: 238px;
}
.tool-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #007aff, #67b4ff); opacity: 0; transition: opacity .18s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bfdcff; }
.tool-card:hover::after { opacity: 1; }
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid #d9eaff;
  background: linear-gradient(145deg, #f4f9ff, #eaf4ff);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.tool-icon svg { width: 23px; height: 23px; stroke-width: 1.9; }
.tool-card h3 { font-size: 18px; font-weight: 780; }
.tool-card p { font-size: 13.5px; line-height: 1.55; flex: 1; color: #667085; }
.tool-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; color: var(--blue); font-size: 13px; font-weight: 750; }
.tool-open span:last-child { font-size: 17px; transition: transform .15s ease; }
.tool-card:hover .tool-open span:last-child { transform: translateX(3px); }

.back { display: inline-flex; align-items: center; min-height: 40px; gap: 7px; color: var(--blue); font-weight: 730; font-size: 13.5px; margin-bottom: 16px; }
.tool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.tool-head-copy { max-width: 820px; }
.tool-title { font-size: clamp(31px, 4vw, 46px); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 22px;
}
.panel.soft { background: linear-gradient(180deg, #fff, #fbfdff); }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel-title-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.section-label { display: block; margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 12.5px; font-weight: 760; color: #344054; }
input, textarea, select {
  width: 100%;
  border: 1px solid #ced6e0;
  border-radius: 11px;
  background: #fff;
  color: #101828;
  padding: 11px 12px;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(16,24,40,.02);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input, select { min-height: 44px; }
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:focus, textarea:focus, select:focus { border-color: #61adff; box-shadow: 0 0 0 3px rgba(0,122,255,.10); background: #fff; }
textarea { min-height: 172px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.48; }
textarea.tall { min-height: 260px; }
input[type="file"] { padding: 8px; background: #fbfcfe; color: #667085; }
input[type="file"]::file-selector-button { border: 1px solid #d0d5dd; border-radius: 8px; padding: 7px 10px; background: #fff; color: #344054; font-weight: 700; margin-right: 9px; cursor: pointer; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 17px; }
.btn {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  padding: 10px 16px;
  font-weight: 760;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,122,255,.16);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(0,122,255,.21); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .56; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: #fff; color: #344054; border: 1px solid #d0d5dd; box-shadow: none; }
.btn.secondary:hover { background: #f8fafc; border-color: #bdc7d4; }
.btn.danger { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line); box-shadow: none; }
.btn.small { min-height: 36px; padding: 8px 11px; font-size: 12.5px; border-radius: 9px; }

/* Notices */
.notice { border-radius: 13px; padding: 13px 15px; font-size: 13.5px; line-height: 1.55; margin: 14px 0; border: 1px solid; }
.notice.info { background: var(--blue-soft); border-color: var(--blue-line); color: #175cd3; }
.notice.ok { background: var(--green-soft); border-color: var(--green-line); color: #087343; }
.notice.warn { background: var(--amber-soft); border-color: var(--amber-line); color: #8a5c00; }
.notice.err { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }

/* SSL Checker result */
.ssl-result { margin-top: 22px; }
.result-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #fff, #f9fbfe);
  box-shadow: 0 4px 18px rgba(21,43,69,.045);
}
.result-hero.secure { border-color: var(--green-line); background: linear-gradient(135deg, #fff, #f0fbf5); }
.result-hero.warning { border-color: var(--amber-line); background: linear-gradient(135deg, #fff, #fff9ed); }
.result-hero.critical { border-color: var(--red-line); background: linear-gradient(135deg, #fff, #fff5f4); }
.result-status-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; }
.result-status-icon svg { width: 29px; height: 29px; }
.secure .result-status-icon { background: #dff5e8; color: var(--green); }
.warning .result-status-icon { background: #fff0c8; color: var(--amber); }
.critical .result-status-icon { background: #ffe1de; color: var(--red); }
.result-kicker { color: var(--muted); font-size: 11px; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.result-domain { font-size: clamp(20px, 3vw, 26px); font-weight: 820; letter-spacing: -.025em; overflow-wrap: anywhere; }
.result-summary { margin-top: 4px; color: #657184; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.status.secure { background: #dff5e8; color: #087343; }
.status.warning { background: #fff0c8; color: #8a5c00; }
.status.critical { background: #ffe1de; color: #a61b12; }

.indicator-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin-top: 14px; }
.indicator { border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: #fff; min-width: 0; }
.indicator-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.indicator-label { color: #667085; font-size: 11px; font-weight: 760; }
.indicator-dot { width: 9px; height: 9px; border-radius: 50%; background: #98a2b3; box-shadow: 0 0 0 4px rgba(152,162,179,.10); }
.indicator.good .indicator-dot { background: #21a366; box-shadow: 0 0 0 4px rgba(33,163,102,.10); }
.indicator.warn .indicator-dot { background: #d79b19; box-shadow: 0 0 0 4px rgba(215,155,25,.11); }
.indicator.bad .indicator-dot { background: #d92d20; box-shadow: 0 0 0 4px rgba(217,45,32,.10); }
.indicator-value { margin-top: 8px; font-size: 18px; line-height: 1.15; font-weight: 810; letter-spacing: -.02em; overflow-wrap: anywhere; }
.indicator-detail { color: #7a8595; font-size: 11.5px; margin-top: 4px; }

.result-section { margin-top: 20px; }
.result-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.result-section-head h3 { font-size: 16px; margin: 0; }
.result-section-count { color: var(--muted); font-size: 11px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.detail-item { border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; padding: 13px 14px; min-width: 0; }
.detail-item.wide { grid-column: 1 / -1; }
.detail-key { font-size: 10.5px; letter-spacing: .055em; text-transform: uppercase; color: #7a8595; font-weight: 820; margin-bottom: 5px; }
.detail-value { font-size: 13px; font-weight: 690; color: #27364a; overflow-wrap: anywhere; }
.detail-value.monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.55; word-break: break-all; }
.recommendation-list { display: grid; gap: 8px; }
.recommendation { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fbfcfe; font-size: 13px; color: #475467; }
.recommendation-icon { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 850; }
.recommendation.ok .recommendation-icon { background: var(--green-soft); color: var(--green); }
.recommendation.warn .recommendation-icon { background: var(--amber-soft); color: var(--amber); }
.recommendation.err .recommendation-icon { background: var(--red-soft); color: var(--red); }
.san-box { border: 1px solid var(--line); background: #fbfcfe; border-radius: 14px; overflow: hidden; }
.san-box summary { cursor: pointer; padding: 12px 14px; color: #344054; font-size: 12.5px; font-weight: 760; user-select: none; }
.san-box[open] summary { border-bottom: 1px solid var(--line); background: #fff; }
.sans { list-style: none; padding: 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; max-height: 270px; overflow: auto; }
.sans li { font-size: 11.5px; padding: 6px 8px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; color: #475467; overflow-wrap: anywhere; }

/* Generic results */
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.metric { border: 1px solid var(--line); background: #fbfcfe; border-radius: 13px; padding: 13px; min-width: 0; }
.metric .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .055em; color: #7a8595; font-weight: 820; margin-bottom: 5px; }
.metric .v { font-size: 13px; font-weight: 720; color: #27364a; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: #101b2c; color: #e8eef7; border-radius: 14px; padding: 16px; max-height: 420px; overflow: auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.privacy { display: flex; gap: 9px; align-items: flex-start; color: #667085; font-size: 12.5px; margin-top: 14px; }
.file-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.sep { height: 1px; background: var(--line); margin: 22px 0; }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* Layout hardening for browsers and Android WebView */
main, header, footer, section, article, form, .panel, .tool-card, .result-section { max-width: 100%; }
pre, code, .mono, .detail-value, .metric .v, .chain-node-body, .notice { overflow-wrap: anywhere; word-break: break-word; }
input, textarea, select, button { max-width: 100%; }
svg { max-width: 100%; }

/* Landing informational block */
.info-strip { margin-top: 28px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.info-strip-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.76); }
.info-strip-card strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 3px; }
.info-strip-card span { color: #6b7686; font-size: 12px; }

.footer { border-top: 1px solid var(--line); background: #fff; padding: 27px 0 calc(27px + env(safe-area-inset-bottom)); color: #667085; font-size: 12.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.footer a { color: var(--blue); font-weight: 680; }

.mt-14 { margin-top: 14px; }
.mt-22 { margin-top: 22px; }
.mt-32 { margin-top: 32px; }

@media (max-width: 1110px) {
  .topbar-inner { min-height: 70px; gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1160px); }
  .main { padding: 28px 0 50px; }
  .topbar-inner { min-height: 64px; gap: 9px; }
  .brand-area { gap: 8px; flex: 1 1 auto; overflow: hidden; }
  .brand-logo-wrap { width: 96px; height: 39px; }
  .brand-title { font-size: 14px; }
  .brand-subtitle { display: none; }
  .tools-menu-button { min-width: 132px; min-height: 44px; padding: 6px 9px 6px 11px; }
  .tools-menu-button-text small { display: none; }
  .tools-menu-button-text strong { margin-top: 0; max-width: 100px; font-size: 11.5px; }
  .tools-menu-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 66px);
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 78px);
    border-radius: 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .hero { margin-bottom: 31px; }
  .lead { font-size: 16px; }
  .grid, .form-grid, .result-grid, .file-row, .detail-grid, .info-strip { grid-template-columns: 1fr; }
  .field.full, .detail-item.wide { grid-column: auto; }
  .panel { padding: 18px; border-radius: 18px; }
  .tool-head { display: block; }
  .result-hero { grid-template-columns: auto minmax(0,1fr); padding: 16px; }
  .result-hero .status { grid-column: 1 / -1; justify-self: start; }
  .indicator-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .actions .btn { flex: 1 1 170px; }
  input, select, textarea { font-size: 16px; }
  textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  .seo-copy { width: min(100% - 24px, 1160px); padding: 20px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 18px, 1160px); }
  .topbar-inner { gap: 7px; }
  .brand-logo-wrap { width: 82px; height: 34px; }
  .brand-title { font-size: 13px; }
  .tools-menu-button { min-width: 118px; max-width: 126px; padding-inline: 9px; }
  .tools-menu-button-text strong { max-width: 84px; font-size: 11px; }
  .tools-menu-grid { grid-template-columns: 1fr; }
  .tools-menu-head small { display: none; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card { min-height: 205px; padding: 18px; }
  .indicator-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .indicator { padding: 12px; }
  .indicator-value { font-size: 16px; }
  .result-status-icon { width: 46px; height: 46px; border-radius: 13px; }
  .result-domain { font-size: 20px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; flex: 0 0 auto; }
  .footer-inner { display: grid; gap: 10px; }
  .seo-copy { width: min(100% - 18px, 1160px); padding: 17px; }
}

@media (max-width: 340px) {
  .brand-copy { display: none; }
  .brand-area { flex: 1 1 auto; }
  .tools-menu-button { min-width: 122px; }
}

/* R6.3: expanded professional tool suite */
.chain-list { display: grid; gap: 10px; margin-top: 18px; }
.chain-node {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}
.chain-step {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}
.chain-node-body { display: grid; gap: 4px; min-width: 0; }
.chain-node-body strong { color: var(--text); font-size: 13px; }
.chain-node-body span { color: #344054; font-size: 12.5px; overflow-wrap: anywhere; }
.chain-node-body small { color: #7a8595; font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; }

/* Static, crawlable educational copy that remains useful to human visitors. */
.seo-copy {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 58px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}
.seo-copy h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.seo-copy h3 { font-size: 17px; margin-top: 24px; margin-bottom: 7px; }
.seo-copy p, .seo-copy li { color: #596579; font-size: 14px; line-height: 1.72; }
.seo-copy ul { margin: 8px 0 0; padding-left: 20px; }
.seo-copy a { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.seo-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.seo-related a { text-decoration: none; border: 1px solid var(--blue-line); background: var(--blue-soft); border-radius: 999px; padding: 7px 10px; font-size: 12px; }

@media (max-width: 1110px) {
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .seo-copy { width: min(100% - 24px, 1160px); padding: 18px; margin-bottom: 44px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .seo-copy { width: min(100% - 18px, 1160px); border-radius: 18px; }
}

/* R6 Android/mobile final override: keep tool cards readable on phones and small tablets. */
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .chain-node { grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
  .seo-related a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* R6.4 - CSR country selector: native, accessible and Android-safe */
.field-help {
  display: block;
  color: #667085;
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: -1px;
  overflow-wrap: anywhere;
}
#country {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  #country { min-width: 0; width: 100%; }
  .field-help { font-size: 11px; }
}
