:root {
  --uz-red: #ff4b5c;
  --uz-orange: #ff9f45;
  --uz-green: #1ebe8c;
  --uz-blue: #345aa6;
  --uz-blue-hover: #294987;
  --uz-ink: #20232a;
  --uz-ink-strong: #1b1e25;
  --uz-muted: #636872;
  --uz-muted-2: #7c828c;
  --uz-page: #f8f6f0;
  --uz-surface: #fffdfa;
  --uz-surface-2: #f2efe7;
  --uz-surface-3: #ebe6dc;
  --uz-line: #e5dfd3;
  --uz-line-strong: #d3cbbd;
  --uz-success: #0b6f3b;
  --uz-success-soft: #e5f6ed;
  --uz-warning: #b36b00;
  --uz-warning-soft: #fff3d9;
  --uz-danger: #c53434;
  --uz-danger-soft: #fff0ef;
  --uz-shadow: 0 14px 32px rgba(32, 26, 17, 0.045);
  --uz-shadow-sm: 0 1px 2px rgba(32, 26, 17, 0.045);
  --uz-radius: 8px;
  --uz-radius-sm: 6px;
  --uz-max: 1120px;
  --uz-content: 780px;
  --uz-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --uz-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --uz-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* App compatibility aliases. New pages should use the --uz-* tokens. */
  --page: var(--uz-page);
  --surface: var(--uz-surface);
  --surface-2: var(--uz-surface-2);
  --ink: var(--uz-ink);
  --muted: var(--uz-muted);
  --line: var(--uz-line);
  --accent: var(--uz-blue);
  --accent-hover: var(--uz-blue-hover);
  --font-body: var(--uz-font-body);
  --font-heading: var(--uz-font-heading);
  --font-mono: var(--uz-font-mono);
}

body.uz-content-page,
body.uz-content-page * {
  box-sizing: border-box;
}

body.uz-content-page {
  margin: 0;
  min-height: 100vh;
  color: var(--uz-ink);
  background: var(--uz-page);
  font-family: var(--uz-font-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.uz-content-page a {
  color: var(--uz-blue);
  font-weight: 600;
  text-underline-offset: 0.16em;
}

body.uz-content-page a:hover {
  color: var(--uz-blue-hover);
}

body.uz-content-page img,
body.uz-content-page video {
  max-width: 100%;
  height: auto;
}

.uz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.uz-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.uz-container {
  width: min(100% - 40px, var(--uz-max));
  margin: 0 auto;
}

.uz-content {
  width: min(100% - 40px, var(--uz-content));
  margin: 0 auto;
}

.uz-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 240, 0.92);
  border-bottom: 1px solid var(--uz-line);
  backdrop-filter: blur(14px);
}

.uz-site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.uz-content-page .uz-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--uz-ink);
  text-decoration: none;
}

body.uz-content-page .uz-brand:hover {
  color: var(--uz-ink);
  text-decoration: none;
}

.uz-mark {
  width: 34px;
  height: 40px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  flex: 0 0 auto;
}

.uz-mark span {
  display: block;
  height: 7px;
  border-radius: 999px;
}

.uz-mark .uz-mark-red {
  width: 34px;
  background: var(--uz-red);
}

.uz-mark .uz-mark-orange {
  width: 25px;
  background: var(--uz-orange);
}

.uz-mark .uz-mark-green {
  width: 17px;
  background: var(--uz-green);
}

.uz-mark .uz-mark-blue {
  width: 12px;
  height: 12px;
  background: var(--uz-blue);
}

.uz-mark .uz-mark-stem {
  width: 5px;
  height: 16px;
  margin-top: -1px;
  background: #151834;
}

.uz-brand-word {
  font-family: var(--uz-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.uz-brand-word span {
  color: var(--uz-blue);
}

.uz-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

body.uz-content-page .uz-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--uz-radius-sm);
  color: var(--uz-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

body.uz-content-page .uz-nav a:hover,
body.uz-content-page .uz-nav a[aria-current="page"] {
  color: var(--uz-ink);
  background: var(--uz-surface);
  text-decoration: none;
}

.uz-hero {
  padding: 84px 0 62px;
}

.uz-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.uz-eyebrow {
  margin: 0 0 10px;
  color: #60718e;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.uz-hero h1,
.uz-prose h1 {
  max-width: 860px;
  margin: 0;
  color: var(--uz-ink-strong);
  font-family: var(--uz-font-heading);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: 0;
  text-wrap: balance;
}

.uz-hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--uz-muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  font-weight: 400;
  line-height: 1.72;
}

.uz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

body.uz-content-page .uz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--uz-radius);
  background: var(--uz-blue);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: var(--uz-shadow-sm);
}

body.uz-content-page .uz-button:hover {
  background: var(--uz-blue-hover);
  color: #ffffff;
  text-decoration: none;
}

body.uz-content-page .uz-button-secondary {
  background: var(--uz-surface);
  color: var(--uz-ink);
  border-color: var(--uz-line);
}

body.uz-content-page .uz-button-secondary:hover {
  background: var(--uz-surface-2);
  color: var(--uz-blue-hover);
}

.uz-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.uz-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--uz-line);
  border-radius: 999px;
  background: var(--uz-surface);
  color: var(--uz-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.uz-panel {
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface);
  box-shadow: none;
}

.uz-panel-pad {
  padding: 22px;
}

.uz-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.uz-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface);
  box-shadow: none;
}

.uz-card h2,
.uz-card h3,
.uz-prose h2,
.uz-prose h3 {
  margin: 0 0 8px;
  color: var(--uz-ink-strong);
  font-family: var(--uz-font-heading);
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 600;
}

.uz-card h2,
.uz-prose h2 {
  font-size: clamp(1.38rem, 2.2vw, 2rem);
}

.uz-card h3,
.uz-prose h3 {
  font-size: 1.04rem;
}

.uz-card p,
.uz-card li {
  color: var(--uz-muted);
  line-height: 1.68;
}

.uz-card p:last-child,
.uz-card ul:last-child,
.uz-card ol:last-child {
  margin-bottom: 0;
}

.uz-section {
  padding: 52px 0;
}

.uz-section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.uz-section-head h2 {
  margin: 0;
  color: var(--uz-ink-strong);
  font-family: var(--uz-font-heading);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.14;
  text-wrap: balance;
}

.uz-section-head p {
  margin: 10px 0 0;
  color: var(--uz-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.uz-prose {
  padding: 64px 0 84px;
}

.uz-prose p,
.uz-prose li {
  color: var(--uz-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.uz-prose h2 {
  margin-top: 48px;
}

.uz-prose h3 {
  margin-top: 28px;
}

.uz-prose code {
  padding: 0.1rem 0.28rem;
  border: 1px solid var(--uz-line);
  border-radius: 4px;
  background: var(--uz-surface);
  color: var(--uz-ink);
  font-family: var(--uz-font-mono);
  font-size: 0.92em;
}

.uz-code-block {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: #11131c;
  color: #f8f7f3;
  font-family: var(--uz-font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
}

.uz-toc {
  padding: 16px;
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface-2);
}

.uz-toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--uz-ink);
  font-weight: 600;
}

.uz-toc ol,
.uz-toc ul {
  margin: 0;
  padding-left: 20px;
}

.uz-callout {
  padding: 18px 20px;
  border: 1px solid #c9d7ef;
  border-left: 4px solid var(--uz-blue);
  border-radius: var(--uz-radius);
  background: #f2f6ff;
}

.uz-callout strong {
  color: var(--uz-ink);
  font-weight: 600;
}

.uz-callout p {
  margin: 6px 0 0;
}

.uz-step-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: uz-step;
}

.uz-step-list li {
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface);
  counter-increment: uz-step;
}

.uz-step-list li::before {
  content: counter(uz-step);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--uz-blue);
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.uz-media-frame {
  overflow: hidden;
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface);
  box-shadow: none;
}

.uz-media-frame img,
.uz-media-frame video {
  display: block;
  width: 100%;
}

.uz-mark-frame {
  width: min(100%, 370px);
  justify-self: center;
}

.uz-mark-frame img {
  width: min(190px, 58%);
  margin: 42px auto 34px;
}

.uz-media-caption {
  margin: 0;
  padding: 12px 16px;
  color: var(--uz-muted);
  border-top: 1px solid var(--uz-line);
  font-size: 0.9rem;
}

.uz-faq-list {
  display: grid;
  gap: 12px;
}

.uz-faq-list details {
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface);
}

.uz-faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--uz-ink);
  font-weight: 600;
}

.uz-faq-list details[open] summary {
  border-bottom: 1px solid var(--uz-line);
}

.uz-faq-list details > div {
  padding: 0 18px 16px;
}

.uz-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface);
}

.uz-table th,
.uz-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--uz-line);
  text-align: left;
  vertical-align: top;
}

.uz-table th {
  color: var(--uz-ink);
  background: var(--uz-surface-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.uz-table tr:last-child td {
  border-bottom: 0;
}

.uz-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.uz-swatch {
  overflow: hidden;
  border: 1px solid var(--uz-line);
  border-radius: var(--uz-radius);
  background: var(--uz-surface);
}

.uz-swatch-color {
  height: 58px;
}

.uz-swatch-body {
  padding: 14px;
}

.uz-swatch-body strong,
.uz-swatch-body code {
  display: block;
}

.uz-swatch-body strong {
  font-weight: 650;
}

.uz-template-note {
  padding: 13px 15px;
  border: 1px dashed var(--uz-line-strong);
  border-radius: var(--uz-radius);
  background: var(--uz-surface-2);
  color: var(--uz-muted);
}

.uz-footer {
  margin-top: auto;
  padding: 36px 0;
  border-top: 1px solid var(--uz-line);
  color: var(--uz-muted);
}

.uz-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.uz-footer p {
  margin: 0;
}

.uz-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .uz-site-header {
    position: static;
  }

  .uz-site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .uz-nav {
    justify-content: flex-start;
  }

  .uz-hero {
    padding: 52px 0 36px;
  }

  .uz-hero-grid,
  .uz-card-grid {
    grid-template-columns: 1fr;
  }

  .uz-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .uz-container,
  .uz-content {
    width: min(100% - 24px, var(--uz-max));
  }

  .uz-hero h1,
  .uz-prose h1 {
    font-size: 2rem;
  }

  .uz-actions,
  .uz-button {
    width: 100%;
  }

  .uz-swatch-grid {
    grid-template-columns: 1fr;
  }
}
