/* Generated by mithril.design-system.tokens/web-console-stylesheet. */
[data-mithril-design-system="web-console"][data-theme="dark"],
[data-mithril-design-system="web-console"]:not([data-theme]) {
  --accent: #003f7a;
  --accent-hover: #0055a4;
  --accent-subtle: rgba(0, 63, 122, 0.15);
  --accent-text: #006acd;
  --agent-bubble: #2f2f2f;
  --agent-bubble-text: #ececec;
  --background: var(--bg-primary);
  --bg-active: #424242;
  --bg-elevated: #303030;
  --bg-hover: #3a3a3a;
  --bg-primary: #212121;
  --bg-secondary: #171717;
  --bg-tertiary: #2f2f2f;
  --border: var(--border-bright);
  --border-bright: rgba(255, 255, 255, 0.1);
  --border-focus: #003f7a;
  --code-bg: #1a1a1a;
  --destructive: var(--error);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --foreground: var(--text-primary);
  --muted: var(--bg-tertiary);
  --muted-foreground: var(--text-muted);
  --primary: var(--accent);
  --primary-foreground: var(--user-bubble-text);
  --primary-yellow: #f5c518;
  --scrollbar-hover: #555555;
  --scrollbar-thumb: #424242;
  --selection: rgba(0, 100, 180, 0.7);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --text-muted: #8e8e8e;
  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --user-bubble: #003f7a;
  --user-bubble-text: #ffffff;
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  color-scheme: dark;
}

[data-mithril-design-system="web-console"][data-theme="light"] {
  --accent: #003f7a;
  --accent-hover: #002d58;
  --accent-subtle: rgba(0, 63, 122, 0.08);
  --accent-text: #003f7a;
  --agent-bubble: #f0f0f0;
  --agent-bubble-text: #111111;
  --background: var(--bg-primary);
  --bg-active: #e0e0e0;
  --bg-elevated: #e8e8e8;
  --bg-hover: #ebebeb;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #f0f0f0;
  --border: var(--border-bright);
  --border-bright: #d4d4d4;
  --border-focus: #003f7a;
  --code-bg: #f5f5f5;
  --destructive: var(--error);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.06);
  --foreground: var(--text-primary);
  --muted: var(--bg-tertiary);
  --muted-foreground: var(--text-muted);
  --primary: var(--accent);
  --primary-foreground: var(--user-bubble-text);
  --primary-yellow: #f5c518;
  --scrollbar-hover: #bbbbbb;
  --scrollbar-thumb: #d4d4d4;
  --selection: rgba(0, 63, 122, 0.3);
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.08);
  --text-muted: #999999;
  --text-primary: #111111;
  --text-secondary: #555555;
  --user-bubble: #003f7a;
  --user-bubble-text: #ffffff;
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  color-scheme: light;
}

[data-mithril-design-system="web-console"] {
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-numeric: "Space Grotesk", var(--font-sans);
  --font-sans: "Cairo", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: var(--radius-md);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-xl: 20px;
  --transition: 150ms ease;
}

[data-mithril-design-system="web-console"] {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

[data-mithril-design-system="web-console"] .mithril-console-sidebar {
  background: var(--bg-secondary);
  border-inline-end: 1px solid var(--border);
  color: var(--text-secondary);
  overflow: auto;
}

[data-mithril-design-system="web-console"] .mithril-console-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
}

[data-mithril-design-system="web-console"] .mithril-console-nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-mithril-design-system="web-console"] .mithril-console-nav-item[aria-current="page"] {
  background: var(--accent-subtle);
  color: var(--accent-text);
}

[data-mithril-design-system="web-console"] .mithril-console-card,
[data-mithril-design-system="web-console"] .mithril-console-metric {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

[data-mithril-design-system="web-console"] .mithril-console-field {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: none;
}

[data-mithril-design-system="web-console"] .mithril-console-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--user-bubble-text);
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
}

[data-mithril-design-system="web-console"] .mithril-console-button:disabled {
  opacity: 0.5;
}

[data-mithril-design-system="web-console"] .mithril-console-button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text-primary);
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

[data-mithril-design-system="web-console"] .mithril-console-button-quiet:disabled {
  opacity: 0.5;
}

[data-mithril-design-system="web-console"] .mithril-console-notice {
  border: 1px solid var(--border-bright);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

[data-mithril-design-system="web-console"] .mithril-console-notice[data-tone="warning"] {
  background: var(--warning-bg);
  color: var(--text-primary);
}

[data-mithril-design-system="web-console"] .mithril-console-notice[data-tone="danger"] {
  background: var(--error-bg);
  color: var(--text-primary);
}

[data-mithril-design-system="web-console"] .mithril-console-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: start;
}

[data-mithril-design-system="web-console"] .mithril-console-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-align: start;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

[data-mithril-design-system="web-console"] .mithril-console-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: top;
}

[data-mithril-design-system="web-console"] .mithril-console-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--accent-subtle);
  color: var(--accent-text);
  padding: 0.05rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font:
    16px/1.7 ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Noto Sans JP',
    sans-serif;
}
a {
  color: var(--accent-text);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 4px;
}
header {
  border-bottom: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px max(24px, calc((100vw - 1240px) / 2));
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
}
.brand span {
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}
nav {
  display: flex;
  gap: 22px;
  flex: 1;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
}
nav a[aria-current] {
  color: var(--accent-text);
  font-weight: 700;
}
.language {
  font-size: 14px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 56px 24px 72px;
}
.heading {
  max-width: 930px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-weight: 650;
}
h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 0 0 16px;
}
h3 {
  font-size: 18px;
}
.lead {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-secondary);
}
p {
  margin: 12px 0 20px;
}
.notice {
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
  padding: 16px 20px;
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 32px 0 42px;
}
.stats strong {
  display: block;
  font-size: 46px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-size: 13px;
  color: var(--text-secondary);
}
.grid {
  display: grid;
  gap: 18px;
}
.three {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  display: block;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 24px;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-primary);
}
a.card:hover {
  background: var(--bg-secondary);
  text-decoration: none;
  border-color: var(--border-focus);
}
.card p:last-child {
  margin-bottom: 0;
}
.card p {
  font-size: 14px;
}
.card h2 {
  font-size: 21px;
}
.card h2 a {
  text-decoration: none;
}
.badge {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  margin-bottom: 14px;
}
.muted {
  color: var(--text-secondary);
}
section,
details {
  margin-top: 42px;
}
section.card {
  margin-top: 20px;
}
.callout {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 28px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border-bright);
  padding: 14px;
  vertical-align: top;
}
th {
  font-weight: 650;
  background: var(--bg-secondary);
}
.table-wrap,
.prose {
  overflow-x: auto;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.filters {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.filters label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  flex: 1;
  min-width: 180px;
}
input,
select,
button {
  font: inherit;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  background: var(--bg-primary);
  border-radius: 6px;
  padding: 10px 12px;
}
button {
  cursor: pointer;
  background: var(--bg-secondary);
}
.prose {
  max-width: 960px;
}
.prose h1 {
  font-size: 30px;
  margin-top: 40px;
}
.prose h2 {
  margin-top: 38px;
}
.prose pre {
  background: var(--code-bg);
  padding: 18px;
  overflow: auto;
  border-radius: 8px;
  font-size: 13px;
}
.prose code {
  font-size: 13px;
}
.prose table {
  min-width: 650px;
}
.downloads {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.downloads a {
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 10px 14px;
}
footer {
  border-top: 1px solid var(--border-bright);
  padding: 30px max(24px, calc((100vw - 1192px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
footer p {
  margin: 8px 0;
}
footer strong {
  color: var(--text-primary);
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--bg-primary);
  padding: 12px;
  z-index: 2;
}
.skip:focus {
  top: 10px;
}
@media (max-width: 900px) {
  .three {
    grid-template-columns: repeat(2, 1fr);
  }
  nav {
    order: 3;
    flex-basis: 100%;
    gap: 18px;
  }
  .language {
    margin-left: auto;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  footer {
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  main {
    padding: 36px 20px;
  }
  .three {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stats strong {
    font-size: 38px;
  }
  .lead {
    font-size: 16px;
  }
  .card {
    padding: 20px;
  }
  header {
    padding: 18px 20px;
    gap: 12px;
  }
  nav {
    gap: 14px;
  }
  .filters label {
    min-width: 100%;
  }
  th,
  td {
    padding: 10px;
  }
}

.prose [data-align='right'] {
  text-align: right;
}
.prose [data-align='center'] {
  text-align: center;
}
