:root {
  --brand-primary: #006a64;
  --brand-primary-hover: #005752;
  --brand-accent: #c66a4c;
  color: #17201f;
  background: #f7faf9;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f7faf9; }
button, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
svg { width: 17px; height: 17px; stroke-width: 1.8; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dce5e3;
  background: #ffffff;
}

.brand-lockup { display: flex; align-items: center; gap: 10px; padding: 2px 7px 24px; }
.brand-lockup strong, .brand-lockup span { display: block; }
.brand-lockup strong { color: #123b38; font-size: 18px; }
.brand-lockup span { margin-top: 2px; color: #758481; font-size: 11px; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; background: var(--brand-primary); color: #fff;
  clip-path: polygon(50% 0%, 82% 12%, 100% 41%, 94% 73%, 68% 96%, 32% 96%, 6% 73%, 0% 41%, 18% 12%);
  font-weight: 800;
}

.new-chat-button, .nav-item, .recent-item { display: flex; align-items: center; gap: 10px; border-radius: 5px; }
.new-chat-button {
  min-height: 42px; padding: 0 12px; border: 0; background: var(--brand-primary); color: #fff; font-size: 13px; font-weight: 700;
}
.new-chat-button:hover { background: var(--brand-primary-hover); }
.link-button { display: flex; align-items: center; color: #fff; text-decoration: none; }
nav { margin-top: 20px; display: grid; gap: 3px; }
.nav-heading { margin: 0 7px 6px; color: #899693; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tools-heading { margin-top: 16px; }
.nav-item { padding: 9px 10px; color: #586664; font-size: 13px; text-decoration: none; }
.nav-item:hover { background: #f0f5f4; }
.nav-item.active { background: #e4f3f1; color: var(--brand-primary); font-weight: 700; }
.nav-item.disabled { opacity: .48; }
.recent { margin-top: 28px; }
.recent-item {
  width: 100%; padding: 2px 3px 2px 7px; color: #6d7a78; font-size: 12px;
}
.recent-item:hover { background: #f4f7f6; }
.recent-item.selected { background: #edf6f5; color: var(--brand-primary); }
.recent-open { min-width: 0; padding: 6px 0; display: flex; flex: 1; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; text-align: left; }
.recent-open span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-delete { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #9aa5a3; opacity: 0; }
.recent-item:hover .recent-delete, .recent-delete:focus { opacity: 1; }
.recent-delete:hover { background: #ffe9e5; color: #ba1a1a; }
.recent-delete svg { width: 14px; height: 14px; }
.recent-dot { width: 7px; height: 7px; border-radius: 50%; background: #fb9c78; }
.sidebar-footer { margin-top: auto; padding: 11px 7px 2px; border-top: 1px solid #edf1f0; }
.workspace-plan { display: flex; align-items: center; color: #596765; font-size: 11px; }
.workspace-plan strong, .workspace-plan span { display: block; }
.workspace-plan span:not(.status-dot) { margin-top: 3px; color: #8a9694; }
.status-dot { width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #14b8a6; }

main { margin-left: 248px; min-height: 100vh; }
.topbar {
  height: 70px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e1e9e7; background: rgb(255 255 255 / 92%);
}
.conversation-kicker, .credits span { display: block; color: #899693; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.conversation-title strong { display: block; margin-top: 3px; color: #354240; font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.credits { display: flex; align-items: center; gap: 8px; padding-right: 4px; }
.credits svg { color: var(--brand-accent); }
.credits strong { display: block; margin-top: 2px; color: #273331; font-size: 14px; }
.recharge-button {
  min-height: 34px; padding: 0 11px; display: flex; align-items: center; border: 1px solid #b8cbc8; border-radius: 4px; background: #fff; color: var(--brand-primary); font-size: 12px; font-weight: 700; text-decoration: none;
}
.icon-button, .tool-button, .send-button, .message-action {
  display: grid; place-items: center; border: 0; border-radius: 4px;
}
.icon-button { width: 34px; height: 34px; background: transparent; color: #63716f; }
.icon-button:hover { background: #eef4f3; color: var(--brand-primary); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #173f3c; color: #fff; font-size: 13px; font-weight: 800; }

.chat-shell { height: calc(100vh - 70px); display: grid; grid-template-rows: minmax(0, 1fr) auto auto; background: #f8fbfa; }
.messages { overflow-y: auto; padding: 28px max(24px, calc((100% - 900px) / 2)); }
.empty-state { padding-top: min(14vh, 116px); text-align: center; }
.empty-mark {
  width: 44px; height: 44px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid #c8ddda; border-radius: 50%;
  background: #edf7f5; color: #006a64;
}
.empty-mark svg { width: 20px; height: 20px; }
.eyebrow { margin: 0; color: var(--brand-primary); font-size: 10px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 7px 0 0; color: #182220; font-size: 29px; font-weight: 650; }
.empty-copy { margin: 9px 0 0; color: #74817f; font-size: 14px; }
.suggestions { margin: 27px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 760px; }
.suggestions button {
  min-height: 78px; padding: 13px 14px; display: flex; gap: 12px; border: 1px solid #dce6e4; border-radius: 7px;
  background: #fff; color: #4c5a58; text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.suggestions button:hover { border-color: #91bbb7; box-shadow: 0 7px 18px rgb(28 54 51 / 7%); transform: translateY(-1px); }
.suggestions svg { flex: 0 0 auto; color: #c66a4c; }
.suggestions strong, .suggestions small { display: block; }
.suggestions strong { color: #273331; font-size: 13px; }
.suggestions small { margin-top: 6px; color: #7d8987; font-size: 12px; line-height: 1.35; }

.message { margin: 0 auto 27px; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 11px; max-width: 820px; }
.message-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #e6f3f1; color: #006a64; }
.message-avatar svg { width: 15px; height: 15px; }
.message.user .message-avatar { background: #eae7e3; color: #6d554d; }
.message.error .message-avatar { background: #fff0eb; color: #ba1a1a; }
.message-head { min-height: 28px; display: flex; align-items: center; gap: 8px; color: #53615f; font-size: 12px; font-weight: 800; }
.message-content { max-width: 760px; color: #273331; white-space: pre-wrap; line-height: 1.7; }
.message.error .message-content { color: #9b3528; }
.message-action { width: 27px; height: 27px; margin-left: 2px; background: transparent; color: #899693; opacity: 0; }
.message:hover .message-action { opacity: 1; }
.message-action:hover { background: #edf3f2; color: #006a64; }
.message-action svg { width: 14px; height: 14px; }

.composer {
  margin: 0 auto; width: min(900px, calc(100% - 48px)); border: 1px solid #cddbd9; border-radius: 8px; background: #fff;
  box-shadow: 0 13px 35px rgb(24 45 43 / 10%);
}
textarea { width: 100%; min-height: 74px; padding: 16px 17px 8px; border: 0; border-radius: 8px; outline: 0; resize: vertical; color: #263230; }
textarea::placeholder { color: #9aa5a3; }
.composer:focus-within { border-color: #70aaa5; box-shadow: 0 14px 38px rgb(24 77 73 / 12%); }
.composer-tools { min-height: 43px; padding: 5px 7px 7px 9px; display: flex; align-items: center; justify-content: space-between; }
.composer-left, .composer-right { display: flex; align-items: center; gap: 7px; }
.tool-button { width: 31px; height: 31px; background: transparent; color: #81908e; }
.inline-model-picker { display: flex; align-items: center; gap: 5px; color: #74817f; }
.inline-model-picker svg { width: 15px; height: 15px; }
select { max-width: 240px; border: 0; background: transparent; color: #586664; font-size: 12px; font-weight: 700; outline: 0; }
.composer-right span { color: #899693; font-size: 11px; }
.send-button { width: 33px; height: 33px; background: var(--brand-primary); color: #fff; }
.send-button:hover { background: var(--brand-primary-hover); }
.send-button:disabled { opacity: .45; cursor: wait; }
.disclaimer { margin: 9px auto 15px; color: #97a3a1; font-size: 11px; text-align: center; }

.page-content { max-width: 1240px; padding: 34px 32px 44px; }
.page-heading h1 { margin-top: 6px; font-size: 27px; }
.page-heading p:last-child { margin: 9px 0 0; color: #74817f; font-size: 14px; }
.usage-metrics { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.usage-metrics article { min-height: 102px; padding: 15px 16px; border: 1px solid #dce6e4; border-radius: 7px; background: #fff; }
.usage-metrics span { color: #7b8886; font-size: 12px; }
.usage-metrics strong { display: block; margin-top: 17px; color: #263230; font-size: 22px; }
.usage-panel { margin-top: 22px; border: 1px solid #dce6e4; border-radius: 7px; background: #fff; overflow: hidden; }
.usage-panel-heading { padding: 16px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf2f1; }
.usage-panel-heading a { color: var(--brand-primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.usage-panel-heading h2 { margin: 0; color: #263230; font-size: 15px; }
.usage-panel-heading p { margin: 5px 0 0; color: #7d8987; font-size: 12px; }
.usage-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 16px; border-bottom: 1px solid #edf2f1; font-size: 12px; }
th { color: #7d8987; font-size: 10px; text-transform: uppercase; }
td { color: #53615f; }
.mono { font-family: "JetBrains Mono", Consolas, monospace; }
.usage-status { padding: 3px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.usage-status.succeeded { background: #e1f5f1; color: #006a64; }
.usage-status.failed { background: #ffe9e5; color: #a64234; }
.usage-status.pending, .usage-status.paymentsubmitted, .usage-status.awaitingpayment { background: #fff1dd; color: #8c5b19; }
.usage-status.open, .usage-status.inreview { background: #fff1dd; color: #8c5b19; }
.usage-status.resolved { background: #e1f5f1; color: #006a64; }
.usage-status.closed { background: #eef2f1; color: #63716f; }
.usage-status.active, .usage-status.approved { background: #e1f5f1; color: #006a64; }
.usage-status.revoked, .usage-status.rejected { background: #ffe9e5; color: #a64234; }
.usage-empty { padding: 34px 17px; color: #899693; font-size: 13px; text-align: center; }

.account-grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 620px) minmax(240px, 1fr); gap: 14px; align-items: start; }
.account-panel { border: 1px solid #dce6e4; border-radius: 7px; background: #fff; overflow: hidden; }
.account-form { padding: 16px 17px 18px; display: grid; gap: 13px; }
.account-form label { display: grid; gap: 6px; }
.account-form input, .account-form select, .account-textarea { width: 100%; max-width: none; min-height: 39px; padding: 0 10px; border: 1px solid #c8d5d3; border-radius: 4px; background: #fff; color: #354240; outline: 0; }
.account-textarea { padding: 10px; resize: vertical; font: inherit; line-height: 1.5; }
.account-form input:focus, .account-form select:focus, .account-textarea:focus { border-color: #70aaa5; box-shadow: 0 0 0 3px rgb(0 106 100 / 8%); }
.package-fieldset { margin: 0; padding: 0; border: 0; }
.package-fieldset legend { margin-bottom: 8px; color: #afc0c1; font-size: 12px; font-weight: 700; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.package-choice, .package-custom-button { position: relative; padding: 11px; border: 1px solid #2c4447; border-radius: 6px; background: #0c1719; color: #afc0c1; text-align: left; }
.package-choice:hover, .package-custom-button:hover, .package-choice.active, .package-custom-button.active { border-color: var(--theme-cyan); background: #10272a; }
.package-choice strong, .package-choice span, .package-choice small, .package-choice em { display: block; }
.package-choice strong { color: #e2edec; font-size: 13px; }
.package-choice span { margin-top: 8px; color: var(--theme-cyan); font-family: "JetBrains Mono", Consolas, monospace; font-size: 18px; font-weight: 700; }
.package-choice small { margin-top: 3px; color: var(--theme-green); font-size: 11px; font-weight: 700; }
.package-choice em { min-height: 28px; margin-top: 7px; color: #829698; font-size: 11px; font-style: normal; line-height: 1.35; }
.package-choice .package-featured { position: absolute; top: 9px; right: 9px; margin: 0; color: #ffd27b; font-family: inherit; font-size: 9px; line-height: 1; text-transform: uppercase; }
.package-custom-button { margin-top: 8px; font-size: 12px; font-weight: 700; }
.card-method-panel { padding: 13px; display: grid; gap: 9px; border: 1px solid #cfe0de; border-radius: 6px; background: #f6fbfa; }
.card-method-panel div { display: flex; align-items: center; gap: 9px; }
.card-method-panel svg { color: var(--brand-primary); }
.card-method-panel strong { color: #273331; font-size: 13px; }
.card-method-panel span { margin-left: auto; color: #63716f; font-size: 12px; font-weight: 700; }
.card-method-panel small { color: #74817f; font-size: 12px; line-height: 1.45; }
.simulation-box { margin: 0 17px 17px; padding: 13px; border: 1px solid #285057; border-radius: 6px; background: #102326; }
.simulation-box strong, .simulation-box code { display: block; }
.simulation-box strong { color: var(--theme-green); font-size: 13px; }
.simulation-box p { margin: 6px 0 10px; color: #829698; font-size: 12px; line-height: 1.5; }
.simulation-box code { margin-bottom: 10px; color: var(--theme-cyan); font-size: 12px; overflow-wrap: anywhere; }
.primary-action { min-height: 40px; padding: 0 13px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 4px; background: var(--brand-primary); color: #fff; font-weight: 700; }
.primary-action:hover { background: var(--brand-primary-hover); }
.account-notice { padding: 16px; display: flex; gap: 10px; border: 1px solid #cfe0de; border-radius: 7px; background: #f0f8f7; color: #35514f; }
.account-notice svg { flex: 0 0 auto; color: #006a64; }
.account-notice strong { font-size: 13px; }
.account-notice p { margin: 6px 0 0; color: #63716f; font-size: 12px; line-height: 1.55; }
.payment-instruction-list { margin: 12px 0 0; display: grid; gap: 8px; }
.payment-instruction-list dt { color: #7b8886; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.payment-instruction-list dd { margin: -4px 0 0; overflow-wrap: anywhere; color: #354240; font-size: 12px; line-height: 1.45; }
.payment-steps { margin: 12px 0 0; padding-left: 18px; color: #63716f; font-size: 12px; line-height: 1.6; }
.secret-reveal { margin-top: 14px; padding: 15px 16px; border: 1px solid #efc891; border-radius: 7px; background: #fff8ed; }
.secret-reveal strong { color: #704b18; font-size: 13px; }
.secret-reveal p { margin: 4px 0 10px; color: #8c692f; font-size: 12px; }
.secret-value { display: flex; align-items: center; gap: 5px; }
.secret-value code { flex: 1; padding: 10px; overflow-x: auto; border: 1px solid #ecd5ad; border-radius: 4px; background: #fff; color: #51412a; font-size: 12px; white-space: nowrap; }
.table-action { width: 72px; text-align: right; }
.danger-button { padding: 5px 8px; border: 1px solid #efc7c1; border-radius: 4px; background: #fff; color: #a64234; font-size: 11px; font-weight: 700; }
.danger-button:hover { background: #fff2ef; }
.settings-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-notice { max-width: 680px; margin-top: 14px; }
.form-success { min-height: 18px; margin: 0; color: #006a64; font-size: 12px; }
.account-hero {
  margin-top: 26px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  border: 1px solid #dce6e4;
  border-radius: 7px;
  background: #fff;
}
.account-label { color: #7b8886; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.account-hero h2 { margin: 8px 0 0; color: #263230; font-size: 24px; }
.account-hero p { margin: 7px 0 0; color: #74817f; font-size: 13px; }
.account-badges { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.account-badges span { padding: 5px 8px; border-radius: 99px; background: #e8f4f2; color: var(--brand-primary); font-size: 11px; font-weight: 800; }
.account-balance { padding: 15px; display: grid; align-content: center; border: 1px solid #dce6e4; border-radius: 7px; background: #f4faf9; }
.account-balance span { color: #7b8886; font-size: 12px; }
.account-balance strong { margin-top: 8px; color: #263230; font-size: 28px; }
.account-hero-action { margin-top: 14px; text-decoration: none; }
.panel-tag { align-self: start; padding: 4px 8px; border-radius: 99px; background: #e8f4f2; color: var(--brand-primary); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.achievements-panel { margin-top: 14px; }
.achievement-grid { padding: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.achievement-card { min-height: 176px; padding: 13px; display: grid; align-content: start; gap: 12px; border: 1px solid #dce6e4; border-radius: 7px; background: #fff; }
.achievement-medal {
  width: 74px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0%, 82.14% 11.7%, 98.48% 41.32%, 92.4% 74.13%, 67.1% 96.98%, 32.9% 96.98%, 7.6% 74.13%, 1.52% 41.32%, 17.86% 11.7%);
  background: linear-gradient(145deg, #f7d770, #c8891e 54%, #4b3514);
  color: #071011;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 20px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgb(255 255 255 / 18%), 0 12px 24px rgb(0 0 0 / 12%);
}
.achievement-card strong { color: #273331; font-size: 13px; }
.achievement-card p { margin: 5px 0 0; color: #74817f; font-size: 12px; line-height: 1.45; }
.achievement-card small { display: block; margin-top: 8px; color: #899693; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.achievement-card.apex .achievement-medal { background: linear-gradient(145deg, #fff3a3, #e6b135 42%, #63e6f7 72%, #152326); box-shadow: inset 0 0 0 4px rgb(255 255 255 / 22%), 0 0 30px rgb(99 230 247 / 20%); }
.achievement-card.prime .achievement-medal { background: linear-gradient(145deg, #f7fbff, #b7c5d4 48%, #63e6f7 82%, #243238); }
.achievement-card.core .achievement-medal { background: linear-gradient(145deg, #48df98, #1c6b61 48%, #122124); color: #eafff7; }
.achievement-card.signal .achievement-medal { background: linear-gradient(145deg, #c9894d, #714524 52%, #142326); color: #ffe8ca; }
.achievement-card.referral .achievement-medal { background: linear-gradient(145deg, #63e6f7, #347c87 52%, #102326); color: #eaffff; }
.achievement-card.locked { opacity: .76; }
.achievement-card.locked .achievement-medal { filter: saturate(.65); }
.account-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-actions { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.account-actions a {
  min-height: 112px;
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #dce6e4;
  border-radius: 7px;
  background: #fff;
  color: #53615f;
  text-decoration: none;
}
.account-actions a:hover { border-color: #91bbb7; box-shadow: 0 7px 18px rgb(28 54 51 / 7%); }
.account-actions svg { color: var(--brand-primary); }
.account-actions strong { color: #263230; font-size: 14px; }
.account-actions span { color: #74817f; font-size: 12px; line-height: 1.45; }
.ledger-delta { font-weight: 800; }
.ledger-delta.positive { color: #006a64; }
.ledger-delta.negative { color: #a64234; }
.ledger-type {
  padding: 3px 7px;
  border-radius: 99px;
  background: #eef2f1;
  color: #63716f;
  font-size: 11px;
  font-weight: 800;
}
.ledger-type.manualrecharge, .ledger-type.adjustment { background: #e1f5f1; color: #006a64; }
.ledger-type.usagecharge, .ledger-type.refund, .ledger-type.chargeback { background: #ffe9e5; color: #a64234; }

.login-body { display: grid; place-items: center; background: #edf4f3; }
.login-shell { width: min(420px, calc(100vw - 32px)); min-height: auto; margin: 0; }
.login-panel { padding: 24px; border: 1px solid #d8e2e0; border-radius: 8px; background: #fff; box-shadow: 0 18px 45px rgb(28 54 51 / 12%); }
.login-panel .brand-lockup { padding: 0 0 22px; }
.login-panel h1 { margin-bottom: 18px; font-size: 23px; }
.auth-tabs { margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #dfe7e5; }
.auth-tabs button { padding: 10px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #7b8886; font-size: 13px; font-weight: 700; }
.auth-tabs button.active { border-bottom-color: #006a64; color: #006a64; }
.auth-form { display: grid; gap: 12px; }
.auth-form label, .development-login label { display: grid; gap: 6px; }
.auth-form input { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid #bcc9c7; border-radius: 4px; outline: 0; }
.auth-form input:focus { border-color: #70aaa5; box-shadow: 0 0 0 3px rgb(0 106 100 / 8%); }
.field-hint { margin: -5px 0 0; color: #899693; font-size: 11px; }
label { color: #3d4947; font-size: 13px; font-weight: 700; }
.login-panel select { width: 100%; max-width: none; margin-top: 6px; padding: 9px; border: 1px solid #bcc9c7; }
.primary-button { width: 100%; min-height: 40px; margin-top: 14px; border: 0; border-radius: 4px; background: var(--brand-primary); color: #fff; font-weight: 700; }
.form-error { min-height: 18px; margin: 10px 0 0; color: #ba1a1a; font-size: 12px; }
.development-login { margin-top: 22px; padding-top: 15px; border-top: 1px solid #edf1f0; }
.development-login summary { color: #899693; cursor: pointer; font-size: 11px; font-weight: 700; }
.development-login form { margin-top: 13px; }
.secondary-action { width: 100%; min-height: 38px; border: 1px solid #b8cbc8; border-radius: 4px; background: #fff; color: #006a64; font-size: 12px; font-weight: 700; }
.auth-link { width: fit-content; padding: 0; border: 0; background: transparent; color: var(--theme-cyan, #006a64); cursor: pointer; font-size: 12px; font-weight: 700; text-align: left; }
.auth-notice { margin: 10px 0 14px; color: #9db1b2; font-size: 13px; line-height: 1.55; }
.development-auth-link { display: block; margin: 12px 0 16px; color: var(--theme-cyan, #006a64); font-size: 13px; font-weight: 700; }
.account-verification { margin: -3px 0 2px; color: var(--theme-green, #48df98); font-size: 12px; font-weight: 700; }
.docs-callout { margin-bottom: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #285057; border-radius: 8px; background: #102326; }
.docs-callout span { display: block; margin-bottom: 5px; color: #829698; font-size: 12px; }
.docs-callout code { color: var(--theme-cyan); font-size: 14px; }
.docs-grid { margin-bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.docs-notice { align-self: stretch; }
.docs-tabs { padding: 12px 16px 0; display: flex; gap: 6px; }
.docs-tabs button { padding: 7px 10px; border: 1px solid var(--theme-border); border-radius: 4px; background: #101c1e; color: #829698; font-size: 12px; font-weight: 700; }
.docs-tabs button.active { border-color: #3d7b84; background: #153034; color: var(--theme-cyan); }
.code-sample { position: relative; margin: 12px 16px 16px; overflow: auto; border: 1px solid var(--theme-border-soft); border-radius: 6px; background: #071012; }
.code-sample pre { min-height: 238px; margin: 0; padding: 16px 52px 16px 16px; white-space: pre-wrap; }
.code-sample code { color: #c7d9d8; font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; line-height: 1.7; }
.code-copy { position: absolute; top: 8px; right: 8px; }

@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 11px 12px; }
  .brand-lockup { padding-bottom: 12px; }
  .sidebar nav { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 10px; }
  .nav-heading, .recent, .sidebar-footer { display: none; }
  .nav-item { justify-content: center; padding: 8px; }
  .nav-item span { display: none; }
  .new-chat-button { width: auto; min-height: 36px; }
  main { margin-left: 0; }
  .topbar { height: 62px; padding: 0 13px; }
  .recharge-button, .topbar-actions .icon-button:first-of-type { display: none; }
  .chat-shell { height: calc(100vh - 62px); }
  .messages { padding: 18px 15px; }
  .empty-state { padding-top: 56px; }
  h1 { font-size: 24px; }
  .suggestions { grid-template-columns: 1fr; }
  .composer { width: calc(100% - 24px); }
  .inline-model-picker select { max-width: 160px; }
  .page-content { padding: 24px 15px 34px; }
  .usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-grid { grid-template-columns: 1fr; }
    .package-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-hero, .account-summary-grid, .account-actions { grid-template-columns: 1fr; }
}

/* Omna dark workspace theme */
:root {
  --theme-canvas: #071012;
  --theme-sidebar: #091315;
  --theme-panel: #101c1e;
  --theme-panel-raised: #142224;
  --theme-panel-soft: #0d181a;
  --theme-border: #26383a;
  --theme-border-soft: #1a2a2c;
  --theme-text: #f0f7f6;
  --theme-muted: #91a8aa;
  --theme-subtle: #667d7f;
  --theme-cyan: #63e6f7;
  --theme-green: #48df98;
  --theme-purple: #bd9dff;
  --theme-coral: #ff9a8b;
  color: var(--theme-text);
  background: var(--theme-canvas);
  color-scheme: dark;
}

[hidden] { display: none !important; }
body { background: var(--theme-canvas); color: var(--theme-text); }
body::selection { background: rgb(99 230 247 / 28%); color: #fff; }
.sidebar { border-color: var(--theme-border-soft); background: var(--theme-sidebar); }
.brand-lockup strong { color: var(--theme-cyan); text-shadow: 0 0 18px rgb(99 230 247 / 22%); }
.brand-lockup span { color: var(--theme-subtle); }
.brand-mark {
  background: #12383d;
  color: var(--theme-cyan);
  box-shadow: 0 0 0 1px rgb(99 230 247 / 18%), 0 0 20px rgb(99 230 247 / 14%);
}
.new-chat-button, .primary-action, .primary-button, .send-button {
  background: linear-gradient(110deg, var(--theme-cyan), var(--theme-green));
  color: #041113;
  box-shadow: 0 0 18px rgb(99 230 247 / 15%);
}
.new-chat-button:hover, .primary-action:hover, .primary-button:hover, .send-button:hover {
  background: linear-gradient(110deg, #8ceeff, #6ce9ae);
}
.nav-heading { color: #698083; }
.nav-item { color: #92a5a7; }
.nav-item:hover { background: #122123; color: #d9e8e7; }
.nav-item.active {
  border-left: 2px solid var(--theme-cyan);
  background: #122b2f;
  color: var(--theme-cyan);
  box-shadow: inset 0 0 18px rgb(99 230 247 / 5%);
}
.recent-item { color: #829698; }
.recent-item:hover { background: #101d1f; }
.recent-item.selected { background: #122b2f; color: var(--theme-cyan); }
.recent-delete { color: #6f8183; }
.recent-delete:hover { background: #321d1d; color: var(--theme-coral); }
.recent-dot { background: var(--theme-purple); box-shadow: 0 0 8px rgb(189 157 255 / 42%); }
.sidebar-footer { border-color: var(--theme-border-soft); }
.workspace-plan { color: #a9bbbc; }
.workspace-plan span:not(.status-dot) { color: #667d7f; }
.status-dot { background: var(--theme-green); box-shadow: 0 0 10px rgb(72 223 152 / 60%); }

main { background: var(--theme-canvas); }
.topbar { border-color: var(--theme-border-soft); background: rgb(8 17 19 / 94%); }
.conversation-kicker, .credits span { color: #6f8789; }
.conversation-title strong, .credits strong { color: #dce9e8; }
.credits svg { color: var(--theme-green); filter: drop-shadow(0 0 7px rgb(72 223 152 / 42%)); }
.recharge-button {
  border-color: #285057;
  background: #102326;
  color: var(--theme-cyan);
}
.recharge-button:hover { border-color: #3d7b84; background: #153034; }
.icon-button { color: #7f9698; }
.icon-button:hover { background: #142629; color: var(--theme-cyan); }
.avatar {
  border: 1px solid #285057;
  background: #12363a;
  color: var(--theme-cyan);
}

.chat-shell { background: var(--theme-canvas); }
.messages { background: radial-gradient(circle at 50% 18%, rgb(20 54 58 / 30%), transparent 34%); }
.empty-mark {
  border-color: #285057;
  background: #10292d;
  color: var(--theme-cyan);
  box-shadow: 0 0 26px rgb(99 230 247 / 12%);
}
.eyebrow { color: var(--theme-cyan); }
h1 { color: var(--theme-text); }
.empty-copy { color: var(--theme-muted); }
.suggestions button {
  border-color: var(--theme-border);
  background: var(--theme-panel);
  color: var(--theme-muted);
  box-shadow: inset 0 1px rgb(255 255 255 / 3%);
}
.suggestions button:hover {
  border-color: #3d7076;
  background: var(--theme-panel-raised);
  box-shadow: 0 8px 22px rgb(0 0 0 / 18%), 0 0 18px rgb(99 230 247 / 6%);
}
.suggestions svg { color: var(--theme-cyan); }
.suggestions button:nth-child(2) svg { color: var(--theme-purple); }
.suggestions button:nth-child(3) svg { color: var(--theme-green); }
.suggestions button:nth-child(4) svg { color: var(--theme-coral); }
.suggestions strong { color: #dce9e8; }
.suggestions small { color: #7d9294; }

.message-avatar {
  border: 1px solid #234649;
  background: #10292d;
  color: var(--theme-cyan);
}
.message.user .message-avatar { border-color: #40364f; background: #231f2f; color: var(--theme-purple); }
.message.error .message-avatar { border-color: #5b3432; background: #2b1b1b; color: var(--theme-coral); }
.message-head { color: #91a8aa; }
.message-content { color: #dce7e6; }
.message.error .message-content { color: var(--theme-coral); }
.message-action { color: #6f8587; }
.message-action:hover { background: #142629; color: var(--theme-cyan); }

.composer {
  border-color: #315257;
  background: #101c1e;
  box-shadow: 0 16px 42px rgb(0 0 0 / 28%), 0 0 26px rgb(99 230 247 / 5%);
}
textarea { background: transparent; color: #e5efee; }
textarea::placeholder { color: #718789; }
.composer:focus-within { border-color: var(--theme-cyan); box-shadow: 0 16px 42px rgb(0 0 0 / 30%), 0 0 24px rgb(99 230 247 / 12%); }
.tool-button, .inline-model-picker { color: #7d9294; }
select { color: #b7c8c9; }
select option { background: #101c1e; color: #dce9e8; }
.composer-right span, .disclaimer { color: #718789; }

.page-heading p:last-child { color: var(--theme-muted); }
.usage-metrics article, .usage-panel, .account-panel {
  border-color: var(--theme-border);
  background: var(--theme-panel);
  box-shadow: inset 0 1px rgb(255 255 255 / 3%);
}
.usage-metrics article:nth-child(1) { border-top-color: var(--theme-cyan); }
.usage-metrics article:nth-child(2) { border-top-color: var(--theme-purple); }
.usage-metrics article:nth-child(3) { border-top-color: var(--theme-green); }
.usage-metrics article:nth-child(4) { border-top-color: var(--theme-coral); }
.usage-metrics span, .usage-panel-heading p { color: #829698; }
.usage-metrics strong, .usage-panel-heading h2 { color: #e2edec; }
.usage-panel-heading, th, td { border-color: var(--theme-border-soft); }
.usage-panel-heading a { color: var(--theme-cyan); }
th { color: #718789; }
td { color: #afc0c1; }
.usage-status.succeeded, .usage-status.active, .usage-status.approved { background: #12372d; color: var(--theme-green); }
.usage-status.failed, .usage-status.revoked, .usage-status.rejected { background: #351f20; color: var(--theme-coral); }
.usage-status.refunded { background: #263136; color: #b4c2c5; }
.usage-status.chargedback { background: #351f20; color: var(--theme-coral); }
.usage-status.pending, .usage-status.paymentsubmitted, .usage-status.awaitingpayment { background: #3b3020; color: #ffd27b; }
.usage-status.open, .usage-status.inreview { background: #3b3020; color: #ffd27b; }
.usage-status.resolved { background: #12372d; color: var(--theme-green); }
.usage-status.closed { background: #263136; color: #b4c2c5; }
.usage-empty { color: #718789; }

.account-form label, label { color: #afc0c1; }
.account-form input, .account-form select, .account-textarea, .auth-form input, .login-panel select {
  border-color: #2c4447;
  background: #0c1719;
  color: #dce9e8;
}
.account-form input:focus, .account-form select:focus, .account-textarea:focus, .auth-form input:focus {
    border-color: var(--theme-cyan);
    box-shadow: 0 0 0 3px rgb(99 230 247 / 10%);
  }
.card-method-panel { border-color: #285057; background: #102326; }
.card-method-panel svg { color: var(--theme-cyan); }
.card-method-panel strong { color: #dce9e8; }
.card-method-panel span { color: var(--theme-green); }
.card-method-panel small { color: #8ea4a6; }
  .account-notice {
  border-color: #285057;
  background: #102326;
  color: #c7d9d8;
}
.account-notice svg { color: var(--theme-cyan); }
.account-notice p { color: #8ea4a6; }
.payment-instruction-list dt { color: #718789; }
.payment-instruction-list dd { color: #c7d9d8; }
.payment-steps { color: #8ea4a6; }
.secret-reveal { border-color: #5e4d2d; background: #272116; }
.secret-reveal strong { color: #ffd27b; }
.secret-reveal p { color: #bd9d64; }
.secret-value code { border-color: #5e4d2d; background: #11191a; color: #e7d2a5; }
.danger-button { border-color: #573232; background: #24191a; color: var(--theme-coral); }
.danger-button:hover { background: #351f20; }
.form-success { color: var(--theme-green); }
.form-error { color: var(--theme-coral); }
.account-hero {
  border-color: var(--theme-border);
  background:
    radial-gradient(circle at 88% 18%, rgb(99 230 247 / 12%), transparent 28%),
    var(--theme-panel);
  box-shadow: inset 0 1px rgb(255 255 255 / 3%);
}
.account-label { color: #718789; }
.account-hero h2 { color: #e2edec; }
.account-hero p { color: #91a8aa; }
.account-badges span { background: #122b2f; color: var(--theme-cyan); }
.account-badges span:nth-child(2) { background: #12372d; color: var(--theme-green); }
.account-balance { border-color: #285057; background: #102326; }
.account-balance span { color: #829698; }
.account-balance strong { color: var(--theme-cyan); text-shadow: 0 0 18px rgb(99 230 247 / 18%); }
.panel-tag { background: #12372d; color: var(--theme-green); }
.achievement-card {
  border-color: var(--theme-border);
  background:
    radial-gradient(circle at 72% 15%, rgb(99 230 247 / 8%), transparent 28%),
    #10191b;
}
.achievement-card strong { color: #dce9e8; }
.achievement-card p { color: #8ea4a6; }
.achievement-card small { color: #718789; }
.account-actions a { border-color: var(--theme-border); background: var(--theme-panel); color: #91a8aa; }
.account-actions a:hover { border-color: #3d7076; background: var(--theme-panel-raised); box-shadow: 0 8px 22px rgb(0 0 0 / 18%), 0 0 18px rgb(99 230 247 / 6%); }
.account-actions svg { color: var(--theme-cyan); }
.account-actions a:nth-child(2) svg { color: var(--theme-green); }
.account-actions a:nth-child(3) svg { color: var(--theme-purple); }
.account-actions a:nth-child(4) svg { color: var(--theme-green); }
.account-actions strong { color: #e2edec; }
.account-actions span { color: #829698; }
.ledger-delta.positive { color: var(--theme-green); }
.ledger-delta.negative { color: var(--theme-coral); }
.ledger-type { background: #263136; color: #b4c2c5; }
.ledger-type.manualrecharge, .ledger-type.adjustment { background: #12372d; color: var(--theme-green); }
.ledger-type.usagecharge, .ledger-type.refund, .ledger-type.chargeback { background: #351f20; color: var(--theme-coral); }

.login-body {
  background:
    radial-gradient(circle at 50% 30%, rgb(25 71 76 / 38%), transparent 32%),
    var(--theme-canvas);
}
.login-panel {
  border-color: var(--theme-border);
  background: #0e191b;
  box-shadow: 0 22px 55px rgb(0 0 0 / 36%), 0 0 28px rgb(99 230 247 / 6%);
}
.auth-tabs { border-color: var(--theme-border-soft); }
.auth-tabs button { color: #718789; }
.auth-tabs button.active { border-color: var(--theme-cyan); color: var(--theme-cyan); }
.field-hint { color: #718789; }
.development-login { border-color: var(--theme-border-soft); }
.development-login summary { color: #7f9698; }
.secondary-action {
  border-color: #285057;
  background: #102326;
  color: var(--theme-cyan);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #071012; }
::-webkit-scrollbar-thumb { border: 2px solid #071012; border-radius: 8px; background: #2b4144; }
::-webkit-scrollbar-thumb:hover { background: #3c5b5f; }

@media (max-width: 760px) {
  .sidebar { border-bottom: 1px solid var(--theme-border-soft); }
  .sidebar nav { gap: 4px; }
  .nav-item.active { border-left: 0; border-bottom: 2px solid var(--theme-cyan); }
  .messages { background: radial-gradient(circle at 50% 12%, rgb(20 54 58 / 24%), transparent 30%); }
  .docs-grid { grid-template-columns: 1fr; }
}
