:root { color-scheme: light; --ink: #172b36; --accent: #005a70; }
body { margin: 0; color: var(--ink); background: #f6f7f5; font: 1.1rem/1.6 system-ui, sans-serif; }
header { padding: 1rem max(1.5rem, calc((100% - 48rem) / 2)); background: var(--ink); color: white; font-weight: 700; border-bottom: .4rem solid #28b4b1; }
header span { font-weight: 400; margin-left: .5rem; }
main { max-width: 48rem; margin: 4rem auto; padding: 0 1.5rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
button { background: var(--accent); color: white; border: 0; padding: .8rem 1.2rem; font: inherit; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
li { margin: .75rem 0; }
#llm { margin-top: 2rem; border-top: 2px solid var(--accent); padding-top: 1rem; }
label { display: block; font-weight: 600; margin-top: 1rem; }
select, textarea, input { box-sizing: border-box; width: 100%; padding: .65rem; font: inherit; color: inherit; background: white; border: 2px solid var(--ink); }
.launch-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
#launch-form button:disabled { cursor: default; }
#launch-form[aria-busy="true"] button { cursor: wait; }
textarea { resize: vertical; }
#send { margin-top: 1rem; }
#answer { white-space: pre-wrap; overflow-wrap: anywhere; border-left: .25rem solid var(--accent); padding: 1rem; background: white; }
#prompt-note, #usage { font-size: .95rem; overflow-wrap: anywhere; }
.budget { margin: 2rem 0; padding: 1.25rem; background: white; border-left: .25rem solid var(--accent); }
.budget h2 { margin: 0; font-size: 1.35rem; }
.budget p { font-size: .95rem; }
.budget dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.budget dl[hidden] { display: none; }
.budget dd { margin: 0; font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 650; overflow-wrap: anywhere; }
.budget dt { font-size: .95rem; }

.launcher { font-size: 1rem; }
.launcher header { padding-inline: max(1.5rem, calc((100% - 72rem) / 2)); }
.launcher-main { max-width: 72rem; margin-block: 2.5rem; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.workspace-heading h1 { margin: .3rem 0; font-size: clamp(1.9rem, 4vw, 2.5rem); }
.eyebrow { margin: 0; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.signed-in { font-size: .85rem; overflow-wrap: anywhere; }
.panel { background: white; border: 1px solid #cdd7db; border-radius: .5rem; padding: 1.5rem; min-width: 0; }
.panel h2 { font-size: 1.25rem; margin: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-heading p { margin: .25rem 0 0; }
.launcher .budget { display: flex; gap: 1.5rem; margin: 0 0 1.5rem; border-top: .25rem solid var(--accent); }
.budget-brand { position: relative; flex: 0 0 24%; min-height: 12rem; }
.budget-brand[hidden] { display: none; }
.budget-brand img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.budget-content { flex: 1; min-width: 0; }
.launcher .budget dl { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.5rem 0; }
.launcher .budget dd { font-variant-numeric: tabular-nums; font-size: clamp(1.5rem, 3vw, 2rem); }
.remaining { color: var(--accent); }
.muted, .feedback { color: #455b67; font-size: .875rem; }
.feedback { margin-bottom: 0; }
.feedback.error { color: #9f281a; border-left: 3px solid #b33325; padding-left: .75rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 1.5rem; }
.launcher button { border-radius: .25rem; font-size: .9rem; font-weight: 600; min-height: 44px; }
.launcher button:hover:not(:disabled) { filter: brightness(.92); }
.secondary { color: var(--accent); background: white; box-shadow: inset 0 0 0 1px var(--accent); }
.compact { padding: .55rem .8rem; flex-shrink: 0; }
.text-button { color: #455b67; background: transparent; text-decoration: underline; }
.configure-panel { margin-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #dce3e6; }
.configure-panel p { margin-bottom: 0; }
#relaunch { margin-top: 1rem; }
.spend-panel { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid #dce3e6; }
#spend-total { color: var(--accent); font-variant-numeric: tabular-nums; }
.spend-chart { display: flex; align-items: stretch; height: 10rem; gap: 3px; margin-top: 1.25rem; padding-bottom: 1.5rem; }
.spend-chart[hidden] { display: none; }
.launcher .spend-day { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; align-items: flex-end; padding: 0; border-radius: 2px 2px 0 0; background: #f1f5f5; }
.spend-fill { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }
.spend-day[data-incomplete="true"] .spend-fill { background: #946000; }
.spend-date { position: absolute; top: calc(100% + .35rem); left: 50%; transform: translateX(-50%); font-size: .65rem; white-space: nowrap; color: #455b67; }
.spend-day:first-child .spend-date { left: 0; transform: none; }
.spend-day:last-child .spend-date { left: auto; right: 0; transform: none; }
#spend-selected { min-height: 2.5em; margin-bottom: 0; }
.model-note { font-size: .85rem; }
.model-note p { overflow-wrap: anywhere; }
.launcher summary { cursor: pointer; }
.launcher summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.launcher #desktop-setup { font-size: .9rem; border-left: 3px solid #cdd7db; margin-top: 1rem; padding-left: 1rem; }
.launcher #desktop-heading { font-size: 1rem; }
.request-list { list-style: none; margin: 1rem 0; padding: 0; }
.request-list li { margin: 0; border-top: 1px solid #dce3e6; }
.request-list li:last-child { border-bottom: 1px solid #dce3e6; }
.request-list summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; }
.request-list summary::after { content: '+'; color: var(--accent); align-self: center; }
.request-list details[open] summary::after { content: '−'; }
.request-list summary:hover { background: #f4f8f8; }
.request-name { flex: 1; min-width: 0; }
.request-name strong { display: block; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.request-time { display: block; margin-top: .25rem; font-size: .8rem; }
.request-charge { text-align: right; max-width: 10rem; font-variant-numeric: tabular-nums; }
.request-charge strong { display: block; font-size: .95rem; }
.request-state { display: inline-block; font-size: .75rem; color: #455b67; }
.request-state.warning { color: #854c00; }
.request-state.blocked, .request-reason { color: #9f281a; }
.request-reason { display: block; margin-top: .35rem; font-size: .8rem; overflow-wrap: anywhere; }
.request-detail { padding: 0 .25rem 1rem; }
.request-detail dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; font-size: .8rem; }
.request-detail dd { margin: .25rem 0 0; font-weight: 600; }
.request-id { font-size: .75rem; overflow-wrap: anywhere; color: #455b67; }
.recent-note { border-top: 0; margin-bottom: 0; font-size: .8rem; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: #ffbf47; padding: .5rem; color: var(--ink); }
.skip-link:focus { top: 1rem; }
@media (max-width: 850px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-heading { display: block; }
  .launcher .budget dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 450px) {
  .launcher-main { padding-inline: 1rem; margin-block: 1.5rem; }
  .panel { padding: 1rem; }
  .launcher .budget { gap: .75rem; }
  .budget-brand { flex-basis: 27%; min-height: 0; }
  .budget-brand img { object-position: top; }
  .launcher .budget dd { font-size: 1.25rem; }
  .budget dt { font-size: .8rem; }
  .panel-heading { flex-wrap: wrap; }
  .request-detail dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-charge { max-width: 7rem; }
}
