/* What is left of the gate design and still drawn: the decision card, Make changes, and the example's Health page. */

/* ---- Tabs ---- */

.g-tabs {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.g-tabs button {
  padding: 8px 12px 10px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.g-tabs button:hover {
  color: var(--ink);
}
.g-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--mint);
}

/* ---- Shared bits ---- */
.g-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.g-chip.a {
  background: rgba(229, 188, 108, 0.14);
  color: var(--amber);
}
.g-chip.m {
  background: rgba(111, 208, 176, 0.14);
  color: var(--mint);
}
.g-strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 6px;
  border-radius: 18px;
  background: var(--raised-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.g-strong:hover {
  background: #30363c;
}
.g-strong:disabled {
  opacity: 0.45;
}
.g-strong-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  color: #0c0e10;
}
.g-strong-ico .g-ico {
  color: #0c0e10;
}
.g-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.g-quiet:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.g-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}
.g-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g-ticon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 30%;
  background: rgba(111, 208, 176, 0.12);
  color: var(--mint);
}

.g-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--stage);
}
.g-card h2,
.g-card h3 {
  font-size: 15px;
  font-weight: 700;
}
.g-card h3 {
  font-size: 13px;
  color: var(--muted);
}
.g-card .w-touches {
  margin: 0;
}
.g-card .w-touch {
  padding: 8px 0;
}
.g-card .w-touch span {
  font-size: 14px;
}
.g-card .w-touch small {
  font-size: 13px;
}
.g-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}
.g-card-head span {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
}
.g-card-head .w-linkbtn {
  margin-left: auto;
  padding: 0;
}

/* ---- Panels ---- */

.g-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.g-panel-head > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.g-panel-head strong {
  font-size: 17px;
  font-weight: 700;
}
.g-panel-head span {
  font-size: 12px;
  color: var(--muted);
}
.g-panel-head b {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.g-decision {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px rgba(229, 188, 108, 0.35);
}
.g-decision strong {
  font-size: 14px;
}
.g-decision small {
  font-size: 12px;
  color: var(--muted);
}
.g-decision .g-actions {
  margin-top: 6px;
}
.g-decision.big {
  margin-top: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.g-decide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--stage);
  box-shadow: inset 0 0 0 1px rgba(229, 188, 108, 0.35);
}
.g-decide h3 {
  font-size: 15px;
  font-weight: 700;
}
.g-decide p {
  font-size: 13px;
  color: var(--muted);
}
.g-decide .w-check {
  margin: 4px 0;
  font-size: 13px;
}

/* ---- Review: the decision at the gate ---- */

.g-canvas .w-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--stage);
  overflow: hidden;
}

.g-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.g-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.g-steps li i {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.g-steps li.done i {
  background: var(--mint);
}
.g-steps li.now i {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(229, 188, 108, 0.2);
}
.g-steps li span {
  display: flex;
  flex-direction: column;
}
.g-steps li b {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.g-steps li.done b,
.g-steps li.now b {
  color: var(--ink);
}
.g-steps li small {
  font-size: 12px;
  color: var(--muted);
}

/* ---- Make changes: blueprint, preview, the change ---- */
.g-canvas {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 12px;
}
.g-blueprint {
  flex: none;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}
.g-navcap {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.g-navitem {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
}
.g-navitem:hover,
.g-change:hover {
  background: var(--raised);
  color: var(--ink);
}
.g-change {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
}
.g-change.on {
  background: var(--raised);
}
.g-change strong {
  font-size: 13px;
}
.g-change span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.g-change-side {
  flex: none;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
.g-brief {
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}
.g-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.g-change-side .g-kicker {
  color: var(--muted);
}

/* ---- Health ---- */
.g-monitor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
}
.g-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.g-headline {
  flex: 1.4 1 320px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--stage);
}
.g-headline > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.g-headline strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.g-headline span {
  font-size: 13px;
  color: var(--muted);
}
.g-okmark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(111, 208, 176, 0.14);
  color: var(--mint);
}
.g-bigcard {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--stage);
  color: var(--ink);
  text-decoration: none;
}
.g-bigcard span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.g-bigcard b {
  font-size: 26px;
  line-height: 1.1;
}
.g-bigcard small {
  font-size: 12px;
  color: var(--muted);
}
.g-mon-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}
.g-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.g-svc,
.g-rel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.g-svc:last-child,
.g-rel:last-child {
  border-bottom: 0;
}
.g-svc strong {
  flex: none;
  width: 150px;
}
.g-svc > span,
.g-rel strong {
  flex: 1;
  color: var(--muted);
}
.g-rel strong {
  color: var(--ink);
}
.g-rel > span {
  flex: none;
  width: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.g-svc em,
.g-rel em {
  flex: none;
  width: 110px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}
.g-rel em {
  width: auto;
}
.g-svc em i,
.g-rel em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.g-svc em.mint,
.g-rel em.mint {
  color: var(--mint);
}
.g-svc em.amber {
  color: var(--amber);
}
.g-svc small,
.g-rel small {
  flex: none;
  width: 120px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.g-cost-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.g-cost-num b {
  font-size: 24px;
  line-height: 1;
}
.g-cost-num span {
  font-size: 12px;
  color: var(--muted);
}
.g-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 90px;
  padding-top: 6px;
}
.g-bars span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.g-bars i {
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  background: var(--mint);
}
.g-bars small {
  font-size: 10px;
  color: var(--muted);
}

/* ---- Motion: pulse means waiting on you ---- */

@keyframes g-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pulse {
    animation: g-pulse 1.6s ease-in-out infinite;
  }
}

/* ---- Phone ---- */
@media (max-width: 1100px) {
  .g-canvas {
    flex-direction: column;
  }
  .g-change-side,
  .g-blueprint {
    width: 100%;
  }

  .g-mon-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .g-tabs {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }
}

/* ---- Restored entry points: composer target, recent chats, quick look anchor ---- */

.g-chats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 24px 0;
}
.g-chats button {
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--raised);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.g-chats button.active,
.g-chats button:hover {
  color: var(--ink);
  background: var(--raised-2);
}

button.g-rel {
  width: 100%;
  text-align: left;
}
button.g-rel:hover {
  background: var(--raised);
}

/* ---- Narrow screens: pages scroll, previews keep a real height, headers wrap ---- */
@media (max-width: 1100px) {
  .g-canvas {
    flex: none;
    min-height: auto;
  }
  .g-canvas .w-stage {
    flex: none;
    height: 620px;
  }
  .g-change-side {
    overflow: visible;
  }
  .g-blueprint {
    order: 3;
  }
}
@media (max-width: 820px) {
  .g-canvas .w-stage {
    height: 560px;
  }
}

/* ---- Polish pass: one look across old and new pages ---- */

.g-monitor > .w-seg {
  align-self: flex-start;
}

.g-canvas .w-stage-title {
  font-size: 15px;
  font-weight: 700;
}
.g-canvas .w-stage {
  border: 0;
}

/* Toasts float above the composer, not on it */
#toast {
  bottom: 96px;
}

@media (max-width: 820px) {
  #toast {
    bottom: 150px;
  }
}
