:root {
  color-scheme: light;

  /* Retains the TLIT Toolbox visual system. */
  --brand: #008752;
  --brand-strong: #006b41;
  --brand-bright: #00a765;
  --brand-soft: #e8f6ef;
  --brand-wash: #f2fbf6;

  --canvas: #f4f7f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #f8faf9;
  --surface-code: #0d1712;

  --ink: #111713;
  --ink-soft: #26332b;
  --muted: #657269;
  --muted-strong: #4d5c53;

  --border: #dbe4de;
  --border-strong: #c8d5cd;
  --focus: #006b41;

  --danger: #9d2929;
  --danger-soft: #fcebea;
  --warning: #8a5a00;
  --warning-soft: #fff4d9;
  --info-soft: #eaf3ff;

  --code-ink: #dff7e9;
  --code-muted: #91bca3;

  --shadow-sm: 0 1px 2px rgba(16, 35, 24, 0.05);
  --shadow-md: 0 16px 42px rgba(15, 44, 28, 0.09);
  --shadow-card: 0 12px 32px rgba(18, 52, 32, 0.08);

  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --shell: 1260px;
  --sidebar: 238px;
  --header-height: 76px;

  font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --brand: #42d997;
    --brand-strong: #78e8b5;
    --brand-bright: #42d997;
    --brand-soft: #153a2a;
    --brand-wash: #10251a;

    --canvas: #09110d;
    --surface: #111b16;
    --surface-raised: #15211b;
    --surface-subtle: #0d1712;
    --surface-code: #07100b;

    --ink: #f0f7f3;
    --ink-soft: #d4e2da;
    --muted: #9fb0a6;
    --muted-strong: #bdccc3;

    --border: #27352e;
    --border-strong: #35473d;
    --focus: #78e8b5;

    --danger: #ff9b9b;
    --danger-soft: #391c1c;
    --warning: #ffd17a;
    --warning-soft: #392d16;
    --info-soft: #16263a;

    --code-ink: #dff7e9;
    --code-muted: #91bca3;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.26);
    --shadow-card: 0 16px 38px rgba(0, 0, 0, 0.22);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-company {
  color: var(--brand);
  letter-spacing: 0.015em;
}

.brand-divider {
  color: var(--border-strong);
  font-weight: 400;
}

.brand-product {
  font-weight: 690;
}

.office-label {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot,
.source-note > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent);
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 42px;
  padding-top: 34px;
}

.sidebar {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.sidebar-label,
.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-filters {
  display: grid;
  gap: 5px;
}

.category-filter {
  display: grid;
  width: 100%;
  min-height: 43px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.81rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.category-filter:hover {
  border-color: var(--border);
  background: var(--surface-subtle);
  color: var(--ink);
}

.category-filter.is-active,
.category-filter[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.filter-count {
  display: inline-flex;
  min-width: 28px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 999px;
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
}

.sidebar-help {
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
}

.sidebar-help p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.72rem;
}

kbd,
.search-shortcut {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-bottom-color: var(--border-strong);
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--muted-strong);
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

main {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(32px, 6vw, 84px);
  padding: 36px 0 32px;
}

.hero-copy {
  max-width: 780px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 span {
  color: var(--brand);
}

.hero-description {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.7;
}

.catalog-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(106px, 1fr));
  gap: 10px;
}

.metric {
  display: grid;
  min-height: 112px;
  align-content: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.metric-wide {
  grid-column: 1 / -1;
  min-height: 82px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.metric-number {
  color: var(--brand);
  font-size: 2.45rem;
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.metric-label {
  margin-top: 7px;
  color: var(--muted-strong);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.metric-wide .metric-label {
  margin-top: 0;
}

.metric-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.search-panel {
  margin: 26px 0 0;
  padding: 14px 16px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.search-panel > label {
  display: block;
  margin: 0 4px 8px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon {
  position: relative;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.search-icon::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
}

.search-icon::after {
  position: absolute;
  width: 8px;
  height: 2px;
  right: 0;
  bottom: 3px;
  border-radius: 2px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

.search-control input {
  width: 100%;
  min-width: 0;
  padding: 5px 4px 9px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
  font-weight: 600;
}

.search-control input::placeholder {
  color: color-mix(in srgb, var(--muted) 76%, transparent);
  opacity: 1;
}

.search-panel:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent), var(--shadow-card);
}

.search-shortcut {
  flex: 0 0 auto;
  white-space: nowrap;
}

.clear-search,
.copy-button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.clear-search {
  flex: 0 0 auto;
  padding: 0 12px;
}

.clear-search:hover,
.copy-button:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 4px 0;
  border-top: 1px solid var(--border);
}

.search-meta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.search-meta strong {
  color: var(--brand-strong);
}

.directory {
  padding: 44px 0 64px;
}

.directory-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.directory-toolbar .section-kicker {
  margin-bottom: 6px;
}

.directory-toolbar h2,
.catalog-plan h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.3rem);
  letter-spacing: -0.045em;
}

.directory-subtitle {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.source-note {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 9px;
  padding-bottom: 4px;
}

.source-note > span {
  margin-top: 5px;
}

.source-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-card {
  display: flex;
  min-width: 0;
  min-height: 470px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.command-card:hover {
  border-color: color-mix(in srgb, var(--brand) 62%, var(--border));
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.featured-command {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand-wash) 72%, var(--surface)) 0%, var(--surface) 58%);
}

.command-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.command-category {
  margin-bottom: 5px;
  color: var(--brand-strong);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.command-heading h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.command-index {
  color: var(--border-strong);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.command-description {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  line-height: 1.62;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 18px;
}

.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.badge-admin {
  border-color: color-mix(in srgb, var(--warning) 24%, var(--border));
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-security {
  border-color: color-mix(in srgb, var(--danger) 20%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-safe {
  background: color-mix(in srgb, var(--brand-soft) 68%, var(--surface));
}

.variable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.variable-grid.one-column {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  color: var(--muted-strong);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.field input:not([type="checkbox"]),
.field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.field input:not([type="checkbox"]):focus,
.field select:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}


.checkbox-field {
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 2px;
}

.checkbox-field > span {
  margin: 0;
  line-height: 1.35;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  accent-color: var(--brand);
  cursor: pointer;
}

.checkbox-field input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.command-output {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, #000);
  border-radius: 13px;
  background: var(--surface-code);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.command-output-bar {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--code-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.copy-button {
  min-height: 29px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: var(--code-ink);
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
}

.copy-button:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: #ffffff;
}

pre {
  max-width: 100%;
  margin: 0;
  overflow: auto;
}

code {
  display: block;
  padding: 17px 18px 19px;
  color: var(--code-ink);
  font-family: "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.catalog-plan {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 34px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  box-shadow: var(--shadow-sm);
}

.catalog-plan .section-kicker {
  margin-bottom: 6px;
}

.catalog-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.catalog-plan-grid div {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.catalog-plan-grid strong {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.catalog-plan-grid span {
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
}

.site-footer {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer span:first-child {
  color: var(--brand-strong);
  font-weight: 800;
  letter-spacing: 0.04em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  :root {
    --sidebar: 208px;
  }

  .workspace {
    gap: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .catalog-metrics {
    width: min(520px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-wide {
    grid-column: auto;
    min-height: 112px;
    grid-template-columns: 1fr;
    align-items: initial;
    gap: 7px;
  }

  .catalog-plan {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }

  .sidebar {
    order: 2;
  }

  .sidebar-sticky {
    position: static;
  }

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

  .sidebar-help {
    display: none;
  }

  main {
    order: 1;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .featured-command {
    grid-column: auto;
  }

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

@media (max-width: 650px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand {
    gap: 6px;
    font-size: 1rem;
  }

  .office-label,
  .header-meta {
    display: none;
  }

  .workspace {
    gap: 22px;
  }

  .hero {
    padding: 26px 0 22px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.15rem);
    line-height: 0.95;
  }

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

  .metric-wide {
    grid-column: 1 / -1;
    min-height: 78px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
  }

  .search-panel {
    padding: 12px 13px 10px;
  }

  .search-shortcut {
    display: none;
  }

  .search-meta {
    align-items: flex-start;
    gap: 10px;
  }

  .search-meta p:last-child {
    display: none;
  }

  .directory-toolbar {
    align-items: flex-start;
  }

  .source-note {
    display: none;
  }

  .command-card {
    min-height: 0;
    padding: 18px;
  }

  .variable-grid {
    grid-template-columns: 1fr;
  }

  .catalog-plan {
    padding: 19px;
  }

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

  .category-filters {
    grid-template-columns: 1fr;
  }

  .site-footer {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
  }
}

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