@charset "UTF-8";
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/public-sans-400.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/public-sans-500.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/public-sans-700.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/public-sans-italic-400.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/public-sans-italic-500.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/public-sans-italic-700.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-400.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-500.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-700.ttf") format("truetype");
}
:root {
  --font-sans: "Public Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --accent-rgb: 169, 173, 179;
  --accent: rgb(169, 173, 179);
  --accent-alpha-70: rgba(169, 173, 179, .7);
  --accent-alpha-20: rgba(169, 173, 179, .18);
  --accent-secondary-rgb: 222, 225, 229;
  --accent-secondary: rgb(222, 225, 229);
  --accent-secondary-alpha-20: rgba(222, 225, 229, .16);
  --background-rgb: 16, 17, 19;
  --background: #101113;
  --background-raised: #181a1d;
  --color: #e7e9ec;
  --color-muted: rgba(231, 233, 236, .58);
  --border-color: rgba(190, 195, 202, .18);
  --code-bg: rgba(255, 255, 255, .055);
  --text-gradient-start: #8f949b;
  --text-gradient-mid: #e1e3e6;
  --text-gradient-end: #a9adb3;
  --button-shadow: 0 0 12px rgba(222, 225, 229, .12);
  --button-hover-shadow: 0 0 18px rgba(222, 225, 229, .16);
  --max-width: 1200px;
  --hero-accent-rgb: 169, 173, 179;
  --hero-accent: rgb(var(--hero-accent-rgb));
  --hero-accent-alpha-70: rgba(var(--hero-accent-rgb), .7);
  --hero-accent-alpha-20: rgba(var(--hero-accent-rgb), .18);
  --hero-accent-secondary-rgb: 222, 225, 229;
  --hero-accent-secondary: rgb(var(--hero-accent-secondary-rgb));
  --hero-accent-secondary-alpha-20: rgba(var(--hero-accent-secondary-rgb), .16);
  --hero-background-rgb: 16, 17, 19;
  --hero-background: #101113;
  --hero-background-raised: #181a1d;
  --hero-color: #e7e9ec;
  --hero-color-muted: rgba(231, 233, 236, .58);
  --hero-button-shadow: 0 0 12px rgba(222, 225, 229, .12);
  --hero-button-hover-shadow: 0 0 18px rgba(222, 225, 229, .16);
}

[data-theme=light] {
  --accent-rgb: 182, 187, 194;
  --accent: rgb(182, 187, 194);
  --accent-alpha-70: rgba(182, 187, 194, .7);
  --accent-alpha-20: rgba(182, 187, 194, .16);
  --accent-secondary-rgb: 235, 237, 240;
  --accent-secondary: rgb(235, 237, 240);
  --accent-secondary-alpha-20: rgba(235, 237, 240, .14);
  --background-rgb: 36, 39, 44;
  --background: #24272c;
  --background-raised: #2e3238;
  --color: #edf0f3;
  --color-muted: rgba(237, 240, 243, .62);
  --border-color: rgba(205, 211, 218, .16);
  --code-bg: rgba(255, 255, 255, .06);
  --text-gradient-start: #a7adb5;
  --text-gradient-mid: #f1f3f5;
  --text-gradient-end: #c2c7ce;
  --button-shadow: 0 0 12px rgba(235, 237, 240, .09);
  --button-hover-shadow: 0 0 18px rgba(235, 237, 240, .13);
}

[data-site-theme=aura] {
  --accent-rgb: 121, 242, 192;
  --accent: rgb(121, 242, 192);
  --accent-alpha-70: rgba(var(--accent-rgb), .72);
  --accent-alpha-20: rgba(var(--accent-rgb), .16);
  --accent-secondary-rgb: 161, 196, 255;
  --accent-secondary: rgb(161, 196, 255);
  --accent-secondary-alpha-20: rgba(var(--accent-secondary-rgb), .18);
  --background-rgb: 7, 16, 22;
  --background: #071016;
  --background-raised: #0d1b23;
  --color: #eafff9;
  --color-muted: rgba(234, 255, 249, .64);
  --border-color: rgba(121, 242, 192, .18);
  --code-bg: rgba(121, 242, 192, .07);
  --text-gradient-start: #79f2c0;
  --text-gradient-mid: #9fe5ff;
  --text-gradient-end: #c4a7ff;
  --button-shadow: 0 0 16px rgba(121, 242, 192, .14);
  --button-hover-shadow: 0 0 26px rgba(161, 196, 255, .2);
  --hero-accent-rgb: 121, 242, 192;
  --hero-accent-secondary-rgb: 161, 196, 255;
  --hero-background-rgb: 7, 16, 22;
  --hero-background: #071016;
  --hero-background-raised: #0d1b23;
  --hero-color: #eafff9;
  --hero-color-muted: rgba(234, 255, 249, .64);
  --hero-button-shadow: 0 0 16px rgba(121, 242, 192, .14);
  --hero-button-hover-shadow: 0 0 26px rgba(161, 196, 255, .2);
}

[data-site-theme=aura][data-theme=light] {
  --accent-rgb: 137, 250, 205;
  --accent: rgb(137, 250, 205);
  --accent-alpha-70: rgba(var(--accent-rgb), .7);
  --accent-alpha-20: rgba(var(--accent-rgb), .16);
  --accent-secondary-rgb: 176, 209, 255;
  --accent-secondary: rgb(176, 209, 255);
  --accent-secondary-alpha-20: rgba(var(--accent-secondary-rgb), .18);
  --background-rgb: 16, 35, 43;
  --background: #10232b;
  --background-raised: #162d36;
  --color: #effffb;
  --color-muted: rgba(239, 255, 251, .66);
  --border-color: rgba(137, 250, 205, .18);
  --code-bg: rgba(137, 250, 205, .075);
  --text-gradient-start: #8cfbd0;
  --text-gradient-mid: #afe9ff;
  --text-gradient-end: #cdb7ff;
  --button-shadow: 0 0 14px rgba(137, 250, 205, .12);
  --button-hover-shadow: 0 0 24px rgba(176, 209, 255, .18);
}

[data-site-theme=code-y] {
  --accent-rgb: 167, 139, 250;
  --accent: rgb(167, 139, 250);
  --accent-alpha-70: rgba(var(--accent-rgb), .7);
  --accent-alpha-20: rgba(var(--accent-rgb), .2);
  --accent-secondary-rgb: 34, 211, 238;
  --accent-secondary: rgb(34, 211, 238);
  --accent-secondary-alpha-20: rgba(var(--accent-secondary-rgb), .2);
  --background-rgb: 15, 13, 26;
  --background: #0f0d1a;
  --background-raised: #16132a;
  --color: #e2e8f0;
  --color-muted: rgba(226, 232, 240, .5);
  --border-color: rgba(var(--accent-rgb), .15);
  --code-bg: rgba(0, 0, 0, 0.3);
  --text-gradient-start: rgb(167, 139, 250);
  --text-gradient-mid: rgb(34, 211, 238);
  --text-gradient-end: rgb(199, 125, 255);
  --button-shadow: 0 0 15px var(--accent-secondary-alpha-20);
  --button-hover-shadow: 0 0 25px var(--accent-secondary);
  --hero-accent-rgb: 167, 139, 250;
  --hero-accent-secondary-rgb: 34, 211, 238;
  --hero-background-rgb: 15, 13, 26;
  --hero-background: #0f0d1a;
  --hero-background-raised: #16132a;
  --hero-color: #e2e8f0;
  --hero-color-muted: rgba(226, 232, 240, .5);
  --hero-button-shadow: 0 0 15px var(--hero-accent-secondary-alpha-20);
  --hero-button-hover-shadow: 0 0 25px var(--hero-accent-secondary);
}

[data-site-theme=code-y][data-theme=light] {
  --background-rgb: 26, 23, 38;
  --background: #1a1726;
  --background-raised: #1e1a30;
}

[data-site-theme=dreamy] {
  --accent-rgb: 247, 163, 214;
  --accent: rgb(247, 163, 214);
  --accent-alpha-70: rgba(var(--accent-rgb), .72);
  --accent-alpha-20: rgba(var(--accent-rgb), .17);
  --accent-secondary-rgb: 181, 242, 226;
  --accent-secondary: rgb(181, 242, 226);
  --accent-secondary-alpha-20: rgba(var(--accent-secondary-rgb), .18);
  --background-rgb: 20, 17, 31;
  --background: #14111f;
  --background-raised: #1e1930;
  --color: #f7efff;
  --color-muted: rgba(247, 239, 255, .68);
  --border-color: rgba(226, 192, 255, .18);
  --code-bg: rgba(247, 163, 214, .075);
  --text-gradient-start: #f7a3d6;
  --text-gradient-mid: #b5f2e2;
  --text-gradient-end: #d4b4ff;
  --button-shadow: 0 0 15px rgba(247, 163, 214, .14);
  --button-hover-shadow: 0 0 25px rgba(181, 242, 226, .18);
  --hero-accent-rgb: 247, 163, 214;
  --hero-accent-secondary-rgb: 181, 242, 226;
  --hero-background-rgb: 20, 17, 31;
  --hero-background: #14111f;
  --hero-background-raised: #1e1930;
  --hero-color: #f7efff;
  --hero-color-muted: rgba(247, 239, 255, .68);
  --hero-button-shadow: 0 0 15px rgba(247, 163, 214, .14);
  --hero-button-hover-shadow: 0 0 25px rgba(181, 242, 226, .18);
}

[data-site-theme=dreamy][data-theme=light] {
  --accent-rgb: 255, 177, 224;
  --accent: rgb(255, 177, 224);
  --accent-alpha-70: rgba(var(--accent-rgb), .7);
  --accent-alpha-20: rgba(var(--accent-rgb), .17);
  --accent-secondary-rgb: 198, 249, 236;
  --accent-secondary: rgb(198, 249, 236);
  --accent-secondary-alpha-20: rgba(var(--accent-secondary-rgb), .18);
  --background-rgb: 28, 23, 41;
  --background: #1c1729;
  --background-raised: #261f38;
  --color: #fbf3ff;
  --color-muted: rgba(251, 243, 255, .7);
  --border-color: rgba(226, 192, 255, .2);
  --code-bg: rgba(255, 177, 224, .08);
  --text-gradient-start: #ffb1e0;
  --text-gradient-mid: #c6f9ec;
  --text-gradient-end: #ddc2ff;
  --button-shadow: 0 0 14px rgba(255, 177, 224, .13);
  --button-hover-shadow: 0 0 24px rgba(198, 249, 236, .17);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--background);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

section[id] {
  scroll-margin-top: 80px;
}

html.navbar-menu-open,
html.navbar-menu-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.54;
  background-color: var(--background);
  color: var(--color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  scroll-margin-top: 80px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4, h5, h6 {
  font-size: 1.1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-secondary);
}

p {
  margin-bottom: 20px;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}
img.left {
  margin-right: auto;
}
img.center {
  margin-left: auto;
  margin-right: auto;
}
img.right {
  margin-left: auto;
}

.headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid var(--accent-alpha-70);
  float: right;
  margin: 0 0 16px 24px;
}
@media (max-width: 683px) {
  .headshot {
    float: none;
    display: block;
    margin: 0 auto 16px;
  }
}

figure {
  display: block;
  max-width: 100%;
  margin: 25px auto;
}
figure img {
  max-width: 100%;
  height: auto;
}
figure video {
  width: 100%;
  max-width: 100%;
  height: auto;
}
figure figcaption {
  font-size: 14px;
  padding: 5px 10px;
  margin-top: 5px;
  background: var(--accent);
  color: var(--background);
}

.theme-screenshot .theme-screenshot__image {
  display: none;
}
.theme-screenshot .theme-screenshot__image--theme-boring {
  display: block;
}

:root:not([data-site-theme]) .theme-screenshot__image--theme-boring,
[data-site-theme=boring] .theme-screenshot__image--theme-boring,
[data-site-theme=aura] .theme-screenshot__image--theme-aura,
[data-site-theme=code-y] .theme-screenshot__image--theme-code-y,
[data-site-theme=dreamy] .theme-screenshot__image--theme-dreamy {
  display: block;
}

[data-site-theme=aura] .theme-screenshot__image--theme-boring,
[data-site-theme=code-y] .theme-screenshot__image--theme-boring,
[data-site-theme=dreamy] .theme-screenshot__image--theme-boring {
  display: none;
}

.theme-screenshot-tabs {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--background-raised);
}
.theme-screenshot-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}
.theme-screenshot-tabs__tab {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.2;
  cursor: pointer;
}
.theme-screenshot-tabs__tab:hover:not(.theme-screenshot-tabs__tab--active) {
  border-color: rgba(var(--accent-secondary-rgb), 0.35);
  color: var(--accent-secondary);
}
.theme-screenshot-tabs__tab--active, .theme-screenshot-tabs__tab--active:hover {
  border-color: var(--accent-secondary);
  background: var(--accent-secondary);
  color: var(--background);
}
.theme-screenshot-tabs__panel {
  background: var(--background);
}
.theme-screenshot-tabs__panel[hidden] {
  display: none;
}
.theme-screenshot-tabs__image {
  display: block;
  width: 100%;
  height: auto;
}
.theme-screenshot-tabs .theme-screenshot {
  margin: 0;
}
.theme-screenshot-tabs figcaption {
  margin-top: 0;
}

@media (max-width: 683px) {
  .theme-screenshot-tabs__tab {
    flex: 1 1 calc(50% - 6px);
  }
}
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--code-bg);
  padding: 2px 6px;
  margin: 0 2px;
  font-size: 0.9rem;
  border-radius: 4px;
}

.code-block-wrapper {
  position: relative;
}
.code-block-wrapper .copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px;
  width: 28px;
  height: 28px;
  color: var(--color);
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.code-block-wrapper .copy-button svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: auto;
}
.code-block-wrapper:hover .copy-button {
  opacity: 0.7;
}
.code-block-wrapper .copy-button:hover {
  opacity: 1;
}
@media (hover: none) {
  .code-block-wrapper .copy-button {
    opacity: 0.7;
  }
}

pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  padding: 16px 20px;
  font-size: 0.9rem;
  overflow: auto;
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
@media (max-width: 683px) {
  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
  }
}
pre code {
  padding: 0;
  margin: 0;
  background: none;
}

pre.mermaid {
  max-width: 100%;
  margin: 32px 0;
  overflow: auto;
  white-space: pre;
  font-family: var(--font-sans);
  line-height: 1.35;
}
pre.mermaid.mermaid-rendered {
  white-space: normal;
}
pre.mermaid.mermaid-rendered svg {
  display: block;
  width: 100%;
  min-width: min(720px, 100%);
  max-width: none;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  font-family: var(--font-sans);
}
pre.mermaid.mermaid-rendered foreignObject,
pre.mermaid.mermaid-rendered .label,
pre.mermaid.mermaid-rendered .nodeLabel,
pre.mermaid.mermaid-rendered .edgeLabel,
pre.mermaid.mermaid-rendered .cluster-label {
  overflow: visible;
}
pre.mermaid.mermaid-rendered .nodeLabel,
pre.mermaid.mermaid-rendered .edgeLabel,
pre.mermaid.mermaid-rendered .label div {
  font-family: var(--font-sans) !important;
  line-height: 1.35;
}

blockquote {
  position: relative;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin: 40px 0;
  padding: 25px;
}
@media (max-width: 683px) {
  blockquote {
    padding-right: 0;
  }
}
blockquote p:first-of-type {
  margin-top: 0;
}
blockquote p:last-of-type {
  margin-bottom: 0;
}
blockquote p {
  position: relative;
}
blockquote p:before {
  content: ">";
  display: block;
  position: absolute;
  left: -25px;
  color: var(--accent);
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  margin: 40px 0;
}
@media (max-width: 683px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

table, th, td {
  border: 1px dashed var(--accent);
  padding: 10px;
}

th {
  color: var(--accent);
}

ul, ol {
  margin-left: 30px;
  padding: 0;
}
ul li, ol li {
  position: relative;
}
@media (max-width: 683px) {
  ul, ol {
    margin-left: 20px;
  }
}

ol ol {
  list-style-type: lower-alpha;
}

hr {
  width: 100%;
  border: none;
  background: var(--border-color);
  height: 1px;
}

.hidden {
  display: none;
}

.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;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
}
@media (max-width: 683px) {
  .navbar__inner {
    padding: 0 20px;
  }
}
@media (max-width: 760px) {
  .navbar__inner {
    position: relative;
  }
}
.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.navbar__logo .logo-name {
  color: var(--accent);
  animation: color-swap 8s ease-in-out infinite;
}
.navbar__logo .logo-tld {
  color: var(--accent-secondary);
  animation: color-swap-reverse 8s ease-in-out infinite;
}
.navbar__logo-img {
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin-right: 0.5rem;
}
.navbar__links {
  display: flex;
  align-items: baseline;
  gap: 32px;
  list-style: none;
  margin: 0;
  margin-right: auto;
  padding: 0;
  padding-left: 24px;
}
@media (max-width: 760px) {
  .navbar__links {
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
  }
}
.navbar__links li {
  position: relative;
}
@media (max-width: 760px) {
  .navbar__links li {
    width: 100%;
  }
}
.navbar__links li a {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.navbar__links li a:hover {
  color: var(--color);
}
@media (max-width: 760px) {
  .navbar__links li a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
}
.navbar__links li.active > .navbar__link-wrap > a {
  color: var(--accent);
}
.navbar__link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
@media (max-width: 760px) {
  .navbar__link-wrap {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    gap: 12px;
  }
}
.navbar__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}
.navbar__dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}
.navbar__dropdown-toggle:hover {
  color: var(--accent-secondary);
}
@media (max-width: 760px) {
  .navbar__dropdown-toggle {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border-radius: 8px;
  }
  .navbar__dropdown-toggle:hover {
    background: var(--accent-alpha-20);
  }
}
.navbar__item--has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 12px;
  z-index: 119;
}
@media (max-width: 760px) {
  .navbar__item--has-dropdown::after {
    display: none;
  }
}
.navbar__item--has-dropdown:hover > .navbar__dropdown, .navbar__item--has-dropdown:focus-within > .navbar__dropdown, .navbar__item--dropdown-open > .navbar__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.navbar__item--has-dropdown:hover .navbar__dropdown-toggle svg, .navbar__item--has-dropdown:focus-within .navbar__dropdown-toggle svg, .navbar__item--dropdown-open .navbar__dropdown-toggle svg {
  transform: rotate(180deg);
}
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 120;
}
.navbar__dropdown li {
  margin: 0;
}
.navbar__dropdown li.navbar__dropdown-footer {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
}
.navbar__dropdown li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--color-muted);
  white-space: nowrap;
}
.navbar__dropdown li a:hover {
  color: var(--accent-secondary);
  background: var(--accent-secondary-alpha-20);
}
@media (max-width: 760px) {
  .navbar__dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .navbar__dropdown li a {
    padding: 9px 12px;
    white-space: normal;
  }
}
.navbar__dropdown--posts {
  left: 0;
  right: auto;
  width: min(440px, 100vw - 32px);
  min-width: 300px;
}
.navbar__dropdown--posts .navbar__dropdown-post,
.navbar__dropdown--posts .navbar__dropdown-footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.navbar__dropdown--posts .navbar__dropdown-post-title,
.navbar__dropdown--posts .navbar__dropdown-footer > a:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.navbar__dropdown--posts .navbar__dropdown-tags {
  display: flex;
  flex: 0 1 48%;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 7px;
  min-width: 0;
  padding: 6px 0;
}
.navbar__dropdown--posts .navbar__dropdown-tag {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 2px 0;
  color: var(--accent-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.navbar__dropdown--posts li a {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
@media (max-width: 760px) {
  .navbar__dropdown--posts {
    width: auto;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }
  .navbar__dropdown--posts .navbar__dropdown-post {
    display: block;
    padding: 2px 0;
    border-top: 1px solid var(--border-color);
  }
  .navbar__dropdown--posts .navbar__dropdown-post:first-child {
    border-top: 0;
  }
  .navbar__dropdown--posts .navbar__dropdown-post:nth-of-type(n + 5) {
    display: none;
  }
  .navbar__dropdown--posts .navbar__dropdown-post-title {
    display: block;
    padding: 10px 12px;
  }
  .navbar__dropdown--posts .navbar__dropdown-tags {
    display: none;
  }
  .navbar__dropdown--posts .navbar__dropdown-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 0;
  }
  .navbar__dropdown--posts .navbar__dropdown-footer a {
    flex: 1 1 0;
    text-align: center;
  }
}
@media (max-width: 760px) {
  .navbar__item--dropdown-open > .navbar__dropdown {
    display: block;
  }
}
.navbar__hamburger {
  display: none;
  background: transparent;
  color: inherit;
  font: inherit;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .navbar__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 8px 6px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease;
    margin-left: auto;
  }
  .navbar__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-muted);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .navbar__hamburger:hover {
    border-color: var(--accent-alpha-70);
  }
}
.navbar__hamburger[aria-expanded=true] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger[aria-expanded=true] span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger[aria-expanded=true] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.navbar__menu {
  display: contents;
}
@media (max-width: 760px) {
  .navbar__menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    z-index: 99;
  }
}
@media (max-width: 760px) {
  .navbar__menu--open {
    display: flex;
  }
}
.navbar__mobile-social-links {
  display: none;
}
@media (max-width: 760px) {
  .navbar__mobile-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
  }
}
.navbar__mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.navbar__mobile-social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.navbar__mobile-social-link:hover {
  color: var(--accent);
  border-color: var(--accent-alpha-70);
  background: var(--accent-alpha-20);
}
.navbar__icon-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.navbar__icon-link svg {
  width: 18px;
  height: 18px;
}
.navbar__icon-link:hover {
  color: var(--accent);
  border-color: var(--accent-alpha-70);
  background: var(--accent-alpha-20);
}
@media (max-width: 760px) {
  .navbar__social-link {
    display: none;
  }
}

@media (max-width: 760px) {
  html.navbar-menu-open .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
}

@keyframes color-swap {
  0%, 100% {
    color: var(--accent);
  }
  50% {
    color: var(--accent-secondary);
  }
}
@keyframes color-swap-reverse {
  0%, 100% {
    color: var(--accent-secondary);
  }
  50% {
    color: var(--accent);
  }
}
@keyframes gradient-text-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(8px);
  }
  60% {
    transform: translateX(-50%) translateY(4px);
  }
}
@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ai-submit-load-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-secondary-rgb), 0);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(var(--accent-secondary-rgb), 0.16);
  }
}
@keyframes ai-thinking-pulse {
  0%, 100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint {
    animation: none;
  }
  .text-accent {
    animation: none;
  }
  .ai-voice-spinner {
    animation: none;
  }
  .ai-composer[data-ai-submit-load=true] textarea {
    animation: none;
  }
  .ai-thinking--active summary span,
.ai-thinking-placeholder span {
    animation: none;
  }
  .navbar__logo .logo-name,
.navbar__logo .logo-tld {
    animation: none;
  }
  .navbar__logo .logo-name {
    color: var(--accent);
  }
  .navbar__logo .logo-tld {
    color: var(--accent-secondary);
  }
}
.external-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.5;
}

.site-mark {
  display: none;
}

.site-mark,
img.headshot {
  -webkit-user-drag: none;
  user-select: none;
}

:root:not([data-site-theme]) .site-mark-boring,
[data-site-theme=aura] .site-mark-aura,
[data-site-theme=boring] .site-mark-boring,
[data-site-theme=code-y] .site-mark-code-y,
[data-site-theme=dreamy] .site-mark-dreamy {
  display: block;
}

.site-theme-switcher {
  position: relative;
  display: none;
  align-items: center;
  flex-shrink: 0;
}
.site-theme-switcher__btn {
  display: flex;
}
.site-theme-switcher__icon {
  display: none;
}
.site-theme-switcher__icon--boring {
  display: block;
}
.site-theme-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 130;
  min-width: 156px;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.site-theme-switcher__menu[hidden] {
  display: none;
}
.site-theme-switcher__option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.site-theme-switcher__option:hover, .site-theme-switcher__option.active {
  color: var(--color);
  background: var(--accent-alpha-20);
}
.site-theme-switcher__option.active::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  vertical-align: middle;
}

[data-site-theme=aura] .site-theme-switcher__icon,
[data-site-theme=code-y] .site-theme-switcher__icon,
[data-site-theme=dreamy] .site-theme-switcher__icon {
  display: none;
}

[data-site-theme=aura] .site-theme-switcher__icon--aura,
[data-site-theme=code-y] .site-theme-switcher__icon--code-y,
[data-site-theme=dreamy] .site-theme-switcher__icon--dreamy {
  display: block;
}

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-alpha-70);
  background: var(--accent-alpha-20);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

[data-theme=light] .theme-toggle .icon-sun {
  display: block;
}
[data-theme=light] .theme-toggle .icon-moon {
  display: none;
}

.main {
  flex: 1;
  min-height: calc(100vh - 64px - 100px);
}

.hero {
  --accent-rgb: var(--hero-accent-rgb);
  --accent: var(--hero-accent);
  --accent-alpha-70: var(--hero-accent-alpha-70);
  --accent-alpha-20: var(--hero-accent-alpha-20);
  --accent-secondary-rgb: var(--hero-accent-secondary-rgb);
  --accent-secondary: var(--hero-accent-secondary);
  --accent-secondary-alpha-20: var(--hero-accent-secondary-alpha-20);
  --background-rgb: var(--hero-background-rgb);
  --background: var(--hero-background);
  --background-raised: var(--hero-background-raised);
  --color: var(--hero-color);
  --color-muted: var(--hero-color-muted);
  --button-shadow: var(--hero-button-shadow);
  --button-hover-shadow: var(--hero-button-hover-shadow);
  background: var(--background);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  min-height: calc(var(--hero-stable-vh, 100svh) - 64px);
  padding: 120px 40px;
  overflow: hidden;
}
@media (max-width: 899px) {
  .hero {
    padding: 80px 40px;
  }
}
@media (max-width: 683px) {
  .hero {
    padding: 60px 20px;
  }
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
  isolation: isolate;
}
.hero__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -64px -10vw;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(var(--background-rgb), 0.78) 0%, rgba(var(--background-rgb), 0.48) 38%, rgba(var(--background-rgb), 0) 72%);
  filter: blur(8px);
}
.hero__title {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  color: var(--color);
}
@media (max-width: 899px) {
  .hero__title {
    font-size: 4rem;
  }
}
@media (max-width: 683px) {
  .hero__title {
    font-size: 3rem;
  }
}
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--accent-secondary);
  max-width: 38rem;
  margin: 16px auto 0;
  font-weight: 400;
  text-wrap: balance;
}
@media (max-width: 683px) {
  .hero__subtitle {
    font-size: 1.125rem;
  }
}
.hero__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 740px);
  margin: 32px auto 0;
}
@media (max-width: 899px) {
  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
  }
}
@media (max-width: 360px) {
  .hero__actions {
    grid-template-columns: 1fr;
  }
}
.hero__action {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.42);
  border-radius: 8px;
  background: rgba(var(--background-raised-rgb, var(--background-rgb)), 0.62);
  color: var(--color);
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hero__action:hover, .hero__action:focus-visible {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: var(--button-hover-shadow);
  transform: translateY(-2px);
  outline: none;
}
.hero__action-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  line-height: 1.1;
}
.hero__action-description {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.25;
  text-wrap: balance;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-muted);
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
  animation: bounce-down 2.4s ease-in-out infinite;
  text-decoration: none;
}
.hero__scroll-hint:hover, .hero__scroll-hint:focus-visible {
  opacity: 1;
  color: var(--accent-secondary);
  outline: none;
}
@media (max-width: 683px) {
  .hero__scroll-hint {
    bottom: 20px;
  }
}

[data-site-theme=aura] .hero .hero__scroll-hint {
  animation: bounce-down 2.4s ease-in-out infinite;
}

[data-site-theme=dreamy] .hero .hero__scroll-hint {
  animation: bounce-down 2.6s ease-in-out infinite;
}

.text-accent {
  color: var(--accent);
  animation: color-swap 8s ease-in-out infinite;
  text-decoration: none;
}

[data-site-theme=code-y] .hero__inner::before {
  content: none;
}
[data-site-theme=code-y] .hero__scroll-hint {
  animation: bounce-down 2s ease infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint,
.text-accent,
.navbar__logo .logo-name,
.navbar__logo .logo-tld {
    animation: none;
  }
}
@media (max-width: 683px), (hover: none), (pointer: coarse) {
  [data-site-theme=aura] .hero .hero__scroll-hint,
[data-site-theme=code-y] .hero .hero__scroll-hint,
[data-site-theme=dreamy] .hero .hero__scroll-hint,
.hero__scroll-hint {
    animation: none;
  }
}
.text-cyan {
  color: var(--accent-secondary);
}

.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
  text-align: center;
}
@media (max-width: 683px) {
  .about {
    padding: 40px 20px 40px;
  }
}
.about__avatar {
  text-align: center;
  margin-bottom: 24px;
}
.about__avatar-img {
  display: inline-block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--accent-alpha-70);
}
.about__heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color);
  margin: 0 0 24px;
}
.about__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
}
.about__body a {
  color: var(--accent);
  text-decoration: none;
}
.about__body a:hover {
  text-decoration: underline;
}
.about__body ul {
  display: inline-block;
  text-align: left;
}

.home-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 80px;
  text-align: center;
}
@media (max-width: 683px) {
  .home-cta {
    padding: 0 20px 40px;
  }
}
.home-cta__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-muted);
  opacity: 0.64;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.home-cta__top:hover, .home-cta__top:focus-visible {
  color: var(--accent-secondary);
  opacity: 1;
  transform: translateY(-3px);
  outline: none;
}

.posts-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 80px;
  text-align: center;
}
@media (max-width: 683px) {
  .posts-section {
    padding: 0 20px 40px;
  }
}
.posts-section__heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color);
  margin: 0 0 24px;
}

.posts {
  width: 100%;
}

.post {
  width: 100%;
  text-align: left;
  margin: 20px auto;
  padding: 20px 0;
}
.post.on-list {
  text-align: center;
}
@media (max-width: 899px) {
  .post {
    max-width: 660px;
  }
}
.post:not(:last-of-type) {
  border-bottom: 1px solid var(--border-color);
}
.post-meta, .post-meta-inline {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent-alpha-70);
}
.post-meta-inline {
  display: inline;
}
.post-author {
  margin-left: 0.25rem;
}
.post-title {
  font-family: var(--font-display);
  position: relative;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: normal;
}
.post-title a {
  text-decoration: none;
}
.post-tags, .post-tags-inline {
  margin-bottom: 20px;
  font-size: 1rem;
  opacity: 0.5;
}
.post-tags {
  display: block;
}
.post-tags-inline {
  display: inline;
}
@media (max-width: 683px) {
  .post-tags-inline {
    display: block;
  }
}
.post-tags-index {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-alpha-70);
  text-underline-offset: 0.16em;
}
.post-tags-index:hover {
  color: var(--accent-secondary);
  text-decoration-color: currentColor;
}
.post-content {
  margin-top: 30px;
}
.post ul {
  list-style: none;
}
.post ul li:before {
  content: "►";
  position: absolute;
  left: -20px;
  color: var(--accent);
}

.post-list .post-date {
  color: var(--accent-alpha-70);
  text-decoration: none;
}
.post-list a {
  text-decoration: none;
}
.post-list .post-list-title {
  text-decoration: underline;
}
.post-list .post-tag {
  text-decoration: underline;
}

.taxonomy-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 40px 90px;
}
@media (max-width: 683px) {
  .taxonomy-page {
    padding: 44px 20px 64px;
  }
}

.taxonomy-hero {
  max-width: 720px;
  margin-bottom: 30px;
}
.taxonomy-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
}
.taxonomy-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
}
.taxonomy-hero__eyebrow a:hover {
  text-decoration: underline;
}
.taxonomy-hero__title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.08;
}
@media (max-width: 683px) {
  .taxonomy-hero__title {
    font-size: 2rem;
  }
}
.taxonomy-hero__body {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 899px) {
  .tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 683px) {
  .tag-grid {
    grid-template-columns: 1fr;
  }
}

.tag-card {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tag-card:hover {
  border-color: var(--accent-secondary);
  background: var(--accent-alpha-20);
  transform: translateY(-2px);
}
.tag-card__name {
  color: var(--color);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tag-card__count {
  margin-top: 14px;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
}

.tag-timeline {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--background-raised);
}
.tag-timeline__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
@media (max-width: 683px) {
  .tag-timeline__header {
    grid-template-columns: 1fr;
  }
}
.tag-timeline__eyebrow {
  margin: 0 0 4px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}
.tag-timeline h2 {
  margin: 0;
  color: var(--color);
  font-size: 1.1rem;
}
.tag-timeline__button {
  min-width: 150px;
  white-space: nowrap;
}
.tag-timeline__button:disabled {
  opacity: 0.72;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.tag-timeline__status {
  min-height: 1.25em;
  margin: 10px 0 0;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
}
.tag-timeline__body[hidden], .tag-timeline__fallback[hidden] {
  display: none;
}
.tag-timeline__chart {
  width: 100%;
  min-height: 460px;
  margin-top: 14px;
}
.tag-timeline__fallback {
  margin-top: 14px;
}
.tag-timeline__fallback-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-timeline__fallback-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}
.tag-timeline__fallback-list a:hover {
  color: var(--accent-secondary);
}
.tag-timeline__fallback-list span {
  display: block;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}

.taxonomy-posts {
  display: grid;
  gap: 10px;
}

.taxonomy-post {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.taxonomy-post:first-child {
  border-top: 1px solid var(--border-color);
}
.taxonomy-post__title {
  display: inline-block;
  color: var(--color);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
  text-decoration: none;
}
.taxonomy-post__title:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}
.taxonomy-post__meta {
  margin-top: 6px;
  color: var(--accent-alpha-70);
  font-size: 0.86rem;
}
.taxonomy-post__meta .post-tags-inline {
  opacity: 1;
}

.page-content {
  max-width: 864px;
  margin: 0 auto;
  padding: 80px 40px;
}
@media (max-width: 683px) {
  .page-content {
    padding: 40px 20px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 6px 18px;
  text-decoration: none;
  border: 2px solid var(--accent-secondary);
  border-radius: 6px;
  background: var(--accent-secondary);
  color: var(--background);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--button-shadow);
}
.button:hover {
  background: transparent;
  color: var(--accent-secondary);
  box-shadow: var(--button-hover-shadow);
  transform: translateY(-2px);
}

.button--stealth {
  border-color: transparent;
  background: transparent;
  color: transparent;
  box-shadow: none;
  opacity: 0;
}
.button--stealth:hover, .button--stealth:focus-visible {
  border-color: var(--accent-secondary);
  background: rgba(var(--accent-secondary-rgb), 0.04);
  color: var(--accent-secondary);
  box-shadow: var(--button-shadow);
  opacity: 1;
}

.read-more {
  margin: 20px auto 0;
  display: flex;
  width: fit-content;
}

.hire-page {
  width: min(980px, 100vw - 40px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) 0 72px;
}
@media (max-width: 683px) {
  .hire-page {
    width: min(100% - 32px, 980px);
    padding-top: 34px;
  }
}

.hire-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  padding: 4px 0 clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--border-color);
}
.hire-page-hero::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: min(260px, 46vw);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}
@media (max-width: 860px) {
  .hire-page-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.hire-page-eyebrow {
  margin: 0 0 14px;
  color: var(--accent-secondary);
  font: 700 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hire-page-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--accent);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hire-page-lede {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--color);
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
  line-height: 1.55;
}

.hire-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.hire-page-meta span {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--color-muted);
  font: 700 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hire-page-hero__links {
  align-self: start;
  display: grid;
  gap: 8px;
}
@media (max-width: 860px) {
  .hire-page-hero__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .hire-page-hero__links {
    grid-template-columns: 1fr;
  }
}

.hire-page-hero__links a,
.hire-page-artifact {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
  color: var(--color);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.hire-page-hero__links a {
  padding: 10px 12px;
  color: var(--accent);
  font: 700 0.78rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  text-align: center;
}

.hire-page-hero__links a:hover,
.hire-page-artifact:hover {
  border-color: var(--accent);
  background: var(--accent-alpha-20);
}

.hire-page-artifacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin: 24px 0 14px;
}
@media (max-width: 860px) {
  .hire-page-artifacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .hire-page-artifacts {
    grid-template-columns: 1fr;
  }
}

.hire-page-artifact {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 128px;
  overflow: hidden;
  padding: 14px;
}
.hire-page-artifact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: 0.84;
}
.hire-page-artifact:nth-child(2)::before, .hire-page-artifact:nth-child(4)::before {
  background: var(--accent-secondary);
}
.hire-page-artifact span {
  color: var(--color-muted);
  font: 700 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hire-page-artifact strong {
  color: var(--accent);
  font-size: clamp(0.94rem, 1.6vw, 1.12rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.hire-page-artifact small {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hire-page-body {
  max-width: 820px;
  margin-top: clamp(26px, 4vw, 38px);
}
.hire-page-body > :first-child {
  margin-top: 0;
}
.hire-page-body h2 {
  margin-top: clamp(34px, 5vw, 50px);
}

.hire-page-contact-button {
  margin-top: 4px;
}
@media (max-width: 520px) {
  .hire-page-contact-button {
    width: 100%;
  }
}

.pagination {
  margin-top: 50px;
}
.pagination .button {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-alpha-20);
}
.pagination .button:hover {
  background: var(--accent);
  color: var(--background);
  box-shadow: 0 0 20px var(--accent);
}
.pagination__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.feed-banner:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-alpha-20);
}
.feed-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tabs {
  margin: 25px 0;
}
.tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}
.tabs__btn {
  padding: 8px 16px;
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--accent-alpha-70);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.tabs__btn:hover {
  color: var(--accent);
}
.tabs__btn--active {
  color: var(--accent);
  border-color: var(--border-color);
  background: var(--code-bg);
}
.tabs__panel {
  display: none;
}
.tabs__panel--active {
  display: block;
}

.footer {
  border-top: 1px solid var(--border-color);
  color: var(--color-muted);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 40px;
}
@media (max-width: 683px) {
  .footer__inner {
    padding: 24px 20px;
  }
}
.footer .copyright {
  font-size: 0.875rem;
}
.footer a {
  color: inherit;
}
.footer a:hover {
  color: var(--accent);
}

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid;
  border-radius: 0 8px 8px 0;
  background: var(--background-raised);
}
.callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin: 0 0 8px;
}
.callout__title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout--note, .callout--info {
  border-color: #58a6ff;
}
.callout--note .callout__title, .callout--info .callout__title {
  color: #58a6ff;
}
.callout--tip {
  border-color: #3fb950;
}
.callout--tip .callout__title {
  color: #3fb950;
}
.callout--warning {
  border-color: #d29922;
}
.callout--warning .callout__title {
  color: #d29922;
}
.callout--danger, .callout--caution {
  border-color: #f85149;
}
.callout--danger .callout__title, .callout--caution .callout__title {
  color: #f85149;
}
.callout--important {
  border-color: var(--accent);
}
.callout--important .callout__title {
  color: var(--accent);
}

.zorto-anchor {
  text-decoration: none !important;
  font-size: 0 !important;
  margin-left: 0.3em !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}
.zorto-anchor::after {
  content: "#" !important;
  font-size: 1rem !important;
  opacity: 0.5 !important;
  color: var(--accent-secondary) !important;
  font-weight: normal !important;
}

h1:hover .zorto-anchor,
h2:hover .zorto-anchor,
h3:hover .zorto-anchor,
h4:hover .zorto-anchor,
h5:hover .zorto-anchor,
h6:hover .zorto-anchor {
  opacity: 1 !important;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.search-modal[hidden] {
  display: none;
}
.search-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.search-modal--visible .search-modal__backdrop {
  opacity: 1;
}
.search-modal__dialog {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: var(--background-raised);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  transform: scale(0.96) translateY(-8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 683px) {
  .search-modal__dialog {
    width: 95%;
    max-width: none;
    border-radius: 12px;
  }
}
.search-modal--visible .search-modal__dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.search-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
@media (max-width: 683px) {
  .search-modal__header {
    padding: 14px 16px;
    gap: 10px;
  }
}
.search-modal__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-muted);
}
.search-modal__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--color);
  font-family: inherit;
  min-width: 0;
}
.search-modal__input::placeholder {
  color: var(--color-muted);
  opacity: 0.6;
}
@media (max-width: 683px) {
  .search-modal__input {
    font-size: 1rem;
  }
}
.search-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--background);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: background 0.15s, color 0.15s;
}
.search-modal__close:hover {
  background: var(--accent-alpha-20);
  color: var(--color);
}
.search-modal__close svg {
  width: 16px;
  height: 16px;
}
.search-modal__status {
  padding: 6px 20px;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.search-modal__status:empty {
  display: none;
}
.search-modal__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.search-modal__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: search-spin 0.6s linear infinite;
  flex-shrink: 0;
}
.search-modal__results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px;
  scroll-behavior: smooth;
}
@media (max-width: 683px) {
  .search-modal__results {
    max-height: 60vh;
    padding: 6px;
  }
}
.search-modal__result {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color);
  transition: background 0.15s ease, transform 0.1s ease;
}
.search-modal__result + .search-modal__result {
  margin-top: 2px;
}
.search-modal__result:hover, .search-modal__result--selected {
  background: var(--accent-alpha-20);
}
.search-modal__result:active {
  transform: scale(0.99);
}
.search-modal__result mark {
  background: var(--accent-alpha-20);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 2px;
}
.search-modal__result-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.search-modal__result-title mark {
  font-weight: 700;
}
.search-modal__result-url {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-bottom: 6px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  opacity: 0.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-modal__result-snippet {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-modal__empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.search-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--background);
}
@media (max-width: 683px) {
  .search-modal__footer {
    display: none;
  }
}
.search-modal__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--color-muted);
  opacity: 0.7;
}
.search-modal__hint kbd {
  font-size: 0.65rem;
  padding: 1px 5px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: var(--background-raised);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

@keyframes search-spin {
  to {
    transform: rotate(360deg);
  }
}
.dashboards-index,
.dashboard-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
}
@media (max-width: 683px) {
  .dashboards-index,
.dashboard-page {
    padding: 40px 20px;
  }
}

.main:has(.dashboard-page--loaded) {
  min-height: calc(100vh - 64px);
}

body:has(.dashboard-page--loaded) .footer {
  display: none;
}

.dashboard-page--loaded {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 64px);
  padding: 12px clamp(12px, 2vw, 28px) 44px;
}
.dashboard-page--loaded .dashboard-page__header,
.dashboard-page--loaded .dashboard-brief,
.dashboard-page--loaded .dashboard-page__narrative {
  display: none;
}

.dashboards-hero,
.dashboard-page__header {
  max-width: 780px;
  margin-bottom: 36px;
}

.dashboards-hero__eyebrow,
.dashboard-page__back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.dashboards-hero__title,
.dashboard-page__title {
  margin: 0 0 14px;
  color: var(--color);
  font-size: 2.1rem;
}
@media (max-width: 683px) {
  .dashboards-hero__title,
.dashboard-page__title {
    font-size: 1.8rem;
  }
}

.dashboards-hero__body,
.dashboard-page__description {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.dashboard-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
@media (max-width: 899px) {
  .dashboard-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 683px) {
  .dashboard-flow {
    grid-template-columns: 1fr;
  }
}
.dashboard-flow div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.dashboard-flow span,
.dashboard-flow em {
  display: block;
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
  font-style: normal;
}
.dashboard-flow strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--color);
  font-family: var(--font-display);
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 899px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--background-raised);
}
.dashboard-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
}
.dashboard-card__topline span:last-child {
  color: var(--color-muted);
}
.dashboard-card__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.dashboard-card__description {
  margin: 0 0 18px;
  color: var(--color-muted);
}
.dashboard-card__meta {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.dashboard-card__meta div {
  min-width: 0;
}
.dashboard-card__meta dt {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
}
.dashboard-card__meta dd {
  margin: 1px 0 0;
  color: var(--color);
  font-size: 0.9rem;
}
.dashboard-card__link {
  align-self: flex-start;
  margin-top: auto;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.84rem;
}
@media (max-width: 683px) {
  .dashboard-card__link {
    width: 100%;
  }
}

.dashboard-page__narrative {
  max-width: 840px;
  margin-bottom: 28px;
}

.dashboard-wip {
  max-width: 840px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.08);
}
.dashboard-wip strong {
  display: block;
  margin-bottom: 6px;
  color: rgb(251, 191, 36);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.95rem;
}
.dashboard-wip p {
  margin: 0;
  color: var(--color);
}

.dashboard-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  max-width: 840px;
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.32);
  border-radius: 8px;
  background: rgba(var(--accent-secondary-rgb), 0.055);
}
.dashboard-brief strong {
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9rem;
}
.dashboard-brief span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.dashboard-loader {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 18px;
  max-width: 420px;
  min-height: 220px;
  margin: 8vh auto 32px;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
  text-align: center;
}
@media (max-width: 683px) {
  .dashboard-loader {
    max-width: none;
    min-height: 190px;
  }
}
.dashboard-loader h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.dashboard-loader p {
  margin: 0;
  color: var(--color-muted);
}
.dashboard-loader__button {
  min-width: 150px;
  white-space: nowrap;
}
@media (max-width: 683px) {
  .dashboard-loader__button {
    width: 100%;
  }
}
.dashboard-loader__button--attention {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(var(--accent-secondary-rgb), 0.18), var(--button-shadow);
}
.dashboard-loader__button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.55;
}
.dashboard-loader__status {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85rem;
}
.dashboard-loader--loaded {
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 0;
  max-width: none;
  min-height: 0;
  margin: 0 0 12px;
  padding: 8px 11px;
  background: rgba(var(--accent-secondary-rgb), 0.045);
  text-align: left;
}
.dashboard-loader--loaded .dashboard-loader__copy,
.dashboard-loader--loaded .dashboard-loader__button {
  display: none;
}
.dashboard-loader--loaded .dashboard-loader__status {
  font-size: 0.78rem;
}

.dashboard-app[hidden] {
  display: none;
}

.dashboard-app {
  width: 100%;
}

.dashboard-app__mount {
  min-width: 0;
}

.dashboard-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}
.dashboard-sources a {
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
}
.dashboard-sources a:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.dashboard-tabs {
  margin: 22px 0;
}
.dashboard-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.dashboard-tabs__tab {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.dashboard-tabs__tab:hover:not(.dashboard-tabs__tab--active) {
  border-color: rgba(var(--accent-secondary-rgb), 0.35);
  color: var(--accent-secondary);
}
.dashboard-tabs__tab--active, .dashboard-tabs__tab--active:hover {
  border-color: var(--accent-secondary);
  background: var(--accent-secondary);
  color: var(--background);
}
.dashboard-tabs__panel {
  margin-top: 18px;
}
.dashboard-tabs__panel[hidden] {
  display: none;
}

.dashboard-page--loaded .dashboard-tabs {
  margin: 0;
}
.dashboard-page--loaded .dashboard-tabs__list {
  position: sticky;
  top: 72px;
  z-index: 12;
  background: var(--background-raised);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}
@media (max-width: 899px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 683px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
}

.dashboard-metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.dashboard-metric__label, .dashboard-metric__note {
  display: block;
  color: var(--color-muted);
  font-size: 0.76rem;
}
.dashboard-metric__label {
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.dashboard-metric__value {
  display: block;
  margin-top: 4px;
  color: var(--color);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.dashboard-metric__note {
  margin-top: 4px;
}

.dashboard-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}
@media (max-width: 899px) {
  .dashboard-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 683px) {
  .dashboard-highlights {
    grid-template-columns: 1fr;
  }
}

.dashboard-highlight {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(var(--accent-secondary-rgb), 0.035);
}
.dashboard-highlight__label {
  display: block;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}
.dashboard-highlight strong {
  display: block;
  margin-top: 6px;
  color: var(--color);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.dashboard-highlight p {
  margin: 7px 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-schema {
  margin: 26px 0 0;
}
.dashboard-schema__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 899px) {
  .dashboard-schema__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 683px) {
  .dashboard-schema__grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-schema__table {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.dashboard-schema__table h3 {
  margin: 0;
  color: var(--color);
  font-size: 0.98rem;
}
.dashboard-schema__table p {
  margin: 4px 0 10px;
  color: var(--color-muted);
  font-size: 0.82rem;
}
.dashboard-schema__table div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dashboard-schema__table span {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
}

.dashboard-workbench {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  transition: grid-template-columns 0.16s ease;
}
@media (max-width: 899px) {
  .dashboard-workbench {
    grid-template-columns: 1fr;
  }
}
.dashboard-workbench--filters-collapsed {
  grid-template-columns: 56px minmax(0, 1fr);
}
@media (max-width: 899px) {
  .dashboard-workbench--filters-collapsed {
    grid-template-columns: 1fr;
  }
}
.dashboard-workbench__main {
  min-width: 0;
}

.dashboard-filter-rail {
  position: sticky;
  top: 78px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
@media (max-width: 899px) {
  .dashboard-filter-rail {
    position: static;
  }
}
.dashboard-filter-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dashboard-filter-rail__header span {
  color: var(--color);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.dashboard-filter-rail__actions {
  display: flex;
  gap: 6px;
}
.dashboard-filter-rail__actions button {
  padding: 5px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.dashboard-filter-rail__actions button:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.dashboard-filter-rail__summary {
  margin: 0 0 14px;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
}
.dashboard-filter-rail__group {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--border-color);
}
.dashboard-filter-rail__group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.dashboard-filter-rail__group legend {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
}
.dashboard-filter-rail__group label {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  color: var(--color-muted);
  font-size: 0.82rem;
}
.dashboard-filter-rail__group label:last-child {
  margin-bottom: 0;
}
.dashboard-filter-rail__group select,
.dashboard-filter-rail__group input[type=date] {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color);
  color-scheme: dark;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.2;
}
.dashboard-filter-rail__group input[type=date] {
  font-variant-numeric: tabular-nums;
}
.dashboard-filter-rail__date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.dashboard-filter-rail__date-grid label {
  grid-template-rows: 16px 40px;
  align-content: start;
  gap: 6px;
  margin-bottom: 0;
}
.dashboard-filter-rail__date-grid span {
  display: block;
  height: 16px;
  overflow: hidden;
  line-height: 16px;
}
.dashboard-filter-rail__mini-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.dashboard-filter-rail__mini-actions button {
  flex: 1;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}
.dashboard-filter-rail__mini-actions button:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.dashboard-filter-rail__checks {
  display: grid;
  gap: 6px;
}
.dashboard-filter-rail__checks label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
}
.dashboard-filter-rail__checks input {
  margin-top: 2px;
  accent-color: var(--accent-secondary);
}
.dashboard-filter-rail__checks span {
  overflow-wrap: anywhere;
}
.dashboard-filter-rail--collapsed {
  padding: 9px 7px;
}
.dashboard-filter-rail--collapsed .dashboard-filter-rail__header {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.dashboard-filter-rail--collapsed .dashboard-filter-rail__header > span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0;
}
.dashboard-filter-rail--collapsed [data-filter-reset],
.dashboard-filter-rail--collapsed .dashboard-filter-rail__summary,
.dashboard-filter-rail--collapsed .dashboard-filter-rail__group {
  display: none;
}
.dashboard-filter-rail--collapsed .dashboard-filter-rail__actions {
  display: block;
}
.dashboard-filter-rail--collapsed [data-filter-collapse] {
  padding: 5px 6px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.dashboard-panels--wide {
  grid-template-columns: 1fr;
}
@media (max-width: 899px) {
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.dashboard-panel__header {
  margin-bottom: 10px;
}
.dashboard-panel__header h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}
.dashboard-panel__header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.dashboard-chart {
  width: 100%;
  height: 320px;
  min-height: 320px;
  overflow: hidden;
}

.dashboard-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  margin: 24px 0;
}
@media (max-width: 899px) {
  .dashboard-map-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel--map {
  min-height: 610px;
}

.dashboard-map {
  height: 520px;
  min-height: 520px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.dashboard-map-shell {
  position: relative;
}

.dashboard-map-detail {
  min-width: 0;
}

.map-layer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: 0.82rem;
}
.map-layer-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.map-layer-legend__swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}
.map-layer-legend__swatch--hotspot {
  background: rgba(34, 211, 238, 0.78);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.map-layer-legend__swatch--fatal {
  background: rgb(248, 113, 113);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}
.map-layer-legend strong {
  display: block;
  color: var(--color);
  font-size: 0.82rem;
  line-height: 1.15;
}
.map-layer-legend small, .map-layer-legend__empty {
  display: block;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  line-height: 1.2;
}

.map-zoom-controls {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
.map-zoom-controls button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.86rem;
  line-height: 1;
}
.map-zoom-controls button:last-child {
  border-right: 0;
}
.map-zoom-controls button:hover, .map-zoom-controls button:focus-visible {
  background: rgba(34, 211, 238, 0.24);
  outline: none;
}

.dashboard-fatal-card {
  height: 100%;
}
.dashboard-fatal-card__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.dashboard-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.dashboard-detail-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}
.dashboard-detail-list dt {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
  text-transform: lowercase;
}
.dashboard-detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--color);
  overflow-wrap: anywhere;
}
@media (max-width: 683px) {
  .dashboard-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.dashboard-control {
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.dashboard-control__label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
}

.dashboard-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-chip {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.dashboard-chip:hover, .dashboard-chip--active {
  border-color: var(--accent-secondary);
  color: var(--background);
  background: var(--accent-secondary);
}

.dashboard-sql-lab {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 899px) {
  .dashboard-sql-lab {
    grid-template-columns: 1fr;
  }
}
.dashboard-sql-lab__editor, .dashboard-sql-lab__result {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.dashboard-sql-lab__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.dashboard-sql-lab__presets button {
  padding: 6px 9px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.dashboard-sql-lab__presets button:hover, .dashboard-sql-lab__presets button.dashboard-sql-lab__preset--active {
  border-color: var(--accent-secondary);
  color: var(--background);
  background: var(--accent-secondary);
}
.dashboard-sql-lab__textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--color);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}
.dashboard-sql-lab__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.dashboard-sql-lab__actions span {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
}
@media (max-width: 683px) {
  .dashboard-sql-lab__actions .button,
.dashboard-sql-lab__actions .dashboard-sql-lab__secondary {
    width: 100%;
  }
}
.dashboard-sql-lab__secondary {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  cursor: pointer;
}
.dashboard-sql-lab__secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.dashboard-sql-lab__chart {
  min-height: 260px;
  margin-bottom: 12px;
}
.dashboard-sql-lab__chart[hidden] {
  display: none;
}
.dashboard-sql-lab__limit {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.dashboard-table-wrap {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 683px) {
  .dashboard-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
}

.dashboard-table {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.9rem;
  line-height: 1.35;
}
.dashboard-table th,
.dashboard-table td {
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: middle;
}
.dashboard-table th {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: lowercase;
}
.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}
.dashboard-table tbody tr:hover td {
  background: rgba(var(--accent-rgb), 0.055);
}
.dashboard-table a {
  color: var(--color);
  text-decoration: none;
}
.dashboard-table a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}
.dashboard-table__code, .dashboard-table__date, .dashboard-table__number, .dashboard-table__path {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
}
.dashboard-table__code, .dashboard-table__date, .dashboard-table__number {
  white-space: nowrap;
}
.dashboard-table__code, .dashboard-table__date, .dashboard-table__path {
  color: var(--accent-alpha-70);
}
.dashboard-table__number {
  color: var(--color-muted);
  text-align: right;
}
.dashboard-table__text, .dashboard-table__path {
  overflow-wrap: anywhere;
  word-break: normal;
}
.dashboard-table__text {
  color: var(--color);
}
.dashboard-table__path {
  color: var(--color-muted);
}
.dashboard-table--writing, .dashboard-table--files {
  min-width: 760px;
}
.dashboard-table--query {
  min-width: 640px;
}
.dashboard-table--query td {
  overflow-wrap: anywhere;
}
@media (max-width: 683px) {
  .dashboard-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .dashboard-table thead {
    display: none;
  }
  .dashboard-table tbody,
.dashboard-table tr,
.dashboard-table td {
    display: block;
  }
  .dashboard-table tr {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
  }
  .dashboard-table td {
    display: grid;
    grid-template-columns: minmax(82px, 34%) minmax(0, 1fr);
    gap: 10px;
    border-bottom-color: rgba(var(--accent-rgb), 0.12);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .dashboard-table td::before {
    content: attr(data-label);
    color: var(--accent-alpha-70);
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.72rem;
  }
  .dashboard-table td:last-child {
    border-bottom: 0;
  }
}

.dashboard-empty {
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-query {
  margin: 22px 0;
  color: var(--color-muted);
}
.dashboard-query summary {
  cursor: pointer;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.dashboard-query pre {
  overflow-x: auto;
}

.dashboard-error {
  padding: 18px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.08);
}
.dashboard-error p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.inline-dashboard-demo {
  margin: 30px 0;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
}
.inline-dashboard-demo__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
@media (max-width: 683px) {
  .inline-dashboard-demo__header {
    grid-template-columns: 1fr;
  }
}
.inline-dashboard-demo__eyebrow {
  margin: 0 0 4px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}
.inline-dashboard-demo h2 {
  margin: 0;
  font-size: 1.08rem;
}
.inline-dashboard-demo__button {
  min-width: 165px;
  white-space: nowrap;
}
.inline-dashboard-demo__status, .inline-dashboard-demo__query-actions span {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
}
.inline-dashboard-demo__status {
  margin-top: 10px;
}
.inline-dashboard-demo__body[hidden], .inline-dashboard-demo__panel[hidden] {
  display: none;
}
.inline-dashboard-demo__mount {
  margin-top: 16px;
}
.inline-dashboard-demo__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.inline-dashboard-demo__viewbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.inline-dashboard-demo__tab {
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}
.inline-dashboard-demo__tab[aria-selected=true] {
  background: var(--accent);
  color: var(--background);
}
.inline-dashboard-demo__tab[aria-pressed=true] {
  border-color: var(--accent-secondary);
  background: var(--accent-secondary);
  color: var(--background);
}
.inline-dashboard-demo__panel {
  margin-top: 14px;
}
.inline-dashboard-demo__chart {
  width: 100%;
  min-height: 340px;
}
.inline-dashboard-demo__label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
}
.inline-dashboard-demo__editor {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--color);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  resize: vertical;
}
.inline-dashboard-demo__query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
}
.inline-dashboard-demo__empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  color: var(--color-muted);
  text-align: center;
}
.inline-dashboard-demo__sql {
  margin-top: 14px;
}

.inline-archer-map__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.inline-archer-map__controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.inline-archer-map__controls input {
  accent-color: var(--accent-secondary);
}
.inline-archer-map__control-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
}
.inline-archer-map__segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.inline-archer-map__segmented button {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
}
.inline-archer-map__segmented button[aria-pressed=true] {
  background: var(--accent-secondary);
  color: var(--background);
}
.inline-archer-map__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.inline-archer-map__insight {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.06);
}
.inline-archer-map__insight strong {
  display: block;
  margin-bottom: 5px;
  color: var(--color);
  font-size: 0.98rem;
}
.inline-archer-map__insight p {
  margin: 0 0 10px;
  color: var(--color-muted);
}
.inline-archer-map__insight div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.inline-archer-map__insight span {
  padding: 4px 7px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  line-height: 1.25;
}
.inline-archer-map__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.inline-archer-map__map-panel {
  position: relative;
  min-width: 0;
}
.inline-archer-map__map-shell {
  position: relative;
}
.inline-archer-map__map, .inline-archer-map__trend {
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.inline-archer-map__trend {
  min-height: 310px;
  margin: 16px 0;
}
.inline-archer-map__tables {
  display: grid;
  gap: 16px;
}
.inline-archer-map__detail {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.inline-archer-map__detail h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}
.inline-archer-map__detail p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}
.inline-archer-map__detail-head {
  min-width: 0;
}
.inline-archer-map__detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px 14px;
  min-width: 0;
  margin: 0;
}
.inline-archer-map__detail-list div {
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}
.inline-archer-map__detail-list dt {
  margin-bottom: 3px;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  text-transform: lowercase;
}
.inline-archer-map__detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--color);
  font-size: 0.94rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.inline-archer-map__detail-context {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}
.inline-archer-map__detail-context strong {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: lowercase;
}
.inline-archer-map__detail-context p {
  color: var(--color);
  overflow-wrap: anywhere;
}
.inline-archer-map__note {
  grid-column: 1/-1;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
@media (max-width: 899px) {
  .inline-archer-map__detail, .inline-archer-map__detail-context {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 683px) {
  .inline-archer-map__map {
    min-height: 420px;
  }
}

.ai-model-picker {
  display: inline-grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.ai-model-picker[hidden] {
  display: none;
}
.ai-model-picker span {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
}
.ai-model-picker select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--background-raised);
  color: var(--color);
  font: inherit;
}
@media (max-width: 683px) {
  .ai-model-picker {
    width: 100%;
  }
}

.ai-loader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 32px 0 16px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
}
@media (max-width: 683px) {
  .ai-loader {
    grid-template-columns: 1fr;
  }
}
.ai-loader h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.ai-loader p {
  margin: 0;
  color: var(--color-muted);
}
.ai-loader__controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  align-items: end;
  gap: 12px;
  justify-self: end;
}
@media (max-width: 899px) {
  .ai-loader__controls {
    grid-column: 1/-1;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-self: stretch;
  }
}
@media (max-width: 683px) {
  .ai-loader__controls {
    grid-template-columns: 1fr;
  }
}
.ai-loader__button {
  min-width: 150px;
  white-space: nowrap;
}
.ai-loader__button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.55;
}
.ai-loader__status {
  display: grid;
  align-content: center;
  gap: 2px;
  grid-column: 1/-1;
  height: calc(2.1735rem + 2px);
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85rem;
  line-height: 1.35;
  overflow: hidden;
}
.ai-loader__status-phase, .ai-loader__status-detail {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-loader__status-detail {
  color: var(--color-muted);
  font-size: 0.76rem;
}
.ai-loader__progress {
  grid-column: 1/-1;
  overflow: hidden;
  height: 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.ai-loader__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
  transition: width 160ms ease;
}

.ai-diagnostics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
@media (max-width: 899px) {
  .ai-diagnostics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 683px) {
  .ai-diagnostics {
    grid-template-columns: 1fr;
  }
}
.ai-diagnostics div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.ai-diagnostics span,
.ai-diagnostics strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ai-diagnostics span {
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}
.ai-diagnostics strong {
  margin-top: 4px;
  color: var(--color);
  font-size: 0.92rem;
}

.ai-host {
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.ai-host__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.ai-host__header h2 {
  margin: 0;
  font-size: 1rem;
}
.ai-host__header span {
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}

.ai-host__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 899px) {
  .ai-host__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 683px) {
  .ai-host__grid {
    grid-template-columns: 1fr;
  }
}

.ai-host-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}
.ai-host-card span,
.ai-host-card strong,
.ai-host-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ai-host-card span {
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
}
.ai-host-card strong {
  margin-top: 5px;
  color: var(--color);
  font-size: 0.94rem;
}
.ai-host-card small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ai-chat[hidden] {
  display: none;
}

.ai-chat {
  display: grid;
  grid-template-rows: auto minmax(280px, 52vh) auto;
  min-height: 620px;
  margin: 28px 0 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
@media (max-width: 683px) {
  .ai-chat {
    min-height: 560px;
    grid-template-rows: auto minmax(260px, 48vh) auto;
  }
}

.ai-chat__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--background-raised);
}
@media (max-width: 683px) {
  .ai-chat__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
.ai-chat__toolbar strong {
  display: block;
  max-width: 100%;
  color: var(--color);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.ai-chat__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
}

.ai-chat__actions,
.ai-composer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-chat__actions button,
.ai-composer__actions button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.ai-chat__actions button:hover:not(:disabled),
.ai-composer__actions button:hover:not(:disabled) {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.ai-chat__actions button:disabled,
.ai-composer__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ai-run-settings {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.75fr) minmax(260px, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}
@media (max-width: 899px) {
  .ai-run-settings {
    grid-template-columns: 1fr;
  }
}

.ai-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.ai-empty-state {
  width: min(460px, 100%);
  margin: auto;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(var(--accent-secondary-rgb), 0.045);
  color: var(--color-muted);
}
.ai-empty-state > span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
}
.ai-empty-state strong {
  display: block;
  color: var(--color);
  font-size: 0.98rem;
}
.ai-empty-state p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.ai-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ai-empty-state__details {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.ai-empty-state__details:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.ai-message {
  max-width: 84%;
  min-width: min(260px, 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
@media (max-width: 683px) {
  .ai-message {
    max-width: 100%;
  }
}
.ai-message--user {
  align-self: flex-end;
  border-color: rgba(var(--accent-rgb), 0.36);
  background: rgba(var(--accent-rgb), 0.08);
}
.ai-message--assistant {
  align-self: flex-start;
}
.ai-message--system {
  max-width: 100%;
  align-self: stretch;
  border-color: rgba(var(--accent-secondary-rgb), 0.45);
  background: rgba(var(--accent-secondary-rgb), 0.08);
}
.ai-message--streaming {
  border-color: rgba(var(--accent-secondary-rgb), 0.45);
}

.ai-message__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}
.ai-message__meta span {
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
}
.ai-message__meta button {
  padding: 3px 7px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.ai-message__meta button:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.ai-message__body {
  padding: 10px 12px;
  color: var(--color);
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.ai-message__body p {
  margin: 0 0 0.85em;
}
.ai-message__body p:last-child {
  margin-bottom: 0;
}
.ai-message__body pre {
  max-width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  overflow-x: auto;
}
.ai-message__body code {
  color: var(--accent-secondary);
  font-size: 0.84rem;
}

.ai-thinking,
.ai-thinking-placeholder {
  margin: 0 0 10px;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.24);
  border-radius: 8px;
  background: rgba(var(--accent-secondary-rgb), 0.055);
}

.ai-thinking summary {
  cursor: pointer;
  padding: 8px 10px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
  list-style-position: inside;
}

.ai-thinking--active summary span,
.ai-thinking-placeholder span {
  animation: ai-thinking-pulse 1.35s ease-in-out infinite;
}

.ai-thinking__body {
  padding: 0 10px 10px 24px;
  color: var(--color-muted);
}
.ai-thinking__body p {
  margin-bottom: 0.7em;
}

.ai-thinking__empty {
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}

.ai-thinking-placeholder {
  display: inline-block;
  padding: 8px 10px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.76rem;
}

.ai-composer {
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background: var(--background-raised);
}
.ai-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 92px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--color);
  font: inherit;
  line-height: 1.45;
}
.ai-composer textarea:focus {
  border-color: var(--accent-secondary);
  outline: none;
}
.ai-composer textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.ai-composer__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.ai-composer__tools {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: flex-end;
  min-width: 0;
}

.ai-composer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-top: 10px;
}
@media (max-width: 683px) {
  .ai-composer__bottom {
    flex-direction: column;
  }
}

.ai-composer__status {
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ai-composer[data-ai-model-state=needs-model] textarea {
  border-color: rgba(var(--accent-secondary-rgb), 0.42);
}
.ai-composer[data-ai-model-state=needs-model] .ai-composer__status {
  color: var(--accent-secondary);
}

.ai-composer[data-ai-needs-model=true] textarea {
  box-shadow: 0 0 0 3px rgba(var(--accent-secondary-rgb), 0.13);
}

.ai-composer[data-ai-submit-load=true] textarea {
  border-color: rgba(var(--accent-secondary-rgb), 0.62);
  animation: ai-submit-load-pulse 1.2s ease-in-out infinite;
}
.ai-composer[data-ai-submit-load=true] .ai-composer-loading {
  display: none;
}
.ai-composer[data-ai-submit-load=true] .ai-composer__status {
  color: var(--accent-secondary);
}
.ai-composer[data-ai-submit-load=true] [data-ai-send] {
  position: relative;
  color: transparent;
  opacity: 1;
}
.ai-composer[data-ai-submit-load=true] [data-ai-send]::after {
  content: "";
  position: absolute;
  top: calc(50% - 7.5px);
  left: calc(50% - 7.5px);
  width: 15px;
  height: 15px;
  border: 2px solid rgba(var(--accent-secondary-rgb), 0.25);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: ai-spin 0.75s linear infinite;
}

.ai-composer-loading {
  display: none;
  grid-column: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.65);
  border-radius: 6px;
  background: rgba(var(--accent-secondary-rgb), 0.07);
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.84rem;
  line-height: 1.35;
}

.ai-composer-loading__spinner {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(var(--accent-secondary-rgb), 0.25);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: ai-spin 0.75s linear infinite;
}

.ai-settings {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.ai-settings summary {
  cursor: pointer;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.ai-settings label {
  display: inline-grid;
  grid-template-columns: auto 5.5rem;
  gap: 8px;
  align-items: center;
  margin: 10px 12px 0 0;
}
@media (max-width: 683px) {
  .ai-settings label {
    grid-template-columns: minmax(96px, 1fr) 6rem;
  }
}
.ai-settings span {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
}
.ai-settings input {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color);
  font: inherit;
}
.ai-settings textarea,
.ai-settings select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color);
  font: inherit;
}
.ai-settings textarea:focus,
.ai-settings select:focus {
  border-color: var(--accent-secondary);
  outline: none;
}
.ai-settings textarea {
  min-height: 150px;
  margin-top: 10px;
  padding: 10px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}
.ai-settings select {
  min-height: 38px;
  padding: 6px 8px;
}

.ai-settings--generation label {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 6rem;
  margin-right: 0;
}

.ai-speech-model-picker,
.ai-speech-mic-picker {
  flex: 1 1 220px;
}

.ai-speech-file {
  display: inline-grid;
  gap: 6px;
  min-width: min(220px, 100%);
  margin: 0;
}
.ai-speech-file input {
  width: 100%;
  max-width: 100%;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.82rem;
}
.ai-speech-file input::file-selector-button {
  margin-right: 8px;
  padding: 6px 9px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color);
  font: inherit;
  cursor: pointer;
}
.ai-speech-file input::file-selector-button:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.ai-speech-status {
  display: grid;
  align-content: center;
  gap: 2px;
  margin-top: 10px;
  height: 2.5rem;
  color: var(--accent-alpha-70);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
}

.ai-speech-status__phase,
.ai-speech-status__detail {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-speech-status__detail {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.ai-speech-progress {
  margin-top: 8px;
}

.ai-voice-control {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  .ai-voice-control {
    display: none;
  }
}

.ai-icon-button.ai-voice-record {
  position: relative;
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 6px 0 0 6px;
}
.ai-icon-button.ai-voice-record .ai-voice-icon,
.ai-icon-button.ai-voice-record .ai-voice-spinner {
  grid-area: 1/1;
}
.ai-icon-button.ai-voice-record[data-ai-speech-state=recording] {
  border-color: rgba(var(--accent-secondary-rgb), 0.65);
  color: var(--accent-secondary);
}
.ai-icon-button.ai-voice-record[data-ai-speech-state=loading] {
  cursor: wait;
}

.ai-voice-icon {
  width: 17px;
  height: 17px;
}

.ai-voice-icon--stop,
.ai-voice-spinner {
  display: none;
}

.ai-voice-record[data-ai-speech-state=recording] .ai-voice-icon--mic {
  display: none;
}
.ai-voice-record[data-ai-speech-state=recording] .ai-voice-icon--stop {
  display: block;
}

.ai-voice-record[data-ai-speech-state=loading] .ai-voice-icon {
  display: none;
}
.ai-voice-record[data-ai-speech-state=loading] .ai-voice-spinner {
  display: block;
}

.ai-voice-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(var(--accent-secondary-rgb), 0.25);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: ai-spin 0.75s linear infinite;
}

.ai-voice-picker {
  position: relative;
}
@media (max-width: 683px) {
  .ai-voice-picker {
    position: static;
  }
}
.ai-voice-picker[open] summary {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.ai-voice-picker summary {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  list-style: none;
}
.ai-voice-picker summary::-webkit-details-marker {
  display: none;
}
.ai-voice-picker summary span {
  transform: translateY(-1px);
}

.ai-voice-picker__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: min(300px, 100vw - 32px);
  max-height: min(380px, 100dvh - 180px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-raised);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}
.ai-voice-picker__panel .ai-speech-model-picker {
  width: 100%;
}
.ai-voice-picker__panel .ai-speech-mic-picker {
  width: 100%;
  margin-top: 10px;
}
@media (max-width: 683px) {
  .ai-voice-picker__panel {
    left: 0;
    right: auto;
    width: min(300px, 100vw - 28px);
    max-height: min(320px, 100dvh - 160px);
  }
}

.ai-speech-file--compact {
  margin-top: 10px;
}

.ai-new-chat-icon {
  font-size: 1.1rem;
  font-weight: 500;
}

body:has(.ai-app) {
  min-height: 100dvh;
  overflow: hidden;
}

.main:has(.ai-app) {
  min-height: 0;
}

body:has(.ai-app) .footer {
  display: none;
}

.ai-app {
  --ai-left-width: 280px;
  --ai-right-width: 380px;
  display: grid;
  grid-template-columns: var(--ai-left-width) minmax(0, 1fr) var(--ai-right-width);
  width: 100%;
  max-width: 100vw;
  height: var(--ai-app-height, calc(100dvh - 64px));
  background: var(--background);
  color: var(--color);
  overflow: hidden;
}
.ai-app--left-collapsed {
  --ai-left-width: 0px;
}
.ai-app--right-collapsed {
  --ai-right-width: 0px;
}
@media (max-width: 899px) {
  .ai-app {
    --ai-left-width: 0px;
    --ai-right-width: 0px;
    grid-template-columns: minmax(0, 1fr);
  }
}

.ai-app-sidebar {
  min-width: 0;
  min-height: 0;
  overflow: hidden auto;
  border-color: var(--border-color);
  background: var(--background-raised);
}
.ai-app-sidebar--left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
}
.ai-app-sidebar--right {
  border-left: 1px solid var(--border-color);
}
.ai-app--left-collapsed .ai-app-sidebar--left, .ai-app--right-collapsed .ai-app-sidebar--right {
  visibility: hidden;
}
@media (max-width: 899px) {
  .ai-app-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    z-index: 90;
    width: min(84vw, 340px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }
  .ai-app-sidebar--left {
    left: 0;
    transform: translateX(-100%);
  }
  .ai-app-sidebar--right {
    right: 0;
    transform: translateX(100%);
  }
  .ai-app:not(.ai-app--left-collapsed) .ai-app-sidebar--left, .ai-app:not(.ai-app--right-collapsed) .ai-app-sidebar--right {
    transform: translateX(0);
    visibility: visible;
  }
}

.ai-app-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
}

.ai-app-logo {
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9rem;
  text-decoration: none;
}

.ai-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  cursor: pointer;
}
.ai-icon-button:hover:not(:disabled) {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.ai-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ai-new-thread {
  width: calc(100% - 28px);
  margin: 14px;
}

.ai-thread-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 6px;
  padding: 0 10px 14px;
  overflow: hidden auto;
}

.ai-thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.ai-thread {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ai-thread strong,
.ai-thread span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-thread strong {
  color: var(--color);
  font-size: 0.9rem;
}
.ai-thread span {
  margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
}
.ai-thread:hover, .ai-thread--active {
  border-color: rgba(var(--accent-secondary-rgb), 0.24);
  background: rgba(var(--accent-secondary-rgb), 0.07);
}

.ai-thread-delete {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  opacity: 0;
}
.ai-thread-delete svg {
  width: 16px;
  height: 16px;
}
.ai-thread-delete:hover, .ai-thread-delete:focus-visible {
  border-color: rgba(var(--accent-secondary-rgb), 0.32);
  color: var(--accent-secondary);
  opacity: 1;
  outline: none;
}
.ai-thread-row:hover .ai-thread-delete, .ai-thread-row--active .ai-thread-delete {
  opacity: 1;
}

.ai-thread-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  border-top: 1px solid var(--border-color);
}

.ai-thread-clear {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.ai-thread-clear:hover:not(:disabled) {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.ai-thread-clear:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ai-app-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.ai-app-topbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(180px, auto) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  background: var(--background-raised);
}
@media (max-width: 683px) {
  .ai-app-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
}

.ai-shortcuts-modal {
  width: min(760px, 100vw - 28px);
  max-height: min(760px, 100dvh - 28px);
  padding: 0;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.28);
  border-radius: 8px;
  background: var(--background-raised);
  color: var(--color);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}
.ai-shortcuts-modal::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.ai-shortcuts-modal__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: inherit;
  overflow: hidden;
}

.ai-shortcuts-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
}
.ai-shortcuts-modal__header h2 {
  margin: 2px 0 0;
  color: var(--color);
  font-size: 1.15rem;
  line-height: 1.2;
}

.ai-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  overflow: auto;
}
@media (max-width: 683px) {
  .ai-shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
}

.ai-shortcuts-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.05);
}
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  .ai-shortcuts-group--voice {
    display: none;
  }
}
.ai-shortcuts-group h3 {
  margin: 0 0 10px;
  color: var(--accent-secondary);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  text-transform: lowercase;
}
.ai-shortcuts-group dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.ai-shortcuts-group div {
  display: grid;
  grid-template-columns: minmax(112px, max-content) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.ai-shortcuts-group dt {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.ai-shortcuts-group dd {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
.ai-shortcuts-group kbd {
  min-width: 24px;
  padding: 3px 6px;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.26);
  border-radius: 5px;
  background: var(--background);
  color: var(--color);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 683px) {
  .ai-shortcuts-group div {
    grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
    gap: 10px;
  }
}

.ai-app-title {
  min-width: 0;
}
.ai-app-title input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color);
  font: inherit;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-app-model {
  min-width: 0;
  text-align: right;
}
.ai-app-model strong,
.ai-app-model span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-app-model strong {
  color: var(--color);
  font-size: 0.86rem;
}
.ai-app-model span {
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
}
@media (max-width: 683px) {
  .ai-app-model {
    display: none;
  }
}

.ai-chat--app {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.ai-composer--app {
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
}
.ai-composer--app .ai-composer__status {
  margin-top: 8px;
}

.ai-app-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}
.ai-app-composer textarea {
  min-height: 48px;
  max-height: 180px;
}
.ai-app-composer button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.ai-app-composer button:hover:not(:disabled) {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
.ai-app-composer button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
@media (max-width: 899px) {
  .ai-app-composer {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  }
}
@media (max-width: 683px) {
  .ai-app-composer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }
  .ai-app-composer textarea,
.ai-app-composer .ai-composer-loading {
    grid-column: 1;
    grid-row: 1;
  }
  .ai-app-composer .ai-new-chat-icon {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
  }
  .ai-app-composer .ai-voice-control {
    display: none;
  }
  .ai-app-composer [data-ai-stop],
.ai-app-composer [data-ai-send] {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: stretch;
  }
  .ai-app-composer button {
    min-width: 42px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

.ai-loader--app {
  grid-template-columns: 1fr;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
}
.ai-loader--app .ai-loader__controls {
  grid-template-columns: 1fr;
  justify-self: stretch;
}

.ai-run-settings--app {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.ai-host--app {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}
.ai-host--app .ai-host__grid {
  grid-template-columns: 1fr;
}

.ai-app-sidebar--right .ai-diagnostics {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
}
