@charset "UTF-8";
:root {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--theme-focus, #91aa62);
  outline-offset: 3px;
}
a {
  color: inherit;
}
button svg,
[data-icon] svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--theme-accent, var(--ink));
  color: var(--theme-on-accent, white);
  padding: 12px;
}
.skip-link:focus {
  top: 16px;
}
.app-shell {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  height: 100dvh;
  min-height: 580px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 31px 20px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  min-height: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--brand-background, var(--ink));
  color: var(--accent);
  transform: rotate(-3deg);
}
.brand-mark svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
  transform: rotate(3deg);
}
.brand-type {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-word {
  font-size: 18px;
  letter-spacing: 2.7px;
  font-weight: 700;
  line-height: 1.1;
}
.brand-word > span {
  font-weight: 400;
  letter-spacing: 0;
  font-size: 10px;
  color: var(--theme-muted, #778370);
  vertical-align: middle;
  margin-right: 3px;
}
.brand-subtitle {
  font-size: 10px;
  color: var(--theme-muted, #7b8675);
  letter-spacing: 0.5px;
}
.button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.button-primary {
  background: var(--accent);
  color: var(--theme-on-accent, #253b26);
  border-color: var(--theme-accent-border, #ccdf92);
}
.button-primary:hover {
  background: var(--theme-accent-hover, #cce387);
  border-color: var(--theme-accent-border, #b6ce78);
}
.button-primary:active {
  transform: translateY(1px);
}
.button-primary:disabled {
  opacity: 0.48;
}
.button-secondary {
  background: var(--theme-surface, #fff);
  border-color: var(--line);
  color: var(--theme-text, #5d695c);
}
.button-secondary:hover {
  background: var(--theme-surface-soft, #f4f6f0);
}
.button-quiet {
  background: transparent;
  color: var(--theme-text, #56614f);
}
.button-quiet:hover {
  background: var(--theme-hover, #eef2e7);
}
.button-quiet:disabled {
  color: var(--theme-muted, #86907a);
}
.button-danger {
  background: var(--theme-danger, #ac4b3e);
  color: #fff;
  border-color: var(--theme-danger, #ac4b3e);
}
.button-danger:hover {
  background: var(--theme-danger-hover, #933a30);
}
.button:disabled {
  opacity: 0.55;
}
.new-deployment {
  margin: 36px 6px 31px;
  min-height: 44px;
  justify-content: flex-start;
  padding-left: 18px;
}
.new-deployment svg {
  width: 16px;
  height: 16px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 14px;
}
.sidebar-heading h2 {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--theme-muted, #818b79);
  margin: 0;
}
.count {
  font-size: 10px;
  color: var(--theme-muted, #8a947f);
  font-variant-numeric: tabular-nums;
}
.deployment-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  padding: 0 3px;
}
.sidebar-empty {
  padding: 23px 10px;
  line-height: 1.6;
  color: var(--theme-muted, #738065);
  font-size: 12px;
}
.sidebar-empty strong {
  font-weight: 500;
  display: block;
  color: var(--theme-text, #616f5c);
  margin-bottom: 5px;
}
.sidebar-empty p {
  margin: 0;
}
.deployment-card {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.deployment-card:hover {
  background: var(--theme-hover, #e8ede0);
}
.deployment-card.selected {
  background: var(--theme-surface, #fff);
  border-color: var(--theme-border, #dfe5d4);
  box-shadow: 0 1px 3px var(--theme-shadow, #23341d03);
}
.deployment-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.deployment-card-header .status-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-muted, #77826b);
  flex-shrink: 0;
}
.deployment-card-header .status-bullet.ready {
  background: var(--theme-ready, #739c43);
}
.deployment-card-header .status-bullet.error {
  background: var(--theme-error-dot, #b56150);
}
.deployment-card-header .status-bullet.working {
  background: var(--theme-working, #ae9349);
  animation: breathe 1.6s infinite;
}
.deployment-card-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deployment-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  gap: 4px;
  color: var(--theme-muted, #738065);
  padding-top: 8px;
}
.deployment-card-status {
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 125px;
}
.mini-demo {
  font-size: 8px;
  letter-spacing: 0.7px;
  font-weight: 650;
  border: 1px solid var(--theme-border, #dee5ce);
  background: var(--theme-positive-bg, #f7faef);
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--theme-positive, #78904b);
}
.sidebar-bottom {
  padding: 10px 7px 0;
}
.local-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--theme-muted, #7f8a72);
  border-bottom: 1px solid var(--theme-border, #e1e5d8);
  padding: 12px 2px 18px;
}
.local-note svg {
  width: 15px;
  height: 15px;
}
.local-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--theme-muted, #76816c);
}
.local-note p span {
  font-size: 9px;
  color: var(--theme-subtle, #929b8a);
}
.settings-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 15px 3px;
  font-size: 11px;
  color: var(--theme-muted, #6d7863);
}
.settings-button:hover {
  color: var(--theme-strong, #293d29);
}
.settings-button svg {
  width: 15px;
  height: 15px;
}
.connection-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: var(--theme-inactive, #a4ad9a);
  border-radius: 50%;
}
.connection-dot.connected {
  background: var(--theme-ready, #88a95b);
}
.connection-dot.disconnected {
  background: var(--theme-error-dot, #bc7564);
}
.sidebar-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--theme-muted, #7d876f);
  padding-top: 4px;
}
.tiny-label {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--canvas);
}
.workspace-header {
  min-height: 104px;
  padding: 29px 40px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.heading-group {
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.heading-group > div {
  min-width: 0;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--theme-muted, #6f7b64);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
}
.eyebrow span {
  padding: 0 8px;
  color: var(--theme-subtle, #b6bdae);
}
h1 {
  font-size: 20px;
  letter-spacing: -0.55px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-toggle {
  width: 32px;
  height: 32px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.badge {
  font-size: 8px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 5px 7px;
  line-height: 1.2;
  border-radius: 4px;
  font-weight: 600;
}
.badge-neutral {
  color: var(--theme-muted, #8a9481);
  border: 1px solid var(--theme-border, #e5e9df);
  background: var(--theme-surface-soft, #f5f7f1);
}
.badge-demo {
  color: var(--theme-positive, #718641);
  border: 1px solid var(--theme-positive-border, #d7e3bc);
  background: var(--theme-positive-bg, #f0f5e3);
}
.badge-live {
  color: var(--theme-positive, #496f56);
  border: 1px solid var(--theme-positive-border, #cfddce);
  background: var(--theme-positive-bg, #ecf3eb);
}
.header-actions .button svg {
  width: 14px;
  height: 14px;
}
.header-actions .button {
  font-size: 11px;
  min-height: 34px;
  padding: 8px;
}
.resource-strip {
  margin: 0 40px;
  min-height: 49px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--theme-muted, #84907a);
  font-size: 10px;
  flex-shrink: 0;
}
.resource-state {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--theme-text, #6b7862);
  font-weight: 500;
  max-width: 220px;
}
.state-dot {
  width: 5px;
  height: 5px;
  background: var(--theme-inactive, #a7b298);
  border-radius: 50%;
  flex-shrink: 0;
}
.state-dot.ready {
  background: var(--theme-ready, #80a748);
  box-shadow: 0 0 0 3px var(--theme-positive-border, #eaf0df);
}
.state-dot.error {
  background: var(--theme-error-dot, #b76252);
}
.state-dot.working {
  background: var(--theme-working, #b49a4b);
  animation: breathe 1.5s infinite;
}
.resource-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.resource-stat svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.4;
}
.resource-cost {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--theme-text, #6d7e5d);
}
.resource-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.icon-button {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  color: var(--theme-muted, #88937e);
  padding: 5px;
}
.icon-button:hover {
  background: var(--theme-hover, #edf1e6);
  color: var(--theme-strong, #445638);
}
.icon-button:disabled {
  opacity: 0.35;
}
.icon-button svg {
  width: 15px;
  height: 15px;
}
.icon-button.danger-hover:hover {
  background: var(--theme-error-bg, #faede9);
  color: var(--theme-error, #b35948);
}
.deployment-usage {
  margin: 8px 40px 0;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--theme-text, #6b7862);
}
.deployment-usage summary { cursor: pointer; padding: 6px 0; }
.deployment-usage summary span { color: var(--theme-muted, #84907a); margin-left: 10px; }
.deployment-usage[open] { max-height: 36vh; overflow-y: auto; border-bottom: 1px solid var(--line); }
.usage-grid { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 8px 18px; }
.usage-grid dt { color: var(--theme-muted, #84907a); }
.usage-grid dd { margin: 0; overflow-wrap: anywhere; }
.usage-warnings { padding-left: 18px; line-height: 1.6; color: var(--theme-warning, #9c8050); }
@media (max-width: 760px) {
  .deployment-usage { margin-left: 20px; margin-right: 20px; font-size: 10px; }
  .deployment-usage summary span { display: block; margin: 4px 0 0 14px; }
}
.deployment-notice {
  font-size: 11px;
  margin: 14px 40px 0;
  padding: 11px 14px;
  background: var(--theme-positive-bg, #f1f5e8);
  color: var(--theme-positive, #748053);
  border: 1px solid var(--theme-positive-border, #e2e8d5);
  border-radius: 7px;
  line-height: 1.6;
}
.deployment-notice.error {
  background: var(--theme-error-bg, #fcf2ed);
  border-color: var(--theme-error-border, #ebd8cf);
  color: var(--theme-error, #a36250);
}
.conversation-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-scrollbar, #d8dfce) transparent;
  display: flex;
  flex-direction: column;
}
.welcome {
  flex: 1;
  min-height: 335px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px 30px;
}
.welcome-symbol {
  width: 67px;
  height: 67px;
  margin-bottom: 29px;
  color: var(--theme-positive, #bccd98);
  position: relative;
}
.welcome-symbol:before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--theme-positive-bg, #f0f5e6);
  transform: scale(1.3);
}
.welcome-symbol svg {
  position: relative;
  width: 100%;
  height: 100%;
  stroke-width: 1;
}
.welcome-symbol circle {
  fill: var(--canvas);
}
.welcome-kicker {
  font-size: 8px;
  letter-spacing: 1.65px;
  margin: 0 0 17px;
}
.welcome h2 {
  font-family:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    serif;
  font-size: 43px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1.6px;
  margin: 0 0 18px;
  color: var(--theme-strong, #33412e);
}
.welcome-description {
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.05px;
  color: var(--theme-muted, #6f7b64);
  margin: 0;
}
.welcome-launch {
  margin-top: 24px;
  background: transparent;
  border: 1px solid var(--theme-border, #dce3d1);
  font-size: 11px;
  font-weight: 500;
  color: var(--theme-text, #566b43);
  min-height: 38px;
  padding: 10px 15px;
}
.welcome-launch:hover {
  background: var(--theme-hover, #eef3e4);
  border-color: var(--theme-positive-border, #c7d5b1);
}
.welcome-launch svg {
  width: 14px;
  height: 14px;
}
.welcome-details {
  display: flex;
  align-items: center;
  gap: 21px;
  color: var(--theme-muted, #77826b);
  font-size: 9px;
  margin-top: 35px;
}
.welcome-details > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.welcome-details svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.4;
}
.messages {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 25px 26px 14px;
}
.messages:empty {
  display: none;
}
.message {
  margin: 0 0 27px;
}
.message-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.message-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 600;
  background: var(--theme-positive-bg, #e8eddf);
  color: var(--theme-positive, #6b8056);
}
.message.assistant .message-avatar {
  background: var(--theme-positive-bg, #e9f0dc);
  color: var(--theme-positive, #769747);
}
.message.assistant .message-avatar svg {
  width: 13px;
  height: 13px;
}
.message-role {
  font-size: 10px;
  font-weight: 600;
  color: var(--theme-text, #607153);
}
.message-time {
  font-size: 9px;
  margin-left: 2px;
  color: var(--theme-muted, #7b866e);
}
.message-copy {
  margin-left: auto;
  width: 25px;
  height: 25px;
}
.message-copy svg {
  width: 12px;
  height: 12px;
}
.message-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04px;
  color: var(--theme-text, #53634a);
  padding-left: 33px;
}
.message.user .message-content {
  color: var(--theme-strong, #394d33);
}
.message.assistant .message-content:empty:after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-ready, #8eaa60);
  animation: breathe 1s infinite;
}
.message-error {
  margin: 10px 0 0 33px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--theme-error, #b76854);
}
.message-note {
  margin: 9px 0 0 33px;
  font-size: 10px;
  color: var(--theme-muted, #77826b);
}
.composer-area {
  padding: 12px 40px 23px;
  flex-shrink: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}
.composer {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #dce3d3);
  border-radius: 14px;
  padding: 16px 16px 12px;
  box-shadow: 0 5px 18px var(--theme-shadow, #354d2804);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.composer:focus-within {
  border-color: var(--theme-focus, #b8cc94);
  box-shadow: 0 3px 18px var(--theme-shadow, #33452206);
}
.composer textarea {
  resize: none;
  display: block;
  width: 100%;
  min-height: 29px;
  max-height: 170px;
  overflow-y: auto;
  border: 0;
  background: transparent;
  outline: 0;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--theme-strong, #354a2d);
  font-family: inherit;
}
.composer textarea:focus-visible {
  outline: none;
}
.composer textarea::placeholder {
  color: var(--theme-muted, #7c8870);
}
.composer textarea:disabled {
  background: transparent;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  gap: 10px;
}
.composer-model {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--theme-muted, #718062);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-model svg {
  width: 13px;
  height: 13px;
}
.composer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.keyboard-hint {
  color: var(--theme-muted, #78846c);
  font-size: 8px;
}
.send-button {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--theme-accent-border, #d2e398);
  border-radius: 8px;
  background: var(--theme-accent, #d9eba6);
  color: var(--theme-on-accent, #556d32);
  transition: background 0.15s;
}
.send-button:hover {
  background: var(--theme-accent-hover, #c9e285);
}
.send-button:disabled {
  background: var(--theme-disabled-bg, #edf2e6);
  color: var(--theme-disabled-text, #a9b39c);
  border-color: var(--theme-disabled-border, #e7eddf);
}
.send-button svg {
  width: 16px;
  height: 16px;
}
.stop-button {
  background: var(--theme-hover, #eef2e5);
  border-color: var(--theme-positive-border, #dce5cc);
}
.stop-button svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke-width: 1;
}
.composer-footnote {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 11px 5px 0;
  font-size: 8px;
  color: var(--theme-muted, #77826b);
  line-height: 1.5;
}
.text-button {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--theme-border, #c9d1bd);
  text-underline-offset: 2px;
  color: inherit;
}
.text-button:hover {
  color: var(--theme-positive, #667a51);
}
.suggestion-row {
  display: flex;
  gap: 8px;
  margin: 0 0 13px;
  flex-wrap: wrap;
}
.suggestion-row button {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--theme-border, #e1e7d7);
  border-radius: 7px;
  background: transparent;
  color: var(--theme-muted, #6f7e60);
  font-size: 9px;
  white-space: nowrap;
}
.suggestion-row button:hover {
  background: var(--theme-positive-bg, #f0f5e6);
  color: var(--theme-positive, #5d7447);
}
.suggestion-row span {
  color: var(--theme-muted, #849174);
}
.mobile-menu {
  display: none;
}
.modal {
  border: 1px solid var(--theme-border, #dce3d2);
  border-radius: 17px;
  padding: 29px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  color: var(--ink);
  background: var(--theme-surface, #fcfdf9);
  box-shadow: 0 30px 120px var(--theme-shadow, #23301829);
}
.modal::backdrop,
.events-dialog::backdrop {
  background: var(--theme-backdrop, #1f2b2040);
  backdrop-filter: blur(4px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.modal-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 10px;
}
.modal h2,
.events-dialog h2 {
  font-family:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    serif;
  font-weight: 400;
  letter-spacing: -0.8px;
  font-size: 29px;
  margin: 0;
  line-height: 1.1;
  color: var(--theme-strong, #34452d);
}
.modal-close {
  margin-top: -2px;
  margin-right: -4px;
}
.modal-description {
  font-size: 12px;
  line-height: 1.75;
  color: var(--theme-muted, #88927d);
  margin: 16px 0 23px;
}
.field-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.05px;
  color: var(--theme-muted, #69795c);
  font-weight: 600;
  margin: 19px 0 8px;
}
.label-optional {
  font-size: 9px;
  font-weight: 400;
  color: var(--theme-muted, #7a866d);
  margin-left: 4px;
}
select,
input {
  width: 100%;
  border: 1px solid var(--theme-border, #dce3d2);
  border-radius: 8px;
  background: var(--theme-surface, #fff);
  min-height: 43px;
  padding: 10px 11px;
  color: var(--theme-text, #4f6343);
  font-size: 12px;
  line-height: 1.3;
}
select {
  padding-right: 22px;
}
select:disabled,
input:disabled {
  opacity: 0.6;
}
input::placeholder {
  color: var(--theme-muted, #839076);
  font-size: 11px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field-row > div {
  min-width: 0;
}
.field-hint {
  font-size: 10px;
  line-height: 1.6;
  color: var(--theme-muted, #748166);
  margin: 7px 0 0;
}
.provider-hint {
  min-height: 16px;
}
.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--theme-positive-bg, #f0f5e5);
  border: 1px solid var(--theme-positive-border, #dfe7cf);
  border-radius: 9px;
  padding: 13px 14px;
  margin-top: 21px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--theme-positive, #809167);
}
.notice svg {
  width: 15px;
  height: 15px;
}
.notice p {
  margin: 0;
}
.notice strong {
  font-weight: 600;
  color: var(--theme-positive, #6c8153);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 23px;
  margin-top: 23px;
  border-top: 1px solid var(--theme-border, #e2e8d9);
}
.footer-note {
  margin-right: auto;
  font-size: 9px;
  color: var(--theme-muted, #77826b);
}
.modal-footer .button {
  font-size: 11px;
}
.form-error {
  font-size: 11px;
  color: var(--theme-error, #b2604d);
  background: var(--theme-error-bg, #fbede7);
  border: 1px solid var(--theme-error-border, #ecd7cc);
  padding: 11px 13px;
  line-height: 1.6;
  border-radius: 7px;
  margin: 15px 0 0;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  background: var(--theme-surface-soft, #f4f7ee);
  border: 1px solid var(--theme-border, #e0e7d6);
  border-radius: 10px;
  overflow: hidden;
}
.review-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--theme-border, #e3e9db);
}
.review-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.review-item:nth-child(odd) {
  border-right: 1px solid var(--theme-border, #e3e9db);
}
.review-grid dt {
  font-size: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--theme-subtle, #95a286);
  margin: 0 0 7px;
}
.review-grid dd {
  font-size: 12px;
  color: var(--theme-text, #5b7247);
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}
.plan-warning {
  font-size: 10px;
  line-height: 1.65;
  color: var(--theme-warning, #9c8050);
  background: var(--theme-warning-bg, #f9f4e8);
  border: 1px solid var(--theme-warning-border, #ebe1c9);
  border-radius: 7px;
  margin-top: 12px;
  padding: 10px 12px;
}
.plan-warning.demo {
  color: var(--theme-positive, #78915d);
  background: var(--theme-positive-bg, #f0f5e7);
  border-color: var(--theme-positive-border, #dce7cb);
}
.review-expiry {
  margin-top: 15px;
}
.settings-modal {
  width: min(460px, calc(100vw - 32px));
}
.settings-modal .modal-footer {
  justify-content: space-between;
}
.sign-in {
  min-height: 100dvh;
  display: grid;
  align-items: safe center;
  justify-items: center;
  padding: 16px;
}
.sign-in .sign-in-card {
  position: static;
  margin: 0;
  max-height: none;
  border: 1px solid var(--color-border-strong);
}
.sign-in-card h1 {
  margin: 26px 0 22px;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -.024em;
}
.sign-in-card #sign-in-submit {
  width: 100%;
  margin-top: 22px;
}
.sign-in-appearance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.sign-in-appearance .field-label { margin: 0; }
.sign-in-appearance select { width: auto; }
.destroy-modal {
  width: min(440px, calc(100vw - 32px));
}
.destroy-summary {
  padding: 13px 15px;
  border: 1px solid var(--theme-border, #e2e6d8);
  border-radius: 8px;
  font-size: 12px;
  color: var(--theme-text, #748263);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.events-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: none;
  max-width: min(470px, 100vw);
  width: 470px;
  border: 0;
  border-left: 1px solid var(--theme-border, #dce3d2);
  padding: 30px;
  background: var(--theme-surface-soft, #fafcf6);
  color: var(--ink);
  box-shadow: -15px 0 80px var(--theme-shadow, #27321e14);
  overflow: auto;
}
.events-list {
  margin-top: 28px;
}
.event-item {
  position: relative;
  display: grid;
  grid-template-columns: 7px 1fr;
  gap: 12px;
  padding-bottom: 24px;
}
.event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-ready, #a0b483);
  margin-top: 6px;
}
.event-item:not(:last-child):before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  bottom: 0;
  border-left: 1px solid var(--theme-border, #e1e8d7);
}
.event-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: var(--theme-muted, #78846c);
  margin-bottom: 5px;
}
.event-kind {
  text-transform: capitalize;
  color: var(--theme-positive, #869773);
}
.event-message {
  font-size: 11px;
  line-height: 1.75;
  color: var(--theme-text, #657c51);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.events-footer {
  border-top: 1px solid var(--theme-border, #e4eadc);
  padding-top: 18px;
  color: var(--theme-muted, #78846c);
  font-size: 9px;
  margin-top: 14px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--theme-positive-border, #d6e1c9);
  box-shadow: 0 7px 30px var(--theme-shadow, #27351b1c);
  background: var(--theme-positive-bg, #f5faee);
  color: var(--theme-text, #5a7446);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 12px;
  max-width: min(520px, calc(100vw - 32px));
  line-height: 1.5;
  z-index: 50;
}
.toast.error {
  background: var(--theme-error-bg, #fff1ea);
  color: var(--theme-error, #9a5d47);
  border-color: var(--theme-error-border, #e6cbbd);
}
.loading-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--theme-ready, #96aa7a);
  border-radius: 50%;
  margin-right: 5px;
  animation: breathe 1.3s infinite;
}
.noscript {
  position: fixed;
  inset: 0;
  background: var(--surface);
  padding: 60px;
  font-size: 18px;
  z-index: 999;
}
.sidebar-scrim {
  position: fixed;
  inset: 0;
  background: var(--theme-backdrop, #25331b45);
  z-index: 10;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@media (min-width: 1450px) {
  .app-shell {
    grid-template-columns: 304px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 25px;
    padding-right: 25px;
  }
  .workspace-header {
    padding-left: 54px;
    padding-right: 54px;
  }
  .resource-strip {
    margin-left: 54px;
    margin-right: 54px;
  }
  .welcome h2 {
    font-size: 49px;
  }
  .welcome {
    padding-top: 48px;
    padding-bottom: 42px;
  }
  .welcome-symbol {
    margin-bottom: 35px;
  }
  .welcome-details {
    margin-top: 42px;
  }
  .composer-area {
    padding-bottom: 30px;
  }
}
@media (max-height: 800px) {
  .welcome {
    padding-top: 24px;
    padding-bottom: 18px;
    min-height: 285px;
  }
  .welcome-symbol {
    height: 49px;
    width: 49px;
    margin-bottom: 18px;
  }
  .welcome h2 {
    font-size: 37px;
    margin-bottom: 13px;
  }
  .welcome-details {
    margin-top: 23px;
  }
  .welcome-launch {
    margin-top: 17px;
  }
  .welcome-kicker {
    margin-bottom: 13px;
  }
  .composer-area {
    padding-top: 10px;
    padding-bottom: 18px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace-header {
    padding: 28px 28px 21px;
  }
  .resource-strip {
    margin: 0 28px;
    gap: 15px;
    font-size: 9px;
  }
  .resource-gpu {
    max-width: 160px;
  }
  .resource-stat:nth-child(2) {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .composer-area {
    padding-left: 28px;
    padding-right: 28px;
  }
  .header-actions {
    gap: 12px;
  }
  .deployment-notice {
    margin-left: 28px;
    margin-right: 28px;
  }
  .resource-time {
    display: none;
  }
  .welcome h2 {
    font-size: 40px;
  }
  .local-note p span {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 282px;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
  }
  .workspace-header {
    padding: 22px 19px 18px;
    min-height: 91px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .button > span:last-child {
    display: none;
  }
  .header-actions .button {
    padding: 7px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  h1 {
    font-size: 17px;
    letter-spacing: -0.35px;
  }
  .badge {
    font-size: 7px;
    padding: 5px;
  }
  .resource-strip {
    margin: 0 20px;
    gap: 12px;
    font-size: 9px;
    min-height: 44px;
  }
  .resource-stat:nth-child(2) {
    max-width: 135px;
  }
  .resource-cost {
    margin-left: auto;
    font-size: 8px;
  }
  .resource-actions {
    gap: 2px;
  }
  .resource-actions .icon-button {
    width: 25px;
    height: 25px;
  }
  .resource-state {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .resource-state > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .composer-area {
    padding: 11px 19px 16px;
  }
  .composer {
    padding: 14px 13px 10px;
    border-radius: 12px;
  }
  .composer textarea {
    font-size: 16px;
    min-height: 29px;
  }
  .composer-model {
    font-size: 8px;
  }
  .keyboard-hint {
    display: none;
  }
  .composer-footnote {
    font-size: 8px;
    display: block;
    line-height: 1.7;
    margin-top: 9px;
  }
  .composer-footnote > span:last-child {
    display: block;
  }
  .welcome {
    min-height: 265px;
    padding: 25px 18px 15px;
  }
  .welcome h2 {
    font-size: 36px;
  }
  .welcome-description {
    font-size: 11px;
  }
  .welcome-symbol {
    width: 49px;
    height: 49px;
    margin-bottom: 20px;
  }
  .welcome-details {
    gap: 15px;
    font-size: 8px;
    margin-top: 26px;
  }
  .welcome-details > span {
    gap: 4px;
  }
  .welcome-details svg {
    width: 11px;
    height: 11px;
  }
  .messages {
    padding: 23px 22px 10px;
  }
  .message-content {
    font-size: 13px;
    padding-left: 0;
  }
  .message-header {
    margin-bottom: 9px;
  }
  .message-error,
  .message-note {
    margin-left: 0;
  }
  .suggestion-row {
    gap: 6px;
    margin-bottom: 11px;
  }
  .suggestion-row button {
    font-size: 8px;
    padding: 8px;
    gap: 8px;
  }
  .deployment-notice {
    margin: 12px 20px 0;
    font-size: 10px;
  }
  .modal {
    padding: 23px;
    width: calc(100vw - 24px);
  }
  .modal h2 {
    font-size: 27px;
  }
  .modal .eyebrow {
    font-size: 8px;
  }
  .field-row {
    gap: 12px;
  }
  select,
  input {
    font-size: 14px;
  }
  .footer-note {
    display: none;
  }
  .modal-footer {
    justify-content: space-between;
    gap: 8px;
  }
  .modal-footer .button {
    font-size: 10px;
    padding: 10px 11px;
  }
  .events-dialog {
    padding: 26px;
  }
  .toast {
    bottom: 18px;
    font-size: 11px;
  }
  .brand-subtitle {
    font-size: 10px;
  }
  .local-note p span {
    font-size: 9px;
  }
}
@media (max-width: 430px) {
  .resource-stat:nth-child(2) {
    display: none;
  }
  .resource-time {
    display: flex;
    font-size: 8px;
  }
  .workspace-header {
    padding-left: 14px;
    padding-right: 18px;
  }
  .header-actions .badge {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .suggestion-row button:nth-child(3) {
    display: none;
  }
  .welcome h2 {
    font-size: 34px;
  }
  .welcome-details {
    font-size: 7px;
    gap: 12px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-label {
    margin-top: 17px;
  }
  .field-row .field-hint {
    margin-top: 5px;
  }
  .modal-description {
    margin-bottom: 18px;
  }
  .modal {
    padding: 22px;
  }
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
  .composer-footnote {
    font-size: 7px;
  }
  .resource-strip {
    gap: 9px;
  }
  .resource-cost {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Exact deployment identifiers remain available without crowding the plan. */
.plan-details {
  margin-top: 15px;
  border: 1px solid var(--theme-border, #e1e7d7);
  border-radius: 8px;
  background: var(--theme-surface-soft, #fafcf6);
}
.plan-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 500;
  color: var(--theme-text, #6d805b);
  cursor: pointer;
  list-style: none;
}
.plan-details summary::-webkit-details-marker {
  display: none;
}
.plan-details summary:focus-visible {
  outline: 3px solid var(--theme-focus, #91aa62);
  outline-offset: 3px;
  border-radius: 8px;
}
.plan-details summary span {
  display: block;
  transition: transform 0.15s;
  font-size: 13px;
  line-height: 1;
}
.plan-details[open] summary span {
  transform: rotate(180deg);
}
.plan-details[open] summary {
  border-bottom: 1px solid var(--theme-border, #e5eadc);
}
.plan-details dl {
  margin: 0;
  padding: 3px 14px 9px;
}
.plan-detail {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--theme-border-soft, #edf0e7);
  font-size: 10px;
  line-height: 1.65;
}
.plan-detail:last-child {
  border-bottom: 0;
}
.plan-detail dt {
  color: var(--theme-muted, #7a886b);
}
.plan-detail dd {
  margin: 0;
  color: var(--theme-text, #536847);
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}
@media (max-width: 430px) {
  .plan-detail {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 9px;
  }
}

/* Provider usage: actual financial data first, followed by recorded usage. */
.workspace-nav { display: grid; gap: 4px; margin-top: 28px; padding: 0 2px 20px; border-bottom: 1px solid var(--line); }
.workspace-nav-link { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 10px 12px; border-radius: 7px; text-decoration: none; font-size: 13px; line-height: 1.4; color: var(--muted); }
.workspace-nav-link svg { width: 16px; height: 16px; }
.workspace-nav-link:hover { color: var(--ink); background: var(--theme-hover, #e9eee2); }
.workspace-nav-link[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 550; }
.sidebar .new-deployment { margin: 20px 6px 24px; }
.deployment-card-identity { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 7px 0; overflow-wrap: anywhere; }
.deployment-card-meta { font-size: 12px; }
body[data-workspace-view="usage"] .deployment-card.selected { background: transparent; border-color: transparent; box-shadow: none; }
.provider-workspace { min-height: 0; }
.usage-header { flex-shrink: 0; padding: 24px 32px 0; border-bottom: 1px solid var(--line); }
.usage-heading-row, .usage-header-actions, .usage-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.usage-header-actions { justify-content: flex-end; gap: 12px; }
.usage-header h1 { margin: 0; font-size: 25px; line-height: 1.25; font-weight: 550; letter-spacing: -.7px; }
.usage-header .eyebrow { font-size: 10px; margin-bottom: 7px; }
.usage-header .button { min-height: 40px; font-size: 13px; }
.usage-filter-row { margin-top: 20px; min-height: 46px; }
.usage-period { color: var(--muted); font-size: 12px; white-space: nowrap; }
.provider-tabs { display: flex; align-self: stretch; gap: 26px; }
.provider-tab { border: 0; border-bottom: 2px solid transparent; padding: 0 1px 13px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.provider-tab:hover { color: var(--ink); }
.provider-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-dark); }
.provider-page-scroll { flex: 1; min-height: 0; overflow: auto; padding: 24px 32px 32px; scrollbar-gutter: stable; }
.provider-page-content { width: 100%; max-width: 1240px; margin: 0 auto; container-type: inline-size; }
.provider-loading { color: var(--muted); font-size: 14px; }
.provider-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.provider-overview-heading { margin-bottom: 18px; }
.provider-workspace h2 { font-size: 15px; line-height: 1.4; margin: 0; font-weight: 600; letter-spacing: -.2px; }
.provider-overview-heading h2 { font-size: 19px; }
.provider-overview-heading p { font-size: 12px; color: var(--muted); margin: 5px 0 0; line-height: 1.6; }
.provider-section-note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.provider-status, .provider-state { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--muted); background: var(--theme-surface-soft, #f6f8f1); }
.provider-status::before, .provider-state::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; opacity: .65; }
.provider-state.attention { color: var(--theme-error, #a94a39); background: var(--theme-error-bg, #fcf1ec); border-color: var(--theme-error-border, #e9c9bd); }
.provider-state.ready { color: var(--theme-positive, #5c7541); background: var(--theme-positive-bg, #eef4e4); }
.provider-attention { border-left: 3px solid var(--danger); background: var(--theme-error-bg, #fcf1ec); color: var(--theme-error, #a94a39); padding: 12px 16px; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.provider-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.provider-stat { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 16px 18px; }
.provider-stat-label { color: var(--muted); font-size: 13px; line-height: 1.4; }
.provider-stat-value { margin: 9px 0 6px; font-size: 28px; font-weight: 550; letter-spacing: -.7px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.provider-stat-word { font-size: 20px; letter-spacing: -.4px; }
.provider-stat-note { display: block; margin-top: auto; color: var(--muted); font-size: 12px; line-height: 1.5; }
.provider-money { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.provider-money strong { font: inherit; }
.provider-money span { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.provider-freshness { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 12px; line-height: 1.6; padding: 12px 0 18px; }
.provider-freshness .source-error { color: var(--danger); }
.provider-live-strip { display: flex; align-items: baseline; gap: 8px 20px; padding: 14px 0; margin-bottom: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.provider-live-strip strong { font-weight: 550; white-space: nowrap; }
.provider-live-strip > span { color: var(--muted); }
.provider-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 20px; margin-bottom: 16px; }
.provider-generation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 24px; margin: 0; }
.provider-metric { min-width: 0; }
.provider-metric dt { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.provider-metric dd { margin: 4px 0 0; font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.provider-kv { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 24px; margin: 0 0 20px; }
.provider-quota + .provider-quota { margin-top: 14px; }
.provider-quota-line { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 12px; line-height: 1.4; }
.provider-quota-line > span:first-child { color: var(--muted); }
.provider-quota-line > span:last-child { font-variant-numeric: tabular-nums; }
.provider-quota progress { display: block; appearance: none; border: 0; border-radius: 10px; width: 100%; height: 5px; overflow: hidden; background: var(--line); accent-color: var(--accent-dark); }
.provider-quota progress::-webkit-progress-bar { background: var(--line); border-radius: 10px; }
.provider-quota progress::-webkit-progress-value { background: var(--theme-positive, #789854); border-radius: 10px; }
.provider-quota progress::-moz-progress-bar { background: var(--theme-positive, #789854); border-radius: 10px; }
.provider-check-time { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 16px 0 0; }
.provider-deployments { padding: 0; margin: 0; list-style: none; }
.provider-deployment { display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(90px,.55fr) minmax(250px,1.4fr) 36px; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; }
.provider-deployment:last-child { padding-bottom: 0; }
.provider-deployment-title, .provider-deployment-state { min-width: 0; }
.provider-deployment-title strong { display: block; font-size: 13px; line-height: 1.6; font-weight: 550; overflow-wrap: anywhere; }
.provider-deployment-title p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); margin: 4px 0 0; line-height: 1.6; font-size: 12px; overflow-wrap: anywhere; }
.provider-deployment-title code, .provider-events code { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; color: var(--muted); font-size: 12px; }
.provider-deployment-state small { display: block; color: var(--muted); margin-top: 6px; font-size: 12px; line-height: 1.6; }
.provider-row-metrics { display: grid; grid-template-columns: .65fr 1fr 1fr; gap: 14px; margin: 0; font-variant-numeric: tabular-nums; }
.provider-row-metrics > div { min-width: 0; }
.provider-row-metrics dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
.provider-row-metrics dd { margin: 4px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.provider-deployment-open { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; }
.provider-deployment-open:hover { background: var(--theme-hover, #eef2e7); }
.provider-disclosure { padding: 0; }
.provider-disclosure > summary { padding: 16px 20px; cursor: pointer; font-size: 13px; font-weight: 550; line-height: 1.6; }
.provider-disclosure > summary > .provider-section-note { margin-left: 12px; font-weight: 400; }
.provider-disclosure-content { padding: 0 20px 20px; }
.provider-events { list-style: none; padding: 0; margin: 0; }
.provider-events li { display: grid; grid-template-columns: 158px minmax(0,1fr); gap: 24px; padding: 13px 0; border-top: 1px solid var(--line); }
.provider-events time { color: var(--muted); font-size: 12px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.provider-events p { margin: 0 0 4px; font-size: 13px; line-height: 1.7; }
.provider-events-more { font-size: 13px; margin-top: 12px; padding: 8px 0; }
.provider-empty { padding: 20px 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.provider-metric-notes { font-size: 12px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--line); }
.provider-metric-notes summary { cursor: pointer; padding: 12px 0; }
.provider-monitor-warnings { padding-left: 18px; margin: 0 0 14px; max-width: 850px; }
.provider-monitor-warnings li + li { margin-top: 6px; }
.provider-observed-at { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.provider-billing-notice { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.provider-billing-notice.billing-error { color: var(--danger); }
.provider-billing-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; }
.provider-billing-summary .provider-metric dd { font-size: 18px; font-weight: 500; letter-spacing: -.3px; }
.provider-charge-zone { margin: 20px 0 12px; }
#provider-charges { list-style: none; padding: 0; margin: 0; }
.provider-charge { display: grid; grid-template-columns: minmax(0,1fr) 225px auto; align-items: start; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.provider-charge:last-child { padding-bottom: 0; }
.provider-charge strong { font-weight: 500; }
.provider-charge span { display: block; font-size: 12px; color: var(--muted); }
.provider-charge-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@container (max-width: 900px) {
  .provider-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .provider-deployment { grid-template-columns: minmax(160px,1fr) 100px 36px; gap: 14px; }
  .provider-row-metrics { grid-column: 1 / 3; grid-row: 2; }
  .provider-deployment-open { grid-column: 3; grid-row: 1 / 3; }
  .provider-charge { grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; }
  .provider-charge-dates { grid-column: 1; grid-row: 2; }
  .provider-charge-amount { grid-column: 2; grid-row: 1 / 3; }
}
@container (max-width: 560px) {
  .provider-stat { padding: 14px; }
  .provider-stat-value { font-size: 25px; }
  .provider-stat-word { font-size: 18px; }
  .provider-stat-label { font-size: 12px; }
  .provider-panel { padding: 16px; }
  .provider-disclosure { padding: 0; }
  .provider-disclosure > summary { padding: 14px 16px; }
  .provider-disclosure > summary > .provider-section-note { display: block; margin: 4px 0 0 14px; }
  .provider-disclosure-content { padding: 0 16px 16px; }
  .provider-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .provider-generation-grid, .provider-billing-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .provider-billing-summary .provider-metric:last-child { grid-column: 1 / -1; }
  .provider-billing-summary .provider-metric dd { font-size: 16px; }
  .provider-deployment { grid-template-columns: minmax(0,1fr) 36px; gap: 12px; }
  .provider-deployment-state { grid-column: 1; grid-row: 2; }
  .provider-deployment-open { grid-column: 2; grid-row: 1 / 3; }
  .provider-row-metrics { grid-column: 1 / -1; grid-row: 3; gap: 12px; }
  .provider-events li { grid-template-columns: 1fr; gap: 6px; }
  .provider-live-strip { align-items: flex-start; flex-direction: column; gap: 4px; }
}
/* The drawer follows available workspace width, including tablets. */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(282px,calc(100vw - 40px)); z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-flex; }
  .usage-header { padding: 20px 24px 0; }
  .provider-page-scroll { padding: 20px 24px 24px; }
}
@media (max-width: 560px) {
  .usage-header { padding: 18px 20px 0; }
  .usage-header h1 { font-size: 21px; letter-spacing: -.5px; }
  .usage-header-actions { gap: 6px; }
  .usage-header-actions .button { width: 36px; min-height: 36px; padding: 8px; }
  .usage-header-actions .button > span:last-child { display: none; }
  .usage-heading-row { gap: 8px; }
  .usage-heading-row .heading-group { gap: 8px; }
  .usage-filter-row { margin-top: 18px; min-height: 44px; }
  .usage-period { font-size: 12px; }
  .provider-tabs { gap: 20px; }
  .provider-tab { font-size: 13px; padding-bottom: 12px; }
  .provider-page-scroll { padding: 18px 20px 24px; }
  .provider-overview-heading { gap: 10px; }
  .provider-overview-heading h2 { font-size: 17px; }
  .provider-stats { gap: 10px; }
  .provider-status { padding: 4px 6px; }
  .provider-freshness { gap: 6px 12px; }
}
@media (max-width: 420px) { .usage-header-actions .theme-toggle { display: none; } }

/* Each saved chat shares its deployment's runtime and lifecycle. */
.conversation-toolbar { display: flex; align-items: center; gap: 12px; padding: 0 40px 16px; flex-shrink: 0; }
.conversation-toolbar label { color: var(--muted); font-size: 13px; }
.conversation-toolbar select { width: 100%; max-width: 600px; min-width: 0; margin: 0; font-size: 13px; height: 38px; padding: 8px 32px 8px 12px; text-overflow: ellipsis; }
@media (min-width: 1450px) { .conversation-toolbar { padding-left: 54px; padding-right: 54px; } }
@media (max-width: 1100px) { .conversation-toolbar { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 760px) { .conversation-toolbar { padding: 0 20px 12px; gap: 8px; } }

/* Resource pages share one navigation, header, spacing and readable type scale. */
.brand { text-decoration: none; }
.deployment-card { display: block; text-decoration: none; padding: 12px; }
.deployment-card-label { font-size: 13px; font-weight: 550; }
.deployment-card-identity { font-size: 12px; margin: 6px 0; }
.deployment-card-meta { line-height: 1.5; }
.sidebar-bottom { padding-top: 14px; }
.sidebar-footnote { font-size: 12px; color: var(--muted); }
.page-workspace { min-height: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px 24px; flex-shrink: 0; border-bottom: 1px solid var(--line); }
.page-header h1, .workspace-header h1 { font-size: 25px; font-weight: 550; letter-spacing: -.7px; }
.page-header h1 { white-space: normal; }
.page-header .button { min-height: 40px; font-size: 13px; }
.page-kicker { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: 1.3px; }
.page-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-scroll { flex: 1; min-height: 0; overflow: auto; padding: 24px 32px 32px; scrollbar-gutter: stable; }
.page-scroll > * { max-width: 1240px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 8px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-hidden] { opacity: .6; }
.button { text-decoration: none; }
.index-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0 0 28px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.index-metrics dd { font-size: 26px; line-height: 1.3; font-weight: 550; margin-top: 8px; }
.index-metrics dt { font-size: 13px; }
.index-filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.index-tabs { display: flex; gap: 4px; padding: 4px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 8px; }
.index-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 5px; padding: 8px 14px; min-height: 36px; font-size: 13px; }
.index-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.index-search { flex: 0 1 300px; }
.index-search input { width: 100%; margin: 0; min-height: 40px; font-size: 13px; }
.index-deployments, .overview-chats, .overview-events { padding: 0; margin: 0; list-style: none; }
.index-deployments { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.index-deployments > li + li { border-top: 1px solid var(--line); }
.index-deployment { display: grid; grid-template-columns: minmax(0,1.3fr) 150px minmax(145px,1fr) 18px; gap: 20px; align-items: center; padding: 20px; text-decoration: none; }
.index-deployment:hover { background: var(--theme-surface-soft,#f6f8f1); }
.index-deployment-title, .index-deployment-identity { min-width: 0; display: grid; gap: 7px; }
.index-deployment-title strong { font-size: 14px; line-height: 1.5; font-weight: 550; }
.index-deployment-title > span, .index-deployment-identity > span { font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.index-deployment .provider-state { justify-self: start; }
.index-deployment-identity code { font-size: 12px; color: var(--muted); }
.index-deployment-arrow { color: var(--muted); }
.index-empty { padding: 48px 24px; text-align: center; font-size: 14px; color: var(--muted); }
.index-empty h2 { color: var(--ink); font-size: 18px; font-weight: 550; margin: 0 0 10px; }
.index-empty p { max-width: 420px; margin: 0 auto; font-size: 13px; line-height: 1.8; }
.deployment-tabs { display: flex; gap: 26px; padding: 0 32px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.deployment-tabs a { color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; padding: 16px 0 13px; font-size: 13px; line-height: 1.6; }
.deployment-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent-dark); }
.overview-status { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 0 0 24px; }
.overview-status p { max-width: 700px; font-size: 13px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.overview-status > .button { font-size: 13px; flex-shrink: 0; }
.overview-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 20px; margin-bottom: 20px; }
.overview-panel h2 { font-size: 15px; font-weight: 550; margin: 0 0 18px; }
.overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 24px; margin: 0; }
.overview-panel summary { cursor: pointer; font-size: 13px; line-height: 1.6; }
.overview-panel[open] summary { margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; }
.section-heading .button { font-size: 12px; min-height: 36px; }
.overview-chat { display: flex; align-items: center; gap: 14px; text-decoration: none; border-top: 1px solid var(--line); padding: 15px 0; }
.overview-chat > div { flex: 1; min-width: 0; }
.overview-chat strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.overview-chat > div > span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.overview-chat > span { color: var(--muted); }
.overview-events li { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 13px; line-height: 1.6; }
.overview-events time { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.route-error { padding: 60px 32px; max-width: 640px; margin: auto; }
.route-error h1 { font-size: 28px; }
.route-error > p:not(.page-kicker) { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 16px 0 24px; }
.provider-tab { display: flex; align-items: center; text-decoration: none; }
.workspace-header { padding: 24px 32px 20px; min-height: 100px; }
.header-actions { gap: 12px; }
.header-actions .button { font-size: 13px; }
.chat-context-bar { display: flex; align-items: center; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-context-bar .chat-tabs { padding: 0; border: 0; }
.chat-context-bar .conversation-toolbar { padding: 0; margin: 0 0 0 auto; gap: 10px; max-width: 570px; flex: 1; justify-content: flex-end; }
.chat-context-bar .conversation-toolbar label { font-size: 12px; white-space: nowrap; }
.chat-context-bar .conversation-toolbar select { max-width: 430px; height: 36px; font-size: 13px; }
.resource-strip { margin: 0 32px; font-size: 12px; gap: 16px; min-height: 48px; }
.resource-state { min-width: 0; flex-wrap: wrap; gap: 8px; }
.resource-strip .badge { font-size: 10px; letter-spacing: .5px; }
.resource-cost { display: none; }
.composer-footnote { font-size: 11px; line-height: 1.6; }
.composer-footnote .text-button { padding: 4px; min-height: 24px; font-size: 11px; }
@media (max-width: 1100px) {
  .index-deployment { grid-template-columns: minmax(0,1fr) 130px minmax(130px,.8fr) 18px; gap: 16px; }
}
@media (max-width: 760px) {
  .page-header { padding: 22px 20px; align-items: flex-start; gap: 14px; }
  .page-header h1, .workspace-header h1 { font-size: 21px; }
  .page-header .button { min-height: 36px; padding: 8px; }
  .page-header > .button > span:last-child { display: none; }
  .page-description { font-size: 12px; }
  .page-scroll { padding: 20px; }
  .index-metrics { gap: 12px; padding-bottom: 20px; margin-bottom: 20px; }
  .index-metrics dt { font-size: 12px; }
  .index-metrics dd { font-size: 24px; }
  .index-filters { align-items: stretch; flex-direction: column; gap: 12px; }
  .index-tabs { align-self: flex-start; }
  .index-search { flex: auto; }
  .index-deployment { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 16px; }
  .index-deployment-identity { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; }
  .index-deployment-arrow { display: none; }
  .index-deployment .provider-state { font-size: 11px; }
  .deployment-tabs { padding: 0 20px; }
  .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .overview-panel { padding: 16px; }
  .overview-status { gap: 16px; }
  .overview-status > .button { font-size: 12px; padding: 8px; }
  .overview-events li { flex-direction: column; gap: 6px; }
  .workspace-header { padding: 20px; gap: 12px; }
  .workspace-header .breadcrumbs { font-size: 11px; gap: 5px; }
  .header-actions { gap: 6px; }
  .chat-context-bar { padding: 0 20px; gap: 14px; }
  .chat-context-bar .conversation-toolbar label { display: none; }
  .chat-context-bar .conversation-toolbar select { font-size: 12px; }
  .resource-strip { margin: 0 20px; gap: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Primary navigation contains sections; resource lists live on their pages. */
@media (min-width: 1025px) {
  .app-shell { grid-template-columns: 224px minmax(0,1fr); }
  .sidebar { padding-left: 16px; padding-right: 16px; }
}
.sidebar .brand-word { font-size: 24px; letter-spacing: 2px; }
.sidebar .brand-mark { width: 36px; height: 36px; }
.sidebar .brand { gap: 10px; }
.sidebar-bottom { margin-top: auto; }
.page-header-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
@media (max-width: 760px) {
  .page-header-actions { gap: 8px; }
  .page-header-actions .button > span:last-child { display: none; }
}
/* The initial shell stays useful while the app module loads, without flashing another page. */
html:not([data-ui-ready])[data-initial-view="deployments"] #deployments-workspace[hidden],
html:not([data-ui-ready])[data-initial-view="deployment"] #deployment-workspace[hidden],
html:not([data-ui-ready])[data-initial-view="chat"] #chat-workspace[hidden],
html:not([data-ui-ready])[data-initial-view="usage"] #provider-usage-page[hidden] { display: flex !important; }
/* Chat uses the same restrained, readable treatment as resource pages. */
.welcome-symbol, .welcome-details { display: none; }
.welcome { min-height: 260px; padding: 40px 24px; }
.welcome h2 { font-family: inherit; font-size: 30px; font-weight: 550; letter-spacing: -.7px; line-height: 1.3; }
.welcome-description { font-size: 14px; max-width: 440px; line-height: 1.8; }
.welcome-kicker { font-size: 11px; }
.welcome-launch { font-size: 13px; margin-top: 24px; }
.message-content { font-size: 14px; line-height: 1.8; }
.message-role, .message-time, .message-note, .message-error { font-size: 12px; }
.composer-model, .keyboard-hint, #stream-status { font-size: 12px; }
.composer textarea { font-size: 14px; }
.badge-demo { color: var(--accent-dark); }
.deployment-usage, .deployment-notice { font-size: 12px; margin-left: 32px; margin-right: 32px; }
.deployment-usage summary { min-height: 36px; padding: 10px 0; }
@media (max-width: 760px) {
  .resource-time { display: none !important; }
  .deployment-usage, .deployment-notice { font-size: 12px; margin-left: 20px; margin-right: 20px; }
  .welcome h2 { font-size: 25px; }
  .welcome { padding: 28px 20px; }
  .keyboard-hint { display: none; }
}

/* Saved chats are a contextual history panel, separate from section navigation. */
.chat-body { display: grid; grid-template-columns: 244px minmax(0,1fr); flex: 1; min-height: 0; }
.conversation-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.chat-history-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px 12px; }
.chat-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px 16px; }
.chat-history-heading h2 { font-size: 15px; font-weight: 550; margin: 0; }
.chat-history-heading p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
#history-close { display: none; }
#chat-history-search { width: 100%; min-height: 38px; margin: 0 0 14px; font-size: 13px; padding: 8px 10px; }
.chat-history-list { flex: 1; min-height: 0; overflow: auto; padding: 0 2px; }
.history-group + .history-group { margin-top: 20px; }
.history-group h3 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0 8px 8px; }
.history-chat { display: block; border: 1px solid transparent; border-radius: 7px; padding: 10px 9px; text-decoration: none; margin-bottom: 4px; }
.history-chat strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.history-chat > span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.history-chat:hover { background: var(--theme-surface-soft,#f6f8f1); }
.history-chat[aria-current="page"] { border-color: var(--line); background: var(--theme-positive-bg,#f0f5e8); }
.history-empty { padding: 16px 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.history-stream-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 8px 14px; }
.chat-context-bar .conversation-toolbar { max-width: none; min-width: 0; }
#chat-current-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
#history-open { display: none; }
.history-dialog { margin: 0 auto 0 0; width: min(360px,calc(100vw - 24px)); max-width: none; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); }
.history-dialog::backdrop { background: var(--theme-backdrop,#25331b45); }
.history-dialog .chat-history-panel { height: 100%; border: 0; padding: 22px 16px 16px; }
.history-dialog #history-close { display: inline-flex; }
#deployment-usage { margin: 0 0 20px; font-size: 13px; max-height: none; overflow: visible; }
#deployment-usage .page-description { margin: -4px 0 16px; }
#deployment-usage .usage-warnings { font-size: 12px; margin: 18px 0 0; color: var(--muted); }
.chat-body .composer-area { padding-left: 24px; padding-right: 24px; }
@media (max-width: 1100px) {
  .chat-body { grid-template-columns: minmax(0,1fr); }
  .chat-body > .chat-history-panel { display: none; }
  .history-dialog .chat-history-panel { display: flex; }
  #history-open { display: inline-flex; font-size: 12px; min-height: 34px; gap: 6px; padding: 7px 10px; flex-shrink: 0; }
  .chat-context-bar .conversation-toolbar { gap: 8px; }
}
@media (max-width: 560px) {
  #chat-current-title { display: none; }
  .chat-body .composer-area { padding-left: 20px; padding-right: 20px; }
}
.resource-state { max-width: none; flex-wrap: nowrap; flex-shrink: 0; }
.resource-actions { margin-left: auto; }
@media (max-width: 760px) { .resource-state { max-width: calc(100% - 80px); flex-wrap: wrap; } }

/* Shared product components and task-focused layouts (iteration015). */
.app-shell { height: var(--app-height,100dvh); }
.modal h2 { font-family: inherit; font-size: 23px; font-weight: 550; line-height: 1.3; letter-spacing: -.5px; }
.modal .eyebrow { font-size: 12px; letter-spacing: .6px; }
.modal .field-label, .review-grid dt { font-size: 13px; text-transform: none; letter-spacing: 0; }
.modal .field-label, .modal .field-hint, .modal .footer-note, .modal .review-grid dt { color: var(--muted); }
.modal .review-grid dd { color: var(--ink); font-size: 14px; }
.modal .plan-warning, .modal .notice { font-size: 13px; line-height: 1.7; color: var(--theme-warning,#6d5326); }
.modal .plan-warning.demo, .modal .notice strong { color: var(--accent-dark); }
.modal .notice { color: var(--ink); }
.modal .footer-note, .modal-footer .button, .plan-details summary { font-size: 13px; }
.modal .plan-details dt, .modal .plan-details dd, .modal .plan-details code { font-size: 12px; line-height: 1.7; color: var(--muted); }
.modal .destroy-summary { font-size: 14px; color: var(--ink); }
.modal .event-meta, .modal .event-kind, .modal .event-item p { font-size: 12px; }
input::placeholder { font-size: 13px; color: var(--muted); }
.modal-description, .field-hint, .modal-footer-note, .review-note, .review-expiry { font-size: 13px; line-height: 1.7; }
.modal { border-radius: 12px; padding: 28px; }
.modal input:not([type="checkbox"]), .modal select { min-height: 44px; font-size: 14px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.compact-modal { width: min(480px,calc(100vw - 32px)); }
.compact-modal .modal-description { margin-top: 8px; overflow-wrap: anywhere; }
.compact-modal #clear-description { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.action-list { display: grid; gap: 4px; }
.action-list button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; text-align: left; color: var(--ink); font-size: 14px; }
.action-list button:hover { background: var(--sidebar); }
.action-list .danger-text { color: var(--danger); margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; }
.rail-toggle { align-self: flex-end; margin-bottom: 16px; }
@media (min-width: 1025px) {
  body.rail-collapsed .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  body.rail-collapsed .sidebar { padding: 20px 12px; align-items: center; }
  body.rail-collapsed .brand { padding: 0; margin: 8px 0 24px; }
  body.rail-collapsed .brand-type, body.rail-collapsed .workspace-nav-link > span:last-child,
  body.rail-collapsed .settings-button > span:not(:first-child), body.rail-collapsed .sidebar-footnote { display: none; }
  body.rail-collapsed .workspace-nav { width: 100%; }
  body.rail-collapsed .workspace-nav-link { justify-content: center; padding: 12px; min-height: 48px; }
  body.rail-collapsed .rail-toggle { align-self: center; margin: 0; }
  body.rail-collapsed .sidebar-bottom { width: 100%; padding: 0; }
  body.rail-collapsed .settings-button { justify-content: center; padding: 12px; min-height: 48px; }
}
.workspace-header { min-height: 0; padding: 18px 28px 14px; align-items: center; }
.workspace-header .heading-group { min-width: 0; }
.workspace-header .heading-group > div { min-width: 0; }
.workspace-header h1 { font-size: 22px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-header .breadcrumbs { margin-bottom: 3px; }
.chat-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-context-bar { padding: 0 28px; }
.chat-context-bar .deployment-tabs a { padding: 11px 0; }
.resource-strip { margin: 0; padding: 0 28px; min-height: 40px; border-bottom: 1px solid var(--line); }
#history-open { display: inline-flex; min-height: 40px; padding: 8px 12px; font-size: 13px; }
#history-close { display: inline-flex; }
#chat-current-title.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: -1px; white-space: nowrap; }
.chat-body { grid-template-columns: 240px minmax(0,1fr); }
.chat-body.history-collapsed { grid-template-columns: minmax(0,1fr); }
.chat-body.history-collapsed > .chat-history-panel { display: none; }
.history-archive-filter { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 2px 12px; color: var(--muted); font-size: 12px; }
.history-archive-filter input { width: 16px; height: 16px; margin: 0; }
.chat-body .conversation-scroll { padding: 24px clamp(20px,5vw,72px); scrollbar-gutter: stable; overflow-anchor: auto; }
.messages { width: 100%; max-width: 800px; margin: 0 auto; }
.chat-readonly { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-readonly strong { font-size: 13px; font-weight: 550; }
.chat-readonly p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.chat-readonly .button { flex-shrink: 0; }
.composer-footnote { font-size: 12px; }
.message-content { white-space: normal; overflow-wrap: anywhere; line-height: 1.8; }
.message.user .message-content, .message-content.is-streaming { white-space: pre-wrap; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { white-space: pre-wrap; margin: 0 0 16px; }
.message-content h3, .message-content h4, .message-content h5, .message-content h6 { font-size: 16px; line-height: 1.5; margin: 24px 0 10px; font-weight: 600; }
.message-content h3 { font-size: 19px; }
.message-content ul, .message-content ol { padding-left: 24px; margin: 12px 0 18px; }
.message-content li + li { margin-top: 5px; }
.message-content blockquote { border-left: 3px solid var(--line); margin: 16px 0; padding: 4px 16px; color: var(--muted); white-space: pre-wrap; }
.message-content code { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .9em; background: var(--sidebar); border: 1px solid var(--line); padding: 2px 5px; border-radius: 4px; }
.code-block { border: 1px solid var(--line); border-radius: 8px; margin: 16px 0; overflow: hidden; background: var(--sidebar); }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.code-toolbar button { background: transparent; border: 0; color: var(--ink); min-height: 40px; padding: 8px; font-size: 12px; }
.code-block pre { margin: 0; padding: 16px; overflow: auto; max-height: 500px; }
.code-block code { padding: 0; border: 0; background: transparent; white-space: pre; font-size: 13px; }
.message-retry { margin-top: 12px; min-height: 40px; font-size: 13px; }
.message-error, .message-note { padding: 8px 0; line-height: 1.6; }
.index-metrics { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 0 18px; margin-bottom: 20px; }
.index-metrics .metric-filter { display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; }
.metric-filter strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.index-filter-inputs { display: flex; gap: 10px; flex: 1; justify-content: flex-end; min-width: 0; }
.index-filter-inputs select { min-height: 40px; font-size: 13px; margin: 0; }
.index-tabs { flex-wrap: wrap; }
.index-tabs button { padding: 8px 10px; }
.index-deployment { padding: 16px 20px; }
.index-deployment-title strong { overflow-wrap: anywhere; }
.progress-stages { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.progress-stages li { flex: 1; padding-top: 12px; border-top: 3px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.progress-stages li.current { border-color: var(--accent-dark); color: var(--ink); font-weight: 550; }
.progress-stages li.complete { border-color: var(--accent-dark); }
.progress-stages time { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; }
.overview-events li > div { display: grid; gap: 5px; }
.overview-events strong { font-size: 13px; font-weight: 550; }
.provider-financials { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.provider-financials h2, .provider-installation h2 { font-size: 15px; font-weight: 550; }
.provider-financials .provider-stat { border: 0; border-radius: 0; padding: 0; }
.provider-financials .provider-stat + .provider-stat { border-left: 1px solid var(--line); padding-left: 24px; }
.provider-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
.provider-installation { margin: 24px 0 20px; }
.billing-period, .billing-attribution { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 16px 0 0; }
.billing-period { padding-top: 16px; border-top: 1px solid var(--line); }
.provider-freshness { font-size: 12px; margin: 14px 0 20px; }
.overview-panel summary, .provider-disclosure > summary, .provider-metric-notes > summary { min-height: 28px; font-size: 14px; }
@media (max-width: 1200px) { .index-filters { flex-wrap: wrap; } .index-filter-inputs { flex-basis: 100%; justify-content: stretch; } .index-search { flex: 1; } }
@media (max-width: 1100px) { .chat-body { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 1024px) { .rail-toggle { display: none; } }
@media (max-width: 760px) {
  .icon-button { min-width: 44px; min-height: 44px; }
  .button { min-height: 44px; }
  .workspace-header { padding: 14px 16px 10px; gap: 8px; align-items: flex-start; }
  .workspace-header .heading-group { gap: 6px; }
  .workspace-header h1 { font-size: 18px; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .workspace-header .breadcrumbs { font-size: 12px; }
  .header-actions { gap: 0; }
  .header-actions .theme-toggle { display: none; }
  .header-actions .button { width: 44px; min-width: 44px; padding: 10px; }
  .header-actions .button > span:last-child { display: none; }
  .chat-subtitle { font-size: 12px; }
  .chat-context-bar { padding: 0 16px; }
  .resource-strip { padding: 0 16px; }
  .resource-state { max-width: calc(100% - 52px); }
  .resource-strip .badge { font-size: 11px; }
  .resource-strip .resource-gpu { display: none; }
  .chat-body .conversation-scroll { padding: 20px; }
  .chat-body .composer-area { padding: 12px 16px max(12px,env(safe-area-inset-bottom)); }
  .composer textarea { font-size: 16px; }
  .chat-readonly { padding: 16px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .chat-readonly .button { align-self: flex-start; }
  .modal { padding: 22px; }
  .modal input:not([type="checkbox"]), .modal select { font-size: 16px; }
  .modal h2 { font-size: 21px; }
  .page-header { padding: 18px 16px; }
  .page-header-actions { gap: 0; }
  .page-header-actions .theme-toggle { display: none; }
  .page-scroll { padding: 18px 16px; }
  .index-filter-inputs { flex-basis: auto; flex-wrap: wrap; }
  .index-filter-inputs > label { flex: 1 1 130px; }
  .index-filter-inputs .index-search { flex-basis: 100%; }
  .index-filter-inputs select { width: 100%; }
  .index-tabs { width: 100%; }
  .index-tabs button { min-height: 40px; font-size: 12px; padding: 8px; }
  .index-metrics { gap: 8px; }
  .index-metrics .metric-filter { padding: 6px 10px; font-size: 12px; }
  .index-deployment { padding: 14px; grid-template-columns: minmax(0,1fr) auto; }
  .overview-conversations { padding: 16px; }
  .progress-stages { flex-wrap: wrap; }
  .progress-stages li { flex: 1 1 40%; }
  .provider-financials { padding: 16px; }
  .provider-financials .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .provider-financials .provider-stat + .provider-stat { padding-left: 12px; }
  .provider-stat-value { font-size: 24px; }
  .provider-money { flex-wrap: wrap; }
  .provider-money strong { font-size: 24px; }
}
@media (max-width: 420px) { .provider-money { flex-direction: column; align-items: flex-start; gap: 4px; } }
