:root {
  --bg: #0a0d0e;
  --panel: #111617;
  --panel-2: #171d1d;
  --panel-3: #202828;
  --text: #edf3ed;
  --muted: #8a9993;
  --faint: #53615c;
  --line: rgba(218, 235, 222, .12);
  --line-strong: rgba(218, 235, 222, .22);
  --mint: #b7f36b;
  --mint-dark: #86b94b;
  --orange: #ff9d5c;
  --red: #ff7575;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
body.light {
  --bg: #f4f7f1;
  --panel: #ffffff;
  --panel-2: #edf3ec;
  --panel-3: #e3ebe3;
  --text: #17201a;
  --muted: #64716a;
  --faint: #839087;
  --line: rgba(20, 45, 28, .12);
  --line-strong: rgba(20, 45, 28, .22);
  --mint: #3d7d22;
  --mint-dark: #2f681d;
  --shadow: 0 24px 70px rgba(47, 76, 53, .12);
}
body.light .noise { opacity: .02; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.noise {
  pointer-events: none;
  position: fixed;
  z-index: 10;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.site-header {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  padding: 22px 48px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { color: var(--mint); font-size: 25px; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.nav-link { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.dashboard-link { display: flex; align-items: center; gap: 8px; }
.private-dot, .private-chip { color: var(--mint); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.private-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 4px 1px 0; border-radius: 50%; background: var(--mint); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.auth-actions, .user-menu { display: flex; align-items: center; gap: 8px; }
.header-button { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--text); font-size: 10px; }
.header-button:hover { border-color: var(--mint); color: var(--mint); }
.header-button.filled { border-color: var(--mint); background: var(--mint); color: #17220d; font-weight: 700; }
.header-button.filled:hover { background: transparent; color: var(--mint); }
.user-menu > span { max-width: 100px; overflow: hidden; color: var(--mint); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.header-note { color: var(--muted); font: 12px "DM Mono", monospace; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); font-size: 18px; transition: .2s ease; }
.icon-button:hover { color: var(--mint); border-color: var(--mint); transform: rotate(20deg); }
main { max-width: 1440px; padding: 0 48px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 100px; align-items: end; padding: 104px 0 72px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--mint); font: 500 11px "DM Mono", monospace; letter-spacing: .13em; }
.eyebrow-line { display: inline-block; width: 32px; height: 1px; background: var(--mint); opacity: .65; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 770px; margin-bottom: 27px; font-size: clamp(50px, 7.3vw, 106px); line-height: .91; letter-spacing: -.085em; font-weight: 600; }
.accent-dot { color: var(--mint); }
.hero-text { max-width: 580px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-text strong { color: var(--text); font-weight: 500; }
.hero-aside { max-width: 315px; padding-bottom: 8px; }
.hero-aside p { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.status-orbit { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 500 11px "DM Mono", monospace; }
.orbit-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(183, 243, 107, .09), 0 0 18px var(--mint); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-card { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 20px 14px; border-right: 1px solid var(--line); }
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border-right: 0; }
.stat-card strong { color: var(--text); font: 500 22px "DM Mono", monospace; letter-spacing: -.07em; }
.stat-card span { color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.muted-stat strong, .muted-stat span { color: var(--faint); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 0 22px; }
.search-box, .table-search { display: flex; align-items: center; gap: 10px; min-width: 240px; border-bottom: 1px solid var(--line-strong); color: var(--muted); }
.search-box input, .table-search input { width: 100%; padding: 10px 0; outline: none; border: 0; background: transparent; color: var(--text); font-size: 13px; }
input::placeholder { color: var(--faint); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; transition: .2s ease; }
.filter-pill:hover, .filter-pill.active { border-color: var(--mint); color: var(--mint); background: rgba(183, 243, 107, .05); }
.filter-pill span { margin-left: 4px; color: var(--faint); font: 10px "DM Mono", monospace; }
.provider-section, .guides-section { padding: 26px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 27px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { margin-bottom: 0; font-size: 38px; line-height: 1; letter-spacing: -.07em; font-weight: 600; }
h2 span { color: var(--muted); font: 400 14px "DM Mono", monospace; letter-spacing: 0; vertical-align: middle; }
.section-note { max-width: 390px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; text-align: right; }
.referral-label { color: var(--orange); font: 10px "DM Mono", monospace; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.provider-card { position: relative; min-height: 284px; padding: 22px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .25s ease, transform .25s ease; }
.provider-card::after { content: ""; position: absolute; right: -35px; bottom: -50px; width: 140px; height: 140px; border: 1px solid var(--line); border-radius: 50%; opacity: .45; transition: transform .35s ease; }
.provider-card:hover { z-index: 1; background: var(--panel); transform: translateY(-3px); }
.provider-card:hover::after { transform: scale(1.25); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.provider-logo { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); }
.provider-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px; background: var(--panel-2); object-fit: contain; }
.logo-fallback { color: var(--mint); font: 500 11px "DM Mono", monospace; letter-spacing: .02em; }
.provider-name { overflow: hidden; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.new-badge { flex-shrink: 0; padding: 4px 7px; border: 1px solid rgba(183, 243, 107, .35); border-radius: 2px; color: var(--mint); font: 10px "DM Mono", monospace; }
.reward-chip { padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--muted); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.reward-chip.credit { border-color: rgba(255, 157, 92, .4); color: var(--orange); }
.reward-chip.tokens { border-color: rgba(183, 243, 107, .35); color: var(--mint); }
.reward-chip.software { border-color: rgba(150, 180, 255, .4); color: #9db8ff; }
.model-list { min-height: 65px; margin-bottom: 20px; }
.model-line { display: block; overflow: hidden; color: var(--text); font: 11px "DM Mono", monospace; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.model-line.unknown { color: var(--muted); font-family: "DM Sans", sans-serif; font-style: italic; }
.more-models { display: block; margin-top: 3px; color: var(--faint); font: 10px "DM Mono", monospace; }
.card-description { min-height: 56px; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.tag { color: var(--muted); font: 9px "DM Mono", monospace; }
.tag::before { content: "·"; margin-right: 4px; color: var(--mint); }
.get-api { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; min-height: 32px; padding: 0 12px; border: 1px solid var(--mint); border-radius: 2px; background: var(--mint); color: #18220e; font: 700 11px/1 "DM Sans", sans-serif; text-align: center; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.get-api:hover { background: transparent; color: var(--mint); }
.get-api::after { content: "↗"; font-size: 12px; line-height: 1; }
.get-api:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.status-line { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--muted); font: 10px "DM Mono", monospace; }
.status-line::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.provider-card.is-offline { opacity: .72; }
.provider-card.is-offline .provider-logo { filter: grayscale(1); }
.ref-badge { color: var(--orange); }
.hidden { display: none !important; }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line-strong); text-align: center; }
.empty-icon { display: block; margin-bottom: 10px; color: var(--mint); font-size: 30px; }
.empty-state h3 { margin-bottom: 5px; font-size: 18px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.guides-section { border-top: 1px solid var(--line); }
.guide-heading { padding-top: 5px; }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-card { min-height: 270px; padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.guide-number { color: var(--mint); font: 11px "DM Mono", monospace; }
.guide-card h3 { margin: 28px 0 10px; font-size: 18px; letter-spacing: -.04em; }
.guide-card p { min-height: 66px; margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
code { padding: 2px 5px; border-radius: 3px; background: var(--panel-3); color: var(--mint); font: 10px "DM Mono", monospace; }
.code-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 12px; padding-top: 15px; border-top: 1px solid var(--line); font: 10px "DM Mono", monospace; }
.code-block span { color: var(--faint); }
.code-block b { overflow: hidden; color: var(--text); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.check-list { display: grid; gap: 8px; padding: 15px 0 0 17px; margin: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.check-list li::marker { color: var(--mint); }
.dashboard-section { padding: 72px 0 110px; }
.dashboard-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.dashboard-hero h2 { margin-bottom: 17px; font-size: clamp(38px, 5vw, 66px); }
.dashboard-hero p:not(.eyebrow) { max-width: 590px; margin: 0; color: var(--muted); font-size: 13px; }
.private-chip { display: inline-block; padding: 5px 7px; margin-left: 6px; border: 1px solid rgba(183, 243, 107, .3); border-radius: 2px; vertical-align: middle; color: var(--mint); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.primary-button, .secondary-button { padding: 11px 15px; border-radius: 2px; font-size: 11px; font-weight: 600; }
.primary-button { border: 1px solid var(--mint); background: var(--mint); color: #17220d; }
.primary-button:hover { background: transparent; color: var(--mint); }
.secondary-button { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.secondary-button:hover { border-color: var(--mint); color: var(--mint); }
.dashboard-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 0 30px; }
.summary-card { padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.summary-card strong { display: block; margin-bottom: 4px; color: var(--mint); font: 500 25px "DM Mono", monospace; }
.summary-card span { color: var(--muted); font-size: 11px; }
.dashboard-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 24px 0 20px; border-top: 1px solid var(--line); margin-top: 6px; }
.dashboard-tab { padding: 9px 14px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; transition: .2s ease; }
.dashboard-tab:hover { border-color: var(--line-strong); color: var(--text); }
.dashboard-tab.active { border-color: var(--mint); background: rgba(183, 243, 107, .06); color: var(--mint); }
.panel-block { padding: 22px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--panel); }
.panel-block h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.03em; }
.panel-copy { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.panel-copy strong { color: var(--text); font-weight: 500; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.panel-block > .fact-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fact { padding: 14px 16px; border: 1px solid var(--line); background: var(--panel-2); }
.fact strong { display: block; color: var(--mint); font: 500 20px "DM Mono", monospace; }
.fact span { color: var(--muted); font-size: 10.5px; }
.panel-block .fact-grid a { display: block; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 11.5px; text-decoration: none; }
.panel-block .fact-grid a:hover { border-color: var(--mint); color: var(--mint); }
.panel-block .fact-grid a.muted-copy { border: 0; padding: 0; background: transparent; }
.muted-copy { margin: 0; color: var(--muted); font-size: 12px; }
.analytics-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 22px; }
.analytics-block { padding: 18px 0; border-top: 1px solid var(--line); }
.analytics-block h4 { margin: 0 0 14px; color: var(--faint); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 96px; padding: 8px; border: 1px solid var(--line); background: var(--panel-2); }
.spark-bar { flex: 1; min-width: 3px; border-radius: 1px; background: var(--mint); opacity: .8; }
.spark-bar:hover { opacity: 1; }
.spark-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--faint); font: 10px "DM Mono", monospace; }
.click-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.click-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 14px; background: var(--panel-2); font-size: 11.5px; }
.click-row span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.click-row strong { color: var(--mint); font: 500 12px "DM Mono", monospace; }
.analytics-actions { padding-top: 18px; border-top: 1px solid var(--line); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; }
.table-toolbar strong { display: block; font-size: 14px; }
.table-caption { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.table-search { min-width: 190px; }
.dashboard-table { border: 1px solid var(--line); }
.account-row { display: grid; grid-template-columns: 1.25fr .7fr .7fr .6fr .85fr .8fr 1.1fr; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-header { color: var(--faint); background: var(--panel); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.account-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 600; }
.account-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name::before { content: "✦"; color: var(--mint); }
.account-row input, .account-row select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 2px; outline: none; background: var(--panel-2); color: var(--text); font-size: 11px; }
.account-row input:focus, .account-row select:focus { border-color: var(--mint); }
.account-row input[type="number"] { font-family: "DM Mono", monospace; }
.account-left { color: var(--mint); font: 500 11px "DM Mono", monospace; text-align: right; }
.account-left.negative { color: var(--red); }
.privacy-note { display: flex; gap: 13px; align-items: flex-start; padding: 17px 20px; margin-top: 18px; border: 1px solid rgba(255, 157, 92, .2); background: rgba(255, 157, 92, .04); }
.privacy-note > span { color: var(--orange); font-size: 19px; }
.privacy-note strong { font-size: 12px; }
.privacy-note p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.admin-panel { padding: 28px 0 0; margin-top: 28px; border-top: 1px solid var(--line); }
.admin-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.admin-heading .eyebrow { margin-bottom: 8px; }
.admin-heading h3 { margin: 0; font-size: 24px; letter-spacing: -.05em; }
.provider-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--panel); }
.provider-form label, .auth-inner label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.provider-form input, .provider-form select, .provider-form textarea, .auth-inner input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 2px; outline: none; background: var(--panel-2); color: var(--text); font-size: 12px; }
.provider-form input:focus, .provider-form select:focus, .provider-form textarea:focus, .auth-inner input:focus { border-color: var(--mint); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 18px; padding: 4px 0; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.checkbox-row .checkbox { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 11.5px; }
.checkbox-row .checkbox input { width: auto; margin: 0; }
.logo-preview:empty { display: none; }
.logo-preview { display: flex; align-items: center; gap: 10px; }
.logo-preview .provider-logo { width: 44px; height: 44px; }
.logo-preview::after { content: "Logo preview"; color: var(--faint); font: 10px "DM Mono", monospace; }
.wide-field { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.admin-provider-list { border: 1px solid var(--line); overflow-x: auto; }
.admin-provider-row { display: grid; grid-template-columns: 1.5fr .9fr .9fr .8fr .55fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11px; min-width: 720px; }
.admin-provider-row:last-child { border-bottom: 0; }
.admin-provider-row span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.admin-provider-row strong { color: var(--text); }
.admin-status { color: var(--mint) !important; font: 10px "DM Mono", monospace; }
.admin-status.offline { color: var(--faint) !important; }
.admin-row-actions { display: flex; gap: 6px; }
.small-button { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--muted); font-size: 10px; }
.small-button:hover { border-color: var(--mint); color: var(--mint); }
.small-button.danger:hover { border-color: var(--red); color: var(--red); }
a.small-button { display: inline-flex; align-items: center; text-decoration: none; }
.inline-input { display: flex; gap: 8px; }
.inline-input input { flex: 1; min-width: 0; }
.inline-input .small-button { flex-shrink: 0; padding: 0 12px; }

/* Quick Add Box */
.quick-add-box { padding: 18px 20px; margin-bottom: 20px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--panel); }
.quick-add-head { margin-bottom: 12px; }
.quick-add-badge { display: inline-block; padding: 2px 7px; margin-bottom: 6px; border-radius: 2px; background: rgba(183, 243, 107, .12); color: var(--mint); font: 500 10px "DM Mono", monospace; letter-spacing: .08em; }
.quick-add-head h4 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.quick-add-head p { margin: 0; font-size: 12px; color: var(--muted); }
.quick-add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.quick-add-row input { flex: 1; min-width: 260px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); color: var(--text); font-size: 13px; outline: none; }
.quick-add-row input:focus { border-color: var(--mint); }
.quick-add-status { margin-top: 10px; padding: 10px 12px; border-radius: 2px; font-size: 12px; background: var(--panel-2); color: var(--mint); border-left: 2px solid var(--mint); }
.quick-add-preview-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-top: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.quick-add-preview-card .provider-logo { width: 42px; height: 42px; flex-shrink: 0; }
.quick-add-preview-info { flex: 1; min-width: 0; }
.quick-add-preview-info strong { display: block; font-size: 14px; color: var(--text); }
.quick-add-preview-info p { margin: 2px 0 0; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storage-warning { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--red); background: rgba(255, 92, 92, .07); }
.storage-warning strong { display: block; margin-bottom: 6px; color: var(--red); font-size: 12px; }
.storage-warning p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.storage-warning code { padding: 1px 4px; background: var(--panel-2); color: var(--mint); font: 10.5px "DM Mono", monospace; }
.balance-section { margin-bottom: 26px; }.balance-section .admin-heading { margin-bottom: 10px; }
.balance-section .admin-heading h4 { margin: 0; font-size: 14px; color: var(--text); }
.balance-section-stats { display: flex; flex-wrap: wrap; gap: 16px; }
.balance-section-stats span { color: var(--muted); font-size: 10.5px; }
.balance-section-stats strong { color: var(--mint); font: 500 12px "DM Mono", monospace; }
.balance-type { display: block; color: var(--faint); font: 10px "DM Mono", monospace; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.balance-row { grid-template-columns: 1.5fr .9fr .55fr .6fr .8fr .9fr .7fr auto; }
.balance-header { color: var(--faint); background: var(--panel); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.balance-left { color: var(--mint); font: 500 11px "DM Mono", monospace; }
.balance-left.negative { color: var(--red); }
.post-row { grid-template-columns: 1.6fr .6fr .6fr auto; }
.empty-row { padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.posts-section { padding: 26px 0 60px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.post-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-kind { padding: 4px 7px; border: 1px solid rgba(183, 243, 107, .35); border-radius: 2px; color: var(--mint); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.post-date { color: var(--faint); font: 10px "DM Mono", monospace; }
.post-card h3 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.post-card p { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.post-card .small-button { align-self: flex-start; }
.site-footer { display: flex; align-items: center; gap: 30px; padding: 23px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer > div { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.site-footer .brand-mark { font-size: 16px; }
.site-footer p { margin: 0; margin-right: auto; }
.site-footer strong { color: var(--text); font: 10px "DM Mono", monospace; font-weight: 400; }
.provider-dialog, .auth-dialog { padding: 0; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.provider-dialog { width: min(590px, calc(100% - 30px)); }
.auth-dialog { width: min(450px, calc(100% - 30px)); }
.provider-dialog::backdrop, .auth-dialog::backdrop { background: rgba(2, 5, 4, .78); backdrop-filter: blur(5px); }
.dialog-inner, .auth-inner { padding: 30px; }
.dialog-close { float: right; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 17px; }
.dialog-close:hover { color: var(--text); border-color: var(--mint); }
.dialog-kicker { margin-bottom: 12px; color: var(--mint); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.dialog-inner h2, .auth-inner h2 { margin-bottom: 14px; font-size: 34px; }
.dialog-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.dialog-head h2 { margin-bottom: 0; }
.dialog-head .provider-logo { width: 46px; height: 46px; }
.dialog-head .provider-logo img { padding: 7px; }
.dialog-offer { padding: 11px 13px; margin: 14px 0 !important; border-left: 2px solid var(--mint); background: var(--panel-2); color: var(--text) !important; font-size: 11.5px !important; }
.dialog-status-note { padding: 11px 13px; margin: 14px 0 !important; border-left: 2px solid var(--orange); background: rgba(255, 157, 92, .05); color: var(--orange) !important; font-size: 11.5px !important; }
.dialog-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 18px 0; background: var(--line); border: 1px solid var(--line); }
.dialog-facts > div { padding: 11px 13px; background: var(--panel-2); }
.dialog-facts dt { margin-bottom: 3px; color: var(--faint); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.dialog-facts dd { margin: 0; color: var(--text); font-size: 11.5px; }
.dialog-inner > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-models { padding: 16px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-models h4 { margin: 0 0 10px; color: var(--faint); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.dialog-models p { margin: 0; color: var(--text); font: 12px "DM Mono", monospace; line-height: 1.8; }
.dialog-link { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.dialog-link input { min-width: 0; padding: 11px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font: 10px "DM Mono", monospace; }
.copy-button { padding: 0 13px; border: 1px solid var(--mint); background: transparent; color: var(--mint); font-size: 11px; }
.copy-button:hover { background: var(--mint); color: #17220d; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.dialog-actions .get-api, .dialog-actions .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; }
.dialog-actions small { color: var(--muted); font-size: 10px; }
.auth-inner > p:not(.dialog-kicker) { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.auth-inner form { display: grid; gap: 15px; }
.auth-submit { width: 100%; padding: 12px; }
.auth-switch { padding: 0; margin-top: 18px; border: 0; background: transparent; color: var(--mint); font-size: 11px; }
.auth-switch:hover { text-decoration: underline; }
.form-error { min-height: 16px; margin: 0 !important; color: var(--red) !important; font-size: 11px !important; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: 320px; padding: 12px 15px; border: 1px solid var(--mint); background: var(--panel); color: var(--text); font-size: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-actions .primary-button, .hero-actions .secondary-button { display: inline-block; padding: 12px 16px; text-decoration: none; }
.note-strip { padding: 18px 22px; margin-bottom: 66px; border: 1px solid var(--line); border-left: 2px solid var(--mint); background: var(--panel); }
.note-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.note-strip strong { color: var(--text); font-weight: 500; }
.status-line.offline { color: var(--muted); }
.status-line.offline::before { background: var(--faint); box-shadow: none; }
.get-api.disabled, .get-api:disabled { border-color: var(--line-strong); background: transparent; color: var(--faint); cursor: not-allowed; }
.get-api.disabled:hover, .get-api:disabled:hover { border-color: var(--line-strong); background: transparent; color: var(--faint); }
.get-api.disabled::after, .get-api:disabled::after { content: ""; }
.dialog-tags { margin-top: 10px !important; color: var(--muted) !important; font-family: "DM Sans", sans-serif !important; font-size: 11px !important; }
.dashboard-title { margin-bottom: 17px; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.07em; font-weight: 600; }
.dashboard-actions-top { justify-content: flex-end; padding-bottom: 24px; }
.auth-gate { padding: 40px 0 10px; }
.auth-gate-card { max-width: 620px; padding: 32px; border: 1px solid var(--line); background: var(--panel); }
.auth-gate-card h2 { margin-bottom: 12px; font-size: 30px; }
.auth-gate-card p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-gate-card .hero-actions { margin-top: 24px; }
.dashboard-shell { padding-top: 6px; }
@media (max-width: 1060px) { .site-header, main { padding-left: 28px; padding-right: 28px; } .hero { gap: 45px; } .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-summary { grid-template-columns: repeat(3, 1fr); } .account-row { grid-template-columns: 1.2fr .7fr .7fr .6fr .8fr .75fr 1fr; padding-left: 12px; padding-right: 12px; } .stats-grid { grid-template-columns: repeat(4, 1fr); } .stat-card:nth-child(4) { border-right: 0; } .stat-card:nth-child(n + 5) { border-top: 1px solid var(--line); } .analytics-cards { grid-template-columns: repeat(2, 1fr); } .fact-grid { grid-template-columns: repeat(2, 1fr); } .provider-form { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .site-header { flex-wrap: wrap; gap: 18px; padding-top: 18px; padding-bottom: 18px; } .main-nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; } .header-actions { margin-left: auto; } .header-note { display: none; } main { padding-left: 18px; padding-right: 18px; } .hero { display: block; padding: 72px 0 50px; } h1 { font-size: clamp(53px, 15vw, 90px); } .hero-aside { margin-top: 42px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-card:nth-child(2n) { border-right: 0; } .stat-card:nth-child(2n + 1) { border-right: 1px solid var(--line); } .stat-card:nth-child(n + 3) { border-top: 1px solid var(--line); } .stat-card { padding-left: 0; } .toolbar { display: block; padding-top: 28px; } .search-box { margin-bottom: 17px; } .section-heading { display: block; } .section-note { margin-top: 18px; text-align: left; } .provider-grid, .guides-grid, .posts-grid { grid-template-columns: 1fr; } .provider-card { min-height: 260px; } .dashboard-hero { display: block; } .dashboard-actions { margin-top: 24px; } .dashboard-summary { grid-template-columns: repeat(2, 1fr); } .analytics-cards, .fact-grid { grid-template-columns: 1fr; } .dialog-facts { grid-template-columns: 1fr; } .table-toolbar { display: block; } .table-search { margin-top: 14px; } .dashboard-table-wrap { overflow-x: auto; } .dashboard-table { min-width: 880px; } .site-footer { display: block; padding: 22px 18px; } .site-footer p { margin: 12px 0; } .provider-form { grid-template-columns: 1fr; } .provider-form .wide-field { grid-column: auto; } .admin-provider-list { overflow-x: auto; } .admin-provider-row { min-width: 720px; } }
@media (max-width: 440px) { .auth-actions .header-button { padding: 7px 8px; } .card-footer { align-items: flex-end; } .tag-list { max-width: 145px; } .dashboard-tabs { gap: 4px; } .dashboard-tab { padding: 8px 10px; font-size: 10px; } }
