@import url('./storika-tokens.css');

@font-face {
  font-family: Inter Tight;
  src: url('../assets/inter-tight.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Libertinus Serif;
  src: url('../assets/libertinus-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: var(--storika-background);
  --surface: var(--storika-card);
  --sidebar: var(--storika-sidebar);
  --soft: var(--storika-well);
  --soft-hover: var(--storika-card-hover);
  --border: var(--storika-border);
  --border-strong: var(--storika-border);
  --ink: var(--storika-foreground);
  --muted: var(--storika-muted);
  --subtle: var(--storika-gray-2);
  --accent: var(--storika-volt-orange);
  --accent-hover: var(--storika-volt-orange-strong);
  --accent-soft: #fff2eb;
  --green: #387654;
  --green-soft: #edf5ef;
  --red: #bc4641;
  --red-soft: #fcf0ed;
  --serif: 'Libertinus Serif', Georgia, serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
[data-theme='dark'] {
  --subtle: var(--storika-gray-1);
  --accent-soft: #38251d;
  --green: #8fbea0;
  --green-soft: #1b3023;
  --red: #e39a94;
  --red-soft: #362322;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
svg.icon {
  width: 17px;
  height: 17px;
  flex: none;
  vertical-align: middle;
}
img {
  display: block;
}
strong,
b {
  font-weight: 600;
}
.serif {
  font-family: var(--serif);
}
.mono,
code,
pre {
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  flex: none;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -100px;
  background: var(--surface);
  padding: 10px 18px;
  border: 1px solid var(--border);
}
.skip-link:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9999px;
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background 0.15s,
    border 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--soft);
  border-color: var(--subtle);
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--storika-primary);
  border-color: var(--storika-primary);
  color: var(--storika-primary-foreground);
}
.button.primary:hover {
  opacity: 0.85;
}
.workspace-shell .button.primary {
  background: var(--storika-primary);
  border-color: var(--storika-primary);
  color: var(--storika-primary-foreground);
}
.workspace-shell .button.primary:hover {
  opacity: 0.85;
}
.button.dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.button.pill {
  border-radius: 50px;
  padding-left: 21px;
  padding-right: 21px;
}
.button.large {
  min-height: 48px;
  font-size: 14px;
}
.button.compact {
  min-height: 29px;
  padding: 4px 10px;
  font-size: 11px;
}
.icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
}
.icon-button:hover {
  background: var(--soft-hover);
}
.text-button,
.text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
}
.text-button:hover,
.text-link:hover {
  color: var(--accent);
}
.danger {
  color: var(--red);
}
.danger-fill {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  line-height: 1.7;
  padding: 2px 7px;
  white-space: nowrap;
  font-weight: 500;
}
.badge.subtle {
  background: var(--soft);
  color: var(--muted);
}
.badge.success {
  background: var(--green-soft);
  color: var(--green);
}
.badge.error {
  background: var(--red-soft);
  color: var(--red);
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--accent);
}
.brand img {
  width: 144px;
  height: 32px;
  object-fit: contain;
}
.brand span {
  font-size: 34px;
  letter-spacing: -2px;
  line-height: 1;
  font-weight: 800;
}
.input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 11px;
  min-height: 39px;
}
.form-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  margin: 18px 0;
}
.form-error,
.date-error {
  font-size: 12px;
  color: var(--red);
  min-height: 18px;
  margin-top: 10px;
}
.segmented {
  display: inline-flex;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 3px;
  white-space: nowrap;
}
.segmented button.selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px #00000012;
}
.segmented button:hover {
  color: var(--ink);
}
/* Landing page */
.landing {
  background: var(--bg);
}
.landing-header {
  height: 76px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.45%;
  gap: 30px;
}
.landing-header nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}
.landing-header > div {
  display: flex;
  align-items: center;
  gap: 22px;
}
.landing-header .brand span {
  font-size: 38px;
}
.landing-header .brand img {
  width: 150px;
  height: 33px;
}
.landing-hero {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  padding: 88px 4.45% 90px;
  align-items: center;
}
.hero-copy .eyebrow {
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.047;
  letter-spacing: -1.5px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--ink);
}
.hero-copy p {
  font-size: 19px;
  line-height: 1.526;
  color: var(--muted);
  margin-top: 26px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  display: block;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  padding-bottom: 16px;
}
.aihub-canvas {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--soft);
  padding: 23px 26px;
  box-shadow: 0 18px 60px #322b2010;
}
.canvas-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.canvas-top .mono {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.canvas-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 8px;
}
.canvas-badge .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}
.flow-models {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 34px;
}
.flow-models > span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 13px 7px 10px;
  border-radius: 6px;
  min-width: 78px;
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
}
.flow-models b {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 9px;
}
.flow-connectors {
  display: flex;
  margin: 0 35px;
  position: relative;
}
.flow-connectors i {
  height: 35px;
  border-bottom: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
  flex: 1;
}
.flow-connectors i:last-child {
  flex: 0;
  border-left: 1px solid var(--border-strong);
}
.flow-connectors:after {
  content: '';
  position: absolute;
  top: 35px;
  left: 50%;
  width: 1px;
  height: 26px;
  background: var(--border-strong);
}
.aihub-node {
  margin: 26px auto 0;
  max-width: 305px;
  border: 1px solid #ff51004d;
  border-radius: 7px;
  box-shadow: 0 5px 20px #ff51000b;
  background: var(--surface);
  padding: 19px 17px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.aihub-node img {
  width: 30px;
}
.aihub-node strong {
  display: block;
  font-size: 15px;
}
.aihub-node small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.node-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.flow-down {
  width: 1px;
  height: 35px;
  background: var(--border-strong);
  margin: auto;
}
.flow-output {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.flow-output > span {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  background: var(--surface);
}
.flow-output .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.canvas-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 9px;
  color: var(--muted);
}
.canvas-bottom .tiny-dot {
  color: var(--green);
  width: 5px;
  height: 5px;
  margin-right: 5px;
}
.hero-usage {
  position: relative;
  margin: -2px 22px 0 35px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 12px 28px #30291b0a;
  padding: 20px 24px;
  gap: 18px;
}
.hero-usage .eyebrow {
  font-size: 8px;
}
.hero-usage strong {
  display: block;
  font-size: 28px;
  letter-spacing: -1px;
  margin: 4px 0 2px;
  font-weight: 500;
}
.hero-usage small {
  font-size: 10px;
  color: var(--muted);
}
.hero-usage svg {
  width: 47%;
  margin-left: auto;
  max-height: 68px;
}
.provider-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 25px 4.45%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: auto;
}
.provider-strip > span {
  font-size: 9px;
  letter-spacing: 0.11em;
  color: var(--muted);
}
.provider-strip > div {
  display: flex;
  justify-content: space-between;
  gap: 65px;
  color: var(--muted);
  align-items: center;
}
.provider-strip b {
  font-size: 19px;
  font-weight: 550;
}
.landing-section {
  max-width: 1440px;
  margin: auto;
  padding: 84px 4.45%;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 48px;
}
.section-intro h2,
.integration-section h2,
.landing-cta h2 {
  font: 400 48px/1.12 var(--serif);
  letter-spacing: -1.3px;
  margin-top: 15px;
}
.section-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.feature-grid article {
  padding: 33px 34px;
  border-right: 1px solid var(--border);
}
.feature-grid article:last-child {
  border: 0;
}
.feature-number {
  font:
    10px/1.4 Consolas,
    monospace;
  letter-spacing: 0.07em;
  color: var(--muted);
  display: block;
}
.feature-grid article > .icon {
  display: block;
  width: 25px;
  height: 25px;
  margin: 30px 0 24px;
  color: var(--accent);
}
.feature-grid h3 {
  font: 400 31px/1.12 var(--serif);
  letter-spacing: -0.5px;
}
.feature-grid p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0 24px;
  max-width: 310px;
}
.feature-grid a {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.feature-grid a:hover {
  color: var(--accent);
}
.integration-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 70px;
  background: var(--soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 75px 4.45%;
}
.integration-section h2 {
  font-size: 46px;
}
.integration-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 20px 0 26px;
}
.code-window {
  background: var(--storika-cosmos-black);
  color: var(--storika-flash-white);
  border: 1px solid var(--storika-gray-3);
  border-radius: 9px;
  overflow: hidden;
}
.code-window > div {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 43px;
  padding: 0 20px;
  border-bottom: 1px solid #ffffff15;
}
.code-window .tiny-dot {
  background: #4e4e54;
}
.code-window > div > span:last-of-type {
  font:
    10px Consolas,
    monospace;
  color: #9999a3;
  margin-left: 12px;
}
.code-window button {
  margin-left: auto;
  color: #aaa;
}
.code-window pre {
  font-size: 11px;
  line-height: 1.9;
  padding: 25px;
  margin: 0;
  overflow: auto;
}
.code-window > small {
  font-size: 9px;
  color: #92929b;
  display: block;
  padding: 0 25px 22px;
}
.code-orange {
  color: #f89863;
}
.code-green {
  color: #a4bda6;
}
.code-muted {
  color: #767682;
}
.pricing-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
}
.pricing-copy h3 {
  font: 400 30px var(--serif);
}
.pricing-copy ul {
  list-style: none;
  margin: 23px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 14px;
}
.pricing-copy li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-copy li .icon {
  color: var(--accent);
}
.pricing-copy p {
  font-size: 11px;
  line-height: 1.8;
}
.pricing-card {
  padding: 34px 38px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.pricing-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pricing-card h3 {
  font: 400 38px/1.1 var(--serif);
  margin-top: 25px;
  letter-spacing: -0.7px;
}
.pricing-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 15px 0 26px;
}
.pricing-card > a {
  width: 100%;
}
.pricing-card > small {
  display: block;
  font-size: 10px;
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
}
.landing-cta {
  border-top: 1px solid var(--border);
  padding: 75px 30px;
  text-align: center;
  background: var(--soft);
}
.landing-cta .eyebrow {
  justify-content: center;
}
.landing-cta h2 {
  font-size: 55px;
  margin: 15px 0 30px;
}
.landing-footer {
  padding: 34px 4.45%;
  display: flex;
  align-items: center;
  gap: 30px;
}
.landing-footer > .brand span {
  font-size: 29px;
}
.landing-footer > .brand img {
  width: 124px;
  height: 28px;
}
.landing-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.landing-footer > div {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 11px;
  color: var(--muted);
}
.landing-footer a {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* Storika AI Hub application */
.workspace-shell {
  min-height: 100vh;
  display: flex;
  background: var(--storika-panel);
}
.sidebar {
  width: 222px;
  flex: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 28px 15px 16px;
  z-index: 30;
  overflow: auto;
}
.sidebar-brand {
  padding: 0 6px 29px;
}
.product-label {
  display: block;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 12px;
  margin-left: 29px;
}
.workspace-select {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  padding: 10px 8px;
  text-align: left;
}
.workspace-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  background: var(--soft);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 11px var(--sans);
  flex: none;
}
.workspace-select strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.workspace-select small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.workspace-select > .icon {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--muted);
}
.nav-label {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--subtle);
  margin: 27px 11px 9px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: calc(var(--storika-radius) * 2);
  margin: 3px 0;
  min-height: 37px;
}
.nav-item > .icon {
  color: var(--muted);
  width: 16px;
  height: 16px;
}
.nav-item:hover {
  background: var(--soft-hover);
  color: var(--ink);
}
.nav-item.active {
  background: var(--storika-sidebar-accent);
  color: var(--storika-sidebar-accent-foreground);
}
.nav-item.active > .icon {
  color: inherit;
}
.nav-counter {
  font-size: 9px;
  margin-left: auto;
  border: 1px solid var(--border);
  min-width: 19px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.credits-widget {
  padding: 14px 13px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  margin: 0 4px 19px;
}
.credits-widget > div {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.credits-widget .tiny-dot {
  color: var(--green);
  width: 5px;
  height: 5px;
}
.credits-widget > strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 6px 0 12px;
}
.credits-widget > button {
  border: 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  background: none;
  font-size: 10px;
  color: var(--muted);
}
.credits-widget > button:hover {
  color: var(--accent);
}
.small-icon {
  width: 12px !important;
  height: 12px !important;
  margin-left: auto;
}
.sidebar-footer {
  margin: 15px 8px 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.demo-indicator {
  font-size: 8px;
  letter-spacing: 0.09em;
  color: var(--subtle);
}
.sidebar-footer .icon-button {
  width: 22px;
  height: 22px;
}
.sidebar-footer .icon {
  width: 14px;
  height: 14px;
}
.workspace-main {
  margin-left: 222px;
  width: calc(100% - 222px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-header {
  height: 64px;
  padding: 0 36px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.breadcrumb-home {
  color: var(--muted);
}
.breadcrumb-slash {
  color: var(--subtle);
  font-size: 14px;
}
.header-right {
  gap: 20px;
}
.connection-status {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.connection-status .tiny-dot {
  background: var(--green);
  width: 5px;
  height: 5px;
}
.header-chat {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-chat > .icon {
  width: 11px;
  height: 11px;
}
.profile-avatar {
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.account-menu {
  position: relative;
  z-index: 45;
}
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--storika-radius);
  padding: 4px;
  min-height: 38px;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu summary:hover,
.account-menu[open] summary {
  background: var(--soft);
}
.account-menu summary > .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.account-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  max-width: calc(100vw - 24px);
  border: 1px solid var(--border);
  border-radius: calc(var(--storika-radius) * 2);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 40px #14141616;
  padding: 6px;
  text-align: left;
}
.account-popover-heading {
  padding: 14px 12px 16px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-caption {
  color: var(--muted);
  font-size: 11px;
}
.account-popover-heading strong {
  font-size: 16px;
  font-weight: 600;
}
.account-popover-heading > span:not(.account-caption) {
  font-size: 12px;
  color: var(--muted);
}
.account-popover-heading small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.account-popover > a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--storika-radius);
}
.account-popover > a:hover {
  background: var(--soft);
}
.account-popover > a > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.account-settings-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 23px;
}
.account-settings-summary .profile-avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
}
.account-settings-summary h3 {
  font-size: 17px;
  font-weight: 550;
}
.account-settings-summary p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.account-settings-summary > .badge {
  margin-left: auto;
}
.mobile-menu {
  display: none;
}
.dashboard-content {
  padding: 32px 36px 40px;
  max-width: 1570px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font: 550 28px/1.3 var(--sans);
  letter-spacing: -0.6px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.date-trigger {
  min-width: 174px;
  justify-content: flex-start;
}
.date-trigger > .icon:last-child {
  margin-left: auto;
  width: 13px;
  height: 13px;
}
.filter-toolbar,
.logs-toolbar,
.models-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.filter-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.select-control {
  position: relative;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  height: 33px;
  align-items: center;
}
.select-control select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  padding: 6px 32px 6px 11px;
  min-width: 126px;
  max-width: 215px;
  cursor: pointer;
}
.select-control > .icon {
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  color: var(--muted);
  pointer-events: none;
}
.toolbar-note {
  font-size: 9px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}
.toolbar-note > .icon {
  width: 11px;
  height: 11px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 25px;
  background: var(--surface);
}
.stat {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: 0;
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  min-height: 19px;
}
.stat-label .badge {
  font-size: 8px;
}
.stat > strong {
  display: block;
  font-size: 31px;
  font-weight: 450;
  letter-spacing: -1.15px;
  margin: 8px 0 7px;
  line-height: 1.2;
}
.stat-note {
  font-size: 9px;
  color: var(--muted);
}
.trend {
  color: var(--ink);
  font-size: 9px;
  margin-right: 4px;
}
.trend.down {
  color: var(--green);
}
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--storika-radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 23px;
}
.panel-heading h2 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.15px;
}
.panel-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.panel-heading p > span {
  color: var(--subtle);
  margin-left: 4px;
}
.chart-panel .panel-heading {
  padding-bottom: 16px;
}
.chart-wrapper {
  position: relative;
  margin: 2px 21px 0;
}
.usage-chart {
  display: block;
  width: 100%;
  min-height: 220px;
  max-height: 300px;
  overflow: visible;
}
.usage-chart text {
  font-size: 9px;
  fill: var(--muted);
  font-family: var(--sans);
}
.chart-column {
  outline: none !important;
}
.chart-column:hover,
.chart-column:focus {
  filter: brightness(0.85);
}
.chart-column:focus > rect:first-child {
  fill: var(--accent-soft);
}
.chart-tooltip {
  position: absolute;
  top: 8px;
  font-size: 10px;
  border: 1px solid var(--border-strong);
  padding: 7px 10px;
  background: var(--surface);
  box-shadow: 0 3px 10px #0001;
  border-radius: 5px;
  pointer-events: none;
  display: none;
}
.chart-tooltip.show {
  display: block;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding: 13px 24px;
  font-size: 9px;
  color: var(--muted);
}
.chart-legend button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--muted);
  font-size: 9px;
}
.chart-legend button.chosen {
  color: var(--ink);
}
.chart-legend i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.chart-legend > span {
  margin-left: auto;
  color: var(--subtle);
  font-size: 9px;
}
.tab-bar {
  display: flex;
  gap: 22px;
  padding: 0 23px;
  border-bottom: 1px solid var(--border);
}
.tab-bar > button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  position: relative;
  top: 1px;
}
.tab-bar > button.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
thead {
  background: var(--sidebar);
  color: var(--muted);
}
th {
  font-weight: 500;
  padding: 11px 23px;
  font-size: 9px;
  border-bottom: 1px solid var(--border);
}
th > button {
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
}
th .icon {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}
td {
  padding: 12px 23px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--sidebar);
}
tfoot {
  border-top: 1px solid var(--border);
  font-weight: 550;
  background: var(--sidebar);
}
tfoot td {
  padding-top: 13px;
  padding-bottom: 13px;
  border: 0;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.amount {
  font-weight: 550;
}
.model-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.model-cell strong {
  font-size: 11px;
  display: block;
  font-weight: 550;
}
.model-cell small {
  display: block;
  font-size: 8px;
  color: var(--subtle);
  margin-top: 3px;
}
.provider-mark {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--provider);
  background: color-mix(in srgb, var(--provider) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--provider) 15%, var(--surface));
  font-size: 17px;
  font-weight: 600;
  flex: none;
}
.share-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-cell > span {
  font-size: 9px;
  color: var(--muted);
  min-width: 31px;
}
.share-track {
  width: 70px;
  height: 4px;
  background: var(--soft);
  border-radius: 4px;
  overflow: hidden;
}
.share-track i {
  display: block;
  height: 4px;
  border-radius: 4px;
}
.breakdown-panel td:last-child {
  padding-right: 13px;
  padding-left: 5px;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 23px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  color: var(--subtle);
}
.usage-footnote {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.usage-footnote .icon {
  width: 13px;
  height: 13px;
}
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 16px 36px;
  font-size: 9px;
  color: var(--subtle);
  gap: 18px;
}
.dashboard-footer a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.dashboard-footer .icon {
  width: 12px;
  height: 12px;
}
.filter-chips {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}
.filter-chips button {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}
.filter-chips .icon {
  width: 12px;
  height: 12px;
}
.empty-state,
.error-state {
  padding: 55px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--muted);
  gap: 12px;
}
.empty-state > .icon,
.error-state > .icon {
  width: 30px;
  height: 30px;
}
.empty-state h3,
.error-state h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
}
.empty-state p,
.error-state p {
  font-size: 12px;
}
.startup {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.startup h1 {
  font: 400 34px var(--serif);
}
.startup p {
  color: var(--muted);
}
/* Overview */
.welcome-panel {
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 29px 32px;
  margin-bottom: 24px;
  background: linear-gradient(110deg, var(--soft), var(--surface));
}
.welcome-panel h2 {
  font: 400 36px/1.08 var(--serif);
  margin: 12px 0;
  letter-spacing: -0.6px;
}
.welcome-panel p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 17px;
}
.welcome-code {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 23px 29px;
  background: var(--surface);
  min-width: 310px;
}
.welcome-code > span {
  font:
    9px Consolas,
    monospace;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.welcome-code > code {
  display: block;
  font-size: 12px;
  margin: 14px 0 19px;
}
.welcome-models {
  display: flex;
  gap: 7px;
}
.welcome-code > small {
  font-size: 9px;
  display: block;
  margin-top: 16px;
  color: var(--subtle);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.top-models > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 23px;
  border-top: 1px solid var(--border);
}
.rank {
  font-size: 9px;
  color: var(--subtle);
  margin-right: 5px;
}
.top-models > div > span > strong {
  font-size: 12px;
  display: block;
}
.top-models > div > span > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.top-models > div > strong {
  font-size: 12px;
  margin-left: auto;
}
.getting-started > a {
  padding: 16px 23px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--border);
}
.getting-started > a:hover {
  background: var(--soft);
}
.getting-started > a > .icon:first-child {
  color: var(--muted);
}
.getting-started > a > .icon:last-child {
  margin-left: auto;
  color: var(--subtle);
  width: 13px;
}
.getting-started strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.getting-started small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.project-grid > button {
  text-align: left;
  border: 0;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 22px 23px;
  background: var(--surface);
}
.project-grid > button:hover {
  background: var(--sidebar);
}
.project-grid > button:last-child {
  border-right: 0;
}
.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--provider) 9%, var(--surface));
  color: var(--provider);
  margin-bottom: 12px;
}
.project-grid h3 {
  font-size: 13px;
  font-weight: 550;
}
.project-grid p {
  font-size: 9px;
  color: var(--muted);
  margin: 4px 0 20px;
}
.project-grid > button > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-grid strong {
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -0.5px;
}
.project-grid > button > div > span {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-grid .icon {
  width: 13px;
  height: 13px;
}
/* Billing */
.billing-summary {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  margin-bottom: 24px;
}
.balance-card {
  background: #1e1d21;
  color: #f5f2ef;
  border: 1px solid #2c2b2e;
  border-radius: 7px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}
.balance-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.balance-card .eyebrow {
  color: #aeaaad;
  font-size: 9px;
}
.balance-card > .icon {
  color: #aeaaad;
}
.balance-card > strong {
  font-size: 47px;
  font-weight: 450;
  letter-spacing: -1.5px;
  margin: 19px 0 5px;
}
.balance-card > p {
  font-size: 11px;
  color: #a9a5a9;
}
.balance-card > div:last-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ffffff1b;
  padding-top: 20px;
  margin-top: 27px;
}
.balance-card .badge {
  background: #373137;
  color: #c0b9bd;
  font-size: 9px;
}
.balance-card button {
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fb8c53;
  font-size: 11px;
}
.monthly-bill {
  margin-bottom: 0;
}
.billing-totals {
  padding: 0 23px;
}
.billing-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 11px;
}
.billing-totals > div > span {
  color: var(--muted);
}
.billing-totals > div:last-child {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 17px;
}
.billing-totals > div:last-child > strong {
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -0.5px;
}
.monthly-bill > p {
  font-size: 9px;
  color: var(--subtle);
  padding: 5px 23px 20px;
}
.billing-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.budget-content {
  padding: 4px 23px 20px;
}
.budget-content > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.budget-content strong {
  font-size: 22px;
  font-weight: 450;
  letter-spacing: -0.5px;
}
.budget-content strong > span {
  font-size: 14px;
  color: var(--subtle);
  font-weight: 400;
}
.budget-track {
  height: 7px;
  background: var(--soft);
  position: relative;
  border-radius: 3px;
  margin: 19px 0 8px;
}
.budget-track i {
  display: block;
  height: 7px;
  background: var(--accent);
  border-radius: 3px;
}
.budget-track > span {
  width: 1px;
  height: 13px;
  background: var(--border-strong);
  position: absolute;
  top: -3px;
}
.budget-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--subtle);
}
.budget-info {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 21px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}
.budget-info .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}
.budget-info p {
  font-size: 10px;
}
.budget-info small {
  font-size: 8px;
  color: var(--subtle);
  display: block;
  margin-top: 4px;
  max-width: 330px;
}
.switch {
  border: 0;
  background: var(--border-strong);
  width: 30px;
  height: 17px;
  border-radius: 12px;
  padding: 2px;
  display: flex;
  flex: none;
}
.switch span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px #0002;
  transition: transform 0.15s;
}
.switch.on {
  background: var(--accent);
}
.switch.on span {
  transform: translateX(13px);
}
.recharge-content {
  padding: 2px 23px 22px;
}
.recharge-content > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 9px 0;
}
.recharge-content > div > span {
  color: var(--muted);
}
.recharge-content > div > strong {
  font-size: 19px;
  font-weight: 450;
}
.recharge-content > .text-button {
  font-size: 10px;
  margin-top: 14px;
}
.recharge-content > small {
  display: block;
  font-size: 9px;
  margin-top: 14px;
  color: var(--subtle);
}
.payment-method {
  padding: 16px 23px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.visa-badge {
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  color: #476ca4;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px;
}
.payment-method strong {
  font-size: 11px;
  display: block;
}
.payment-method small {
  font-size: 9px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.payment-email {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.payment-email .icon {
  width: 13px;
  height: 13px;
}
.credit-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 20px 0;
}
.credit-options .button {
  font-size: 14px;
}
.credit-options .selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.invoice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.invoice-heading > .serif {
  font-size: 34px;
}
.invoice-table {
  margin-top: 20px;
}
.invoice-table td,
.invoice-table th {
  padding-left: 0;
  padding-right: 0;
}
.invoice-table thead {
  background: none;
}
/* Requests, catalog and settings */
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 7px 10px;
  background: var(--surface);
}
.search-field .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.search-field input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  min-width: 190px;
  width: 100%;
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-field input:focus-visible {
  outline: 0;
}
.logs-toolbar > .search-field {
  flex: 1;
}
.request-id {
  border: 0;
  background: none;
  padding: 0;
  font:
    9px Consolas,
    monospace;
  color: var(--ink);
}
.request-id:hover {
  color: var(--accent);
}
.cell-subtitle {
  display: block;
  font-size: 8px;
  color: var(--subtle);
  margin-top: 5px;
}
.logs-table td,
.logs-table th {
  padding-left: 15px;
  padding-right: 15px;
}
.logs-table .model-cell strong {
  font-size: 10px;
}
.logs-table .provider-mark {
  width: 24px;
  height: 24px;
  font-size: 14px;
}
.project-tag {
  font-size: 9px;
  color: var(--muted);
}
.logs-table .badge {
  font-size: 8px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination > span {
  font-size: 9px;
}
.detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
}
.request-full-id {
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin: 17px 0;
}
.request-full-id code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
  margin: 22px 0;
}
.detail-grid > div {
  min-width: 0;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 9px;
}
.detail-grid dd {
  margin: 4px 0 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.detail-section-title {
  font-size: 12px;
  font-weight: 550;
  margin: 25px 0 12px;
}
.routing-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  background: var(--soft);
  border-radius: 5px;
  padding: 12px;
}
.routing-line > .tiny-dot {
  color: var(--green);
}
.routing-line .icon {
  width: 11px;
  height: 11px;
  color: var(--subtle);
}
.dialog-body > .small-text {
  margin-top: 18px;
}
.models-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 30px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 27px;
}
.models-intro h2 {
  font: 400 34px var(--serif);
  letter-spacing: -0.7px;
  margin-top: 8px;
}
.models-intro p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.model-count {
  display: flex;
  gap: 13px;
  align-items: center;
}
.model-count strong {
  font: 400 58px var(--serif);
  color: var(--accent);
  line-height: 1;
}
.model-count span {
  font-size: 10px;
  color: var(--muted);
}
.models-toolbar {
  margin-bottom: 20px;
}
.model-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.model-card {
  padding: 21px 21px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-width: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.model-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 5px 18px #00000005;
}
.model-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.model-card h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 19px 0 5px;
  letter-spacing: -0.3px;
}
.model-card > code {
  font-size: 8px;
  color: var(--subtle);
  overflow-wrap: anywhere;
}
.model-card > p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 18px;
  min-height: 37px;
}
.model-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  gap: 10px;
  margin-top: auto;
}
.model-price {
  border-top: 1px solid var(--border);
  padding: 15px 0;
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 9px;
  color: var(--muted);
}
.model-price b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 450;
  margin: 3px 0 1px;
}
.model-price small {
  font-size: 8px;
}
.model-card-actions {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
}
.key-callout {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.key-callout > .icon {
  color: var(--accent);
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.key-callout strong {
  font-size: 13px;
}
.key-callout p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.key-icon {
  width: 27px;
  height: 27px;
  background: var(--soft);
  color: var(--muted);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masked-key {
  font-size: 9px;
  color: var(--muted);
}
.secret-value {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--soft);
  padding: 15px;
  font-size: 11px;
  word-break: break-all;
}
.settings-panel {
  max-width: 900px;
}
.settings-row {
  padding: 24px 23px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.settings-row h3 {
  font-size: 12px;
  font-weight: 550;
}
.settings-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 370px;
}
.settings-row .input {
  width: 230px;
  flex: none;
  font-size: 11px;
}
.settings-form-footer {
  border-top: 1px solid var(--border);
  padding: 16px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.settings-form-footer > span {
  font-size: 11px;
  color: var(--red);
}
.workspace-info {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
}
.workspace-info h3 {
  font: 400 26px var(--serif);
}
.workspace-info .workspace-avatar {
  width: 42px;
  height: 42px;
  font-size: 26px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 35px;
  max-width: 1050px;
}
.docs-toc {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding-top: 4px;
}
.docs-toc a {
  font-size: 11px;
  color: var(--muted);
}
.docs-toc a:hover {
  color: var(--accent);
}
.docs-content section {
  padding: 29px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 25px;
}
.docs-content h2 {
  font: 400 30px var(--serif);
  letter-spacing: -0.4px;
  margin-bottom: 15px;
}
.docs-content p,
.docs-content li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.docs-content p > code {
  font-size: 11px;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 3px;
}
.docs-content ul {
  padding-left: 19px;
  margin: 16px 0 0;
}
.code-block {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--soft);
  padding: 19px;
  font-size: 10px;
  line-height: 1.8;
  overflow: auto;
  margin: 18px 0;
  color: var(--ink);
}
.code-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--soft);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  font-size: 9px;
  padding: 6px 14px;
  margin-top: 18px;
}
.code-block-heading + .code-block {
  margin-top: 0;
  border-radius: 0 0 5px 5px;
}
.docs-content > .modal-callout {
  margin-top: 0;
}
.docs-content .table-scroll {
  margin-top: 20px;
}
.docs-content table {
  border: 1px solid var(--border);
}
.docs-content td,
.docs-content th {
  padding: 12px 15px;
}
.docs-content td code {
  font-size: 9px;
}
/* Dialogs and period picker */
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0;
  box-shadow: 0 20px 90px #0003;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #10101265;
  backdrop-filter: blur(3px);
}
.modal {
  width: 520px;
  max-width: calc(100vw - 32px);
}
.dialog-header {
  padding: 20px 23px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.dialog-header h3 {
  font: 600 19px var(--sans);
  letter-spacing: -0.2px;
}
.dialog-body {
  padding: 22px 23px;
}
.dialog-body > p {
  font-size: 12px;
  line-height: 1.7;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 23px;
  border-top: 1px solid var(--border);
  background: var(--sidebar);
}
.modal-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 13px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.modal-callout > .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}
.modal-callout.error {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-soft);
}
.date-dialog {
  width: 720px;
  max-width: calc(100vw - 24px);
}
.date-dialog .dialog-header {
  padding: 16px 21px;
}
.date-dialog .dialog-header h3 {
  font-size: 18px;
}
.date-layout {
  display: flex;
  min-height: 275px;
}
.date-presets {
  width: 150px;
  border-right: 1px solid var(--border);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: none;
  background: var(--sidebar);
}
.date-presets > button {
  background: none;
  border: 0;
  font-size: 11px;
  text-align: left;
  padding: 9px 8px;
  border-radius: 4px;
}
.date-presets > button:hover {
  background: var(--soft-hover);
}
.date-presets > span {
  font-size: 9px;
  color: var(--subtle);
  margin-top: auto;
  padding: 20px 8px 0;
}
.date-presets > small {
  font-size: 10px;
  color: var(--muted);
  padding: 0 8px;
}
.date-main {
  padding: 20px 23px;
  flex: 1;
  min-width: 0;
}
.date-main > .segmented {
  display: flex;
}
.date-main > .segmented > button {
  flex: 1;
}
.year-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 6px;
}
.year-control > strong {
  font-size: 13px;
  font-weight: 500;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.month-grid > button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  padding: 13px 6px;
}
.month-grid > button:hover {
  border-color: var(--accent);
}
.month-grid > button.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.date-dialog > .dialog-footer {
  justify-content: space-between;
}
.date-dialog > .dialog-footer > small {
  font-size: 9px;
  color: var(--muted);
}
.date-dialog > .dialog-footer > div {
  display: flex;
  gap: 8px;
}
.calendars {
  display: flex;
  gap: 25px;
}
.calendar-month {
  flex: 1;
  min-width: 0;
}
.calendar-month h4 {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  margin: 9px 0 13px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 0;
  text-align: center;
}
.weekday {
  font-size: 8px;
  color: var(--subtle);
  padding-bottom: 5px;
}
.day {
  border: 0;
  background: none;
  font-size: 10px;
  border-radius: 4px;
  min-height: 27px;
  padding: 0;
}
.day:hover {
  background: var(--soft-hover);
}
.day.in-range {
  background: var(--accent-soft);
  border-radius: 0;
}
.day.selected {
  background: var(--accent);
  color: #17100b;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-top: 9px;
}
.date-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
}
.date-inputs label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
}
.date-inputs input {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 7px;
  font-size: 10px;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
}
.date-inputs > span {
  margin-top: 15px;
  color: var(--subtle);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  max-width: calc(100vw - 30px);
  border-radius: 6px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  box-shadow: 0 3px 10px #0002;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .dashboard-content {
    padding-left: 50px;
    padding-right: 50px;
  }
  .stat {
    padding: 24px 30px;
  }
  .usage-chart {
    max-height: 320px;
  }
  .landing-hero {
    padding-top: 105px;
    padding-bottom: 100px;
  }
}
/* The public Storika workbench uses white, rounded work areas on a neutral frame.
   Keep the workspace’s approved navigation width and content ordering. */
@media (min-width: 901px) {
  .sidebar {
    top: 8px;
    left: 8px;
    bottom: 8px;
    width: 206px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
  }
  .workspace-main {
    width: calc(100% - 230px);
    margin-block: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
  }
  .app-header {
    border-radius: 16px 16px 0 0;
  }
  .dashboard-footer {
    border-radius: 0 0 16px 16px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 202px;
  }
  .workspace-main {
    margin-left: 202px;
    width: calc(100% - 202px);
  }
  .dashboard-content {
    padding: 28px 25px;
  }
  .app-header {
    padding: 0 25px;
  }
  .stat {
    padding: 18px;
  }
  .stat > strong {
    font-size: 28px;
  }
  .toolbar-note {
    display: none;
  }
  .landing-hero {
    gap: 35px;
  }
  .flow-models > span {
    min-width: 60px;
  }
  .aihub-canvas {
    padding: 18px;
  }
  .flow-output > span {
    padding: 7px 8px;
  }
  .provider-strip > div {
    gap: 30px;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .model-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
  .logs-toolbar {
    flex-wrap: wrap;
  }
  .logs-toolbar > .search-field {
    flex-basis: 100%;
  }
  .overview-grid {
    gap: 18px;
  }
  .welcome-panel {
    padding: 25px;
  }
  .project-grid strong {
    font-size: 18px;
  }
  .project-grid > button > div {
    flex-wrap: wrap;
  }
  .feature-grid article {
    padding: 28px;
  }
  .integration-section {
    gap: 35px;
  }
  .integration-section h2 {
    font-size: 40px;
  }
  .code-window pre {
    font-size: 9px;
  }
  .pricing-layout {
    gap: 60px;
  }
}
@media (max-width: 900px) {
  .landing-header nav {
    gap: 17px;
    font-size: 11px;
  }
  .landing-header .text-link {
    display: none;
  }
  .hero-copy h1 {
    font-size: 62px;
  }
  .landing-hero {
    padding-top: 65px;
    padding-bottom: 65px;
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .hero-visual {
    max-width: 580px;
    width: 100%;
    margin: auto;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy > .eyebrow {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-copy p {
    font-size: 15px;
  }
  .provider-strip {
    flex-direction: column;
    gap: 17px;
  }
  .provider-strip > div {
    gap: 38px;
  }
  .feature-grid h3 {
    font-size: 28px;
  }
  .section-intro {
    align-items: flex-start;
    gap: 20px;
  }
  .section-intro h2 {
    font-size: 41px;
  }
  .section-intro p {
    font-size: 12px;
  }
  .integration-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .code-window pre {
    font-size: 11px;
  }
  .pricing-layout {
    gap: 35px;
  }
  .landing-footer > span {
    display: none;
  }
  .sidebar {
    width: 186px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .workspace-select strong {
    font-size: 12px;
  }
  .workspace-main {
    margin-left: 186px;
    width: calc(100% - 186px);
  }
  .dashboard-content {
    padding: 25px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-actions {
    align-self: flex-start;
  }
  .header-right .connection-status {
    display: none;
  }
  .stat {
    padding: 16px 15px;
  }
  .stat > strong {
    font-size: 25px;
  }
  .stat-note {
    font-size: 8px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .select-control select {
    min-width: 110px;
    font-size: 10px;
  }
  .chart-legend {
    gap: 13px;
    flex-wrap: wrap;
  }
  .chart-legend > span {
    width: 100%;
    margin-left: 0;
  }
  .usage-chart {
    min-height: 180px;
  }
  .billing-grid,
  .billing-summary {
    gap: 18px;
  }
  .panel-heading {
    padding: 17px 18px;
    gap: 12px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .billing-grid,
  .billing-summary {
    grid-template-columns: 1fr;
  }
  .payment-email {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .welcome-code {
    min-width: 260px;
    padding: 20px;
  }
  .welcome-panel {
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .welcome-code {
    width: 100%;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-grid > button {
    border-right: 0;
  }
  .models-toolbar {
    flex-wrap: wrap;
  }
  .models-toolbar > .search-field {
    width: 100%;
  }
  .models-intro {
    padding: 23px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .docs-toc {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .docs-toc > .eyebrow {
    width: 100%;
  }
  .settings-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .settings-row .input {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .account-name {
    font-size: 10px;
  }
  .account-menu summary {
    gap: 5px;
  }
  .account-menu summary > .icon {
    display: none;
  }
  .landing-header .account-name {
    display: none;
  }
  .landing-header > div {
    gap: 8px;
  }
  .app-header {
    gap: 8px;
  }
  .landing-header {
    height: 67px;
    padding: 0 20px;
    gap: 15px;
  }
  .landing-header nav {
    display: none;
  }
  .landing-header .brand span {
    font-size: 32px;
  }
  .landing-header .brand img {
    width: 112px;
    height: 25px;
  }
  .landing-header .button {
    font-size: 10px;
    padding: 7px 11px;
    min-height: 33px;
  }
  .landing-header .button .icon {
    width: 13px;
  }
  .landing-hero {
    padding: 54px 22px;
  }
  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1.5px;
  }
  .hero-copy p {
    font-size: 17px;
    line-height: 1.53;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    padding: 9px 15px;
    font-size: 12px;
    min-height: 43px;
  }
  .hero-note {
    font-size: 9px;
  }
  .aihub-canvas {
    padding: 16px 13px;
  }
  .canvas-top .mono {
    font-size: 7px;
  }
  .canvas-badge {
    font-size: 8px;
  }
  .flow-models {
    margin-top: 25px;
    gap: 5px;
  }
  .flow-models > span {
    min-width: 0;
    font-size: 8px;
    padding: 12px 4px 8px;
  }
  .flow-output {
    gap: 5px;
  }
  .flow-output > span {
    padding: 7px 8px;
    font-size: 8px;
    gap: 4px;
  }
  .flow-output .icon {
    width: 11px;
    height: 11px;
  }
  .aihub-node {
    max-width: 250px;
    padding: 15px;
  }
  .aihub-node strong {
    font-size: 13px;
  }
  .aihub-node small {
    font-size: 9px;
  }
  .hero-usage {
    margin: 0 14px;
    padding: 17px;
  }
  .hero-usage strong {
    font-size: 24px;
  }
  .hero-usage small {
    font-size: 8px;
  }
  .provider-strip {
    padding: 23px 20px;
  }
  .provider-strip > div {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .provider-strip b {
    font-size: 16px;
  }
  .landing-section {
    padding: 53px 22px;
  }
  .section-intro {
    flex-direction: column;
    margin-bottom: 28px;
  }
  .section-intro h2 {
    font-size: 39px;
  }
  .section-intro p {
    font-size: 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 28px;
  }
  .feature-grid article > .icon {
    margin: 22px 0 18px;
  }
  .feature-grid h3 {
    font-size: 31px;
  }
  .feature-grid p {
    max-width: none;
    font-size: 12px;
  }
  .integration-section {
    padding: 45px 22px;
  }
  .integration-section h2 {
    font-size: 39px;
  }
  .code-window pre {
    padding: 19px;
    font-size: 8px;
  }
  .code-window > small {
    font-size: 8px;
    padding: 0 19px 19px;
  }
  .pricing-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pricing-copy h3 {
    font-size: 28px;
  }
  .pricing-copy li {
    font-size: 12px;
  }
  .pricing-card {
    padding: 28px;
  }
  .landing-cta {
    padding: 53px 22px;
  }
  .landing-cta h2 {
    font-size: 43px;
  }
  .landing-footer {
    flex-wrap: wrap;
    padding: 27px 22px;
    gap: 24px;
  }
  .landing-footer > div {
    width: 100%;
    margin: 0;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s;
    width: 225px;
    box-shadow: 10px 0 50px #0002;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .workspace-main {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
    width: 24px;
    height: 24px;
  }
  .app-header {
    height: 54px;
    padding: 0 16px;
  }
  .header-left {
    font-size: 10px;
    gap: 8px;
  }
  .header-right {
    gap: 10px;
  }
  .header-chat {
    font-size: 8px;
  }
  .header-chat > .icon {
    width: 10px;
  }
  .profile-avatar {
    width: 24px;
    height: 24px;
  }
  .dashboard-content {
    padding: 24px 16px 30px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 280px;
  }
  .page-actions {
    width: 100%;
    gap: 8px;
  }
  .page-actions .button {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 34px;
  }
  .date-trigger {
    min-width: 0;
    flex: 1;
    max-width: 220px;
  }
  .filter-toolbar {
    margin-bottom: 18px;
  }
  .filter-controls {
    gap: 6px;
    width: 100%;
  }
  .select-control {
    flex: 1;
    max-width: 100%;
    min-width: 130px;
  }
  .select-control select {
    width: 100%;
    max-width: none;
  }
  .stats-grid {
    margin-bottom: 20px;
  }
  .stat {
    padding: 17px;
  }
  .stat > strong {
    font-size: 27px;
  }
  .stat-note {
    font-size: 8px;
  }
  .panel {
    margin-bottom: 20px;
  }
  .panel-heading {
    padding: 18px 16px;
  }
  .panel-heading .segmented button {
    font-size: 9px;
    padding: 5px 7px;
  }
  .chart-panel .panel-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .chart-wrapper {
    margin: 0 7px;
  }
  .usage-chart {
    min-height: 190px;
  }
  .chart-legend {
    padding: 12px 16px;
    gap: 15px;
  }
  .chart-legend button {
    font-size: 9px;
  }
  .tab-bar {
    padding: 0 16px;
    gap: 21px;
  }
  .tab-bar > button {
    font-size: 10px;
  }
  .usage-footnote {
    font-size: 9px;
    align-items: flex-start;
    line-height: 1.6;
  }
  .dashboard-footer {
    padding: 14px 16px;
    font-size: 8px;
    align-items: flex-start;
  }
  .dashboard-footer a {
    font-size: 8px;
    white-space: nowrap;
  }
  .dashboard-footer > span {
    max-width: 180px;
  }
  .welcome-panel {
    padding: 24px;
  }
  .welcome-panel h2 {
    font-size: 35px;
  }
  .project-grid > button {
    padding: 20px;
  }
  .models-intro {
    padding: 23px 20px;
    gap: 12px;
  }
  .models-intro h2 {
    font-size: 30px;
  }
  .models-intro .eyebrow {
    font-size: 8px;
  }
  .models-intro p {
    font-size: 10px;
    max-width: 190px;
  }
  .model-count strong {
    font-size: 44px;
  }
  .model-count span {
    display: none;
  }
  .models-toolbar .segmented {
    width: 100%;
    justify-content: space-between;
  }
  .models-toolbar .segmented button {
    padding: 5px 9px;
    font-size: 10px;
  }
  .model-catalog {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .model-card h3 {
    font-size: 20px;
  }
  .model-card > p {
    font-size: 12px;
    min-height: 0;
  }
  .key-callout {
    padding: 19px;
  }
  .key-callout p {
    font-size: 10px;
  }
  .key-callout strong {
    font-size: 12px;
  }
  .table-footer {
    padding: 13px 16px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .table-footer > span:last-child {
    font-size: 8px;
  }
  .pagination {
    gap: 8px;
  }
  .pagination .button {
    font-size: 9px;
  }
  .logs-toolbar .filter-controls {
    width: 100%;
  }
  .logs-toolbar > .icon-button {
    display: none;
  }
  .logs-toolbar .select-control {
    min-width: 100px;
  }
  .balance-card {
    padding: 24px;
  }
  .balance-card > strong {
    font-size: 46px;
  }
  .monthly-bill .panel-heading {
    flex-wrap: wrap;
  }
  .payment-panel .panel-heading {
    flex-wrap: wrap;
  }
  .payment-method {
    padding: 18px 16px;
    gap: 9px;
  }
  .payment-method > span:last-of-type {
    font-size: 8px;
  }
  .date-presets {
    display: none;
  }
  .date-main {
    padding: 17px;
  }
  .date-dialog > .dialog-footer {
    padding: 13px 17px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .date-dialog > .dialog-footer > small {
    width: 100%;
  }
  .date-dialog > .dialog-footer > div {
    width: 100%;
    justify-content: flex-end;
  }
  .calendars {
    gap: 15px;
  }
  .calendar-month:nth-child(2) {
    display: none;
  }
  .calendar-month h4 {
    font-size: 13px;
  }
  .day {
    min-height: 34px;
    font-size: 12px;
  }
  .weekday {
    font-size: 9px;
  }
  .date-main .month-grid {
    gap: 7px;
  }
  .month-grid > button {
    font-size: 12px;
  }
  .dialog-header {
    padding: 18px 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 14px 20px;
  }
  .detail-grid {
    gap: 16px;
  }
  .routing-line {
    flex-wrap: wrap;
    font-size: 8px;
  }
  .detail-status {
    flex-wrap: wrap;
  }
  .docs-content h2 {
    font-size: 29px;
  }
  .docs-content p,
  .docs-content li {
    font-size: 11px;
  }
  .docs-content .code-block {
    font-size: 9px;
  }
  .docs-toc a {
    font-size: 10px;
  }
  .settings-row {
    padding: 20px;
  }
  .settings-row p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.docs-content {
  min-width: 0;
}
.docs-layout {
  min-width: 0;
}
.unit-value {
  display: inline-block;
  max-width: 150px;
  white-space: normal;
  font-size: 9px;
  line-height: 1.6;
}
.public-content {
  max-width: 1240px;
  margin: 56px auto 80px;
  padding: 0 40px;
  min-height: 65vh;
}
.public-content > .page-heading {
  margin-bottom: 44px;
}
.public-content .page-heading h1 {
  font-size: 34px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  min-height: 560px;
  padding: 30px 0;
}
.auth-story h1 {
  font-family: 'Libertinus Serif', Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 24px 0;
}
.auth-story > p {
  max-width: 450px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
}
.auth-story > a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  font-size: 13px;
}
.auth-benefits {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.auth-benefits > span {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.auth-benefits .icon {
  color: var(--accent);
}
.auth-card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.auth-card h2 {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 500;
  margin: 18px 0 12px;
  letter-spacing: -0.8px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 26px;
}
.auth-card .form-label {
  margin-bottom: 20px;
}
.auth-card .input {
  width: 100%;
  margin-top: 9px;
}
.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}
.auth-switch {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--text);
  margin-left: 5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-security {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 25px;
}
.auth-security .icon {
  width: 14px;
  height: 14px;
}
.auth-sent {
  display: grid;
  gap: 15px;
  padding: 24px 0;
}
.auth-sent > .icon {
  color: var(--accent);
  width: 30px;
  height: 30px;
}
.auth-sent h3 {
  font-size: 22px;
}
.auth-sent p,
.auth-sent small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#auth-form[hidden],
#auth-sent[hidden] {
  display: none !important;
}
.auth-callback {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
}
.auth-callback h1 {
  margin: 24px 0;
  font-size: 32px;
}
.auth-callback p {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
}
.account-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
}
.account-signout:hover {
  background: var(--well);
}
.service-guide {
  display: grid;
  gap: 24px;
}
.guide-intro {
  padding: 48px;
}
.guide-intro h2 {
  font-family: 'Libertinus Serif', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  margin: 22px 0;
  letter-spacing: -1px;
}
.guide-intro p {
  max-width: 650px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guide-grid .panel {
  padding: 30px;
}
.guide-grid .panel > .icon {
  display: block;
  margin: 24px 0;
  color: var(--accent);
  width: 26px;
  height: 26px;
}
.guide-grid h3 {
  font-size: 21px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.guide-grid p,
.guide-details p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.guide-details {
  padding: 40px;
}
.guide-details h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.guide-details p {
  max-width: 850px;
  margin-bottom: 18px;
}
.guide-details small {
  display: block;
  margin-top: 24px;
}
.relay-steps {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 25px 0;
}
.relay-steps > span {
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.docs-content ol {
  padding-left: 22px;
  margin: 18px 0;
}
.docs-content a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.topup-welcome {
  text-align: center;
  padding: 12px 8px;
}
.welcome-orbit {
  display: inline-flex;
  padding: 20px;
  background: var(--well);
  color: var(--accent);
  border-radius: 50%;
  margin-bottom: 22px;
}
.welcome-orbit .icon {
  width: 30px;
  height: 30px;
}
.topup-welcome h2 {
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.7px;
}
.topup-welcome p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.topup-welcome small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
}
.welcome-checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  text-align: left;
  font-size: 12px;
}
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 560px;
    margin: auto;
  }
  .auth-story h1 {
    font-size: 44px;
  }
  .auth-story > p {
    font-size: 15px;
  }
  .auth-benefits {
    display: none;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .public-content {
    padding: 0 24px;
  }
}
@media (max-width: 600px) {
  .public-content {
    margin-top: 30px;
    padding: 0 20px;
  }
  .public-content .page-heading {
    flex-wrap: wrap;
    gap: 18px;
  }
  .public-content .page-heading h1 {
    font-size: 27px;
  }
  .auth-layout {
    padding: 0;
  }
  .auth-story h1 {
    font-size: 40px;
  }
  .auth-card {
    padding: 26px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .guide-intro,
  .guide-details {
    padding: 28px;
  }
  .guide-intro h2 {
    font-size: 36px;
  }
  .relay-steps {
    gap: 7px;
  }
  .relay-steps > span {
    font-size: 10px;
    padding: 10px;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .sidebar {
    width: 186px;
  }
  .workspace-main {
    width: calc(100% - 210px);
  }
}
.google-signin {
  width: 100%;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 24px;
  background: var(--card);
  color: var(--text);
}
.google-letter {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: #4285f4;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin: 22px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: '';
  height: 1px;
  background: var(--border);
  flex: 1;
}
.credit-gated {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 24px;
}
.dashboard-preview {
  filter: blur(7px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  max-height: 780px;
  overflow: hidden;
}
.credit-gate {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.8));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 78px 24px;
}
.credit-gate-card {
  width: 100%;
  max-width: 470px;
  text-align: center;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 38px 32px;
  box-shadow: 0 18px 70px #14141610;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
}
.credit-gate-card .welcome-orbit {
  margin: 0 auto;
}
.credit-gate-card .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
}
.credit-gate-card h1,
.topup-story h2 {
  font-family: 'Libertinus Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-size: 48px;
  margin: 0;
}
.credit-gate-card h1 em,
.topup-story em {
  color: var(--accent);
  font-weight: 400;
}
.credit-gate-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.credit-gate-card small {
  font-size: 10px;
  color: var(--muted);
}
.credit-gate-card .text-link {
  font-size: 12px;
}
.credit-gate-card .button {
  width: 100%;
  justify-content: center;
}
.topup-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 7%;
  max-width: 1100px;
  margin: 42px auto 60px;
  align-items: start;
}
.topup-story {
  padding: 28px 0;
}
.topup-story h2 {
  font-size: 58px;
  margin: 24px 0;
}
.topup-story > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 390px;
}
.topup-promises {
  display: grid;
  gap: 20px;
  margin: 38px 0;
  font-size: 12px;
}
.topup-promises span {
  display: flex;
  gap: 12px;
  align-items: center;
}
.topup-promises .icon {
  color: var(--accent);
}
.topup-card {
  border-radius: 24px;
}
.topup-card .panel-heading {
  padding: 28px;
}
.topup-card h2 {
  font-size: 22px;
  margin-top: 10px;
}
#topup-form {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#topup-form .credit-options {
  gap: 8px;
  margin: 0;
}
#topup-form .credit-options .button {
  flex: 1;
  justify-content: center;
  padding: 12px 8px;
}
#topup-form .form-label {
  margin: 0;
}
#topup-form .input {
  margin-top: 10px;
}
#topup-form > .button {
  width: 100%;
  justify-content: center;
}
#topup-form > small {
  font-size: 10px;
  text-align: center;
  line-height: 1.7;
}
.topup-balance {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.topup-balance strong {
  color: var(--text);
}
.topup-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 12px;
}
.topup-total strong {
  font-size: 26px;
}
.topup-checkout-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
}
[data-theme='dark'] .credit-gate {
  background: linear-gradient(180deg, #14141660, #141416cc);
}
@media (max-width: 900px) {
  .topup-page {
    grid-template-columns: 1fr;
    max-width: 540px;
    gap: 24px;
    margin-top: 12px;
  }
  .topup-story h2 {
    font-size: 46px;
  }
  .topup-story {
    padding: 0;
  }
  .topup-promises {
    margin: 24px 0;
  }
  .credit-gate {
    padding: 50px 12px;
  }
}
@media (max-width: 600px) {
  .credit-gate-card {
    padding: 28px 20px;
    border-radius: 22px;
  }
  .credit-gate-card h1 {
    font-size: 39px;
  }
  .credit-gate {
    padding: 42px 6px;
  }
  .credit-gated {
    min-height: 620px;
  }
  .topup-story h2 {
    font-size: 42px;
  }
  .topup-card .panel-heading {
    padding: 23px;
  }
  #topup-form {
    padding: 22px;
  }
  .topup-promises {
    gap: 15px;
  }
}
