/* Shared Pico v2 tokens and layout for marketing, auth and app pages. */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #101412; --surface: #151a16; --raised: #1b221c;
  --text: #e8ede5; --muted: #a2b09f; --accent: #34d399; --hairline: #ffffff16;
  --radius-sm: 6px; --radius: 8px; --radius-lg: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --pico-font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pico-font-size: 15px; --pico-line-height: 1.5;
  --pico-background-color: var(--bg); --pico-color: var(--text);
  --pico-muted-color: var(--muted); --pico-muted-border-color: var(--hairline);
  --pico-primary: var(--accent); --pico-primary-hover: #6ee7b7;
  --pico-primary-background: var(--accent); --pico-primary-hover-background: #6ee7b7;
  --pico-primary-border: var(--accent); --pico-primary-hover-border: #6ee7b7;
  --pico-primary-inverse: var(--bg); --pico-primary-focus: #34d39955;
  --pico-secondary-background: var(--surface); --pico-secondary-border: var(--hairline);
  --pico-secondary-hover-background: var(--raised); --pico-secondary-hover-border: var(--muted);
  --pico-secondary-inverse: var(--text); --pico-border-radius: var(--radius);
  --pico-card-background-color: var(--surface); --pico-card-border-color: var(--hairline);
  --pico-card-sectioning-background-color: var(--raised); --pico-card-box-shadow: none;
  --pico-form-element-background-color: var(--bg); --pico-form-element-color: var(--text);
  --pico-form-element-border-color: var(--hairline); --pico-form-element-active-border-color: var(--accent);
  --pico-form-element-focus-color: var(--pico-primary-focus);
  --pico-form-element-placeholder-color: var(--muted);
  --pico-form-element-spacing-vertical: .65rem; --pico-form-element-spacing-horizontal: .85rem;
  --pico-table-border-color: var(--hairline); --pico-table-row-stripped-background-color: var(--raised);
  --pico-code-background-color: var(--raised); --pico-code-color: var(--text);
  --pico-progress-background-color: var(--raised); --pico-progress-color: var(--accent);
  --pico-h1-color: var(--text); --pico-h2-color: var(--text); --pico-h3-color: var(--text);
  --pico-h4-color: var(--text); --pico-accordion-active-summary-color: var(--accent);
}
[hidden] { display: none !important; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > header, body > main, body > footer { padding-block: 0; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--surface); padding: 10px; }
.skip:focus { top: 8px; }
.shell-header { height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding-inline: 48px; border-bottom: 1px solid var(--hairline); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand-mark { width: 35px; height: 40px; flex-shrink: 0; }
.app .brand-mark { width: 28px; height: 32px; }
.shell-header nav, .shell-footer nav { gap: 24px; align-items: center; }
.shell-header nav a, .shell-footer a { color: var(--muted); }
.shell-header .button { margin: 0; padding: 7px 14px; font-size: 14px; }
.login-link { margin-left: auto; }
.shell-footer { margin-top: auto; padding: 24px 48px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
main { min-width: 0; }
h1, h2, h3 { letter-spacing: -.02em; }
h2 { font-size: 28px; } h3 { font-size: 18px; }
p { color: var(--muted); }
code, pre, .eyebrow, .value, .price, dd, .chart text { font-family: var(--mono); }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.fine, small, .label { color: var(--muted); font-size: 13px; }
.actions, .page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.actions { justify-content: flex-start; }
.actions > *, .page-heading h1, .section-heading h2 { margin: 0; }
.hero { text-align: center; padding: 96px 24px 72px; border-bottom: 1px solid var(--hairline); background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 40px 40px; }
.hero h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.08; max-width: 820px; margin-inline: auto; }
.tagline { max-width: 640px; margin-inline: auto; font-size: 18px; }
.hero .actions { justify-content: center; margin-block: 32px; }
.chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0; margin: 40px 0 0; }
.chips li { list-style: none; font: 12px var(--mono); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface); color: var(--muted); }
.section { max-width: 1100px; padding: 72px 48px; margin: auto; }
.section + .section { border-top: 1px solid var(--hairline); }
.steps, .pricing-grid, .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps { padding: 0; margin: 28px 0; }
.steps li { list-style: none; min-width: 0; }
article, .panel { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); margin-bottom: 20px; }
.steps article { height: 100%; margin: 0; }
article > :last-child { margin-bottom: 0; }
.featured { border-color: var(--accent); }
.price-card { display: flex; flex-direction: column; }
.price-card .button { margin-top: auto; }
.price { font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.price span { font: 14px var(--pico-font-family); color: var(--muted); }
.price-note { font-size: 13px; }
.billing-toggle { width: max-content; max-width: 100%; margin-bottom: 28px; }
.billing-toggle button[aria-pressed="false"] { --pico-background-color: var(--surface); --pico-border-color: var(--hairline); --pico-color: var(--muted); }
.faq { max-width: 820px; }
.account-page { flex: 1; display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; }
.auth-card h1 { font-size: 24px; }
.auth-card button { width: 100%; }
.error, [role="alert"] { color: #fda4af; }
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: 56px 1fr auto; font-size: 14px; }
.app .shell-header { grid-column: 1 / -1; height: 56px; padding-inline: 24px; justify-content: space-between; }
.app .shell-footer { grid-column: 1 / -1; }
.app main { padding: 24px 28px; width: 100%; max-width: 1220px; }
.app h1 { font-size: 22px; } .app h2 { font-size: 17px; } .app h3 { font-size: 15px; }
.app button { font-size: 13px; padding: 8px 12px; }
.app article, .app .panel { padding: 20px; }
.sidebar { padding: 20px 12px; border-right: 1px solid var(--hairline); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { display: block; padding: 9px 10px; border-radius: var(--radius); color: var(--muted); }
.sidebar nav a[aria-current="page"] { background: var(--raised); color: var(--text); font-weight: 600; }
.sidebar .eyebrow { color: var(--muted); overflow-wrap: anywhere; }
.user-chip { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 5px 10px; line-height: 1.2; max-width: 240px; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-chip small { font: 11px var(--mono); }
.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; }
.value { font-size: 26px; }
.activity-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart { width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--hairline); } .chart .bar { fill: var(--accent); }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { font-size: 13px; }
th { white-space: nowrap; }
td .quota { min-width: 140px; }
.credentials { min-width: 690px; }
.credentials input { min-width: 180px; margin: 0; font: 12px var(--mono); }
.credentials button { white-space: nowrap; margin: 2px; }
.command { display: flex; gap: 10px; align-items: center; }
.command input { font-family: var(--mono); margin: 0; min-width: 0; }
.command button { margin: 0; }
#import-form { padding: 18px; border: 1px dashed var(--hairline); border-radius: var(--radius); }
#import-form.dragging { border-color: var(--accent); }
dd { margin: 0 0 14px; overflow-wrap: anywhere; } dt { color: var(--muted); }
.empty-state { border: 1px dashed var(--hairline); padding: 18px; border-radius: var(--radius); }
@media (max-width: 760px) {
  .shell-header { padding-inline: 16px; gap: 14px; }
  .shell-header nav { gap: 12px; }
  .site .shell-header > .button { display: none; }
  .site .shell-header { gap: 12px; }
  .site .shell-header nav { gap: 10px; font-size: 12px; }
  .site .shell-header .brand { font-size: 14px; gap: 6px; }
  .site .login-link { font-size: 12px; }
  .shell-footer { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
  .shell-footer nav { gap: 16px; flex-wrap: wrap; }
  .section { padding: 48px 20px; }
  .steps, .pricing-grid, .data-grid, .activity-grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px auto 1fr auto; }
  .app .shell-header { padding-inline: 12px; gap: 10px; }
  .app .shell-header nav { gap: 10px; }
  .app .brand { font-size: 14px; gap: 6px; }
  .user-chip { max-width: 160px; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 10px 12px; min-width: 0; }
  .sidebar .eyebrow { margin-bottom: 8px; }
  .sidebar nav { flex-direction: row; overflow-x: auto; white-space: nowrap; }
  .app main { padding: 20px 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .value { font-size: 22px; }
  .command { flex-wrap: wrap; }
  .command input { flex-basis: 100%; }
}

/* Button styling for navigation links without changing their link semantics. */
a.button {
  display: inline-block;
  padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
  border: var(--pico-border-width) solid var(--pico-primary-border);
  border-radius: var(--pico-border-radius);
  background: var(--pico-primary-background);
  color: var(--pico-primary-inverse);
  text-align: center;
  text-decoration: none;
}
a.button.secondary {
  background: var(--pico-secondary-background);
  border-color: var(--pico-secondary-border);
  color: var(--pico-secondary-inverse);
}
a.button:hover, a.button:focus-visible {
  background: var(--pico-primary-hover-background);
  border-color: var(--pico-primary-hover-border);
}
a.button.secondary:hover, a.button.secondary:focus-visible {
  background: var(--pico-secondary-hover-background);
  border-color: var(--pico-secondary-hover-border);
}
