/*
 * OceanLaunch design layer on top of Phoenix. Uses Phoenix's CSS variables, so light and dark themes
 * both work. Motion is short and purposeful, and switched off for people who ask for reduced motion.
 */

:root {
  --so-ease: cubic-bezier(.2, .8, .2, 1);
  --so-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --so-fast: .18s;
  --so-medium: .35s;
  --so-slow: .6s;
  --so-terminal-bg: #0d1117;
  --so-terminal-fg: #c9d1d9;
}

/* ---------------------------------------------------------------- entrance */

@keyframes so-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes so-scale-in {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.reveal { animation: so-fade-up var(--so-slow) var(--so-ease) both; }
.reveal-stagger > * { animation: so-fade-up var(--so-slow) var(--so-ease) both; }
.reveal-stagger > *:nth-child(2) { animation-delay: .05s; }
.reveal-stagger > *:nth-child(3) { animation-delay: .1s; }
.reveal-stagger > *:nth-child(4) { animation-delay: .15s; }
.reveal-stagger > *:nth-child(5) { animation-delay: .2s; }
.reveal-stagger > *:nth-child(6) { animation-delay: .25s; }
.reveal-stagger > *:nth-child(n+7) { animation-delay: .3s; }

.btn { transition: transform var(--so-fast) var(--so-ease), box-shadow var(--so-fast) var(--so-ease), background-color var(--so-fast), border-color var(--so-fast), color var(--so-fast); }
.btn:active:not(:disabled) { transform: scale(.97); }

/* ---------------------------------------------------------------- auth pages */

.auth-backdrop { position: relative; overflow: hidden; isolation: isolate; }
.auth-backdrop::before,
.auth-backdrop::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .32;
  animation: so-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.auth-backdrop::before { top: -18vmax; left: -12vmax; background: radial-gradient(circle, var(--phoenix-primary) 0%, transparent 70%); }
.auth-backdrop::after { bottom: -20vmax; right: -14vmax; background: radial-gradient(circle, var(--phoenix-info) 0%, transparent 70%); animation-delay: -11s; }
[data-bs-theme=dark] .auth-backdrop::before,
[data-bs-theme=dark] .auth-backdrop::after { opacity: .22; }

@keyframes so-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.08); }
  100% { transform: translate(-3vmax, 7vmax) scale(.95); }
}

.auth-card {
  background: color-mix(in srgb, var(--phoenix-emphasis-bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--phoenix-border-color);
  border-radius: 1rem;
  box-shadow: 0 24px 60px -24px rgba(var(--phoenix-primary-rgb), .28), 0 2px 6px rgba(0, 0, 0, .04);
  padding: 2.25rem 2rem;
  animation: so-scale-in var(--so-slow) var(--so-ease) both;
}
@media (max-width: 575.98px) { .auth-card { padding: 1.75rem 1.25rem; } }

.brand-mark { display: inline-flex; align-items: center; gap: .5rem; }
.brand-mark .brand-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--phoenix-primary), var(--phoenix-info));
  box-shadow: 0 8px 20px -8px rgba(var(--phoenix-primary-rgb), .7);
}

/* ---------------------------------------------------------------- status pills */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .7rem .25rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color var(--so-medium), color var(--so-medium);
}
.status-pill .dot {
  position: relative;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status-pill[data-tone=muted] { background: var(--phoenix-secondary-bg); color: var(--phoenix-quaternary-color); }
.status-pill[data-tone=progress] { background: var(--phoenix-primary-bg-subtle); color: var(--phoenix-primary); }
.status-pill[data-tone=success] { background: var(--phoenix-success-bg-subtle); color: var(--phoenix-success); }
.status-pill[data-tone=danger] { background: var(--phoenix-danger-bg-subtle); color: var(--phoenix-danger); }
.status-pill[data-tone=progress] .dot::after,
.status-pill[data-tone=success] .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: so-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
.status-pill[data-tone=success] .dot::after { animation-duration: 2.8s; }

@keyframes so-ping {
  0% { transform: scale(1); opacity: .65; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

/* ---------------------------------------------------------------- app cards */

.app-card {
  position: relative;
  display: block;
  height: 100%;
  padding: 1.25rem;
  border-radius: .9rem;
  border: 1px solid var(--phoenix-border-color);
  background: var(--phoenix-emphasis-bg);
  color: inherit;
  text-decoration: none;
  transition: transform var(--so-medium) var(--so-ease), box-shadow var(--so-medium) var(--so-ease), border-color var(--so-medium);
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--phoenix-primary-rgb), .45);
  box-shadow: 0 16px 36px -18px rgba(var(--phoenix-primary-rgb), .45);
  color: inherit;
}
.app-card .app-url { font-size: .8rem; color: var(--phoenix-quaternary-color); word-break: break-all; }
.app-card-new {
  display: grid;
  place-items: center;
  min-height: 9.5rem;
  border-style: dashed;
  border-width: 2px;
  color: var(--phoenix-quaternary-color);
}
.app-card-new:hover { color: var(--phoenix-primary); }
.app-card-new .plus {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto .5rem;
  border-radius: 50%;
  background: var(--phoenix-primary-bg-subtle);
  color: var(--phoenix-primary);
  transition: transform var(--so-medium) var(--so-ease-spring);
}
.app-card-new:hover .plus { transform: rotate(90deg) scale(1.08); }

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: .75rem;
  font-size: 1.1rem;
  background: var(--phoenix-primary-bg-subtle);
  color: var(--phoenix-primary);
}
.icon-chip-lg { width: 3.25rem; height: 3.25rem; font-size: 1.45rem; border-radius: 1rem; }

/* Usage meter (apps used vs plan) */
.meter { height: .45rem; border-radius: 999px; background: var(--phoenix-secondary-bg); overflow: hidden; }
.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--phoenix-primary), var(--phoenix-info));
  transform-origin: left;
  animation: so-grow 1s var(--so-ease) .2s both;
}
@keyframes so-grow { from { transform: scaleX(0); } }
.meter-danger > span { background: linear-gradient(90deg, var(--phoenix-warning), var(--phoenix-danger)); }

/* Empty states */
.float { animation: so-float 4.5s ease-in-out infinite; display: inline-block; }
@keyframes so-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* ---------------------------------------------------------------- source chooser */

.source-option { position: relative; display: block; height: 100%; cursor: pointer; margin: 0; }
.source-option input { position: absolute; opacity: 0; pointer-events: none; }
.source-option .card-face {
  height: 100%;
  padding: 1.25rem;
  border-radius: .9rem;
  border: 2px solid var(--phoenix-border-color);
  background: var(--phoenix-emphasis-bg);
  transition: transform var(--so-medium) var(--so-ease), border-color var(--so-medium), box-shadow var(--so-medium);
}
.source-option:hover .card-face { transform: translateY(-2px); border-color: rgba(var(--phoenix-primary-rgb), .4); }
.source-option input:focus-visible + .card-face { outline: 3px solid rgba(var(--phoenix-primary-rgb), .35); outline-offset: 2px; }
.source-option input:checked + .card-face {
  border-color: var(--phoenix-primary);
  box-shadow: 0 12px 28px -16px rgba(var(--phoenix-primary-rgb), .6);
}
.source-option .check {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: .7rem;
  color: #fff;
  background: var(--phoenix-primary);
  transform: scale(0);
  transition: transform var(--so-medium) var(--so-ease-spring);
}
.source-option input:checked ~ .check { transform: scale(1); }

.source-panel { animation: so-fade-up var(--so-medium) var(--so-ease) both; }
.source-panel[hidden] { display: none !important; }

/* Segmented control (Java version, build tool) */
.segmented { display: inline-flex; padding: .25rem; gap: .25rem; border-radius: .7rem; background: var(--phoenix-secondary-bg); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  margin: 0;
  padding: .35rem .9rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  color: var(--phoenix-quaternary-color);
  transition: background-color var(--so-fast), color var(--so-fast), box-shadow var(--so-fast);
}
.segmented input:checked + label { background: var(--phoenix-emphasis-bg); color: var(--phoenix-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.segmented input:focus-visible + label { outline: 2px solid rgba(var(--phoenix-primary-rgb), .5); }

/* Live hostname preview */
.host-preview {
  font-family: var(--phoenix-font-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .85rem;
  padding: .6rem .8rem;
  border-radius: .6rem;
  background: var(--phoenix-secondary-bg);
  word-break: break-all;
}
.host-preview .slug { color: var(--phoenix-primary); font-weight: 700; transition: color var(--so-fast); }

/* ---------------------------------------------------------------- drop zone & upload */

.dropzone-area {
  position: relative;
  display: block;
  padding: 2rem 1.25rem;
  border-radius: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px dashed var(--phoenix-border-color);
  background: var(--phoenix-body-bg);
  transition: border-color var(--so-medium), background-color var(--so-medium), transform var(--so-medium) var(--so-ease);
}
.dropzone-area:hover { border-color: rgba(var(--phoenix-primary-rgb), .5); }
.dropzone-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-area .dz-icon { font-size: 2rem; color: var(--phoenix-primary); transition: transform var(--so-medium) var(--so-ease-spring); }
.dropzone-area.is-dragover {
  border-color: transparent;
  background-color: var(--phoenix-primary-bg-subtle);
  background-image:
    repeating-linear-gradient(90deg, var(--phoenix-primary) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, var(--phoenix-primary) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(0deg, var(--phoenix-primary) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(0deg, var(--phoenix-primary) 0 10px, transparent 10px 20px);
  background-size: 100% 2px, 100% 2px, 2px 100%, 2px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
  animation: so-march .6s linear infinite;
  transform: scale(1.01);
}
.dropzone-area.is-dragover .dz-icon { transform: translateY(-6px) scale(1.15); }
@keyframes so-march {
  to { background-position: 20px 0, -20px 100%, 0 -20px, 100% 20px; }
}
.dropzone-area.has-file { border-style: solid; border-color: var(--phoenix-success); }

.file-chip {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: .75rem;
  background: var(--phoenix-secondary-bg);
  animation: so-fade-up var(--so-medium) var(--so-ease) both;
}
.file-chip .name { font-weight: 600; word-break: break-all; }

.upload-progress {
  height: .55rem;
  border-radius: 999px;
  background: var(--phoenix-secondary-bg);
  overflow: hidden;
}
.upload-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background-color: var(--phoenix-primary);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .25) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
  animation: so-stripes .8s linear infinite;
  transition: width .25s var(--so-ease);
}
@keyframes so-stripes { to { background-position: 1rem 0; } }

.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

/* Field errors from the JSON upload response */
[data-error-for]:empty { display: none; }
[data-error-for] { animation: so-shake .4s var(--so-ease); }
@keyframes so-shake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------------------------------------------------------------- deploy stepper */

.deploy-stepper { display: flex; align-items: flex-start; gap: 0; margin: 0; padding: 0; list-style: none; }
.deploy-stepper li { position: relative; flex: 1; text-align: center; }
.deploy-stepper li::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: -50%;
  right: 50%;
  height: 3px;
  border-radius: 3px;
  background: var(--phoenix-secondary-bg);
}
.deploy-stepper li::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: -50%;
  right: 50%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--phoenix-primary), var(--phoenix-info));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--so-ease);
}
.deploy-stepper li:first-child::before,
.deploy-stepper li:first-child::after { display: none; }
.deploy-stepper li.is-done::after,
.deploy-stepper li.is-active::after { transform: scaleX(1); }

.deploy-stepper .bubble {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto .5rem;
  border-radius: 50%;
  font-size: .85rem;
  color: var(--phoenix-quaternary-color);
  background: var(--phoenix-emphasis-bg);
  border: 2px solid var(--phoenix-border-color);
  transition: background-color var(--so-medium), border-color var(--so-medium), color var(--so-medium), transform var(--so-medium) var(--so-ease-spring);
}
.deploy-stepper .label { font-size: .8rem; font-weight: 600; color: var(--phoenix-quaternary-color); transition: color var(--so-medium); }
.deploy-stepper li.is-done .bubble { background: var(--phoenix-primary); border-color: var(--phoenix-primary); color: #fff; }
.deploy-stepper li.is-done .label { color: var(--phoenix-body-color); }
.deploy-stepper li.is-active .bubble {
  border-color: var(--phoenix-primary);
  color: var(--phoenix-primary);
  transform: scale(1.1);
  animation: so-glow 1.6s ease-in-out infinite;
}
.deploy-stepper li.is-active .label { color: var(--phoenix-primary); }
.deploy-stepper li.is-failed .bubble { background: var(--phoenix-danger); border-color: var(--phoenix-danger); color: #fff; animation: so-shake .45s var(--so-ease); }
.deploy-stepper li.is-failed .label { color: var(--phoenix-danger); }
.deploy-stepper li.is-live .bubble { background: var(--phoenix-success); border-color: var(--phoenix-success); color: #fff; animation: so-pop .5s var(--so-ease-spring); }
.deploy-stepper li.is-live .label { color: var(--phoenix-success); }
.deploy-stepper .bubble .fa-spinner { animation: fa-spin 1s linear infinite; }

@keyframes so-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--phoenix-primary-rgb), .35); }
  50% { box-shadow: 0 0 0 8px rgba(var(--phoenix-primary-rgb), 0); }
}
@keyframes so-pop {
  0% { transform: scale(.6); }
  100% { transform: scale(1.1); }
}

/* ---------------------------------------------------------------- live celebration */

.live-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: .9rem;
  background: var(--phoenix-success-bg-subtle);
  animation: so-scale-in var(--so-slow) var(--so-ease-spring) both;
  overflow: hidden;
}
.live-banner .check-ring { position: relative; width: 2.75rem; height: 2.75rem; flex: none; }
.live-banner .check-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--phoenix-success);
  animation: so-burst 1.2s var(--so-ease) both;
}
/* Scoped to the check mark: Font Awesome icons in the banner are SVGs too. */
.live-banner .check-ring svg { position: relative; width: 100%; height: 100%; }
.live-banner .check-ring svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: so-draw .5s var(--so-ease) .35s forwards;
}
@keyframes so-burst {
  0% { transform: scale(.3); box-shadow: 0 0 0 0 rgba(var(--phoenix-success-rgb), .55); }
  60% { transform: scale(1); box-shadow: 0 0 0 18px rgba(var(--phoenix-success-rgb), 0); }
  100% { transform: scale(1); }
}
@keyframes so-draw { to { stroke-dashoffset: 0; } }

.fail-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: .9rem;
  background: var(--phoenix-danger-bg-subtle);
  animation: so-scale-in var(--so-medium) var(--so-ease) both;
}

/* ---------------------------------------------------------------- terminal */

.log-terminal {
  border-radius: .9rem;
  overflow: hidden;
  background: var(--so-terminal-bg);
  color: var(--so-terminal-fg);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55);
}
.log-terminal .term-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: .78rem;
  color: #8b949e;
}
.log-terminal .term-bar .lights { display: inline-flex; gap: .35rem; margin-right: .4rem; }
.log-terminal .term-bar .lights i { width: .65rem; height: .65rem; border-radius: 50%; display: block; }
.log-terminal .term-bar .lights i:nth-child(1) { background: #ff5f57; }
.log-terminal .term-bar .lights i:nth-child(2) { background: #febc2e; }
.log-terminal .term-bar .lights i:nth-child(3) { background: #28c840; }
.log-terminal .term-body {
  position: relative;
  height: 22rem;
  overflow-y: auto;
  padding: .75rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .8rem;
  line-height: 1.6;
  scroll-behavior: smooth;
}
.log-terminal .term-body::-webkit-scrollbar { width: 10px; }
.log-terminal .term-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 3px solid var(--so-terminal-bg); }
.log-line { display: flex; gap: .9rem; padding: 0 1rem; white-space: pre-wrap; word-break: break-word; }
.log-line.is-new { animation: so-line-in .35s var(--so-ease) both; }
.log-line:hover { background: rgba(255, 255, 255, .03); }
.log-line .t { color: #6e7681; flex: none; user-select: none; }
.log-line[data-stream=SYSTEM] .x { color: #79c0ff; }
.log-line[data-stream=ERROR] .x { color: #ff7b72; }
.log-line[data-stream=BUILD] .x { color: var(--so-terminal-fg); }
@keyframes so-line-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}
.term-caret { padding: 0 1rem; color: #7ee787; }
.term-caret::after { content: "▋"; animation: so-blink 1s steps(1) infinite; }
@keyframes so-blink { 50% { opacity: 0; } }
.term-empty { padding: 2rem 1rem; text-align: center; color: #6e7681; }
.jump-latest {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .75rem;
  border: 0;
  color: #0d1117;
  background: #7ee787;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  animation: so-fade-up var(--so-medium) var(--so-ease) both;
}

/* ---------------------------------------------------------------- deployment history */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: .37rem;
  top: 1.1rem;
  bottom: -.1rem;
  width: 2px;
  background: var(--phoenix-border-color);
}
.timeline li:last-child::before { display: none; }
.timeline .tl-dot {
  position: absolute;
  left: 0;
  top: .3rem;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  border: 3px solid var(--phoenix-emphasis-bg);
  box-shadow: 0 0 0 1px var(--phoenix-border-color);
  background: var(--phoenix-quaternary-color);
}
.timeline .tl-dot[data-tone=success] { background: var(--phoenix-success); }
.timeline .tl-dot[data-tone=danger] { background: var(--phoenix-danger); }
.timeline .tl-dot[data-tone=progress] { background: var(--phoenix-primary); animation: so-glow 1.6s ease-in-out infinite; }
.timeline a.tl-link {
  display: block;
  margin: -.35rem -.6rem;
  padding: .35rem .6rem;
  border-radius: .6rem;
  color: inherit;
  text-decoration: none;
  transition: background-color var(--so-fast);
}
.timeline a.tl-link:hover,
.timeline a.tl-link.is-current { background: var(--phoenix-secondary-bg); }

/* ---------------------------------------------------------------- toasts */

.toast-stack {
  position: fixed;
  top: 5rem;
  right: 1.25rem;
  z-index: 1080;
  display: grid;
  gap: .6rem;
  width: min(24rem, calc(100vw - 2.5rem));
}
.so-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: .8rem;
  overflow: hidden;
  background: var(--phoenix-emphasis-bg);
  border: 1px solid var(--phoenix-border-color);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35);
  animation: so-toast-in .45s var(--so-ease-spring) both, so-toast-out .4s var(--so-ease) 6s forwards;
}
.so-toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: .5;
  transform-origin: left;
  animation: so-countdown 6s linear forwards;
}
.so-toast[data-tone=success] { color: var(--phoenix-success); }
.so-toast[data-tone=warning] { color: var(--phoenix-warning); }
.so-toast .msg { color: var(--phoenix-body-color); font-size: .875rem; }
.so-toast .btn-close { margin-left: auto; font-size: .65rem; }
@keyframes so-toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes so-toast-out { to { opacity: 0; transform: translateX(40px); visibility: hidden; } }
@keyframes so-countdown { to { transform: scaleX(0); } }

/* ---------------------------------------------------------------- misc */

.copy-btn { border: 0; background: none; padding: .1rem .35rem; color: var(--phoenix-quaternary-color); border-radius: .4rem; transition: color var(--so-fast), background-color var(--so-fast); }
.copy-btn:hover { color: var(--phoenix-primary); background: var(--phoenix-secondary-bg); }
.meta-list { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: var(--phoenix-quaternary-color); }
.meta-list span { display: inline-flex; align-items: center; gap: .35rem; }
.kv dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--phoenix-quaternary-color); }
.kv dd { margin-bottom: .85rem; word-break: break-all; }
.sim-ribbon {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--phoenix-warning);
  background: var(--phoenix-warning-bg-subtle);
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .so-toast { animation: none; }
  .so-toast::after { display: none; }
}

/* Delete app: kept folded away so it is never clicked by accident */
.danger-zone { border-color: var(--phoenix-danger-border-subtle, rgba(237, 32, 0, .25)); }
.danger-zone summary { cursor: pointer; list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone .chev { transition: transform .25s var(--so-ease, ease); }
.danger-zone details[open] .chev { transform: rotate(180deg); }
.danger-zone details[open] form { animation: so-fade-up .3s var(--so-ease, ease) both; }
.danger-zone .form-label { text-transform: none; letter-spacing: normal; }

/* New-app wizard: Java and static-site groups */
.source-group-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--phoenix-tertiary-color); margin-bottom: .75rem;
}
.site-runtime {
  display: flex; gap: .875rem; align-items: flex-start; padding: .875rem 1rem; border-radius: .75rem;
  background: var(--phoenix-primary-bg-subtle); animation: so-fade-up .35s var(--so-ease, ease) both;
}

/* Custom domains */
.domain-item {
  border: 1px solid var(--phoenix-border-color); border-radius: .75rem; padding: 1rem 1.125rem;
  animation: so-fade-up .35s var(--so-ease, ease) both;
}
.domain-item + .domain-item { margin-top: .75rem; }
.domain-item[data-domain-status=ACTIVE] { border-color: var(--phoenix-success-border-subtle, rgba(37, 176, 3, .3)); }
.domain-dot { width: .625rem; height: .625rem; border-radius: 50%; background: var(--phoenix-tertiary-color); flex: none; position: relative; }
.domain-dot[data-tone=success] { background: var(--phoenix-success); }
.domain-dot[data-tone=danger] { background: var(--phoenix-danger); }
.domain-dot[data-tone=progress] { background: var(--phoenix-warning); }
.domain-dot[data-tone=progress]::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: so-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
.domain-status { color: var(--phoenix-tertiary-color); }
.domain-item[data-domain-status=FAILED] .domain-status { color: var(--phoenix-danger); }
.dns-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--phoenix-tertiary-color); }
.dns-table td { vertical-align: middle; }

/* Private repositories */
.private-fields { padding: 1rem; border-radius: .75rem; background: var(--phoenix-body-highlight-bg, rgba(0, 0, 0, .025));
  border: 1px dashed var(--phoenix-border-color); }
.token-replace summary { cursor: pointer; list-style: none; width: fit-content; }
.token-replace summary::-webkit-details-marker { display: none; }
.token-replace[open] form { animation: so-fade-up .3s var(--so-ease, ease) both; }

/* App page tabs */
.app-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--phoenix-border-color); overflow-x: auto; scrollbar-width: none; }
.app-tabs a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; white-space: nowrap;
  color: var(--phoenix-tertiary-color); font-weight: 600; font-size: .875rem; text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.app-tabs a:hover { color: var(--phoenix-emphasis-color); }
.app-tabs a.is-active { color: var(--phoenix-primary); border-bottom-color: var(--phoenix-primary); }
.app-tabs .tab-count {
  font-size: .7rem; line-height: 1; padding: .2rem .45rem; border-radius: 1rem;
  background: var(--phoenix-primary-bg-subtle); color: var(--phoenix-primary);
}
.pending-banner {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: .75rem;
  background: var(--phoenix-primary-bg-subtle); animation: so-fade-up .35s var(--so-ease, ease) both;
}

/* Environment variables */
.env-table td { vertical-align: middle; }
.env-table tbody tr { animation: so-fade-up .3s var(--so-ease, ease) both; }
.env-secret { color: var(--phoenix-tertiary-color); letter-spacing: .02em; }
.env-value { color: var(--phoenix-emphasis-color); }
.env-empty-icon {
  width: 3rem; height: 3rem; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--phoenix-primary-bg-subtle); color: var(--phoenix-primary); font-size: 1.25rem;
}
.env-import summary { cursor: pointer; list-style: none; }
.env-import summary::-webkit-details-marker { display: none; }
.env-import[open] form, .env-import[open] > p, .env-import[open] > textarea { animation: so-fade-up .3s var(--so-ease, ease) both; }
.text-transform-none { text-transform: none; letter-spacing: normal; }

/* Runtime: state pill, live logs, crash banner */
.runtime-state { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--phoenix-tertiary-color); }
.runtime-state .dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; position: relative; }
.runtime-state[data-tone=success] { color: var(--phoenix-success); }
.runtime-state[data-tone=danger] { color: var(--phoenix-danger); }
.runtime-state[data-tone=warning] { color: var(--phoenix-warning); }
.runtime-state[data-tone=progress] { color: var(--phoenix-primary); }
.runtime-state[data-tone=success] .dot::after, .runtime-state[data-tone=danger] .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: so-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.log-terminal .runtime-term { height: 32rem; scroll-behavior: auto; }
.log-line[data-stream=WARN] .x { color: #e3b341; }
.logs-filter { width: 12rem; }
.crash-banner { animation: so-shake .45s var(--so-ease, ease) both, so-fade-up .35s var(--so-ease, ease) both; }
.crash-hint { background: var(--phoenix-danger-bg-subtle); border-radius: .5rem; padding: .5rem .75rem; color: var(--phoenix-danger); }

/* Deploy keys */
.deploy-key-card { border: 1px solid var(--phoenix-primary-border-subtle, rgba(56, 116, 255, .3)); animation: so-fade-up .35s var(--so-ease, ease) both; }
.key-box {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: .75rem;
  background: var(--so-terminal-bg, #0d1117); color: #7ee787; font-size: .78rem;
}
.key-box code { color: inherit; flex: 1; min-width: 0; }
.key-steps { padding-left: 1.25rem; }
.key-steps li { margin-bottom: .35rem; }

/* Integrations */
.integration-card .connection {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .875rem 1rem;
  border: 1px solid var(--phoenix-border-color); border-radius: .75rem; animation: so-fade-up .35s var(--so-ease, ease) both;
}
.integration-card .connection + .connection { margin-top: .75rem; }
.repo-list li { padding: .3rem 0; border-bottom: 1px dashed var(--phoenix-border-color); }
.repo-list li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- footer */

/* The theme pins the footer to the bottom of .content (absolute), so long pages ran under it.
   In normal flow it sits after the content, and still at the bottom of short pages. */
.content { display: flex; flex-direction: column; padding-bottom: 0; }
.content > .reveal { flex: 1 0 auto; }
.app-footer { position: static; flex-shrink: 0; height: auto; min-height: 4rem; margin-top: 2rem; display: flex; align-items: center; }
.app-footer > .row { width: 100%; }

/* ---------------------------------------------------------------- app shell (sidebar + top bar) */

:root {
  --ol-sidebar-w: 16rem;
  --ol-topbar-h: 4rem;
  --ol-navy-1: #0a1834;
  --ol-navy-2: #0e2350;
  --ol-side-text: #c3cee5;
  --ol-side-muted: #7f8db0;
  --ol-sky: #5aa3ff;
}

.brand-mark .brand-word { color: var(--phoenix-emphasis-color); letter-spacing: -.01em; }
.brand-mark .brand-accent { color: var(--phoenix-primary); }

.ol-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--ol-sidebar-w); z-index: 1035;
  display: flex; flex-direction: column; padding: 1.1rem .85rem .9rem;
  background: linear-gradient(180deg, var(--ol-navy-1), var(--ol-navy-2));
  color: var(--ol-side-text);
  transition: transform var(--so-medium) var(--so-ease);
}
.ol-sidebar-brand { display: block; padding: .2rem .45rem 1.2rem; text-decoration: none; }
.ol-sidebar .brand-mark .brand-word { color: #fff; }
.ol-sidebar .brand-mark .brand-accent { color: var(--ol-sky); }

.ol-workspace-button {
  width: 100%; display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem;
  color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: .75rem;
  font-weight: 600; font-size: .86rem; text-align: left;
  transition: background-color var(--so-fast), border-color var(--so-fast);
}
.ol-workspace-button:hover, .ol-workspace-button[aria-expanded="true"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }
.ol-workspace-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-workspace-initial {
  flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem;
  font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b7bff, #7c5cff);
}
.ol-workspace-initial.sm { width: 1.4rem; height: 1.4rem; font-size: .7rem; border-radius: .4rem; }
.ol-workspace-menu { width: calc(var(--ol-sidebar-w) - 1.7rem); }

.ol-sidebar-scroll { flex: 1; overflow-y: auto; margin: 1rem -.25rem 0; padding: 0 .25rem; scrollbar-width: thin; }
.ol-nav { list-style: none; padding: 0; margin: 0; }
.ol-nav li + li { margin-top: .15rem; }
.ol-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: .65rem;
  color: var(--ol-side-text); font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: background-color var(--so-fast), color var(--so-fast), transform var(--so-fast) var(--so-ease);
}
.ol-nav a svg { width: 1.1rem; height: 1.1rem; stroke-width: 1.8; flex: none; }
.ol-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ol-nav a:active { transform: scale(.98); }
.ol-nav a.active {
  color: #fff; background: linear-gradient(135deg, #2f6df6, #1f58e0);
  box-shadow: 0 10px 22px -12px rgba(47, 109, 246, .9);
}
.ol-soon {
  margin-left: auto; padding: .12rem .45rem; border-radius: 999px;
  font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #9cc6ff; background: rgba(90, 163, 255, .14);
}
.ol-nav a.active .ol-soon { color: #fff; background: rgba(255, 255, 255, .2); }
.ol-nav-label { margin: 1.4rem .8rem .45rem; font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ol-side-muted); }

.ol-sidebar-foot { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.ol-user {
  width: 100%; display: flex; align-items: center; gap: .65rem; margin-top: .35rem; padding: .55rem .5rem;
  color: #fff; background: none; border: 0; border-radius: .7rem; text-align: left;
  transition: background-color var(--so-fast);
}
.ol-user:hover, .ol-user[aria-expanded="true"] { background: rgba(255, 255, 255, .07); }
.ol-avatar {
  flex: none; display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%;
  font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #7c5cff, #3b9bff);
}
.ol-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ol-user-name { font-weight: 600; font-size: .86rem; }
.ol-user-email { font-size: .72rem; color: var(--ol-side-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-user-menu { width: calc(var(--ol-sidebar-w) - 1.7rem); }

.ol-topbar {
  position: fixed; top: 0; right: 0; left: var(--ol-sidebar-w); height: var(--ol-topbar-h); z-index: 1020;
  display: flex; align-items: center; gap: 1rem; padding: 0 2.25rem;
  background: color-mix(in srgb, var(--phoenix-body-bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--phoenix-border-color-translucent, var(--phoenix-border-color));
}
.ol-menu-button { display: none; border: 0; background: none; color: var(--phoenix-body-color); font-size: 1.1rem; padding: .25rem; }
.ol-crumbs { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: .86rem; }
.ol-crumbs a { color: var(--phoenix-secondary-color); text-decoration: none; white-space: nowrap; }
.ol-crumbs a:hover { color: var(--phoenix-primary); }
.ol-crumb-sep { color: var(--phoenix-quaternary-color); }
.ol-crumb-current { font-weight: 600; color: var(--phoenix-emphasis-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .9rem; }

.content.ol-content { margin-left: var(--ol-sidebar-w); padding: calc(var(--ol-topbar-h) + 2rem) 2.25rem 0; }
.ol-scrim { display: none; }

@media (max-width: 991.98px) {
  .ol-sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  body.ol-sidebar-open .ol-sidebar { transform: none; }
  body.ol-sidebar-open .ol-scrim { display: block; position: fixed; inset: 0; z-index: 1030; background: rgba(8, 16, 36, .45); animation: so-fade-up var(--so-fast) both; }
  .ol-topbar { left: 0; padding: 0 1rem; }
  .ol-menu-button { display: inline-flex; }
  .content.ol-content { margin-left: 0; padding: calc(var(--ol-topbar-h) + 1.25rem) 1rem 0; }
}

/* ---------------------------------------------------------------- page building blocks */

.ol-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.ol-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; color: var(--phoenix-emphasis-color); }
.ol-subtitle { font-size: 1.02rem; color: var(--phoenix-secondary-color); margin-bottom: .6rem; }
.ol-health { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.ol-health .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--phoenix-quaternary-color); }
.ol-health.is-ok { color: var(--phoenix-success); }
.ol-health.is-ok .dot { background: var(--phoenix-success); box-shadow: 0 0 0 4px rgba(var(--phoenix-success-rgb), .15); animation: so-pulse 2.4s ease-in-out infinite; }
.ol-health.is-bad { color: var(--phoenix-danger); }
.ol-health.is-bad .dot { background: var(--phoenix-danger); box-shadow: 0 0 0 4px rgba(var(--phoenix-danger-rgb), .15); }
@keyframes so-pulse { 50% { box-shadow: 0 0 0 7px rgba(var(--phoenix-success-rgb), 0); } }

.ol-stat {
  display: flex; gap: 1rem; height: 100%; padding: 1.25rem; border-radius: 1rem;
  background: var(--phoenix-emphasis-bg, var(--phoenix-body-bg)); border: 1px solid var(--phoenix-border-color);
  color: inherit; text-decoration: none;
  transition: transform var(--so-medium) var(--so-ease), box-shadow var(--so-medium) var(--so-ease), border-color var(--so-medium);
}
a.ol-stat:hover { transform: translateY(-2px); border-color: rgba(var(--phoenix-primary-rgb), .35); box-shadow: 0 14px 30px -18px rgba(var(--phoenix-primary-rgb), .55); }
.ol-stat-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .85rem; font-size: 1.15rem; }
.ol-stat-icon[data-tone="blue"] { color: #2f6df6; background: rgba(47, 109, 246, .12); }
.ol-stat-icon[data-tone="green"] { color: #16a34a; background: rgba(22, 163, 74, .12); }
.ol-stat-icon[data-tone="violet"] { color: #7c5cff; background: rgba(124, 92, 255, .13); }
.ol-stat-icon[data-tone="amber"] { color: #d97706; background: rgba(217, 119, 6, .13); }
.ol-stat-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ol-stat-label { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--phoenix-secondary-color); }
.ol-stat-label .fa-chevron-right { margin-left: auto; font-size: .7rem; color: var(--phoenix-quaternary-color); transition: transform var(--so-fast); }
a.ol-stat:hover .fa-chevron-right { transform: translateX(3px); color: var(--phoenix-primary); }
.ol-stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1.15; color: var(--phoenix-emphasis-color); margin: .15rem 0 .1rem; }
.ol-stat-note { font-size: .76rem; color: var(--phoenix-tertiary-color); }

.ol-card { border-radius: 1rem; overflow: hidden; }
.ol-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.35rem 1.5rem 1rem; }
.ol-card-head h3 { font-size: 1.15rem; font-weight: 700; }
.ol-card-sub { font-size: .82rem; color: var(--phoenix-tertiary-color); margin: 0; }

.ol-table { font-size: .85rem; }
.ol-table > thead th {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--phoenix-tertiary-color); background: var(--phoenix-body-highlight-bg, var(--phoenix-secondary-bg));
  padding: .7rem 1rem; border-bottom: 0; white-space: nowrap;
}
.ol-table.table > :not(caption) > * > :first-child { padding-left: 1.5rem; }
.ol-table.table > :not(caption) > * > :last-child { padding-right: 1.5rem; }
.ol-table > tbody td { padding: .85rem 1rem; vertical-align: middle; }
.ol-table > tbody tr { transition: background-color var(--so-fast); }
.ol-table > tbody tr:hover { background: rgba(var(--phoenix-primary-rgb), .035); }
.ol-app-name { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.ol-app-name:hover .fw-semibold { color: var(--phoenix-primary); }

.ol-avatar.sm { width: 2rem; height: 2rem; font-size: .78rem; }
.ol-avatar.xs { width: 1.5rem; height: 1.5rem; font-size: .65rem; }

.ol-timeline { list-style: none; margin: 0; padding: 0 1.5rem 1.25rem; position: relative; }
.ol-timeline::before { content: ""; position: absolute; left: 2.5rem; top: .75rem; bottom: 1.75rem; width: 2px; background: var(--phoenix-border-color); }
.ol-timeline li { position: relative; display: flex; align-items: center; gap: .85rem; padding: .6rem 0; }
.ol-timeline li + li { border-top: 1px dashed var(--phoenix-border-color-translucent, var(--phoenix-border-color)); }
.ol-timeline .ol-avatar { position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--phoenix-emphasis-bg, #fff); }
.ol-timeline-time { min-width: 5.5rem; text-align: right; }
@media (max-width: 575.98px) { .ol-timeline-time { display: none; } }

.ol-soon-badge {
  display: inline-block; vertical-align: middle; padding: .14rem .5rem; border-radius: 999px;
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--phoenix-primary); background: rgba(var(--phoenix-primary-rgb), .1);
}
.ol-soon-badge.lg { font-size: .72rem; padding: .25rem .7rem; }
.ol-soon-card { color: inherit; text-decoration: none; transition: border-color var(--so-medium), box-shadow var(--so-medium); }
.ol-soon-card:hover { border-color: rgba(var(--phoenix-primary-rgb), .35); box-shadow: 0 14px 30px -20px rgba(var(--phoenix-primary-rgb), .6); }
.ol-chart-ghost { margin: 0 1.5rem 1rem; height: 9rem; border-radius: .75rem; padding: .75rem;
  background-image: linear-gradient(var(--phoenix-border-color) 1px, transparent 1px); background-size: 100% 25%; opacity: .9; }
.ol-chart-ghost svg { width: 100%; height: 100%; overflow: visible; }
.ol-chart-ghost path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: so-draw-line 2.2s var(--so-ease) .3s forwards; }
.ol-chart-ghost .line-a { stroke: rgba(47, 109, 246, .45); }
.ol-chart-ghost .line-b { stroke: rgba(22, 163, 74, .4); animation-delay: .6s; }
@keyframes so-draw-line { to { stroke-dashoffset: 0; } }

.ol-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1rem;
  border: 1px solid rgba(var(--phoenix-primary-rgb), .2); background: rgba(var(--phoenix-primary-rgb), .05);
}
.ol-banner-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .75rem; color: var(--phoenix-primary); background: rgba(var(--phoenix-primary-rgb), .12); }

.ol-tabs .nav-link { font-weight: 600; }
.ol-template { opacity: .7; filter: saturate(.6); }
.ol-template:hover { opacity: .9; }

/* ---------------------------------------------------------------- new-app wizard */

.ol-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--phoenix-primary); margin-bottom: .4rem; }
.ol-wizard-steps { display: flex; align-items: center; list-style: none; padding: 0; margin: 0 0 1.75rem; max-width: 34rem; }
.ol-wizard-steps li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; color: var(--phoenix-tertiary-color); white-space: nowrap; }
.ol-wizard-steps li + li::before {
  content: ""; flex: 1; width: 4.5rem; height: 2px; margin: 0 .9rem; border-radius: 2px;
  background: var(--phoenix-border-color); transition: background-color var(--so-medium);
}
.ol-wizard-steps .bubble {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 2px solid var(--phoenix-border-color); background: var(--phoenix-emphasis-bg, #fff); font-size: .82rem;
  transition: background-color var(--so-medium), border-color var(--so-medium), color var(--so-medium), transform var(--so-medium) var(--so-ease-spring);
}
.ol-wizard-steps .bubble .tick { display: none; }
.ol-wizard-steps li.is-current { color: var(--phoenix-emphasis-color); }
.ol-wizard-steps li.is-current .bubble { border-color: var(--phoenix-primary); background: var(--phoenix-primary); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 5px rgba(var(--phoenix-primary-rgb), .14); }
.ol-wizard-steps li.is-done { color: var(--phoenix-emphasis-color); }
.ol-wizard-steps li.is-done .bubble { border-color: var(--phoenix-primary); background: var(--phoenix-primary); color: #fff; }
.ol-wizard-steps li.is-done .bubble .num { display: none; }
.ol-wizard-steps li.is-done .bubble .tick { display: inline-block; }
.ol-wizard-steps li.is-done + li::before, .ol-wizard-steps li.is-current::before { background: var(--phoenix-primary); }
@media (max-width: 575.98px) {
  .ol-wizard-steps li + li::before { width: 1.25rem; margin: 0 .5rem; }
  .ol-wizard-steps li:not(.is-current) { font-size: 0; gap: 0; }
}

[data-step] { padding: 0; animation: so-fade-up var(--so-medium) var(--so-ease) both; }
.ol-step-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: 1.25rem; }
.ol-step-head h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.ol-step-no { color: var(--phoenix-primary); }

.source-option.is-soon { cursor: not-allowed; opacity: .55; filter: grayscale(.4); }
.source-option.is-soon:hover { transform: none; }

.ol-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.ol-review > div { min-width: 0; }
.ol-review dt { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--phoenix-tertiary-color); margin-bottom: .2rem; }
.ol-review dd { margin: 0; font-weight: 600; color: var(--phoenix-emphasis-color); overflow-wrap: anywhere; }
.ol-review [hidden] { display: none; }

.ol-wizard-nav { display: flex; align-items: flex-start; gap: .75rem; padding: 1.25rem 0 .5rem; }

.ol-resource { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: .75rem; background: rgba(var(--phoenix-primary-rgb), .05); border: 1px solid rgba(var(--phoenix-primary-rgb), .15); }
.ol-ready { list-style: none; margin: 0; padding: 0; }
.ol-ready li { display: flex; gap: .75rem; align-items: flex-start; padding: .45rem 0; }
.ol-ready .ready-mark {
  flex: none; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; margin-top: .1rem;
  font-size: .62rem; color: transparent; border: 2px solid var(--phoenix-border-color);
  transition: background-color var(--so-medium), border-color var(--so-medium), color var(--so-medium), transform var(--so-medium) var(--so-ease-spring);
}
.ol-ready li.is-done .ready-mark { color: #fff; background: var(--phoenix-success); border-color: var(--phoenix-success); transform: scale(1.08); }
.ol-ready [data-ready-text] { overflow-wrap: anywhere; }
.alert[data-error-for]:empty { display: none; }

/* ---------------------------------------------------------------- app page header */

.ol-app-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.75rem; }
.ol-app-icon {
  flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1rem; font-size: 1.6rem;
  color: var(--phoenix-primary); background: var(--phoenix-emphasis-bg, #fff); border: 1px solid var(--phoenix-border-color);
  box-shadow: 0 10px 24px -16px rgba(var(--phoenix-primary-rgb), .6);
}
.ol-app-title { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: 0 .25rem 0 0; }
.ol-app-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ol-app-actions form { margin: 0; }
.app-tabs a.is-soon { opacity: .6; }
.app-tabs a.is-soon .ol-soon-badge { margin-left: .15rem; }

/* ---------------------------------------------------------------- split sign-in / sign-up */

.ol-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; background: var(--phoenix-body-bg); }
.ol-auth-brand {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 2.5rem;
  padding: 2.5rem clamp(2rem, 4vw, 4rem); color: #c9d5ee;
  background: radial-gradient(120% 80% at 0% 0%, #1b3b8f 0%, transparent 55%), linear-gradient(160deg, var(--ol-navy-1), var(--ol-navy-2) 60%, #10306e);
}
.ol-auth-brand::before, .ol-auth-brand::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none;
  animation: so-drift 24s ease-in-out infinite alternate;
}
.ol-auth-brand::before { width: 28rem; height: 28rem; right: -10rem; top: 30%; background: radial-gradient(circle, #2f6df6 0%, transparent 70%); }
.ol-auth-brand::after { width: 22rem; height: 22rem; left: -8rem; bottom: -6rem; background: radial-gradient(circle, #19b4e5 0%, transparent 70%); animation-delay: -12s; }
.ol-auth-brand .brand-mark .brand-word { color: #fff; }
.ol-auth-brand .brand-mark .brand-accent { color: var(--ol-sky); }
.ol-auth-logo, .ol-auth-logo-sm { text-decoration: none; display: inline-block; }
.ol-auth-pitch { margin-top: auto; max-width: 30rem; animation: so-fade-up var(--so-slow) var(--so-ease) both; }
.ol-auth-pitch h1 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 1rem; }
.ol-auth-pitch p { font-size: 1.02rem; color: #a9b8d8; margin-bottom: 1.75rem; }
.ol-auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ol-auth-pitch li { display: flex; gap: .9rem; align-items: flex-start; font-size: .9rem; color: #a9b8d8; }
.ol-auth-pitch li b { display: block; color: #fff; font-weight: 600; margin-bottom: .1rem; }
.ol-auth-pitch li > svg, .ol-auth-pitch li > span {
  flex: none; width: 2.4rem !important; height: 2.4rem; padding: .62rem; border-radius: .7rem;
  color: #9cc6ff; background: rgba(90, 163, 255, .12); border: 1px solid rgba(90, 163, 255, .18); box-sizing: border-box;
}
.ol-auth-demo {
  max-width: 22rem; padding: 1rem 1.1rem; border-radius: .9rem; font-size: .8rem; color: #a9b8d8;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px);
  animation: so-float 6s ease-in-out infinite;
}
.ol-auth-demo .row1 { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; font-family: var(--phoenix-font-monospace, monospace); }
.ol-auth-demo .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.ol-auth-demo .pill { margin-left: auto; font-size: .68rem; padding: .1rem .5rem; border-radius: 999px; color: #4ade80; background: rgba(34, 197, 94, .15); }
.ol-auth-demo .bar { height: .35rem; margin: .75rem 0 .6rem; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ol-auth-demo .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f6df6, #19b4e5); animation: ol-fill 3.2s var(--so-ease) infinite; }
.ol-auth-demo .row2 { display: flex; justify-content: space-between; gap: 1rem; }
@keyframes ol-fill { 0% { width: 8%; } 70%, 100% { width: 100%; } }
@keyframes so-float { 50% { transform: translateY(-6px); } }
.ol-auth-foot { margin: 0; font-size: .75rem; color: #7f8db0; }
.ol-auth-foot a { color: #9cc6ff; }

.ol-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.ol-auth-logo-sm { display: none; margin-bottom: 1.5rem; }
.ol-auth .auth-card.ol-auth-form {
  width: 100%; max-width: 27rem; padding: 0; border: 0; box-shadow: none; background: none; backdrop-filter: none;
  animation: so-fade-up var(--so-slow) var(--so-ease) both;
}
.ol-auth-form h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }

@media (max-width: 991.98px) {
  .ol-auth { grid-template-columns: 1fr; }
  .ol-auth-brand { display: none; }
  .ol-auth-logo-sm { display: inline-block; }
  .ol-auth-main { justify-content: flex-start; padding-top: 2.5rem; }
}
.ol-banner > .flex-1 { min-width: min(16rem, 100%); }
