:root {
  --ink: #132433;
  --muted: #61717b;
  --line: #d9e4e8;
  --paper: #ffffff;
  --wash: #f3f8f8;
  --teal: #087f83;
  --teal-dark: #075d68;
  --lime: #c5d85b;
  --amber: #e9a24b;
  --shadow: 0 16px 42px rgba(19, 36, 51, 0.09);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 228, 232, 0.9);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 8px; color: #fff; background: var(--teal); font-size: 14px; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; color: var(--muted); font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--teal-dark); }
main { overflow: hidden; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: clamp(58px, 8vw, 102px) 0 64px; background: var(--wash); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--teal); font-size: 13px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 700px; margin: 0; font-size: 40px; line-height: 1.2; letter-spacing: 0; }
.hero-lede { max-width: 600px; margin: 22px 0 0; color: var(--teal-dark); font-size: 22px; line-height: 1.2; font-weight: 750; }
.hero-copy { max-width: 610px; margin: 15px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; font-weight: 800; }
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.button.secondary { background: #fff; }
.button:hover { transform: translateY(-1px); }
.hero-console { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: #e9f1ef; box-shadow: var(--shadow); }
.console-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.14); color: #a8c1c1; font-size: 13px; }
.console-top strong { color: var(--lime); }
.console-main { display: grid; grid-template-columns: .88fr 1.12fr; gap: 15px; padding-top: 19px; }
.console-card { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(255,255,255,.05); }
.console-card p { margin: 0; color: #a8c1c1; font-size: 12px; font-weight: 700; }
.console-card strong { display: block; margin-top: 18px; color: #fff; font-size: 38px; line-height: 1; }
.console-card small { display: block; margin-top: 8px; color: var(--lime); }
.console-list { display: grid; gap: 10px; margin: 17px 0 0; padding: 0; list-style: none; }
.console-list li { display: flex; gap: 9px; align-items: center; color: #e9f1ef; font-size: 13px; }
.console-list span { display: inline-grid; width: 21px; height: 21px; place-items: center; border-radius: 5px; color: var(--ink); background: var(--lime); font-size: 11px; font-weight: 900; }
.ad-slot { display: grid; min-height: 58px; place-items: center; margin: 24px 0; border: 1px dashed #bfced1; border-radius: 7px; color: #8a989e; background: #fbfdfd; font-size: 12px; }
.section { padding: clamp(58px, 8vw, 96px) 0; }
.section.wash { background: var(--wash); }
.section-heading { max-width: 740px; }
.section-heading h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.section-heading p { margin: 15px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.tool-card { display: block; min-height: 160px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: #91bec0; box-shadow: var(--shadow); }
.tool-card .tool-index { color: var(--amber); font-size: 12px; font-weight: 850; }
.tool-card h3 { margin: 16px 0 0; font-size: 20px; }
.tool-card p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.feature-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric { padding: 22px; border-left: 4px solid var(--teal); background: #fff; box-shadow: 0 10px 28px rgba(19, 36, 51, .06); }
.metric strong { display: block; font-size: 24px; }
.metric p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 32px; }
.article-card { padding: 22px; border-top: 3px solid var(--teal); background: #fff; box-shadow: 0 10px 28px rgba(19, 36, 51, .06); }
.article-card h3 { margin: 0; font-size: 20px; }
.article-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.tool-hero { padding: 58px 0 26px; background: var(--wash); }
.tool-hero h1 { font-size: 36px; }
.tool-hero .hero-copy { max-width: 800px; }
.crumbs { margin: 0 0 17px; color: var(--teal); font-size: 13px; font-weight: 800; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; padding: 35px 0 80px; }
.tool-panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.tool-form { display: grid; gap: 16px; }
.tool-form label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 750; }
.tool-form input, .tool-form select, .tool-form textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cfdde0; border-radius: 6px; color: var(--ink); background: #fff; outline: 0; }
.tool-form textarea { min-height: 140px; resize: vertical; }
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,131,.12); }
.inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-group { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.check-group label { display: flex; grid-template-columns: none; align-items: center; gap: 7px; font-weight: 650; }
.check-group input { width: auto; min-height: auto; }
.tool-result { min-height: 85px; margin-top: 26px; padding: 19px; border: 1px solid var(--line); border-radius: 7px; background: var(--wash); }
.tool-result.info p, .tool-result.error p { margin: 0; color: var(--muted); }
.tool-result.error { border-color: #e5b2a9; background: #fff7f5; }
.tool-result.error p { color: #a5442e; }
.tool-result h2 { margin: 0 0 15px; font-size: 20px; }
.result-list { display: grid; grid-template-columns: 160px 1fr; margin: 0; }
.result-list dt, .result-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.5; overflow-wrap: anywhere; }
.result-list dt { color: var(--muted); font-weight: 700; }
.result-list dd { white-space: pre-wrap; }
.result-table { overflow-x: auto; }
.result-row { display: grid; grid-template-columns: 1.1fr .55fr .5fr 2fr; min-width: 580px; border-bottom: 1px solid var(--line); }
.result-row span { padding: 10px; overflow-wrap: anywhere; }
.result-head { color: var(--muted); font-size: 13px; font-weight: 800; }
.qr-image { display: block; width: 260px; height: 260px; max-width: 100%; margin: 8px auto 18px; border: 10px solid #fff; box-shadow: 0 7px 18px rgba(19, 36, 51, .12); }
.tool-note { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.side-nav { padding: 18px; border-left: 3px solid var(--amber); background: var(--wash); }
.side-nav h2 { margin: 0; font-size: 17px; }
.side-nav a { display: block; margin-top: 12px; color: var(--teal-dark); font-size: 14px; font-weight: 700; }
.side-nav a:hover { text-decoration: underline; }
.article { max-width: 820px; padding: 56px 0 90px; }
.article h1 { max-width: 820px; font-size: 34px; }
.article h2 { margin: 40px 0 12px; font-size: 29px; }
.article p, .article li { color: #3f505a; font-size: 17px; line-height: 1.8; }
.article ul { padding-left: 22px; }
.article .article-meta { margin: 17px 0 30px; color: var(--muted); font-size: 13px; }
.resource-list { display: grid; gap: 15px; margin-top: 32px; }
.resource { padding: 20px; border: 1px solid var(--line); background: #fff; }
.resource h3 { margin: 0; }
.resource p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 940px) {
  nav { gap: 12px; }
  .hero-grid, .feature-band, .tool-layout { grid-template-columns: 1fr; }
  .tool-layout { padding-top: 24px; }
  .side-nav { order: 1; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  nav { justify-content: flex-start; gap: 10px 15px; }
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 42px; }
  h1, .tool-hero h1, .article h1 { font-size: 28px; }
  .console-main, .metric-grid, .inline-fields, .tool-grid { grid-template-columns: 1fr; }
  .tool-panel { padding: 18px; }
  .result-list { grid-template-columns: 1fr; }
  .result-list dt { padding-bottom: 2px; border-bottom: 0; }
}

.brand small { font-size: 11px; color: var(--muted); font-weight: 500; }
.diagnostic-workspace { padding-top: 30px; padding-bottom: 60px; max-width: 900px; }
.diagnostic-form { max-width: 720px; }
.diagnostic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
button:disabled { cursor: default; opacity: .55; transform: none; }
.diagnostic-results { min-height: 32px; }
.diagnostic-row { padding: 20px 0; border-top: 1px solid var(--line); }
.diagnostic-row h2 { margin: 0 0 12px; font-size: 18px; }
.diagnostic-row.warn h2 { color: #a5442e; }
.diagnostic-row.unknown h2 { color: #795514; }
.diagnostic-row pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 Consolas, monospace; }
.diagnostic-row p, .diagnostic-boundary p { color: var(--muted); line-height: 1.7; }
.diagnostic-boundary { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.diagnostic-boundary h2 { font-size: 20px; }
.diagnostic-boundary a { color: var(--teal-dark); text-decoration: underline; }
.article-card time, .content-freshness { display: block; margin-top: 15px; color: var(--muted); font-size: 13px; }
.home-promotion { padding-bottom: 28px; }
.home-promotion .cloud-reference a { display: inline-block; margin: 6px 20px 6px 0; color: var(--teal-dark); }
.home-intro { padding: 34px 0 28px; }
.home-diagnostic { margin-top: 24px; max-width: 900px; }
.diagnosis-guides { padding: 28px 0; }
.tools-section { padding: 26px 0 52px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; color: var(--teal-dark); font-weight: 650; }
.quick-links a { text-decoration: underline; text-underline-offset: 4px; }
.tool-filters { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; align-items: end; gap: 18px; }
.tool-filters label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.tool-filters input, .tool-filters select { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; background: white; }
.tool-filters p { color: var(--muted); font-size: 13px; }
.tools-section .tool-grid { margin-top: 20px; }
.result-text { display: block; width: 100%; min-height: 150px; resize: vertical; padding: 12px; font: 14px/1.6 Consolas, monospace; border: 1px solid var(--line); border-radius: 5px; }
.result-actions { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.result-actions span { color: var(--muted); font-size: 13px; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 5px; }
.icon-button img { width: 19px; height: 19px; }
.article pre { padding: 18px; background: var(--wash); border-left: 3px solid var(--teal); white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 Consolas, monospace; }
.article a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.query-share { display: flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 40px; }
.query-share span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.share-url { width: 100%; padding: 10px; border: 1px solid var(--line); margin-top: 8px; }
.cloud-reference { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.cloud-reference p { font-size: 12px; line-height: 1.6; color: var(--muted); }
.faq-section { padding-bottom: 60px; max-width: 1180px; }
.faq-section h2 { font-size: 24px; }
.faq-section details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-section summary { cursor: pointer; font-weight: 650; overflow-wrap: anywhere; }
.faq-section p { color: var(--muted); line-height: 1.8; max-width: 800px; }
@media (max-width: 620px) {
  .tool-filters { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tool-filters p { margin: 0; }
  .article .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .brand { white-space: normal; }
}

.workspace-intro { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 28px 0 20px; }
.workspace-intro h1 { font-size: 26px; }
.workspace-intro p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.workspace-resource { font-size: 13px; color: var(--teal-dark); }
.workspace-tools { padding-bottom: 36px; }
.workspace-tools .tool-filters { grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; }
.workspace-tools input:focus-visible, .workspace-tools select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.task-paths { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 26px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.task-paths a { font-size: 14px; color: var(--teal-dark); }
.task-paths span { margin-left: 7px; color: var(--muted); font-size: 12px; }
.workspace-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; min-height: 40px; }
.workspace-toolbar p { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }
.segmented { display: inline-flex; border-bottom: 1px solid var(--line); }
.segmented button { min-height: 40px; border: 0; border-bottom: 2px solid transparent; padding: 8px 16px; color: var(--muted); background: transparent; font-size: 14px; }
.segmented button[aria-selected=true] { color: var(--teal-dark); border-bottom-color: var(--teal); font-weight: 750; }
.workspace-status { display: block; min-height: 20px; font-size: 12px; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }
.workspace-tools .tool-grid { margin-top: 8px; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-card { position: relative; padding: 0; min-height: 138px; transition: border-color .15s ease; }
.tool-card:hover { transform: none; box-shadow: none; border-color: var(--teal); }
.tool-card > a { display: block; height: 100%; padding: 16px; }
.tool-card .tool-index { display: block; padding-right: 38px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tool-card h3 { margin: 13px 0 0; font-size: 16px; line-height: 1.45; }
.tool-card p { font-size: 13px; margin: 6px 0 0; }
.tool-card .favorite-button { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; background: transparent; }
.favorite-button[aria-pressed=true] { background: #fff3c9; border-color: #e2bd48; }
.favorite-button[aria-pressed=true] img { filter: invert(39%) sepia(80%) saturate(600%) hue-rotate(5deg); }
.band-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.band-heading h2 { font-size: 21px; margin: 0; }
.band-heading a { color: var(--teal-dark); font-size: 13px; }
.home-diagnosis { padding: 28px 0; }
.home-diagnostic { margin-top: 18px; max-width: 100%; }
.home-diagnostic .diagnostic-form { max-width: 850px; }
.toolbox-home .article-grid { margin-top: 18px; }
.toolbox-home .article-card { padding: 18px 0; border-top: 1px solid var(--line); box-shadow: none; }
.toolbox-home .article-card h3 { font-size: 17px; line-height: 1.5; }
.toolbox-home .article-card p { font-size: 14px; }
.tool-title-row { display: flex; align-items: center; gap: 18px; }
.tool-title-row .favorite-button { flex: 0 0 40px; }
main[data-tool=json] .tool-hero { padding-top: 25px; padding-bottom: 14px; }
main[data-tool=json] .tool-hero h1 { font-size: 25px; }
main[data-tool=json] .hero-copy { font-size: 14px; margin-top: 10px; }
.json-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 22px; padding-bottom: 25px; }
.json-input, .json-workspace .tool-result { min-width: 0; }
.json-input .tool-form { gap: 10px; }
.json-input-heading, .json-output-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.json-input-heading .result-actions, .json-output-heading .result-actions { margin: 0; }
.json-workspace .tool-result { margin: 0; padding: 0; border: 0; background: transparent; min-height: 450px; }
.json-workspace .tool-result h2 { min-height: 40px; display: flex; align-items: center; font-size: 14px; margin: 0 0 10px; }
.json-output-heading h2 { margin-bottom: 0 !important; }
.json-input #jsonInput, .json-workspace .result-text { height: 380px; min-height: 220px; padding: 14px; font: 14px/1.65 Consolas, ui-monospace, monospace; tab-size: 2; }
.json-workspace .result-text { margin-top: 10px; background: #f7fafc; }
.json-input-status { color: var(--muted); margin: 0; font-size: 12px; min-height: 20px; }
.json-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.json-input .tool-note { margin-top: 0; }
#jsonInput[aria-invalid=true] { border-color: #b34d39; }
.json-workspace .tool-result.error { border-top: 2px solid #b34d39; padding-top: 16px; }
.json-guide-links { display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--line); padding: 20px 0 36px; font-size: 13px; color: var(--teal-dark); }
.guide-matches { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.guide-matches h2 { margin: 0 0 12px; font-size: 18px; }
.guide-match-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.guide-match { display: block; min-width: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
.guide-match:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.guide-match span, .guide-match time { color: var(--muted); font-size: 12px; }
.guide-match h3 { margin: 8px 0; font-size: 16px; line-height: 1.5; color: var(--teal-dark); }
.guide-match p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 6px 0; }
.guide-topics { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.article-card time { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
@media (max-width: 940px) {
  .workspace-tools .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .json-workspace { grid-template-columns: minmax(0, 1fr); }
  .json-input #jsonInput, .json-workspace .result-text { height: 270px; }
  .json-workspace .tool-result { min-height: 310px; }
}
@media (max-width: 620px) {
  .workspace-intro { padding-top: 22px; align-items: flex-start; }
  .guide-match-list { grid-template-columns: minmax(0, 1fr); }
  .workspace-resource { max-width: 100px; line-height: 1.6; }
  .workspace-tools .tool-filters { grid-template-columns: minmax(0, 1fr); }
  .workspace-tools .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { min-height: 174px; }
  .tool-card > a { padding: 12px; }
  .tool-card h3 { font-size: 15px; }
  .tool-card p { font-size: 12px; }
  .task-paths { gap: 10px; }
  .task-paths a { font-size: 13px; }
  .segmented button { padding: 8px 12px; }
  .workspace-toolbar p { margin-left: 0; }
  .tool-title-row { align-items: flex-start; }
}
