@font-face {
  font-family: Arboria;
  src: url('/fonts/arboria-400.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Arboria;
  src: url('/fonts/arboria-500.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Arboria;
  src: url('/fonts/arboria-700.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Arboria;
  src: url('/fonts/arboria-900.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --blueberry: 222 100% 18%;
  --orchard: 207 64% 56%;
  --bloom: 225 50% 90%;
  --freshpicked: 96 53% 50%;
  --jamberry: 322 47% 48%;
  --background: 222 100% 14%;
  --foreground: 0 0% 100%;
  --card: 222 98% 21%;
  --muted-foreground: 225 50% 90%;
  --muted: 222 40% 30%;
  --line: 225 50% 90% / 0.13;
  --code: 222 100% 11%;
  --sidebar-background: 222 100% 11%;
  --card-radius: 24px;
  --pill-radius: 500px;
  font-family: Arboria, Arial, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  font-synthesis: none;
}
:root.light {
  color-scheme: light;
  --background: 225 50% 97%;
  --foreground: 222 70% 14%;
  --card: 0 0% 100%;
  --muted-foreground: 222 30% 38%;
  --muted: 225 40% 92%;
  --line: 222 30% 82%;
  --code: 225 45% 94%;
  --sidebar-background: 0 0% 100%;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid hsl(var(--orchard));
  outline-offset: 5px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--pill-radius);
  padding: 11px 22px;
  background: hsl(var(--orchard));
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover,
.button:hover {
  background: hsl(207 64% 49%);
}
button:active,
.button:active {
  transform: translateY(1px);
}
.button-outline {
  background: transparent;
  border: 1px solid hsl(var(--line));
  color: hsl(var(--foreground));
}
.button-outline:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--orchard));
}
.compact {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 12px;
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 20px;
  background: hsl(var(--orchard));
  padding: 10px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: hsl(var(--blueberry) / 0.96);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid hsl(var(--line));
}
.nav-inner {
  max-width: 1400px;
  padding: 18px 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}
.brand img {
  width: 110px;
  height: 36px;
  object-fit: contain;
}
.brand small {
  display: block;
  letter-spacing: 2.1px;
  font-size: 9px;
  color: hsl(var(--bloom) / 0.7);
  margin-top: 6px;
}
.brand-divider {
  height: 30px;
  width: 1px;
  background: hsl(var(--bloom) / 0.25);
}
.logo-light {
  display: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: hsl(var(--bloom) / 0.8);
}
.nav-links a {
  padding: 8px 0;
  position: relative;
}
.nav-links a:hover,
.nav-links .selected {
  color: #fff;
}
.nav-links .selected:after {
  content: '';
  height: 2px;
  background: hsl(var(--orchard));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.nav-actions .button-outline {
  color: #fff;
  border-color: hsl(var(--bloom) / 0.25);
}
.icon-button {
  font-size: 24px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: inherit;
}
.icon-button:hover {
  background: hsl(var(--bloom) / 0.12);
}
.page-shell {
  max-width: 1400px;
  margin: auto;
  padding: 0 32px;
}
.hero {
  padding: 62px 0 48px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow,
.section-label,
.sidebar-heading {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: hsl(var(--orchard));
  line-height: 1.4;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  background: hsl(var(--freshpicked));
  border-radius: 50%;
  flex-shrink: 0;
}
.version {
  font-size: 10px;
  letter-spacing: 0;
  background: hsl(var(--orchard) / 0.15);
  border: 1px solid hsl(var(--orchard) / 0.25);
  border-radius: var(--pill-radius);
  padding: 3px 8px;
  margin-left: 4px;
}
h1 {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -1.4px;
  margin: 22px 0 18px;
}
h1 > span {
  color: hsl(var(--orchard));
}
.hero p {
  max-width: 480px;
  font-size: 15px;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
}
.text-link {
  font-size: 12px;
  font-weight: 700;
}
.button svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.text-link svg {
  vertical-align: middle;
  margin-left: 8px;
  color: hsl(var(--orchard));
}
.hero-code {
  border-radius: var(--card-radius);
  border: 1px solid hsl(var(--line));
  background: hsl(var(--code));
  overflow: hidden;
  transform: rotate(-1deg);
  max-width: 440px;
  justify-self: end;
  width: 100%;
}
.code-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  border-bottom: 1px solid hsl(var(--line));
}
.code-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--bloom) / 0.25);
}
.code-dots i:first-child {
  background: hsl(var(--jamberry));
}
.code-dots i:nth-child(2) {
  background: hsl(var(--orchard));
}
.code-dots i:nth-child(3) {
  background: hsl(var(--freshpicked));
}
.code-dots span {
  margin-left: auto;
  color: hsl(var(--muted-foreground));
  font:
    10px ui-monospace,
    monospace;
}
.hero-code-content {
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  padding: 24px;
}
.code-comment {
  color: hsl(var(--muted-foreground) / 0.55);
}
.code-blue {
  color: hsl(var(--orchard));
}
.code-green {
  color: #a6d973;
}
.code-muted {
  color: hsl(var(--muted-foreground) / 0.7);
}
.code-bottom {
  padding: 12px 18px;
  border-top: 1px solid hsl(var(--line));
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}
.journey-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.journey-card {
  background: hsl(var(--card));
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 100px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.journey-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.journey-card small {
  display: block;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  margin-top: 8px;
}
.journey-card svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.6;
}
.journey-card:hover {
  border-color: hsl(var(--orchard) / 0.6);
}
.journey-card.active {
  background: hsl(var(--orchard));
  color: white;
}
.journey-card.active small {
  color: #fff;
  opacity: 0.9;
}
.environment-note {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  padding: 16px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.environment-note:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsl(var(--orchard));
}
.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  margin-top: 14px;
}
.sidebar {
  position: sticky;
  top: 108px;
  height: max-content;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.sidebar:hover,
.sidebar:focus-within {
  scrollbar-color: hsl(var(--orchard) / 0.65) transparent;
}
@supports not (scrollbar-color: transparent transparent) {
  .sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: var(--pill-radius);
  }
  .sidebar:hover::-webkit-scrollbar-thumb,
  .sidebar:focus-within::-webkit-scrollbar-thumb {
    background: hsl(var(--orchard) / 0.65);
  }
}
.sidebar-heading {
  font-size: 9px;
  color: hsl(var(--muted-foreground) / 0.6);
  margin: 0 0 20px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  position: relative;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: hsl(var(--muted-foreground));
  display: flex;
  gap: 11px;
  align-items: center;
}
.sidebar nav a > span {
  font:
    9px ui-monospace,
    monospace;
  opacity: 0.65;
}
.sidebar nav a.active {
  background: hsl(var(--orchard) / 0.13);
  color: hsl(var(--orchard));
  font-weight: 700;
}
.sidebar nav a.active::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 2px;
  border-radius: var(--pill-radius);
  background: currentColor;
  content: '';
}
.sidebar nav a:not(.active):hover {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}
.sidebar-resource {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--line));
  padding: 20px 16px;
  border-radius: 18px;
  margin-top: 30px;
}
.resource-icon {
  display: block;
  color: hsl(var(--orchard));
  font:
    22px ui-monospace,
    monospace;
  margin-bottom: 14px;
}
.sidebar-resource strong {
  font-size: 12px;
  display: block;
}
.sidebar-resource p {
  font-size: 11px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin: 8px 0 16px;
}
.sidebar-resource a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: hsl(var(--orchard));
  font-weight: 700;
}
.sidebar-foot {
  font-size: 10px;
  color: hsl(var(--muted-foreground) / 0.5);
  margin: 22px 12px;
}
.doc-content {
  min-width: 0;
}
.doc-section {
  background: hsl(var(--card));
  border-radius: var(--card-radius);
  padding: 32px;
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}
.section-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}
h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 900;
  margin: 0 0 16px;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 12px 0;
  font-weight: 700;
}
.doc-section > p,
.policy-grid p {
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  line-height: 1.85;
  margin: 12px 0 20px;
}
.doc-section > .section-lead {
  font-size: 14px;
  max-width: 660px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
  border-top: 1px solid hsl(var(--line));
  padding-top: 24px;
}
.facts > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 10px;
  align-items: center;
}
.fact-icon {
  grid-row: span 2;
  background: hsl(var(--orchard) / 0.12);
  color: hsl(var(--orchard));
  width: 30px;
  height: 30px;
  display: grid;
  place-content: center;
  border-radius: 9px;
  font:
    12px ui-monospace,
    monospace;
}
.facts strong {
  font-size: 12px;
  font-weight: 700;
}
.facts small {
  font-size: 10px;
  color: hsl(var(--muted-foreground) / 0.7);
  line-height: 1.5;
  margin-top: 4px;
}
.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}
.pill {
  display: inline-block;
  background: hsl(var(--orchard) / 0.13);
  color: hsl(var(--orchard));
  padding: 5px 10px;
  border-radius: var(--pill-radius);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.steps li {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 12px 0;
}
.steps li > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: hsl(var(--orchard));
  background: hsl(var(--orchard) / 0.13);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.steps strong {
  font-size: 13px;
}
.steps p {
  margin: 3px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  line-height: 1.7;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
code {
  font-size: 0.84em;
  overflow-wrap: anywhere;
  color: hsl(var(--orchard));
}
p code,
td code {
  background: hsl(var(--orchard) / 0.08);
  border-radius: 5px;
  padding: 3px 5px;
}
.code-panel {
  border-radius: 16px;
  background: hsl(var(--code));
  border: 1px solid hsl(var(--line));
  overflow: hidden;
}
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid hsl(var(--line));
  font:
    10px ui-monospace,
    monospace;
}
.method {
  display: inline-block;
  border-radius: 5px;
  color: #b8e69a;
  background: #4f8d3330;
  font-size: 9px;
  padding: 4px 7px;
  letter-spacing: 0.4px;
  margin-right: 8px;
  font-weight: 700;
}
.copy-button {
  padding: 5px 10px;
  min-height: 28px;
  background: transparent;
  border: 1px solid hsl(var(--line));
  font-size: 9px;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
.copy-button:hover {
  background: hsl(var(--muted));
}
pre {
  margin: 0;
  padding: 22px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  overflow: auto;
  max-height: 450px;
  background: hsl(var(--code));
  border-radius: 14px;
}
pre code {
  font-size: inherit;
  color: hsl(var(--muted-foreground));
}
.code-panel pre {
  border-radius: 0;
}
.code-caption {
  border-top: 1px solid hsl(var(--line));
  padding: 10px 16px;
  font-size: 10px;
  color: hsl(var(--muted-foreground) / 0.6);
}
.response-example {
  border: 1px solid hsl(var(--line));
  border-radius: 14px;
  margin-top: 14px;
  overflow: hidden;
}
.response-example summary {
  padding: 14px 16px;
  font-size: 11px;
  cursor: pointer;
}
.response-example summary .muted {
  float: right;
  margin-right: 4px;
  font-size: 10px;
}
.response-example pre {
  border-radius: 0;
  border-top: 1px solid hsl(var(--line));
}
.response-status {
  color: #a6d973;
  font:
    10px ui-monospace,
    monospace;
  margin-right: 8px;
}
.muted,
.helper {
  color: hsl(var(--muted-foreground) / 0.75);
}
.doc-section .helper {
  font-size: 11px;
  line-height: 1.7;
}
.helper:empty {
  display: none;
}
.callout {
  padding: 18px;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  background: hsl(var(--orchard) / 0.1);
  border: 1px solid hsl(var(--orchard) / 0.18);
  margin: 20px 0;
}
.callout > span {
  color: hsl(var(--orchard));
  font-size: 18px;
  flex-shrink: 0;
}
.callout strong {
  font-size: 12px;
}
.callout p {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  margin: 5px 0 0;
  line-height: 1.8;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid hsl(var(--line));
  border-radius: 14px;
}
table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 11px;
}
caption {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  color: hsl(var(--muted-foreground) / 0.6);
  border-bottom: 1px solid hsl(var(--line));
}
th {
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.7);
  font-size: 10px;
  background: hsl(var(--code) / 0.3);
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid hsl(var(--line));
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td {
  color: hsl(var(--muted-foreground));
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 18px;
  background: hsl(var(--code));
  border: 1px solid hsl(var(--line));
  border-radius: var(--pill-radius);
  padding: 0 16px;
}
.search-field svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground) / 0.6);
}
.search-field input {
  background: transparent;
  border: 0;
  padding: 12px 0;
  margin: 0;
  font-size: 12px;
  min-width: 0;
}
.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.endpoint-card {
  border: 1px solid hsl(var(--line));
  border-radius: 14px;
  overflow: hidden;
}
.endpoint-card > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.endpoint-card > summary::-webkit-details-marker {
  display: none;
}
.endpoint-card > summary:after {
  content: '+';
  margin-left: auto;
  color: hsl(var(--muted-foreground) / 0.6);
  font-size: 18px;
}
.endpoint-card[open] > summary:after {
  content: '−';
}
.endpoint-card > summary code {
  font-size: 11px;
  color: hsl(var(--foreground));
  min-width: 0;
}
.endpoint-card .method {
  flex-shrink: 0;
  margin: 0;
}
.endpoint-details {
  padding: 0 18px 18px;
  border-top: 1px solid hsl(var(--line));
}
.endpoint-details h3 {
  font-size: 15px;
  margin: 20px 0 8px;
}
.endpoint-details p {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}
.endpoint-details table {
  margin-top: 12px;
}
.endpoint-details .table-wrap {
  margin: 16px 0;
}
.endpoint-details .scope-label {
  display: inline-block;
  font:
    10px ui-monospace,
    monospace;
  color: hsl(var(--orchard));
  padding: 6px 8px;
  background: hsl(var(--orchard) / 0.1);
  border-radius: 6px;
}
.endpoint-details .text-link {
  color: hsl(var(--orchard));
  display: inline-block;
  margin-top: 18px;
}
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.policy-grid > div {
  background: hsl(var(--code) / 0.45);
  border: 1px solid hsl(var(--line));
  border-radius: 18px;
  padding: 22px;
}
.policy-grid p {
  font-size: 12px;
  margin: 10px 0 0;
}
.status-badge {
  padding: 4px 8px;
  border-radius: 5px;
  font:
    10px ui-monospace,
    monospace;
  background: hsl(var(--jamberry) / 0.14);
  color: #e29bc4;
}
.login-form,
.try-form {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}
input,
select {
  display: block;
  width: 100%;
  background: hsl(var(--code));
  border: 1px solid hsl(var(--line));
  border-radius: 12px;
  padding: 12px 14px;
  color: hsl(var(--foreground));
  outline-offset: 3px;
  margin-top: 7px;
  min-height: 44px;
}
input::placeholder {
  color: hsl(var(--muted-foreground) / 0.45);
}
.login-form label {
  flex: 1;
  min-width: 160px;
}
.login-form button {
  font-size: 12px;
  min-height: 45px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 18px;
  margin-top: 24px;
}
fieldset {
  border: 1px solid hsl(var(--line));
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
}
legend {
  font-size: 10px;
  padding: 0 8px;
  color: hsl(var(--muted-foreground));
}
#scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
#scopes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    10px ui-monospace,
    monospace;
}
#scopes input {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  accent-color: hsl(var(--orchard));
}
#new-secret:empty,
#result:empty {
  display: none;
}
#new-secret,
#result {
  margin: 18px 0;
  border: 1px solid hsl(var(--line));
  color: hsl(var(--muted-foreground));
}
.key-list {
  margin-top: 24px;
}
.key-list article {
  padding: 18px 0;
  border-top: 1px solid hsl(var(--line));
}
.key-list p {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  overflow-wrap: anywhere;
}
.key-list button {
  font-size: 10px;
  padding: 7px 14px;
  min-height: 32px;
  margin-right: 8px;
}
.key-list button:first-of-type {
  background: hsl(var(--jamberry) / 0.18);
  color: #e29bc4;
}
.playground {
  border-top: 1px solid hsl(var(--line));
  margin-top: 28px;
  padding-top: 28px;
}
.playground > p {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}
.try-form label {
  flex: 1;
  min-width: 140px;
}
.try-form button {
  font-size: 12px;
}
.error-message {
  color: #eb9bc7;
  font-size: 12px;
  background: hsl(var(--jamberry) / 0.12);
  padding: 14px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.error-message:empty {
  display: none;
}
.docs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 25px 0 40px;
  font-size: 10px;
  color: hsl(var(--muted-foreground) / 0.5);
}
.docs-footer b {
  font-weight: 400;
  padding: 3px 6px;
  border: 1px solid hsl(var(--line));
  border-radius: 5px;
  margin: 0 8px;
}
.docs-footer a {
  color: hsl(var(--muted-foreground));
}
.light .topbar {
  background: hsl(var(--card) / 0.96);
}
.light .brand {
  color: hsl(var(--foreground));
}
.light .brand small {
  color: hsl(var(--muted-foreground));
}
.light .brand-divider {
  background: hsl(var(--line));
}
.light .logo-dark {
  display: none;
}
.light .logo-light {
  display: block;
}
.light .nav-links,
.light .nav-actions {
  color: hsl(var(--muted-foreground));
}
.light .nav-links .selected,
.light .nav-links a:hover {
  color: hsl(var(--foreground));
}
.light .nav-actions .button-outline {
  color: hsl(var(--foreground));
  border-color: hsl(var(--line));
}
.light .hero-code {
  box-shadow: 0 15px 45px #01216908;
}
.light .code-green,
.light .response-status {
  color: #376f1c;
}
.light .method {
  color: #376f1c;
}
.light .status-badge,
.light .error-message,
.light .key-list button:first-of-type {
  color: hsl(var(--jamberry));
}
.light .journey-card.active small {
  color: white;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1440px) {
  .hero {
    gap: 100px;
  }
  .docs-layout {
    gap: 64px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .nav-links {
    gap: 18px;
    font-size: 12px;
  }
  .brand {
    gap: 12px;
    font-size: 12px;
  }
  .brand img {
    width: 85px;
  }
  .nav-inner,
  .page-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    gap: 30px;
    padding-top: 42px;
  }
  .hero-code-content {
    font-size: 10px;
  }
  .hero p {
    font-size: 13px;
  }
  .docs-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
  }
  .doc-section {
    padding: 26px;
  }
  .facts {
    gap: 10px;
  }
  .facts > div {
    display: block;
  }
  .fact-icon {
    margin-bottom: 9px;
  }
  .facts strong,
  .facts small {
    display: block;
  }
  .policy-grid {
    gap: 14px;
  }
  .policy-grid > div {
    padding: 18px;
  }
  .nav-actions .compact {
    font-size: 11px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 12px 18px;
  }
}
@media (max-width: 780px) {
  .nav-links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 20px;
  }
  .hero-code-content {
    padding: 20px 14px;
    font-size: 9px;
  }
  .hero-code .code-comment {
    font-size: 8px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-actions {
    gap: 14px;
    flex-wrap: wrap;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .journey-card {
    padding: 17px;
    min-height: 100px;
    gap: 8px;
  }
  .journey-card strong {
    font-size: 12px;
  }
  .journey-card small {
    font-size: 10px;
  }
  .journey-card svg {
    width: 18px;
    height: 18px;
  }
  .docs-layout {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 20px;
  }
  .sidebar nav a {
    padding: 9px;
    font-size: 11px;
    gap: 7px;
  }
  .sidebar-heading {
    margin-left: 9px;
    font-size: 8px;
  }
  .sidebar-resource {
    padding: 16px 12px;
  }
  .sidebar-resource strong {
    font-size: 11px;
  }
  .sidebar-resource p,
  .sidebar-resource a {
    font-size: 10px;
  }
  .doc-section {
    padding: 22px;
  }
  .doc-section h2 {
    font-size: 24px;
  }
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .code-toolbar {
    font-size: 8px;
    padding: 12px;
  }
  .code-panel pre {
    padding: 16px;
    font-size: 10px;
  }
  .copy-button {
    font-size: 8px;
    padding: 5px 7px;
  }
  .endpoint-card > summary {
    padding: 14px;
    gap: 8px;
  }
  .endpoint-card > summary code {
    font-size: 9px;
  }
  .method {
    font-size: 8px;
  }
  .response-example summary .muted {
    display: none;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .facts > div {
    display: grid;
    grid-template-columns: 30px 1fr;
  }
  .facts .fact-icon {
    margin: 0;
  }
  .hero-code {
    transform: none;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .docs-footer {
    flex-direction: column;
    align-items: start;
  }
}
@media (max-width: 580px) {
  html {
    scroll-padding-top: 85px;
  }
  .nav-inner {
    padding: 14px 18px;
    gap: 12px;
  }
  .brand img {
    width: 76px;
    height: 30px;
  }
  .brand {
    gap: 10px;
    font-size: 11px;
  }
  .brand-divider {
    height: 24px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .button {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 32px;
  }
  .icon-button {
    width: 30px;
    min-height: 30px;
    font-size: 21px;
  }
  .page-shell {
    padding: 0 18px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 38px 0 28px;
    gap: 0;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .hero p {
    max-width: 100%;
    font-size: 13px;
  }
  .hero-code {
    display: none;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .journey-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .journey-card {
    min-height: 0;
    padding: 16px 18px;
    align-items: center;
    border-radius: 18px;
  }
  .journey-card strong {
    font-size: 13px;
  }
  .journey-card small {
    margin-top: 4px;
    font-size: 10px;
  }
  .journey-card svg {
    width: 20px;
    height: 20px;
  }
  .environment-note {
    padding: 14px 0;
    font-size: 10px;
    align-items: start;
  }
  .environment-note:before {
    margin-top: 5px;
    flex-shrink: 0;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    margin-top: 6px;
    gap: 18px;
  }
  .sidebar {
    position: static;
    max-height: none;
    padding: 0;
    overflow: hidden;
  }
  .sidebar-heading,
  .sidebar-resource,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 2px 0 10px;
    gap: 6px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid hsl(var(--line));
    border-radius: var(--pill-radius);
    font-size: 10px;
  }
  .sidebar nav a.active::before,
  .sidebar nav a > span {
    display: none;
  }
  .doc-section {
    padding: 23px 20px;
    margin-bottom: 14px;
    border-radius: 20px;
    scroll-margin-top: 90px;
  }
  .section-label {
    font-size: 8px;
  }
  .doc-section h2 {
    font-size: 24px;
  }
  .doc-section > p {
    font-size: 12px;
  }
  .section-heading .pill {
    font-size: 7px;
    padding: 5px 8px;
  }
  .steps li {
    gap: 11px;
  }
  .steps p {
    font-size: 11px;
  }
  .code-toolbar {
    font-size: 8px;
    padding: 10px;
    gap: 6px;
  }
  .code-panel pre {
    font-size: 9px;
    padding: 15px 12px;
  }
  .code-caption {
    font-size: 9px;
    padding: 10px 12px;
  }
  .copy-button {
    padding: 5px 6px;
    min-height: 26px;
    font-size: 8px;
  }
  .code-toolbar .method {
    margin-right: 5px;
    font-size: 7px;
    padding: 3px 5px;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .facts strong {
    font-size: 12px;
  }
  .facts small {
    font-size: 10px;
  }
  .table-wrap {
    margin: 18px 0;
  }
  th,
  td {
    padding: 11px 12px;
    min-width: 80px;
  }
  .callout {
    padding: 15px;
    gap: 10px;
  }
  .callout p {
    font-size: 11px;
  }
  .endpoint-card > summary code {
    font-size: 9px;
  }
  .endpoint-details {
    padding: 0 12px 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .login-form label,
  .try-form label {
    min-width: 0;
  }
  .login-form button {
    margin-top: 3px;
    width: 100%;
  }
  .try-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .try-form button {
    width: 100%;
  }
  #scopes {
    flex-direction: column;
    gap: 14px;
  }
  .policy-grid {
    gap: 12px;
  }
  .docs-footer {
    font-size: 9px;
    padding: 20px 0 30px;
  }
  .search-field {
    padding: 0 12px;
  }
  .search-field input {
    font-size: 10px;
  }
  .response-example summary {
    font-size: 10px;
  }
  .key-list p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* The same contract drives the reference, dictionary and live configuration tables. */
.inline-link {
  color: hsl(var(--orchard));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.scope-label + .scope-label {
  margin-left: 8px;
}
.endpoint-details .code-panel {
  margin: 20px 0;
}
.method[data-method='post'] {
  color: hsl(var(--orchard));
  background: hsl(var(--orchard) / 0.14);
}
.method[data-method='delete'] {
  color: #eb9ecb;
  background: hsl(var(--jamberry) / 0.18);
}
.reference-group-label {
  margin: 0 0 14px;
  max-width: 300px;
}
.response-content {
  padding: 16px;
}
.response-content > p,
.schema-details > p,
#key-policy > p,
#cache-policy > p,
#configured-limits > p,
#compatibility-policy > p,
#dictionary-content > p,
#response-headers > p {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  line-height: 1.9;
}
.response-content pre {
  margin-top: 14px;
}
.response-content label {
  margin: 14px 0;
}
.schema-details {
  border-top: 1px solid hsl(var(--line));
  margin-top: 18px;
  padding: 14px 0 0;
  font-size: 11px;
}
.schema-details > summary {
  cursor: pointer;
  color: hsl(var(--orchard));
  padding: 5px 0;
}
.endpoint-card .schema-details > summary:after {
  content: none;
}
.dictionary-tile {
  margin: 12px 0;
  border: 1px solid hsl(var(--line));
  border-radius: 14px;
  overflow: hidden;
}
.dictionary-tile > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px;
  font-size: 12px;
}
.dictionary-tile .table-wrap {
  margin: 0;
}
.documentation-notes,
.numbered-list {
  padding-left: 20px;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  line-height: 1.85;
}
.documentation-notes li,
.numbered-list li {
  margin: 10px 0;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.download-grid > a {
  position: relative;
  display: block;
  background: hsl(var(--code));
  border: 1px solid hsl(var(--line));
  border-radius: 16px;
  padding: 20px 16px;
}
.download-grid > a:hover {
  border-color: hsl(var(--orchard));
}
.download-grid strong {
  display: block;
  font-size: 12px;
  padding-right: 10px;
}
.download-grid small {
  display: block;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin-top: 8px;
}
.download-grid > a > span {
  position: absolute;
  right: 12px;
  top: 16px;
  color: hsl(var(--orchard));
}
.table-wrap td code {
  word-break: break-word;
}
#key-policy table td:first-child {
  min-width: 140px;
}
#error-catalog table {
  min-width: 620px;
}
#dictionary-content table {
  min-width: 550px;
}
@media (max-width: 780px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
  .download-grid > a {
    padding: 18px;
  }
  .download-grid small {
    margin-top: 4px;
  }
}
@media (max-width: 580px) {
  .response-content {
    padding: 12px;
  }
  .dictionary-tile > summary {
    font-size: 11px;
    padding: 14px;
  }
  .schema-details {
    font-size: 10px;
  }
  .nav-actions .button {
    font-size: 9px;
    padding: 7px 9px;
  }
  .brand {
    gap: 8px;
  }
}

/* Anchor padding belongs to the document; avoid applying the offset twice. */
.doc-section {
  scroll-margin-top: 0;
}

.portal-shell {
  max-width: 960px;
}
.portal-shell .access-section h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 6vw, 52px);
}
.portal-shell .login-form {
  margin-top: 24px;
}
.portal-shell #secret-panel {
  margin: 20px 0;
}
.portal-shell pre,
.portal-shell .key-list article {
  overflow: auto;
  overflow-wrap: anywhere;
}
.portal-shell .key-list article {
  border: 1px solid hsl(var(--line));
  border-radius: 14px;
  padding: 16px;
}
.portal-shell .key-list article button {
  margin: 8px 8px 0 0;
}
.portal-intro {
  max-width: 38ch;
}
.portal-sign-in {
  max-width: 440px;
  margin-top: 28px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid hsl(var(--line));
  border-radius: 18px;
  background: hsl(var(--background));
}
.portal-shell .portal-sign-in .login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.portal-sign-in input,
.portal-sign-in button {
  width: 100%;
}
.portal-sign-in .helper {
  margin-bottom: 0;
}
#key-guide pre {
  overflow: auto;
}

.portal-header .nav-inner {
  max-width: 960px;
}
.portal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.portal-shell .access-section:has(.portal-sign-in:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
  background:
    radial-gradient(
      ellipse at top left,
      hsl(var(--orchard) / 0.16),
      transparent 65%
    ),
    hsl(var(--card));
}
.portal-shell #error,
.portal-shell #auth-message {
  grid-column: 1 / -1;
  margin: 0;
}
.portal-shell #error:empty,
.portal-shell #auth-message:empty {
  display: none;
}
.portal-sign-in {
  margin: 0;
}
.portal-sign-in .password-toggle {
  width: fit-content;
  justify-self: end;
  padding: 0;
  margin-top: -8px;
  background: transparent;
  color: hsl(var(--orchard));
  font-size: 12px;
}
@media (max-width: 780px) {
  .nav-inner:has(.portal-cta) {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-inner:has(.portal-cta) .nav-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .portal-shell .access-section:has(.portal-sign-in:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portal-skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transform: translateY(-200%);
}

.portal-skip:focus {
  transform: none;
}

.portal-steps {
  display: grid;
  gap: 0.75rem;
  padding-inline-start: 1.5rem;
}

.portal-shell pre {
  max-width: 100%;
  overflow: auto;
}

.portal-shell :is(.helper, .error-message):empty {
  display: none;
}

.portal-shell #access:not(:has(.portal-sign-in:not([hidden]))) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  background: transparent;
  border: 0;
}

.portal-shell #access:not(:has(.portal-sign-in:not([hidden]))) h1 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  margin-block: 0.25rem;
}

.portal-shell #access:not(:has(.portal-sign-in:not([hidden]))) .portal-intro {
  margin: 0;
}

.portal-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.5rem 1.25rem;
}

.portal-navigation a {
  padding: 0.5rem 0.85rem;
  border: 1px solid hsl(var(--foreground) / 0.22);
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.portal-navigation a:hover {
  background: hsl(var(--foreground) / 0.09);
}

.portal-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.portal-workspace > .doc-section {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

.portal-workspace #first-request {
  grid-column: 1 / -1;
}

.portal-workspace #portal-playground {
  grid-column: 1 / -1;
}

.portal-workspace .form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.45fr);
}

@media (max-width: 760px) {
  .portal-workspace,
  .portal-workspace .form-grid,
  .portal-shell #access:not(:has(.portal-sign-in:not([hidden]))) {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-shell #logout {
    justify-self: start;
  }
}

.portal-header .portal-account {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
}

#account-initial {
  display: grid;
  place-items: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: 50%;
  background: hsl(var(--orchard) / 0.25);
  font-weight: 700;
}

.portal-shell:has(.portal-navigation:not([hidden])) {
  max-width: 1280px;
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  column-gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.portal-shell > :is(#mode, #access, .portal-workspace) {
  grid-column: 2;
}

.portal-shell .portal-navigation {
  grid-column: 1;
  grid-row: 1 / span 3;
  position: sticky;
  top: 6rem;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 1rem 0.75rem 1rem 0;
  border-inline-end: 1px solid hsl(var(--line));
}

.portal-navigation .section-label {
  padding: 0.75rem 0.75rem 0.25rem;
}

.portal-navigation a {
  border: 0;
}

.portal-workspace > .doc-section {
  scroll-margin-top: 6rem;
}

@media (max-width: 1050px) {
  .portal-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .portal-shell:has(.portal-navigation:not([hidden])) {
    display: block;
  }

  .portal-shell .portal-navigation {
    position: static;
    flex-direction: row;
    border-inline-end: 0;
    border-block-end: 1px solid hsl(var(--line));
    margin-block-end: 1rem;
    padding: 0 0 0.75rem;
  }

  .portal-navigation .section-label {
    display: none;
  }
}

.portal-header .nav-inner,
.portal-shell {
  max-width: 1280px;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.portal-header .nav-inner {
  min-height: 4rem;
  padding-block: 0.5rem;
  gap: 0.75rem;
}

.portal-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-shell:has(.portal-navigation:not([hidden])) {
  grid-template-areas:
    'sidebar environment'
    'sidebar overview'
    'sidebar workspace';
  grid-template-rows: auto auto 1fr;
  padding-block: 1.25rem 3rem;
}

.portal-shell #mode {
  grid-area: environment;
  margin: 0;
}

.portal-shell #access {
  grid-area: overview;
}

.portal-shell .portal-workspace {
  grid-area: workspace;
}

.portal-shell .portal-navigation {
  grid-area: sidebar;
  top: 5rem;
  padding-block-start: 0;
}

.portal-navigation a[aria-current='location'] {
  background: hsl(var(--orchard) / 0.17);
  box-shadow: inset 3px 0 hsl(var(--orchard));
  font-weight: 700;
}

.portal-workspace .form-grid > *,
.portal-workspace fieldset,
.portal-workspace .try-form > * {
  min-width: 0;
}

.portal-workspace .try-form {
  flex-wrap: wrap;
}

.portal-workspace pre {
  max-block-size: 26rem;
}

@media (max-width: 760px) {
  .portal-shell .portal-navigation {
    margin-block: 0 1rem;
  }
}

.portal-shell #access:not(:has(.portal-sign-in:not([hidden]))) {
  grid-template-columns: minmax(0, 1fr);
  margin-block: 0 1rem;
}

.portal-shell #access:not(:has(.portal-sign-in:not([hidden]))) .portal-intro {
  max-width: 65ch;
}

.portal-header .portal-back {
  min-width: 0;
  line-height: 1.2;
}

.portal-header .nav-actions {
  flex-shrink: 0;
}

.portal-workspace {
  grid-template-columns: minmax(0, 1fr);
}

#profile-menu {
  position: relative;
}

#profile-menu summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid hsl(var(--line));
  border-radius: 999px;
}

#profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-dropdown {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
  z-index: 2;
  padding: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--line));
  border-radius: 0.75rem;
  white-space: nowrap;
}

.profile-chevron {
  width: 0.4rem;
  height: 0.4rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}

#profile-menu[open] .profile-chevron {
  transform: translateY(1px) rotate(225deg);
}

.profile-dropdown {
  display: grid;
  gap: 0.25rem;
  min-width: 11rem;
}

.profile-dropdown a,
.profile-dropdown button {
  padding: 0.55rem 0.75rem;
  text-align: start;
}

#profile-form {
  display: grid;
  max-width: 32rem;
  gap: 1rem;
}

#profile-form button {
  justify-self: start;
}

.portal-shell .portal-navigation {
  padding-inline-end: 1rem;
}

.portal-navigation a {
  border-radius: 0.35rem;
  padding-block: 0.55rem;
}

@media (min-width: 761px) {
  .portal-shell:has(.portal-navigation:not([hidden])) {
    min-height: calc(100dvh - 4rem);
  }

  .portal-shell .portal-navigation {
    align-self: start;
    padding-block: 0;
  }
}

.portal-docs-cta {
  display: inline-flex;
  margin-block-start: 0.75rem;
  text-decoration: none;
}

@media (min-width: 761px) {
  .portal-shell:has(.portal-navigation:not([hidden]))::before {
    content: '';
    grid-area: sidebar;
    align-self: stretch;
    border-inline-end: 1px solid hsl(var(--line));
  }

  .portal-shell .portal-navigation {
    border-inline-end: 0;
  }
}

.portal-table {
  overflow-x: auto;
  border: 1px solid hsl(var(--line));
  border-radius: 0.75rem;
}

.portal-table table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  text-align: start;
}

.portal-table :is(th, td) {
  padding: 0.75rem;
  text-align: start;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.portal-table thead {
  background: hsl(var(--foreground) / 0.06);
}

.portal-table tbody tr {
  border-block-start: 1px solid hsl(var(--line));
}

.portal-table td:last-child {
  white-space: nowrap;
}

.portal-table button {
  padding: 0.4rem 0.7rem;
  margin-inline-end: 0.35rem;
}

.key-state {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid hsl(var(--line));
  border-radius: 999px;
  text-transform: capitalize;
}

.portal-shell:has(.portal-navigation:not([hidden])) #access {
  padding-block: 0.5rem;
}

.portal-shell .portal-workspace > .doc-section {
  border-radius: 1rem;
  border: 1px solid hsl(var(--line));
}

.portal-start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin-block: 1.25rem;
}

.portal-start li {
  display: flex;
}

.portal-start a {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid hsl(var(--line));
  border-radius: 0.75rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.portal-start a:hover {
  border-color: hsl(var(--orchard));
  background: hsl(var(--orchard) / 0.08);
}

.portal-start span {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

.portal-shell:has(.portal-navigation:not([hidden])) #access {
  margin-block-end: 0.75rem;
}

.portal-shell:has(.portal-navigation:not([hidden])) .portal-docs-cta {
  margin-block-start: 0.5rem;
}

.portal-docs-cta,
.portal-navigation a[target='_blank'] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.portal-external-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

.inventory-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-block-end: 1rem;
}

.inventory-heading h2,
.inventory-heading p {
  margin-block: 0 0.25rem;
}

#inventory-title {
  width: fit-content;
}

.portal-table tbody th {
  color: hsl(var(--foreground));
  background: transparent;
}

.portal-table button:first-child {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--line));
}

.portal-table tbody tr {
  height: 3.25rem;
}

.portal-table tbody :is(th, td) {
  padding-block: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.inventory-heading .button,
.portal-table button,
.portal-table button:first-child {
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  color: hsl(var(--orchard));
  border-radius: 0;
}

.portal-table button {
  margin-inline-end: 0;
}

.portal-table button + button {
  margin-inline-start: 0.75rem;
}

.inventory-heading .button:hover,
.portal-table button:hover {
  text-decoration: underline;
}
