:root {
  --xml-bg: #f4f8ff;
  --xml-ink: #122033;
  --xml-muted: #526276;
  --xml-card: #ffffff;
  --xml-border: #d9e4f2;
  --xml-primary: #1558a4;
  --xml-primary-ink: #ffffff;
  --xml-secondary: #edf3fb;
  --xml-success: #1b7f4b;
  --xml-danger: #b53c3c;
  --xml-code-bg: #0f172a;
  --xml-code-ink: #e5eefc;
  --xml-code-line: #7d95be;
}

* {
  box-sizing: border-box;
}

body.tools-page {
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  color: var(--xml-ink);
}

.breadcrumb-wrap {
  width: 100%;
  max-width: none;
  padding: 0.2rem 1rem 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  width: fit-content;
  border: 1px solid #d2e2f5;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7fbff 0%, #edf4ff 100%);
  box-shadow: 0 6px 18px rgba(18, 32, 51, 0.08);
  color: var(--xml-muted);
  font-size: 0.92rem;
}

.breadcrumb-list > * {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.breadcrumb-list > * + *::before {
  content: ">";
  color: #6d88ad;
  font-weight: 700;
}

.breadcrumb-list a {
  color: #1f4f8f;
  text-decoration: none;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  text-decoration: underline;
}

.breadcrumb-list [aria-current="page"] {
  color: var(--xml-muted);
  font-weight: 600;
}

.xml-page {
  width: 100%;
  max-width: none;
  margin: 0 auto 2.2rem;
  padding: 0 1rem;
  display: grid;
  gap: 1rem;
}

.xml-section {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(900px 260px at 12% -12%, rgba(21, 88, 164, 0.18), transparent 58%),
    radial-gradient(700px 260px at 90% 0%, rgba(96, 165, 250, 0.18), transparent 52%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.xml-hero {
  padding-top: 0.45rem;
}

.xml-core {
  border: 1px solid rgba(37, 99, 235, 0.24);
  background:
    radial-gradient(780px 260px at 18% -20%, rgba(59, 130, 246, 0.24), transparent 58%),
    radial-gradient(860px 300px at 90% -25%, rgba(14, 165, 233, 0.14), transparent 60%),
    linear-gradient(140deg, #ffffff 0%, #edf4ff 100%);
  box-shadow: 0 24px 46px rgba(18, 32, 51, 0.12);
}

.xml-core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid rgba(37, 99, 235, 0.2);
  box-shadow:
    0 0 0 6px rgba(191, 219, 254, 0.2),
    0 18px 34px rgba(37, 99, 235, 0.14);
}

.xml-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.xml-core .xml-section__titlebar {
  margin-bottom: 0.5rem;
  padding: 0.52rem 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(239, 246, 255, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.xml-core .xml-hint {
  max-width: 62ch;
  margin-bottom: 1rem;
  padding: 0.52rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.75);
}

.xml-core-layout {
  display: grid;
  gap: 1rem;
}

.xml-core-workspace {
  padding: 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.9));
  box-shadow:
    0 20px 38px rgba(18, 32, 51, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.xml-core-aside {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(21, 88, 164, 0.16);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

.xml-core-aside__kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1f4168;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xml-core-aside h3 {
  margin: 0;
  color: #10263f;
  font-size: 1.2rem;
  line-height: 1.25;
}

.xml-core-aside__text {
  margin: 0.6rem 0 0;
  color: var(--xml-muted);
  line-height: 1.65;
}

.xml-core-aside__card {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(132, 162, 214, 0.18);
}

.xml-core-aside__card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #10263f;
}

.xml-core-aside__card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--xml-muted);
  display: grid;
  gap: 0.4rem;
}

.xml-core .xml-grid,
.xml-core .xml-actions,
.xml-core .xml-status,
.xml-core .xml-result {
  position: relative;
  z-index: 1;
}

.xml-core .xml-result {
  background: rgba(255, 255, 255, 0.92);
}

.xml-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.78), transparent 26%),
    radial-gradient(circle at 90% 5%, rgba(191, 219, 254, 0.45), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.62), transparent 34%, transparent 72%, rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

.xml-hero-layout {
  position: relative;
  display: grid;
  gap: 0.8rem;
}

.xml-hero-copy,
.xml-hero-panel {
  position: relative;
  z-index: 1;
}

.xml-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 242, 254, 0.72));
  color: #1e3a8a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(18, 32, 51, 0.08);
}

.xml-hero h1 {
  margin: 0 0 0.4rem;
  max-width: none;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: #10263f;
  white-space: nowrap;
}

.xml-hero h1::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.23rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1558a4, #60a5fa);
}

.xml-hero-lead {
  margin: 0;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.62;
  color: #334155;
}

.xml-hero-summary {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.4rem 0.68rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  font-size: 0.92rem;
}

.xml-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.xml-badge {
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.8));
  color: #1e3a8a;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.xml-cta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.xml-cta .xml-btn {
  border-radius: 999px;
  padding-inline: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.xml-cta .xml-btn:hover {
  transform: translateY(-1px);
}

.xml-cta .xml-btn-primary {
  box-shadow: 0 10px 20px rgba(21, 88, 164, 0.22);
}

.xml-cta .xml-btn-secondary {
  background: rgba(255, 255, 255, 0.9);
}

.xml-meta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #64748b;
}

.xml-hero-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.76));
  box-shadow: 0 18px 36px rgba(18, 32, 51, 0.12);
  backdrop-filter: blur(10px);
}

.xml-hero-panel__card {
  padding: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.xml-hero-panel__card span {
  display: inline-flex;
  margin-bottom: 0.48rem;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: #e0ecff;
  color: #1e3a8a;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xml-hero-panel__card strong {
  display: block;
  margin-bottom: 0.38rem;
  color: #0f172a;
  font-size: 1.04rem;
}

.xml-hero-panel__card p {
  margin: 0;
  color: var(--xml-muted);
  line-height: 1.65;
}

.xml-hero-panel__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xml-hero-panel__list li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.4rem 0.72rem;
  align-items: center;
  padding: 0.64rem 0.78rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.xml-hero-panel__list li::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.55);
}

.xml-hero-panel__list li span:first-child {
  grid-column: 2;
  color: #1e3a8a;
  font-weight: 700;
}

.xml-hero-panel__list li span:last-child {
  grid-column: 3;
  justify-self: end;
  color: #475569;
  text-align: right;
}

.xml-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.62rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xml-btn-primary {
  background: var(--xml-primary);
  color: var(--xml-primary-ink);
}

.xml-btn-primary:hover {
  background: #104a8b;
}

.xml-btn-secondary {
  background: var(--xml-secondary);
  color: var(--xml-ink);
  border-color: var(--xml-border);
}

.xml-btn-secondary:hover {
  background: #dfeafb;
}

.xml-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.xml-field {
  grid-column: span 6;
}

.xml-field-full {
  grid-column: span 12;
}

.xml-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.42rem;
  color: #1e3a8a;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.xml-input,
.xml-textarea,
.xml-output {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  padding: 0.68rem 0.76rem;
  background: linear-gradient(180deg, #fdfefe 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-family: Consolas, Menlo, Monaco, monospace;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.xml-textarea,
.xml-output {
  resize: vertical;
  line-height: 1.5;
  min-height: 11rem;
}

.xml-input:focus,
.xml-textarea:focus,
.xml-output:focus,
.xml-btn:focus,
.xml-accordion-btn:focus {
  outline: 0;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
  background: #fff;
}

.xml-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.62rem;
  margin-top: 1rem;
}

.xml-core .xml-actions .xml-btn {
  width: 100%;
  min-height: 2.55rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.xml-core .xml-actions .xml-btn-primary {
  background: linear-gradient(135deg, #1558a4, #2563eb);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.24);
}

.xml-core .xml-actions .xml-btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.xml-status {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-left: 4px solid #60a5fa;
  border-radius: 12px;
  padding: 0.72rem 0.84rem;
  background: linear-gradient(180deg, #f8fcff 0%, #f1f7ff 100%);
  margin-top: 0.95rem;
  font-weight: 600;
}

.xml-status-success {
  border-color: #86efac;
  border-left-color: #22c55e;
  background: #f0fbf5;
  color: var(--xml-success);
}

.xml-status-error {
  border-color: #fca5a5;
  border-left-color: #ef4444;
  background: #fff4f4;
  color: var(--xml-danger);
}

.xml-result {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  padding: 0.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  margin-top: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.xml-result h3 {
  margin: 0 0 0.72rem;
  color: #10263f;
  font-size: 1rem;
}

.xml-output-wrap {
  display: grid;
  grid-template-columns: 3rem 1fr;
  border: 1px solid #0f2244;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f172a 0%, #111f3a 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
}

.xml-lines {
  margin: 0;
  padding: 0.82rem 0.52rem;
  text-align: right;
  color: var(--xml-code-line);
  background: #0b1323;
  border-right: 1px solid #1e3358;
  overflow: hidden;
  white-space: pre;
  user-select: none;
  line-height: 1.5;
  font-family: Consolas, Menlo, Monaco, monospace;
}

.xml-output {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--xml-code-ink);
  min-height: 15rem;
}

.xml-hint {
  color: var(--xml-muted);
  margin-top: 0;
}

.xml-accordion {
  display: grid;
  gap: 0.5rem;
}

.xml-accordion-item {
  border: 1px solid var(--xml-border);
  border-radius: 12px;
  background: #fbfdff;
}

.xml-accordion-btn {
  width: 100%;
  border: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  color: var(--xml-ink);
}

.xml-accordion-panel {
  padding: 0 0.85rem 0.7rem;
  color: var(--xml-muted);
}

.xml-accordion-panel p {
  margin: 0;
}

.xml-related {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.xml-related--cards {
  padding-left: 0;
  list-style: none;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.xml-related a {
  color: #11447f;
}

.xml-related--cards a {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--xml-border);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  text-decoration: none;
  color: #11447f;
  box-shadow: 0 8px 20px rgba(18, 32, 51, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.xml-related--cards a:hover,
.xml-related--cards a:focus-visible {
  transform: translateY(-2px);
  border-color: #9bbce3;
  box-shadow: 0 14px 26px rgba(18, 32, 51, 0.08);
  outline: none;
}

.xml-related--cards strong {
  color: #10263f;
  font-size: 1rem;
}

.xml-related--cards span {
  color: var(--xml-muted);
  line-height: 1.5;
}

.xml-section__titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.xml-section-tag {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: #e9f1ff;
  color: #1f4168;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.xml-guide {
  overflow: hidden;
}

.xml-guide-hero {
  display: grid;
  gap: 0.8rem;
  margin: 0.8rem 0 0.95rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--xml-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #eef5ff 0%, #f9fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.xml-guide-hero__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1f4168;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xml-guide-hero h3 {
  margin: 0;
  color: #10263f;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
}

.xml-guide-hero__text {
  margin: 0.45rem 0 0;
  color: var(--xml-muted);
  line-height: 1.6;
}

.xml-guide-hero__stats,
.xml-guide-metrics {
  display: grid;
  gap: 0.7rem;
}

.xml-guide-hero__stats div,
.xml-guide-metrics div {
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--xml-border);
}

.xml-guide-hero__stats strong,
.xml-guide-metrics strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #10263f;
  font-size: 1rem;
}

.xml-guide-hero__stats span,
.xml-guide-metrics span {
  color: var(--xml-muted);
  line-height: 1.5;
}

.xml-guide-grid {
  display: grid;
  gap: 0.8rem;
}

.xml-guide-card,
.xml-guide-note {
  border: 1px solid var(--xml-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(18, 32, 51, 0.06);
}

.xml-guide-card {
  padding: 0.85rem;
}

.xml-guide-card--format {
  border-top: 4px solid #1558a4;
}

.xml-guide-card--validate {
  border-top: 4px solid #d97706;
}

.xml-guide-card--minify {
  border-top: 4px solid #059669;
}

.xml-guide-card h3,
.xml-guide-note h3 {
  margin: 0 0 0.45rem;
  color: #10263f;
  font-size: 1.03rem;
}

.xml-guide-card p {
  margin: 0.55rem 0 0;
  color: var(--xml-muted);
  line-height: 1.62;
}

.xml-guide-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.xml-guide-chiprow span {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid var(--xml-border);
  color: #1f4168;
  font-size: 0.83rem;
  font-weight: 700;
}

.xml-guide-points,
.xml-guide-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.xml-guide-points li,
.xml-guide-list li {
  position: relative;
  padding: 0.62rem 0.8rem 0.62rem 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--xml-border);
  background: #f8fbff;
  color: #23344b;
  line-height: 1.5;
}

.xml-guide-points li::before,
.xml-guide-list li::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.86rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1558a4, #60a5fa);
}

.xml-guide-note {
  margin-top: 0.8rem;
  padding: 0.85rem;
}

.xml-howto {
  border: 1px solid rgba(125, 211, 252, 0.45);
  background:
    radial-gradient(900px 260px at 8% -22%, rgba(186, 230, 253, 0.42), transparent 60%),
    radial-gradient(760px 280px at 95% -30%, rgba(147, 197, 253, 0.3), transparent 64%),
    linear-gradient(140deg, #f8fcff 0%, #eef6ff 100%);
}

.xml-howto .xml-hint {
  margin-bottom: 0.95rem;
}

.xml-steps-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.xml-step-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 0.95rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(241, 249, 255, 0.88));
  box-shadow: 0 12px 24px rgba(18, 32, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.xml-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.15);
}

.xml-step-card__number {
  margin: 0 0 0.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1558a4, #2563eb);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 16px rgba(21, 88, 164, 0.24);
}

.xml-step-card h3 {
  margin: 0 0 0.45rem;
  color: #10263f;
  font-size: 0.98rem;
  line-height: 1.35;
}

.xml-step-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .xml-page {
    padding: 0 0.8rem;
  }

  .xml-section {
    border-radius: 14px;
    padding: 0.85rem;
  }

  .xml-field,
  .xml-field-full {
    grid-column: span 12;
  }

  .xml-btn {
    width: 100%;
  }

  .xml-output-wrap {
    grid-template-columns: 2.5rem 1fr;
  }

  .xml-actions {
    grid-template-columns: 1fr;
  }

  .xml-hero-panel__list li {
    grid-template-columns: auto 1fr;
  }

  .xml-hero-panel__list li span:first-child {
    grid-column: 2;
  }

  .xml-hero-panel__list li span:last-child {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .xml-guide-note,
  .xml-guide-card {
    padding: 0.85rem;
  }

  .xml-step-card {
    padding: 0.85rem;
  }
}

@media (min-width: 960px) {
  .xml-core-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.75fr);
    align-items: start;
  }

  .xml-core-aside {
    position: sticky;
    top: calc(var(--header-offset, 72px) + 1rem);
  }

  .xml-hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
  }

  .xml-guide-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
  }

  .xml-guide-hero__stats,
  .xml-guide-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xml-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xml-related--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xml-steps-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
