@import url('./vendor/elova-ui/index.css');
@font-face { font-family: "Inter Variable"; src: url("/product-demo/elova-sans.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Elova Sans"; src: url("/product-demo/elova-sans.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

.product-token-cost { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; max-width: 100%; font-variant-numeric: tabular-nums; }
.product-token-cost-amount { overflow-wrap: anywhere; }
.product-token-cost-amount-button { appearance: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 2px; background: transparent; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; text-align: inherit; font-variant-numeric: inherit; }
.product-token-cost-amount-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-token-cost-amount-button:focus-visible { outline: 2px solid var(--elova-primary, var(--elova-accent)); outline-offset: 3px; }
.product-token-cost-info { position: relative; display: inline-flex; vertical-align: middle; }
.product-token-cost-info-button { width: 24px; height: 24px; padding: 2px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--elova-muted, var(--elova-muted)); }
.product-token-cost-info-button:hover, .product-token-cost-info-button:focus-visible { color: var(--elova-primary, var(--elova-accent)); background: var(--elova-soft, var(--elova-soft)); }
.product-token-cost-info-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.product-token-cost-tooltip { position: fixed; z-index: 20; top: 0; left: 0; right: auto; width: max-content; max-width: min(230px, calc(100vw - 16px)); padding: 8px 10px; border-radius: 6px; background: var(--elova-surface-raised); color: var(--elova-ink); border: 1px solid var(--elova-border); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-align: left; white-space: normal; visibility: hidden; opacity: 0; pointer-events: none; }
.product-token-cost-info:hover .product-token-cost-tooltip, .product-token-cost-info:focus-within .product-token-cost-tooltip { visibility: visible; opacity: 1; }
.product-token-cost-coverage { flex-basis: 100%; color: var(--elova-muted, var(--elova-muted)); font-size: 12px; font-weight: 400; }
.product-pricing-mapping-missing, .product-list-view .product-pricing-mapping-missing { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 24px; width: max-content; max-width: none; flex-shrink: 0; padding: 2px 6px; border: 1px solid var(--elova-status-neutral-border, #323339); border-radius: 5px; background: var(--elova-color-surface, #0f1011); color: var(--elova-color-text-muted, #8a8f98); font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.35; letter-spacing: normal; white-space: nowrap; vertical-align: middle; }
button.product-pricing-mapping-missing { cursor: pointer; }
button.product-pricing-mapping-missing:hover { background: var(--elova-color-hover, #191a1b); border-color: var(--elova-status-neutral-border, #323339); }
button.product-pricing-mapping-missing:focus-visible { outline: 2px solid var(--elova-primary, var(--elova-accent)); outline-offset: 2px; }
.product-pricing-mapping-missing > span { flex-shrink: 0; }
.product-pricing-mapping-missing svg { flex: 0 0 13px; width: 13px; height: 13px; color: var(--elova-category-yellow, #ffd21a); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.product-token-cost > .product-pricing-mapping-missing { flex-basis: auto; margin-left: auto; }
.product-pricing-mapping-notice { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--elova-warning-border); border-radius: 6px; background: var(--elova-warning-soft); color: var(--elova-warning); font-size: 13px; line-height: 1.5; }
.product-pricing-mapping-notice-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; justify-content: space-between; }
.product-list-view .product-pricing-mapping-notice h2 { margin: 0; font-size: 14px; line-height: 1.4; }
.product-pricing-mapping-notice p { margin: 8px 0 0; }
.product-pricing-mapping-notice ul { margin: 8px 0 0; padding-left: 20px; }
.product-pricing-mapping-notice code, .product-pricing-mapping-notice li, .product-pricing-mapping-notice .product-list-subline { overflow-wrap: anywhere; white-space: normal; }
.product-execution-token-summary { display: inline-flex; align-items: center; gap: 8px; }
.product-execution-token-cost, .product-node-token-cost { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; }
.product-node-token-cost > .product-token-cost { margin-left: auto; }

:root {
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  color: var(--elova-ink);
  background: var(--elova-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  --elova-bg: var(--elova-color-canvas, #08090a);
  --elova-ink: var(--elova-color-text, #f7f8f8);
  --elova-secondary: var(--elova-color-text-secondary, #d0d6e0);
  --elova-muted: var(--elova-color-text-muted, #8a8f98);
  --elova-accent: var(--elova-color-accent, #7170ff);
  /* Legacy "primary" remains the accent; action fills have independent roles. */
  --elova-primary: var(--elova-accent);
  --elova-soft: #191a20;
  --elova-border: var(--elova-color-border, #23252a);
  --elova-divider: var(--elova-color-divider, #202122);
  --elova-surface: var(--elova-color-surface, #0f1011);
  --elova-surface-raised: var(--elova-color-raised, #141516);
  --elova-surface-hover: var(--elova-color-hover, #191a1b);
  --elova-surface-selected: #202126;
  --elova-action-primary-bg: var(--elova-color-action-bg, #e5e5e6);
  --elova-action-primary-fg: var(--elova-color-action-fg, #08090a);
  --elova-action-primary-hover: var(--elova-color-action-hover, #ffffff);
  --elova-action-secondary-bg: var(--elova-color-secondary-bg, #242529);
  --elova-action-secondary-border: var(--elova-color-secondary-border, #303136);
  --elova-link: var(--elova-secondary);
  --elova-link-hover: var(--elova-color-accent-hover, #828fff);
  --elova-success: var(--elova-color-success, #b0c9bb);
  --elova-success-soft: #17251f;
  --elova-success-border: #304b3d;
  --elova-danger: var(--elova-color-danger, #e2a8af);
  --elova-danger-soft: #2b1a20;
  --elova-danger-border: #5a343e;
  --elova-warning: var(--elova-color-warning, #e8ca85);
  --elova-warning-soft: #282318;
  --elova-warning-border: #51442a;
  --elova-info: var(--elova-color-info, #bcb6ff);
  --elova-info-soft: #1c1930;
  --elova-info-border: #38364d;
  --product-bg: var(--elova-bg);
  --product-surface: var(--elova-surface);
  --product-ink: var(--elova-ink);
  --product-muted: var(--elova-muted);
  --product-border: var(--elova-border);
  --product-accent: var(--elova-accent);
  --product-primary: var(--elova-accent);
  --product-soft: var(--elova-soft);
  --product-danger: var(--elova-danger);
  --muted: var(--elova-muted);
  --border: var(--elova-border);
  --primary: var(--elova-primary);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; font-size: 14px; line-height: 1.5; }
.product-is-open .site-header { display: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.65; }
:focus-visible { outline: 2px solid var(--elova-link-hover); outline-offset: 5px; border-radius: 3px; }
h1:focus, h1:focus-visible { outline: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  max-width: 1360px;
  padding: 24px 48px;
  margin: 0 auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--elova-ink);
  text-decoration: none;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -1px;
}
.brand-mark { display: block; width: 25px; height: 25px; object-fit: contain; }
.account-menu { display: flex; align-items: center; gap: 18px; min-width: 0; }
.account-identity { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: right; }
.account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--muted); }
.account-status { font-size: 12px; color: var(--elova-warning); }
.centered-view { min-height: calc(100svh - 96px); display: grid; place-items: center; padding: 40px 24px 80px; }
.login-card { width: 100%; max-width: 480px; padding: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--elova-surface); box-shadow: none; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: var(--elova-accent); margin: 0 0 16px; }
h1 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 38px); line-height: 1.15; letter-spacing: -1.4px; font-weight: 500; }
.intro { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 30px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 8px; margin-bottom: 22px; }
label { font-size: 13px; font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]), select { width: 100%; min-width: 0; border: 1px solid #353740; border-radius: 4px; padding: 10px 13px; min-height: 44px; background: var(--elova-surface); color: var(--elova-ink); }
input:hover, select:hover { border-color: #5d606b; }
input:focus, select:focus { border-color: var(--elova-accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.button-primary { background: var(--elova-action-primary-bg); color: var(--elova-action-primary-fg); }
.button-primary:hover:not(:disabled) { background: var(--elova-action-primary-hover); }
.button-full { width: 100%; margin-top: 2px; }
.button-quiet { background: var(--elova-surface); color: var(--elova-ink); border-color: var(--border); white-space: nowrap; }
.button-quiet:hover:not(:disabled) { background: var(--elova-surface-hover); border-color: var(--elova-action-secondary-border); }
.account-hint { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; margin: 24px 0 0; }
.login-help { text-align: center; margin-top: 20px; }
.login-help .field-help { margin-top: 12px; }
.text-button { border: 0; padding: 4px; min-height: 40px; background: transparent; color: var(--elova-link); font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.text-button:hover { color: var(--elova-link-hover); }
.loading-message { font-size: 14px; color: var(--muted); }
.message { padding: 12px 14px; font-size: 13px; line-height: 1.6; border: 1px solid transparent; border-radius: 10px; margin: 0 0 20px; overflow-wrap: anywhere; }
.message-error { color: var(--elova-danger); background: var(--elova-danger-soft); border-color: var(--elova-danger-border); }
.message-neutral { color: var(--elova-info); background: var(--elova-info-soft); border-color: var(--elova-info-border); }
.message-success { color: var(--elova-success); background: var(--elova-success-soft); border-color: var(--elova-success-border); }
.workspace-setup-card { overflow-wrap: anywhere; }
.workspace-create-dialog {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  margin: auto; overflow-y: auto; padding: 28px;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--elova-ink); background: var(--elova-surface-raised); box-shadow: 0 20px 60px #0008;
}
.workspace-create-dialog::backdrop { background: #0009; }
.workspace-create-dialog h2 { font-size: 23px; line-height: 1.3; letter-spacing: -0.6px; margin: 0 0 10px; }
.workspace-create-dialog .intro { margin-bottom: 24px; font-size: 14px; }
.workspace-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.workspace-content > .loading-message { padding: 22px; margin: 0; }
.empty-state { display: flex; align-items: flex-start; gap: 17px; border: 1px solid var(--border); border-radius: 8px; padding: 27px; background: var(--elova-surface); }
.empty-state-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; background: var(--elova-soft); color: var(--elova-primary); border-radius: 50%; }
h2 { font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -0.4px; margin: 0 0 6px; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 500; margin: 0 0 6px; }
.empty-state p, .section-heading p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.badge { flex-shrink: 0; padding: 0 6px; margin-top: 25px; border: 1px solid #38364d; border-radius: 4px; background: #7170ff0b; color: var(--elova-info); font-size: 12px; line-height: 1.8; font-weight: 500; }
.form-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.noscript-message { text-align: center; padding: 20px; color: var(--elova-danger); }

@media (max-width: 600px) {
  .site-header { min-height: 80px; padding: 20px 24px; flex-wrap: wrap; }
  .account-menu { gap: 10px; }
  .account-email { max-width: 130px; }
  .button-quiet { padding: 8px 12px; }
  .centered-view { min-height: calc(100svh - 80px); padding: 24px 16px 48px; }
  .login-card { padding: 28px 24px; }
  .workspace-create-dialog { padding: 22px; }
  .empty-state { padding: 20px; gap: 12px; }
  .section-heading { flex-wrap: wrap; gap: 10px; }
  .badge { margin-top: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 20px; }
  .account-email { max-width: 76px; }
  .login-card { padding: 24px 20px; }
  .workspace-dialog-actions > .button { flex: 1 1 auto; }
}
@media (pointer: coarse) { button, .button, .text-button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
@media (forced-colors: active) { .button, .login-card, input, select, .workspace-create-dialog { border-color: CanvasText; } }
