/* Forge Engine theme alignment.
   Keep the overlay in the app's new cream/olive/gold palette, while restoring
   enough contrast and structure for the live generation console. */

.forge-ov {
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 180, 126, .18), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(92, 107, 63, .16), transparent 30%),
    linear-gradient(135deg, #F7F1E6 0%, #FAF8F4 48%, #EEE6D8 100%) !important;
  color: #1B1A17 !important;
}

.forge-app {
  background: transparent !important;
  border: 0 !important;
  color: #1B1A17 !important;
  box-shadow: none !important;
  font-family: "DM Sans", "JetBrains Mono", system-ui, sans-serif !important;
}

.forge-top,
.forge-footer {
  background: rgba(255, 252, 246, .96) !important;
  border-color: rgba(36, 180, 126, .38) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .88) inset, 0 12px 30px rgba(62, 74, 42, .08) !important;
}

.forge-logo {
  border-right-color: rgba(36, 180, 126, .30) !important;
}

.forge-logo-mark {
  background: transparent !important;
  border: 0 !important;
  color: #1B1A17 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.forge-logo-mark img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.forge-app-name {
  color: #1B1A17 !important;
}

.forge-app-sub,
.forge-pipe-hdr-lbl,
.forge-board-ttl,
.forge-phdr,
.forge-slbl,
.forge-fstep span {
  color: #7C7568 !important;
}

.forge-chip {
  background: linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(238, 241, 230, .86)) !important;
  border-color: rgba(92, 107, 63, .24) !important;
  color: #5F5A50 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76), 0 4px 12px rgba(62, 74, 42, .06) !important;
}

.forge-chip b,
.forge-board-meta.active,
.forge-es-label b,
.forge-fmsg,
.forge-fstep {
  color: #9A6D13 !important;
}

.forge-chip .dot {
  background: #5C6B3F !important;
  box-shadow: 0 0 0 4px rgba(92, 107, 63, .12), 0 0 10px rgba(92, 107, 63, .28) !important;
}

.forge-badge {
  color: #8B6416 !important;
}

.forge-badge-dot,
.forge-es-dot {
  background: #24B47E !important;
  box-shadow: 0 0 0 5px rgba(36, 180, 126, .14), 0 0 12px rgba(36, 180, 126, .38) !important;
}

.forge-main {
  background: rgba(250, 248, 244, .72) !important;
}

.forge-pipeline,
.forge-right {
  background: rgba(255, 252, 246, .70) !important;
  border-color: rgba(36, 180, 126, .26) !important;
}

.forge-pipe-hdr {
  border-bottom-color: rgba(36, 180, 126, .22) !important;
}

.forge-pipe-track,
.forge-seg {
  background: rgba(204, 195, 181, .50) !important;
}

.forge-pipe-fill,
.forge-seg.done,
.forge-seg.active {
  background: linear-gradient(90deg, #5C6B3F, #8A9968, #24B47E) !important;
}

.forge-pipe-pct {
  color: #5C6B3F !important;
}

.forge-step {
  border-bottom-color: rgba(226, 221, 211, .72) !important;
}

.forge-step.active {
  background: linear-gradient(90deg, rgba(36, 180, 126, .20), rgba(255, 252, 246, .28), transparent) !important;
}

.forge-step-node {
  background: #F5F0E7 !important;
  border-color: rgba(92, 107, 63, .24) !important;
  color: #6B665C !important;
}

.forge-step.done .forge-step-node {
  background: #5C6B3F !important;
  border-color: #5C6B3F !important;
  color: #FFFCF6 !important;
}

.forge-step.active .forge-step-node {
  background: #24B47E !important;
  border-color: #188D68 !important;
  color: #1B1A17 !important;
  box-shadow: 0 0 0 5px rgba(36, 180, 126, .18), 0 8px 20px rgba(36, 180, 126, .24) !important;
}

.forge-step-line {
  background: rgba(204, 195, 181, .72) !important;
}

.forge-step-line.done {
  background: #8A9968 !important;
}

.forge-step-tag {
  background: rgba(238, 241, 230, .86) !important;
  border-color: rgba(92, 107, 63, .22) !important;
  color: #5C6B3F !important;
}

.forge-step.active .forge-step-tag,
.forge-step.done .forge-step-tag {
  background: rgba(36, 180, 126, .18) !important;
  border-color: rgba(36, 180, 126, .46) !important;
  color: #7C5510 !important;
}

.forge-step-title {
  color: #2E2B26 !important;
}

.forge-step.active .forge-step-title,
.forge-step.done .forge-step-title {
  color: #1B1A17 !important;
}

.forge-step-detail,
.forge-board-meta,
.forge-cpm-sub,
.forge-es-label,
.forge-cline.dim {
  color: #6B665C !important;
}

.forge-board {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 248, 244, .96)),
    radial-gradient(circle at 80% 22%, rgba(36, 180, 126, .10), transparent 32%) !important;
  border-color: rgba(36, 180, 126, .38) !important;
  box-shadow: 0 22px 54px rgba(62, 74, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.forge-mnths {
  background: linear-gradient(180deg, #F5F0E7, #EEE6D8) !important;
  border-bottom-color: rgba(36, 180, 126, .30) !important;
}

.forge-mlabel,
.forge-mcell {
  color: #6F6A60 !important;
  border-color: rgba(36, 180, 126, .20) !important;
}

.forge-bgrid {
  background-image: linear-gradient(90deg, rgba(92, 107, 63, .12) 1px, transparent 1px) !important;
}

.forge-machine-canvas {
  opacity: .56 !important;
  mix-blend-mode: multiply !important;
  filter: sepia(.18) saturate(.92) brightness(1.08) !important;
}

.forge-ghost-row,
.forge-row {
  border-bottom-color: rgba(226, 221, 211, .68) !important;
}

.forge-ghost-id {
  background: rgba(36, 180, 126, .24) !important;
}

.forge-ghost-row.forge-ghost-wbs .forge-ghost-id,
.forge-ghost-row.forge-ghost-wbs .forge-ghost-txt {
  background: rgba(92, 107, 63, .18) !important;
}

.forge-ghost-txt {
  background: rgba(107, 102, 92, .12) !important;
}

.forge-ghost-bar {
  background: rgba(138, 153, 104, .18) !important;
  border-color: rgba(92, 107, 63, .30) !important;
}

.forge-ghost-bar.forge-ghost-crit {
  background: rgba(184, 105, 62, .16) !important;
  border-color: rgba(184, 105, 62, .30) !important;
}

.forge-ghost-bar.forge-ghost-wbs-bar {
  background: rgba(36, 180, 126, .28) !important;
  border-color: rgba(36, 180, 126, .42) !important;
}

.forge-engine-status-strip {
  background: linear-gradient(180deg, transparent, rgba(255, 252, 246, .90)) !important;
  border-top-color: rgba(36, 180, 126, .26) !important;
}

.forge-rname {
  border-right-color: rgba(36, 180, 126, .20) !important;
}

.forge-row.forge-wbs-r,
.forge-row.forge-wbs-r .forge-rname {
  background: linear-gradient(90deg, rgba(238, 241, 230, .78), rgba(255, 252, 246, .38) 68%, transparent) !important;
}

.forge-rid {
  color: #9E3A26 !important;
}

.forge-row.forge-wbs-r .forge-rid,
.forge-row.forge-wbs-r .forge-rtxt {
  color: #4E5C35 !important;
}

.forge-rtxt {
  color: #26231F !important;
}

.forge-bar {
  background: linear-gradient(90deg, #5C6B3F 0%, #8A9968 58%, #24B47E 100%) !important;
  box-shadow: 0 0 0 1px rgba(92, 107, 63, .16), 0 8px 20px rgba(92, 107, 63, .14) !important;
}

.forge-bar.forge-cr {
  background: linear-gradient(90deg, #8B3A1F, #B8693E, #D39159) !important;
  box-shadow: 0 0 0 1px rgba(184, 105, 62, .20), 0 8px 20px rgba(184, 105, 62, .16) !important;
}

.forge-bar.forge-go {
  background: linear-gradient(90deg, #3E4A2A, #5C6B3F, #9FA96D) !important;
}

.forge-bar.forge-wb {
  background: linear-gradient(90deg, #8A6A22, #24B47E, #E6C56D) !important;
  box-shadow: 0 0 0 1px rgba(36, 180, 126, .22), 0 6px 16px rgba(36, 180, 126, .16) !important;
}

.forge-links .forge-lnk,
.forge-lnk {
  stroke: #8A9968 !important;
}

.forge-sbox,
.forge-cbox {
  background: rgba(255, 252, 246, .92) !important;
  border-color: rgba(36, 180, 126, .30) !important;
  color: #1B1A17 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76), 0 8px 18px rgba(62, 74, 42, .06) !important;
}

.forge-sbox.hi {
  background: linear-gradient(180deg, rgba(255, 248, 226, .96), rgba(250, 238, 198, .78)) !important;
  border-color: rgba(36, 180, 126, .58) !important;
}

.forge-sval {
  color: #1B1A17 !important;
}

.forge-sbox.hi .forge-sval {
  color: #9A6D13 !important;
}

.forge-cpm-card {
  background: linear-gradient(180deg, rgba(238, 241, 230, .86), rgba(255, 252, 246, .88)) !important;
  border-color: rgba(92, 107, 63, .28) !important;
  color: #1B1A17 !important;
}

.forge-cpm-icon {
  background: rgba(92, 107, 63, .12) !important;
  color: #5C6B3F !important;
}

.forge-cpm-top {
  color: #4E5C35 !important;
}

.forge-cdots {
  border-bottom-color: rgba(36, 180, 126, .24) !important;
}

.forge-cline.cmd {
  color: #4E5C35 !important;
}

.forge-cline.ok {
  color: #5C6B3F !important;
}

.forge-cline.warn {
  color: #9A6D13 !important;
}

.forge-cline.sys {
  color: #8B6416 !important;
}

#forgeCancelBtn {
  background: rgba(184, 105, 62, .10) !important;
  border-color: rgba(184, 105, 62, .42) !important;
  color: #9E3A26 !important;
  box-shadow: none !important;
}

#forgeCancelBtn:hover {
  background: rgba(184, 105, 62, .18) !important;
  border-color: rgba(158, 58, 38, .62) !important;
  color: #7B2F1F !important;
}
