/* Ember brand: warm film-ribbon orange and espresso, in both modes. */
:root {
  --ink: #30211d;
  --ink-soft: #5d463c;
  --muted: #766459;
  --line: #e9d9ce;
  --surface: #fffcf9;
  --page: #fff8f2;
  --page-deep: #fff0e4;
  --accent: #b54817;
  --accent-dark: #96340f;
  --accent-bright: #eb6c30;
  --violet: #ee8961;
  --cyan: #f2ad79;
  --shadow-card: 0 18px 55px rgba(87, 42, 23, .08), 0 2px 8px rgba(87, 42, 23, .035);
  --shadow-float: 0 24px 70px rgba(58, 29, 19, .22);
}
body {
  background:
    radial-gradient(circle at 8% 11%, rgba(239, 99, 34, .11), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(252, 122, 70, .1), transparent 24rem),
    linear-gradient(180deg, #fffdfb 0, var(--page) 36rem, #fff6ef 100%);
}
body::before { border-color: rgba(181, 72, 23, .2); }
body::after { border-color: rgba(239, 99, 34, .18); }
.site-header {
  background: rgba(255, 251, 247, .87);
  border-bottom-color: rgba(224, 201, 186, .85);
  box-shadow: 0 8px 30px rgba(91, 49, 29, .045);
}
.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.theme-toggle {
  background: rgba(255, 246, 238, .9);
  border-color: #e7cbbb;
  box-shadow: 0 5px 16px rgba(87, 42, 23, .07);
}
.theme-toggle:hover {
  background: #fff0e4;
  border-color: #d59d7d;
  box-shadow: 0 8px 20px rgba(181, 72, 23, .12);
}
.balance-button {
  background: linear-gradient(145deg, #fff8f1, #ffecdc);
  border-color: #eac8ad;
}
.balance-button:hover {
  border-color: #d89568;
  box-shadow: 0 8px 20px rgba(181, 72, 23, .12);
}
.balance-button:focus-visible,
.app-tab:focus-visible,
.button:focus-visible,
.text-button:focus-visible,
.subscription-consent input:focus-visible,
.theme-toggle:focus-visible {
  outline-color: rgba(181, 72, 23, .35);
}
.hero-highlights span {
  background: rgba(255, 252, 248, .8);
  border-color: #eadacc;
  box-shadow: 0 5px 16px rgba(87, 42, 23, .05);
}
.hero-highlights span::before { box-shadow: 0 0 0 3px rgba(181, 72, 23, .13); }
.hero-glow { background: radial-gradient(circle, rgba(239, 99, 34, .25), rgba(252, 122, 70, .12) 47%, transparent 72%); }
.hero-console {
  color: #fff2e9;
  background: linear-gradient(145deg, #281710, #45251a 55%, #68331f);
  border-color: rgba(255, 177, 127, .3);
}
.hero-console::before { background: radial-gradient(circle, rgba(239, 99, 34, .3), transparent 68%); }
.hero-console-bar { color: #e0b7a1; border-bottom-color: rgba(255, 206, 173, .18); }
.hero-console-dots i { background: #8d5a45; }
.hero-console-dots i:first-child { background: #ef6322; }
.hero-console-dots i:nth-child(2) { background: #fc7a46; }
.hero-console-dots i:last-child { background: #f3b97c; }
.hero-node { border-color: rgba(255, 193, 154, .22); }
.hero-node strong, .hero-preview-copy > strong { color: #fff5ee; }
.hero-node small { color: #d9aa94; }
.hero-node-icon { color: #ffd3b9; background: rgba(239, 99, 34, .2); border-color: rgba(252, 122, 70, .35); }
.hero-spark i { background: #ffa36f; }
.hero-route { background: rgba(255, 185, 141, .3); }
.hero-route i { background: #ff9a62; box-shadow: 0 0 8px #ef6322; }
.hero-preview { background: rgba(255, 222, 199, .09); border-color: rgba(255, 195, 159, .23); }
.hero-preview-frame { background: linear-gradient(145deg, #a94924, #542a20); }
.hero-waveform i { background: linear-gradient(#ffb380, #ef6322); }
.app-tabs {
  background: rgba(246, 231, 218, .88);
  border-color: #ead2c0;
  box-shadow: 0 9px 28px rgba(87, 42, 23, .08);
}
.app-tab:hover:not(.active) { background: rgba(255, 251, 246, .6); }
.app-tab.active {
  background: #fffcf9;
  box-shadow: 0 5px 14px rgba(87, 42, 23, .11), inset 0 1px rgba(255, 255, 255, .8);
}
.create-workflow li:not(:last-child)::after { background: linear-gradient(90deg, #d2a78d, #e9d1c0); }
.create-workflow-number {
  background: #fff9f4;
  border-color: #e9c5af;
  box-shadow: 0 6px 15px rgba(87, 42, 23, .07);
}
.card {
  background: rgba(255, 252, 249, .93);
  border-color: rgba(233, 216, 203, .96);
}
.sign-in-card { background: linear-gradient(135deg, #fffcf9, #fff3e9); }
.step-number { box-shadow: 0 9px 22px rgba(181, 72, 23, .22); }
.button.primary {
  background: linear-gradient(135deg, #bf4d18, #94330f);
  box-shadow: 0 8px 20px rgba(150, 52, 15, .24), inset 0 1px rgba(255, 255, 255, .18);
}
.button.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #d2581e, #a63d12);
  box-shadow: 0 12px 25px rgba(150, 52, 15, .28);
}
.button.secondary { background: #fffcf9; border-color: #dfc7b8; }
.button.secondary:hover:not(:disabled) { border-color: #d39d7e; box-shadow: 0 9px 20px rgba(87, 42, 23, .1); }
textarea, select { background: #fffcf9; border-color: #dfcabc; }
textarea:focus, select:focus {
  background: #fffefd;
  box-shadow: 0 0 0 4px rgba(181, 72, 23, .12), inset 0 1px 2px rgba(58, 29, 19, .025);
}
.credit-quote { background: linear-gradient(135deg, #fffaf6, #fff2e7); }
.credit-quote-grid div { background: #fffcf9; }
.result-card { background: linear-gradient(150deg, #fffcf9, #fff6ee); }
.status-pill.status-running, .status-pill.is-running,
.billing-mode.preview { color: #a23b12; background: #fff1e5; border-color: #f1c7a9; }
.job-progress::before { background: #ead8cc; }
.job-progress-dot { background: #fffaf6; border-color: #e8d5c6; box-shadow: 0 0 0 5px #fff8f2; }
.job-progress-dot i { background: #c9aa98; }
.job-progress-label strong { color: #705a4e; }
.job-progress-step.is-active .job-progress-dot {
  background: #fff1e6;
  box-shadow: 0 0 0 5px #fff9f4, 0 0 0 9px rgba(239, 99, 34, .14);
}
.job-meta div { background: #fff9f4; border-color: #efdfd3; }
.history-item, .history-empty, .purchase-item { background: #fffbf7; }
.cost-summary div { background: #fff1e5; border-color: #edc8ac; }
.cost-metric { background: #fffcf9; }
.subscription-summary-card { background: linear-gradient(145deg, #fffaf6, #fff2e8); }
.subscription-facts > div { background: #fffcf9; }
.billing-balance > div {
  background: linear-gradient(145deg, #fff6ed, #ffe9d9);
  border-color: #edc9af;
}
.billing-balance > div::after { background: radial-gradient(circle, rgba(239, 99, 34, .15), transparent 70%); }
.billing-product { background: linear-gradient(155deg, #fffcf9, #fff5ed); }
.billing-product::before { background: linear-gradient(90deg, transparent, rgba(239, 99, 34, .55), transparent); }
.billing-product.current {
  background: linear-gradient(155deg, #fff3e7, #ffe7d3);
  border-color: #dc945f;
  box-shadow: inset 0 0 0 1px rgba(239, 99, 34, .1);
}
.billing-product.unavailable { background: #faf5f0; }
.billing-dialog { background: #fffcf9; box-shadow: 0 30px 90px rgba(58, 29, 19, .34); }
.billing-dialog::backdrop { background: rgba(33, 20, 15, .67); }
.subscription-consent { background: #fff8f2; }
.skeleton { background: #f0e1d5 !important; border-color: #f0e1d5 !important; }
.skeleton-line, .skeleton-card { background: #f3e7dc; border-color: #efdfd3; }
@media (hover: hover) {
  .setup-card:hover, .job-card:hover,
  .history-item:hover, .purchase-item:hover,
  .billing-product:hover { border-color: #dbb49b; box-shadow: 0 18px 40px rgba(87, 42, 23, .1); }
  .history-item:hover, .purchase-item:hover { background: #fff7f0; }
  .billing-balance > div:hover { border-color: #dca478; box-shadow: 0 12px 28px rgba(181, 72, 23, .1); }
}
@media (max-width: 480px) {
  .brand-mark { width: 34px; height: 34px; }
}
:root[data-theme="dark"] {
  --ink: #fff0e6;
  --ink-soft: #e3cdbf;
  --muted: #b79e90;
  --line: #4d372e;
  --surface: #241a15;
  --page: #140e0c;
  --page-deep: #1d130f;
  --accent: #ff9b67;
  --accent-dark: #f18a55;
  --accent-bright: #ffb07e;
  --violet: #f48c63;
  --cyan: #e8b38c;
  --shadow-card: 0 20px 58px rgba(0, 0, 0, .32), 0 2px 8px rgba(0, 0, 0, .22);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 11%, rgba(239, 99, 34, .16), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(252, 122, 70, .12), transparent 24rem),
    linear-gradient(180deg, #1a100d 0, var(--page) 36rem, #100b09 100%);
}
:root[data-theme="dark"] body::before { border-color: rgba(255, 155, 103, .2); }
:root[data-theme="dark"] body::after { border-color: rgba(252, 122, 70, .18); }
:root[data-theme="dark"] .site-header { background: rgba(23, 15, 12, .85); border-bottom-color: #483128; }
:root[data-theme="dark"] .theme-toggle {
  color: var(--ink-soft);
  background: #2b1d17;
  border-color: #644332;
}
:root[data-theme="dark"] .theme-toggle:hover { color: var(--accent); background: #382419; border-color: #a75f3c; }
:root[data-theme="dark"] .balance-button { background: linear-gradient(145deg, #332117, #281a15); border-color: #70442c; }
:root[data-theme="dark"] .hero-highlights span { background: rgba(42, 27, 21, .82); border-color: #654637; }
:root[data-theme="dark"] .app-tabs { background: rgba(42, 28, 22, .9); border-color: #654637; }
:root[data-theme="dark"] .app-tab:hover:not(.active) { background: #453025; }
:root[data-theme="dark"] .app-tab.active { background: #503225; }
:root[data-theme="dark"] .create-workflow-number { background: #332219; border-color: #78513d; }
:root[data-theme="dark"] .create-workflow li:not(:last-child)::after { background: linear-gradient(90deg, #886147, #513a30); }
:root[data-theme="dark"] .card { background: rgba(35, 25, 20, .95); border-color: #4d372e; }
:root[data-theme="dark"] .sign-in-card,
:root[data-theme="dark"] .result-card { background: linear-gradient(145deg, #291b15, #1d1511); }
:root[data-theme="dark"] .button.secondary { background: #35241c; border-color: #73503d; }
:root[data-theme="dark"] .button.secondary:hover:not(:disabled) { background: #442b20; border-color: #a56b4c; }
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]) { background: #1b130f; border-color: #644639; }
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):focus { background: #241913; border-color: var(--accent); }
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] input::placeholder { color: #b39381; }
:root[data-theme="dark"] .credit-quote { background: linear-gradient(135deg, #2f2018, #251a15); }
:root[data-theme="dark"] .credit-quote-grid div,
:root[data-theme="dark"] .cost-metric,
:root[data-theme="dark"] .subscription-facts > div { background: #2a1d17; }
:root[data-theme="dark"] .status-pill { color: #e0c5b3; background: #36271f; }
:root[data-theme="dark"] .status-pill.status-running,
:root[data-theme="dark"] .status-pill.is-running,
:root[data-theme="dark"] .billing-mode.preview { color: #ffac79; background: #4e2919; border-color: #915034; }
:root[data-theme="dark"] .job-progress::before { background: #51382c; }
:root[data-theme="dark"] .job-progress-dot { background: #2a1c16; border-color: #694b3b; box-shadow: 0 0 0 5px #1d130f; }
:root[data-theme="dark"] .job-progress-step.is-active .job-progress-dot {
  background: #4a2a1b;
  box-shadow: 0 0 0 5px #21150f, 0 0 0 9px rgba(255, 155, 103, .18);
}
:root[data-theme="dark"] .job-progress-label strong { color: #d1ad98; }
:root[data-theme="dark"] .job-meta div,
:root[data-theme="dark"] .history-item,
:root[data-theme="dark"] .history-empty,
:root[data-theme="dark"] .purchase-item { background: #291c16; border-color: var(--line); }
:root[data-theme="dark"] .cost-summary div,
:root[data-theme="dark"] .billing-balance > div { background: linear-gradient(145deg, #3a271c, #2a1c16); border-color: #77503a; }
:root[data-theme="dark"] .subscription-summary-card,
:root[data-theme="dark"] .billing-product { background: linear-gradient(145deg, #2b1d17, #211713); }
:root[data-theme="dark"] .billing-product.current { background: linear-gradient(155deg, #49301f, #342219); border-color: #be7645; }
:root[data-theme="dark"] .billing-product.unavailable { background: #241a15; }
:root[data-theme="dark"] .billing-mode { color: #e3c9b9; background: #392a22; }
:root[data-theme="dark"] .billing-dialog { background: #231813; border-color: #654536; }
:root[data-theme="dark"] .subscription-consent { background: #30211a; }
:root[data-theme="dark"] .skeleton { background: #443027 !important; border-color: #443027 !important; }
:root[data-theme="dark"] .skeleton-line,
:root[data-theme="dark"] .skeleton-card { background: #3b2a23; border-color: #543c2f; }
@media (hover: hover) {
  :root[data-theme="dark"] .history-item:hover,
  :root[data-theme="dark"] .purchase-item:hover { background: #34231a; border-color: #996647; }
}
