html {
  font-size: 100%;
  text-size-adjust: auto;
  -webkit-text-size-adjust: auto;
}

@supports (font: -apple-system-body) {
  html {
    font: -apple-system-body;
  }
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0717;
  --panel: #171126;
  --panel-2: #211932;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8f4ee;
  --muted: #aaa4b9;
  --accent: #64f5cb;
  --accent-strong: #41d8b0;
  --purple: #b67cff;
  --mint: #64f5cb;
  --coral: #ff765f;
  --warning: #ffd87a;
  --danger: #ff765f;
  --radius: 16px;
  --surface: linear-gradient(145deg, rgba(42, 42, 45, 0.98), rgba(31, 31, 33, 0.98));
  --field-bg: #1e1e1e;
  --sidebar-bg: rgba(24, 24, 24, 0.97);
}

/* Light theme: the authenticated app remaps the core tokens. The public
   landing page keeps its own dark --ml-* palette by design. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2f9;
  --panel: #ffffff;
  --panel-2: #eceaf4;
  --line: rgba(24, 16, 46, 0.14);
  --text: #1b1430;
  --muted: #5c5570;
  --accent: #0d9c78;
  --accent-strong: #0a7c60;
  --purple: #7c3aed;
  --mint: #0d9c78;
  --coral: #d6492f;
  --warning: #b07a08;
  --danger: #d6492f;
  --surface: linear-gradient(145deg, #ffffff, #f3f0fa);
  --field-bg: #ffffff;
  --sidebar-bg: rgba(255, 255, 255, 0.97);
}

:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.5;
  background:
    radial-gradient(circle at 92% 4%, rgba(0, 229, 255, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

p,
li,
label,
button,
a,
input,
textarea,
select {
  overflow-wrap: anywhere;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #07130f;
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  backdrop-filter: blur(18px);
}

.mobile-menu,
.mobile-close,
.nav-scrim {
  display: none;
}

.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-avatar {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.1);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
}

nav {
  display: grid;
  gap: 0.35rem;
  min-height: 0;
  overflow-y: auto;
}

nav a {
  padding: 0.72rem 0.85rem;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
}

nav .nav-action {
  width: 100%;
  padding: 0.58rem 0.85rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
}

nav a:hover,
nav .nav-action:hover {
  background: var(--panel-2);
  color: var(--text);
}

/* Persistent "you are here" state, distinct from a transient hover. */
nav a.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text);
  box-shadow: inset 3px 0 0 0 var(--accent);
  font-weight: 600;
}

.nav-label {
  margin: 0.75rem 0.85rem 0.15rem;
  color: #85858c;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-group {
  border-radius: 12px;
}

.nav-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border-radius: 11px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary:hover,
.nav-group:has(a.active) summary {
  background: var(--panel-2);
  color: var(--text);
}

.nav-chevron {
  color: #85858c;
  transition: transform 160ms ease;
}

.nav-group[open] .nav-chevron {
  transform: rotate(180deg);
}

.nav-group-links {
  display: grid;
  gap: 0.2rem;
  margin: 0.25rem 0 0.35rem 0.65rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
}

.nav-group-links a {
  padding-block: 0.58rem;
  font-size: 0.88rem;
}

.nav-group-links .install-app-cta {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.45rem;
  padding: 0.7rem;
  border: 1px solid rgba(0, 229, 255, 0.42);
  background: rgba(0, 122, 204, 0.16);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.08);
}

.install-app-cta > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #071014;
  font-size: 1.15rem;
  font-weight: 900;
}

.install-app-cta > span:last-child {
  display: grid;
  gap: 0.1rem;
}

.install-app-cta strong {
  color: var(--text);
}

.install-app-cta small {
  color: var(--muted);
  font-size: 0.66rem;
}

.nav-group-links .install-app-cta:hover {
  border-color: var(--accent);
  background: rgba(0, 122, 204, 0.24);
  box-shadow: 0 12px 34px rgba(0, 229, 255, 0.13);
}

.nav-legal-links {
  display: flex;
  gap: 0.8rem;
  padding: 0.45rem 0.7rem 0.2rem;
  border-top: 1px solid var(--line);
}

.nav-group-links .nav-legal-links a {
  padding: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-group-links .nav-legal-links a:hover {
  color: var(--accent);
  background: transparent;
}

.auth-legal {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.auth-legal a {
  color: var(--accent);
}

.sidebar-foot {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(900px, calc(100% - 2rem));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.legal-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.legal-nav {
  display: flex;
  gap: 1rem;
}

.legal-nav a,
.legal-main a,
.legal-footer a {
  color: var(--accent);
}

.legal-main {
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.legal-main > header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-main h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
}

.legal-main h2 {
  margin: 2.25rem 0 0.65rem;
  color: var(--mint);
  font-size: 1.15rem;
}

.legal-main p,
.legal-main li {
  color: #c9c9cd;
}

.legal-main li + li {
  margin-top: 0.5rem;
}

.legal-summary {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.045);
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.sidebar-setup {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-setup-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar-setup-heading strong {
  color: var(--mint);
}

.sidebar-setup .progress {
  height: 5px;
}

.sidebar-setup-list {
  display: grid;
  gap: 0.2rem;
}

.sidebar-setup-list a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
  text-decoration: none;
}

.sidebar-setup-list a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-setup-list a > span:first-child {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.65rem;
}

.sidebar-setup-list a.done {
  color: var(--mint);
}

.sidebar-setup-list a.done > span:first-child {
  border-color: rgba(109, 232, 208, 0.35);
  background: rgba(109, 232, 208, 0.09);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px currentColor;
}

.status-dot.ready {
  background: var(--mint);
}

.status-dot.error {
  background: var(--danger);
}

main {
  min-width: 0;
  padding: 0 2rem 4rem;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 0.75rem 0;
  background: linear-gradient(to bottom, var(--bg) 75%, transparent);
}

.topbar-title {
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h2 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.eyebrow {
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.project-switcher select {
  min-width: 150px;
  max-width: 230px;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--panel);
}

.sidebar-project-switcher {
  display: grid;
  gap: 0.4rem;
  margin-top: -0.75rem;
}

.sidebar-project-switcher > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-project-switcher select {
  width: 100%;
  min-width: 0;
  max-width: none;
  border-color: var(--line);
  background: var(--panel-2);
}

.auth-shell {
  display: block;
}

.auth-shell main {
  padding: 0;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 122, 204, 0.12), transparent 30rem),
    var(--bg);
}

.public-landing,.member-welcome{min-height:100vh;background:var(--bg);color:var(--text)}
.public-landing{padding:1.2rem clamp(1rem,5vw,5rem) 4rem;overflow:hidden;background:radial-gradient(circle at 78% 28%,rgba(0,122,204,.12),transparent 25rem),var(--bg)}
.public-nav{display:flex;justify-content:space-between;align-items:center;max-width:1240px;margin:auto}.landing-grid{max-width:1240px;margin:clamp(3rem,9vw,8rem) auto 7rem;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:clamp(2rem,6vw,6rem)}.landing-copy h1{font-size:clamp(2.8rem,6vw,5.7rem);line-height:.98;letter-spacing:-.06em;margin:.6rem 0 1.4rem}.landing-copy h1 span{color:var(--accent)}.landing-copy>p{max-width:620px;font-size:1.13rem;line-height:1.7}.landing-proof{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:2rem}.landing-proof span{border:1px solid var(--line);padding:.45rem .7rem;border-radius:999px;font-size:.78rem}.landing-demo{border:1px solid var(--line);border-radius:22px;background:rgba(17,28,47,.8);box-shadow:0 30px 80px rgba(0,0,0,.22);overflow:hidden}.demo-top{display:flex;justify-content:space-between;align-items:center;padding:.8rem 1rem;border-bottom:1px solid var(--line)}.demo-live{font-size:.75rem;color:var(--muted)}.demo-live i{display:inline-block;width:.5rem;height:.5rem;background:#4ec9b0;border-radius:50%;margin-right:.35rem;box-shadow:0 0 0 0 rgba(78,201,176,.5);animation:livePing 2s infinite}.demo-stage{padding:1.2rem;min-height:390px;display:grid;grid-template-rows:145px auto 28px auto;position:relative;overflow:hidden}.demo-orbit{position:relative;display:grid;place-items:center}.demo-orbit>img{width:115px;border-radius:50%;position:relative;z-index:2;animation:landingFloat 5s ease-in-out infinite;filter:drop-shadow(0 0 24px rgba(0,122,204,.28))}.landing-ring{position:absolute;border:1px solid rgba(0,122,204,.45);border-radius:50%;animation:spin 16s linear infinite}.ring-a{width:142px;height:142px}.ring-b{width:105px;height:105px;animation-direction:reverse}.demo-signal,.demo-result{position:relative;z-index:2;border:1px solid var(--line);border-radius:13px;padding:.85rem;display:flex;gap:.7rem;background:var(--panel)}.demo-signal small,.demo-result small{display:block;color:var(--muted);font-size:.7rem;margin-bottom:.25rem}.demo-signal b{font-size:.82rem;line-height:1.35}.signal-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(0,122,204,.17);color:var(--accent);font-weight:900;flex:none}.demo-arrow{text-align:center;color:var(--accent);font-size:1.2rem;animation:arrowBounce 1.6s ease-in-out infinite}.demo-result{display:block;border-color:rgba(0,122,204,.45);background:rgba(0,122,204,.08)}.demo-result p{font-size:.86rem;line-height:1.45;margin:.25rem 0 .7rem}.demo-result div{display:flex;gap:.4rem;flex-wrap:wrap}.demo-result span{font-size:.65rem;padding:.25rem .45rem;border-radius:99px;background:var(--panel);color:var(--muted)}.demo-tabs{display:flex;gap:.4rem;padding:.85rem;border-top:1px solid var(--line);overflow:auto}.demo-tabs button{white-space:nowrap;border:0;background:transparent;color:var(--muted);padding:.4rem .55rem;border-radius:7px;font-size:.72rem;cursor:pointer}.demo-tabs button.active{background:rgba(0,122,204,.18);color:var(--text)}.demo-changing .demo-signal,.demo-changing .demo-result{animation:demoEnter .42s ease both}.landing-reason{max-width:1240px;margin:0 auto 6rem;display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,8vw,8rem);align-items:center}.landing-reason h2,.landing-close h2{font-size:clamp(2rem,3.8vw,3.5rem);line-height:1.05;letter-spacing:-.045em;margin:.5rem 0 1rem}.landing-reason>div>p{color:var(--muted);line-height:1.65}.reason-stack{display:grid;gap:.7rem}.reason-stack article{position:relative;padding:1.1rem 1.2rem 1rem 4rem;background:var(--panel);border:1px solid var(--line);border-radius:14px;transition:transform .2s,border-color .2s}.reason-stack article:hover{transform:translateX(6px);border-color:var(--accent)}.reason-stack span{position:absolute;left:1.15rem;top:1.15rem;color:var(--accent);font-weight:900}.reason-stack b{display:block;margin-bottom:.35rem}.reason-stack p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.5}.landing-close{max-width:1240px;margin:auto;padding:1.5rem;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1.2rem;border:1px solid var(--line);border-radius:20px;background:var(--panel)}.landing-close img{width:78px;border-radius:50%;animation:landingPulse 2.8s ease-in-out infinite}.landing-close h2{font-size:clamp(1.55rem,2.5vw,2.4rem);margin:.2rem 0}.landing-close p:last-of-type{margin:.35rem 0 0;color:var(--muted)}.member-welcome{display:grid;place-content:center;text-align:center;padding:2rem}.member-orb img{width:120px;border-radius:50%;animation:landingPulse 1.4s ease-in-out infinite}.member-welcome h1{margin:.6rem 0 1.2rem}.member-progress{width:min(340px,80vw);height:6px;background:var(--panel-2);border-radius:99px;overflow:hidden;margin:auto}.member-progress i{display:block;width:45%;height:100%;background:var(--accent);border-radius:inherit;animation:loadSweep .85s ease-in-out infinite}.member-welcome small{display:block;margin-top:1rem;color:var(--muted)}@keyframes landingFloat{50%{transform:translateY(-13px)}}@keyframes landingPulse{50%{transform:scale(1.06);filter:brightness(1.15)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes loadSweep{from{transform:translateX(-120%)}to{transform:translateX(260%)}}@keyframes arrowBounce{50%{transform:translateY(5px)}}@keyframes livePing{70%{box-shadow:0 0 0 7px rgba(78,201,176,0)}}@keyframes demoEnter{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){.landing-grid,.landing-reason{grid-template-columns:1fr;margin-top:3rem}.landing-demo{grid-row:1}.landing-reason{margin-top:0}.landing-close{grid-template-columns:auto 1fr}.landing-close .button{grid-column:1/-1;width:100%}}

.auth-card {
  width: min(720px, 100%);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 28, 47, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-brand {
  margin-bottom: 2rem;
}

.auth-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.auth-progress > span {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.25rem;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.auth-progress > span.active {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-progress small {
  font-size: 0.68rem;
  font-weight: 600;
}

.text-button {
  padding: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.link-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.project-card.selected {
  border-color: rgba(115, 224, 186, 0.6);
  box-shadow: inset 0 0 0 1px rgba(115, 224, 186, 0.12);
}

.publish-destinations {
  flex-basis: 100%;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding: 0.9rem;
  border: 1px solid rgba(115, 224, 186, 0.3);
  border-radius: 12px;
  background: rgba(115, 224, 186, 0.06);
}

.network-drafts {
  display: grid;
  gap: 0.8rem;
  margin: 0.9rem 0;
}

.network-draft {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.35);
}

.network-draft .draft-box {
  margin-top: 0.6rem;
}

.media-request {
  margin: 0.8rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(182, 162, 255, 0.35);
  border-radius: 12px;
  background: rgba(182, 162, 255, 0.08);
}

.media-request strong {
  color: var(--purple);
}

.media-request p {
  margin: 0.35rem 0 0.65rem;
}

.publish-dialog .setup-shell {
  width: min(720px, calc(100vw - 2rem));
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.publish-dialog textarea {
  min-height: 12rem;
  resize: vertical;
}

.publish-dialog .setup-body {
  min-height: 0;
  padding-bottom: 2rem;
}

.publish-dialog .setup-footer {
  position: sticky;
  bottom: 0;
  margin-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.customizer-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
}

.image-source-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.customizer-tab,
.image-source-tab {
  min-height: 42px;
  padding: 0.6rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.customizer-tab:hover,
.customizer-tab.active,
.image-source-tab:hover,
.image-source-tab.active {
  color: var(--text);
}

.customizer-tab.active {
  border-bottom-color: var(--accent);
}

.image-source-tab {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 9px;
}

.image-source-tab.active {
  border-color: rgba(0, 229, 255, 0.26);
  background: rgba(0, 122, 204, 0.16);
  color: var(--accent);
}

.customizer-panel {
  display: grid;
  gap: 0.8rem;
  min-height: 0;
  padding-top: 0.25rem;
}

.image-source-panel {
  display: grid;
  gap: 0.8rem;
}

#publish-download-image {
  justify-self: start;
}

.schedule-dialog {
  width: min(460px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.schedule-dialog::backdrop {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(4px);
}

.schedule-dialog-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.schedule-dialog-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.55fr);
  gap: 0.8rem;
}

.schedule-dialog .setup-footer {
  padding: 0;
  border: 0;
}

.preflight-summary {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.review-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.error-text,
.warning-text {
  margin: 0;
}

.error-text {
  color: var(--danger);
}

.warning-text {
  color: var(--warning);
}

.image-customizer {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.35);
}

.upload-dropzone {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px dashed rgba(115, 224, 186, 0.5);
  border-radius: 12px;
  cursor: pointer;
}

.upload-dropzone input {
  padding: 0.4rem 0;
}

.image-preview {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr);
  gap: 1rem;
  align-items: start;
}

.image-generator {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg);
}

.recommendation-intro {
  display: grid;
  gap: 1rem;
}

.pipeline-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.pipeline-steps span {
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.pipeline-steps i {
  width: 1.5rem;
  height: 1px;
  background: var(--line);
}

.suggestions-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(1180px, 100%);
  gap: 1rem;
  margin: 0 auto;
}

.suggestions-page > * {
  grid-column: 1;
  min-width: 0;
}

.suggestion-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0 0.35rem;
  border-bottom: 1px solid var(--line);
}

.suggestion-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.suggestion-tab strong {
  display: grid;
  min-width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.72rem;
}

.suggestion-tab:hover,
.suggestion-tab.active {
  color: var(--text);
}

.suggestion-tab.active {
  border-bottom-color: var(--accent);
}

.suggestion-tab.active strong {
  background: rgba(0, 229, 255, 0.13);
  color: var(--accent);
}

.suggestion-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

.suggestion-rail {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  max-height: min(720px, calc(100vh - 180px));
  overflow-y: auto;
  padding: 0.65rem;
  border-right: 1px solid var(--line);
  background: rgba(30, 30, 30, 0.72);
}

.suggestion-rail-item {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.suggestion-rail-item:hover {
  background: var(--panel-2);
}

.suggestion-rail-item.active {
  border-color: rgba(0, 229, 255, 0.32);
  background: rgba(0, 122, 204, 0.14);
  box-shadow: inset 3px 0 0 var(--accent);
}

.suggestion-rail-item .pill {
  justify-self: start;
}

.suggestion-rail-item strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.suggestion-rail-item small {
  color: var(--muted);
}

.suggestion-review {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.7rem);
}

.suggestion-review > .item {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.suggestion-actionbar {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.suggestion-primary-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.suggestion-primary-action .button {
  min-width: min(100%, 220px);
}

.suggestion-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.queued-posts-panel {
  grid-column: auto;
}

.queued-posts-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.queued-posts-panel summary::-webkit-details-marker {
  display: none;
}

.queued-posts-panel summary > span:first-child {
  display: grid;
  gap: 0.2rem;
}

.queued-posts-panel[open] summary > span:last-child {
  transform: rotate(180deg);
}

.schedule-list {
  display: grid;
  gap: 0.65rem;
}

.scheduled-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.scheduled-item strong {
  margin-left: 0.55rem;
}

.scheduled-item p {
  margin: 0.4rem 0 0.15rem;
}

.schedule-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.schedule-control input {
  width: auto;
  min-width: 13.5rem;
}

.scheduled-posts {
  display: grid;
  gap: 0.8rem;
}

.scheduled-post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.scheduled-post-card .draft-box {
  margin: 0.7rem 0;
}

.schedule-actions {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-width: 230px;
}

.compact-form {
  max-width: 720px;
  margin-top: 1rem;
}

.schedule-plan {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.schedule-plan-list {
  display: grid;
  gap: 0.75rem;
}

.schedule-plan-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  cursor: pointer;
}

.schedule-plan-item input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}

.schedule-plan-item > span {
  display: grid;
  gap: 0.35rem;
}

.schedule-plan-item small {
  color: var(--accent);
  font-weight: 700;
}

.schedule-plan-item .draft-box {
  margin-top: 0.35rem;
}

.active-project {
  align-self: center;
  color: var(--accent);
  font-weight: 800;
}

.compact-hero {
  min-height: auto;
}

.local-badge,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
}

.pill[data-status="ready"],
.pill[data-status="approved_copy_ready"] {
  border-color: rgba(115, 224, 186, 0.4);
  background: rgba(115, 224, 186, 0.08);
  color: var(--accent);
}

.pill[data-status="drafted"] {
  border-color: rgba(182, 162, 255, 0.4);
  background: rgba(182, 162, 255, 0.08);
  color: var(--purple);
}

.pill[data-status="dismissed"],
.pill[data-status="disabled"] {
  opacity: 0.7;
}

.view {
  max-width: 1180px;
  margin: 0 auto;
}

.hero,
.card,
.metric,
.loading-card,
.empty {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  overflow: hidden;
}

.hero-copy {
  max-width: 680px;
}

.hero h2 {
  font-size: clamp(1.65rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
}

.hero p {
  color: var(--muted);
  line-height: 1.65;
}

.miluma-avatar {
  width: clamp(150px, 18vw, 220px);
  height: clamp(150px, 18vw, 220px);
  align-self: center;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 38%;
  object-fit: cover;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28),
    0 0 0 10px rgba(197, 134, 255, 0.04);
  transform: rotate(2deg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  grid-column: span 3;
  padding: 1.1rem;
}

.metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.85rem;
}

.metric span,
.muted {
  color: var(--muted);
}

.card {
  grid-column: span 6;
  padding: 1.2rem;
}

.card.full {
  grid-column: 1 / -1;
}

.card.third {
  grid-column: span 4;
}

.card-header,
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 18, 31, 0.45);
}

.item p {
  color: var(--muted);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #071014;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu.button {
  display: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button.compact {
  min-height: 36px;
  padding: 0.45rem 0.72rem;
}

.button.secondary {
  background: var(--purple);
  color: #100719;
}

.button.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.button.danger {
  background: rgba(255, 126, 138, 0.15);
  color: #ffb2b9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-bar {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.filter-button {
  white-space: nowrap;
}

.filter-button.active {
  border-color: var(--accent);
  background: rgba(115, 224, 186, 0.1);
}

.composer {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.composer[hidden] {
  display: none;
}

.draft-box {
  margin: 0.8rem 0;
  padding: 1rem;
  border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: rgba(182, 162, 255, 0.07);
  color: var(--text);
  white-space: pre-wrap;
}

.checklist {
  display: grid;
  gap: 0.65rem;
}

.check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.check:last-child {
  border-bottom: 0;
}

.check-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.check.done .check-mark {
  border-color: var(--accent);
  background: rgba(115, 224, 186, 0.12);
  color: var(--accent);
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #007acc, var(--accent));
}

.billing-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.membership-status {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.membership-status.active {
  border-color: var(--accent);
  background: rgba(115, 224, 186, 0.12);
  color: var(--accent);
}

.usage-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.usage-meter-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.usage-meter-heading div {
  display: grid;
  gap: 0.15rem;
}

.usage-meter-heading span,
.usage-meter small {
  color: var(--muted);
}

.usage-progress {
  height: 11px;
  margin-bottom: 0.35rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-card.selected {
  border-color: var(--accent);
}

.plan-card .button {
  margin-top: auto;
}

.plan-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 750;
}

.plan-price small {
  margin-left: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.plain-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.button.disabled {
  cursor: default;
  opacity: 0.65;
}

.reveal {
  animation: reveal-up 0.65s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.delay-one {
  animation-delay: 0.08s;
}

.delay-two {
  animation-delay: 0.16s;
}

.delay-three {
  animation-delay: 0.24s;
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 rgba(109, 232, 208, 0.45);
  animation: live-pulse 2s infinite;
}

.talk-experience,
.upsell-experience,
.billing-page,
.usage-page,
.admin-page {
  display: grid;
  gap: 1.2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.talk-welcome,
.upsell-hero,
.page-hero-clean,
.admin-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(190, 167, 255, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 15%, rgba(0, 122, 204, 0.14), transparent 20rem),
    linear-gradient(145deg, rgba(42, 42, 45, 0.98), rgba(30, 30, 30, 0.98));
  box-shadow: 0 28px 90px rgba(5, 2, 14, 0.32);
}

.talk-welcome,
.chat-stage {
  width: 100%;
  max-width: none;
}

.talk-welcome-copy,
.upsell-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.talk-welcome h2,
.upsell-hero h2,
.page-hero-clean h2,
.admin-hero h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.talk-welcome h2 span,
.upsell-hero h2 span {
  color: var(--accent);
}

.talk-welcome p,
.upsell-copy > p,
.page-hero-clean p,
.admin-hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.talk-context,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.talk-context span,
.trust-row span {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.talk-context a,
.billing-facts a {
  color: var(--mint);
  text-decoration: none;
}

.avatar-stage {
  position: relative;
  width: clamp(190px, 24vw, 310px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.avatar-stage img,
.upsell-avatar-wrap > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 38%;
  object-fit: cover;
  box-shadow: 0 35px 90px rgba(255, 100, 127, 0.25);
  animation: avatar-float 5s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: -12%;
  z-index: 1;
  border: 1px solid rgba(190, 167, 255, 0.24);
  border-radius: 50%;
  animation: orbit-spin 14s linear infinite;
}

.orbit::before {
  position: absolute;
  top: 12%;
  left: 10%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  content: "";
}

.orbit-two {
  inset: -22%;
  animation-direction: reverse;
  animation-duration: 19s;
}

.setup-ribbon,
.billing-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.billing-manage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.billing-manage p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.billing-manage .button {
  flex: none;
}

.setup-ribbon > div:first-child {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}

.setup-ribbon > div:first-child strong {
  color: var(--mint);
  font-size: 1.35rem;
}

.setup-ribbon > div:first-child span {
  color: var(--muted);
  font-size: 0.8rem;
}

.setup-ribbon-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.setup-ribbon-items a {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.setup-ribbon-items a.done {
  border-color: rgba(109, 232, 208, 0.25);
  color: var(--mint);
}

.chat-stage {
  min-height: 520px;
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: 26px;
}

.chat-stage-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.chat-stage-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.private-note {
  align-self: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.upsell-hero {
  min-height: min(680px, calc(100vh - 150px));
}

.upsell-copy .actions {
  margin-top: 1.5rem;
}

.upsell-avatar-wrap {
  position: relative;
  width: clamp(260px, 34vw, 470px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.avatar-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.48);
  filter: blur(55px);
  opacity: 0.35;
  animation: glow-breathe 4s ease-in-out infinite;
}

.spark {
  position: absolute;
  z-index: 4;
  color: var(--warning);
  font-size: 1.8rem;
  animation: sparkle 3s ease-in-out infinite;
}

.spark-one { top: 5%; right: 5%; }
.spark-two { top: 28%; left: -4%; animation-delay: 0.7s; color: var(--mint); }
.spark-three { right: 2%; bottom: 20%; animation-delay: 1.4s; color: var(--purple); }

.floating-note {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 0.15rem;
  max-width: 210px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(20, 15, 34, 0.88);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  animation: note-float 5s ease-in-out infinite;
}

.floating-note span {
  color: var(--muted);
  font-size: 0.72rem;
}

.note-one { bottom: 7%; left: -10%; }
.note-two { top: 14%; right: -10%; animation-delay: 1.2s; }

.experience-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.experience-flow > div {
  display: grid;
  gap: 0.25rem;
}

.experience-flow > div > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.experience-flow small {
  color: var(--muted);
}

.experience-flow i {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, #007acc, var(--accent));
}

.pricing-showcase {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.section-heading {
  max-width: 680px;
}

.section-heading h2 {
  margin: 0.35rem 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
}

.plan-grid-new {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card-new {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(37, 26, 57, 0.94), rgba(20, 15, 34, 0.96));
  transition: transform 180ms ease, border-color 180ms ease;
}

.plan-card-new:hover {
  border-color: rgba(255, 132, 151, 0.45);
  transform: translateY(-5px);
}

.plan-card-new.featured,
.plan-card-new.selected {
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(255, 100, 127, 0.14);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: #240b15;
  font-size: 0.7rem;
  font-weight: 900;
}

.plan-card-new h3 {
  margin: 0.3rem 0 0;
  font-size: 1.35rem;
}

.plan-features {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.plan-features li {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  gap: 0.25rem;
  align-items: baseline;
}

.plan-features span {
  color: var(--mint);
}

.plan-card-new .button,
.plan-change-note {
  margin-top: auto;
}

.plan-change-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.billing-page,
.usage-page,
.admin-page {
  gap: 1.4rem;
}

.page-hero-clean h2,
.admin-hero h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.billing-status-card,
.admin-live {
  display: flex;
  min-width: 210px;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.billing-status-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 132, 151, 0.12);
  color: var(--accent);
}

.billing-status-card.active > span {
  background: rgba(109, 232, 208, 0.12);
  color: var(--mint);
}

.billing-status-card div,
.admin-live div {
  display: grid;
  gap: 0.2rem;
}

.billing-status-card small,
.admin-live small {
  color: var(--muted);
}

.billing-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.billing-facts div {
  display: grid;
  gap: 0.2rem;
  padding: 0.25rem 0.7rem;
  border-right: 1px solid var(--line);
}

.billing-facts div:last-child {
  border: 0;
}

.billing-facts small {
  color: var(--muted);
}

.billing-assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.billing-assurance span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
}

.billing-assurance p {
  color: var(--muted);
  line-height: 1.55;
}

.usage-empty {
  min-height: calc(100vh - 180px);
  place-items: center;
  align-content: center;
  text-align: center;
}

.usage-empty img {
  width: 150px;
  border-radius: 38%;
  box-shadow: 0 25px 70px rgba(255, 100, 127, 0.25);
  animation: avatar-float 5s ease-in-out infinite;
}

.usage-empty h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.05em;
}

.usage-empty > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.65;
}

.usage-summary-grid,
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.usage-summary-grid article,
.admin-stat-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.usage-summary-grid span,
.admin-stat-grid span,
.usage-summary-grid small,
.admin-stat-grid small {
  color: var(--muted);
}

.usage-summary-grid strong,
.admin-stat-grid strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.usage-detail-grid,
.admin-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.usage-panel,
.admin-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.network-usage-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.usage-footnote {
  color: var(--muted);
  text-align: center;
}

.admin-stat-grid {
  grid-template-columns: repeat(5, 1fr);
}

.admin-stat-grid article:nth-child(3) {
  background: linear-gradient(145deg, rgba(0, 122, 204, 0.14), var(--panel));
}

.impression-chart {
  display: flex;
  height: 240px;
  gap: 0.55rem;
  align-items: end;
  margin-top: 1rem;
  padding-top: 1.5rem;
}

.impression-chart > div {
  position: relative;
  display: grid;
  min-width: 20px;
  height: 100%;
  flex: 1;
  grid-template-rows: 1fr auto;
  align-items: end;
  text-align: center;
}

.impression-chart > div > span {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent), #007acc);
}

.impression-chart small {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.impression-chart strong {
  position: absolute;
  top: -1.2rem;
  right: 0;
  left: 0;
  font-size: 0.65rem;
}

.route-bars {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.route-bars > div > span {
  display: flex;
  justify-content: space-between;
}

.route-bars small {
  color: var(--muted);
}

.route-bars i {
  display: block;
  height: 8px;
  margin-top: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.route-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #007acc, var(--accent));
}

.admin-users {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.admin-user {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(130px, 0.6fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-user.suspended {
  opacity: 0.64;
  border-color: rgba(255, 126, 138, 0.45);
}

.admin-user-identity {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-user-identity > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #007acc;
  color: #220b18;
  font-weight: 900;
}

.admin-user-identity div,
.admin-user-plan {
  display: grid;
  gap: 0.15rem;
}

.admin-user-identity small,
.admin-user-plan small,
.admin-user-usage small {
  color: var(--muted);
}

.admin-user-usage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.admin-user-usage span {
  display: grid;
  padding: 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.admin-user-controls {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.admin-user-controls input {
  min-width: 200px;
}

.billing-ledger {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.billing-ledger > div {
  display: grid;
  grid-template-columns: 100px 110px minmax(180px, 1fr) 110px minmax(160px, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.billing-ledger small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes avatar-float {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.28; transform: scale(0.94); }
  50% { opacity: 0.48; transform: scale(1.05); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(18deg); }
}

@keyframes note-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 232, 208, 0.45); }
  65% { box-shadow: 0 0 0 8px rgba(109, 232, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 232, 208, 0); }
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-prompts button {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.quick-prompts button:hover {
  border-color: var(--accent);
  color: var(--text);
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--field-bg);
  color: var(--text);
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(115, 224, 186, 0.35);
  outline-offset: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.service {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 0;
}

.service > span:last-child {
  margin-left: auto;
}

.chat {
  display: grid;
  min-height: 430px;
  grid-template-rows: 1fr auto;
  gap: 1rem;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 58vh;
  overflow: auto;
}

.chat-message {
  display: grid;
  gap: 0.35rem;
}

.chat-message.user {
  justify-items: end;
}

.chat-message.assistant {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: end;
  justify-items: start;
}

.chat-message.assistant .chat-message-actions {
  grid-column: 2;
}

.suggestion-toolbox {
  display: grid;
  grid-column: 2;
  gap: 0.7rem;
  width: min(760px, 100%);
  margin-top: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(190, 167, 255, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 122, 204, 0.12), transparent 15rem),
    rgba(24, 18, 40, 0.92);
}

.suggestion-toolbox-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.suggestion-toolbox-heading > div {
  display: grid;
  gap: 0.15rem;
}

.suggestion-toolbox-heading > div > span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.suggestion-toolbox-list {
  display: grid;
  gap: 0.45rem;
}

.suggestion-toolbox-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.suggestion-toolbox-list article.added {
  border-color: rgba(109, 232, 208, 0.24);
}

.toolbox-number {
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 900;
}

.suggestion-toolbox-list article > div {
  display: grid;
  gap: 0.25rem;
}

.suggestion-toolbox-list p,
.suggestion-toolbox-list small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.suggestion-toolbox-list small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.75rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  grid-column: 1;
  grid-row: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  object-fit: cover;
}

.chat-message.assistant .bubble {
  grid-column: 2;
}

/* Skeleton loaders — progressive placeholders instead of a full-page spinner. */
.skeleton {
  padding: 0.5rem;
}
.skeleton-block,
.skeleton-line,
.skeleton-card {
  border-radius: 14px;
  background: linear-gradient(
    100deg,
    var(--panel-2) 30%,
    color-mix(in srgb, var(--panel-2) 60%, var(--text) 8%) 50%,
    var(--panel-2) 70%
  );
  background-size: 220% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
}
.skeleton-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.2rem;
}
.skeleton-side,
.skeleton-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.skeleton-block {
  height: 150px;
}
.skeleton-block.tall {
  height: 360px;
}
.skeleton-line {
  height: 54px;
}
.skeleton-center {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.skeleton-card {
  width: min(420px, 90%);
  height: 320px;
  border-radius: 24px;
}
@keyframes skeletonShimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -180% 0;
  }
}
@media (max-width: 900px) {
  .skeleton-grid,
  .skeleton-split {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-block,
  .skeleton-line,
  .skeleton-card {
    animation: none;
  }
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 1em;
}
.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .typing-dots i {
    animation: none;
  }
}

.chat-message-actions {
  display: flex;
  padding: 0 0.25rem;
}

.assistant-dock {
  position: fixed;
  z-index: 14;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  pointer-events: none;
}

.assistant-launcher,
.assistant-panel {
  pointer-events: auto;
}

.assistant-launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 190px;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  border: 1px solid rgba(0, 229, 255, 0.36);
  border-radius: 16px;
  background: rgba(37, 37, 38, 0.97);
  color: var(--text);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  text-align: left;
}

.assistant-launcher:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.assistant-launcher img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
}

.assistant-launcher span {
  display: grid;
  gap: 0.1rem;
}

.assistant-launcher small {
  color: var(--muted);
  font-size: 0.7rem;
}

.assistant-launcher i {
  position: absolute;
  top: 0.45rem;
  left: 2.65rem;
  width: 10px;
  height: 10px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(57, 255, 136, 0.7);
}

.assistant-dock.open .assistant-launcher span {
  display: none;
}

.assistant-dock.open .assistant-launcher {
  min-width: 56px;
  padding-right: 0.55rem;
}

.assistant-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(430px, calc(100vw - 2rem));
  height: min(680px, calc(100dvh - 7rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(37, 37, 38, 0.99);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform-origin: bottom right;
  animation: assistant-enter 160ms ease-out;
}

.assistant-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #2d2d30;
}

.assistant-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.assistant-identity img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
}

.assistant-identity div {
  display: grid;
  min-width: 0;
}

.assistant-identity small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-identity .live-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.3rem;
}

.assistant-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
}

.assistant-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.assistant-conversation {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  padding: 0.8rem;
}

.assistant-conversation .chat-log {
  min-height: 0;
  padding: 0 0.15rem 0.65rem;
}

.assistant-conversation .chat-message {
  max-width: 94%;
}

.assistant-conversation .quick-prompts {
  margin-bottom: 0.65rem;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.assistant-conversation #chat-form {
  flex-wrap: nowrap;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.assistant-conversation #chat-form input {
  min-width: 0;
}

.assistant-conversation .suggestion-toolbox {
  width: 100%;
  padding: 0.65rem;
}

.assistant-conversation .suggestion-toolbox-heading {
  align-items: flex-start;
  flex-direction: column;
}

.assistant-conversation .suggestion-toolbox-list article {
  grid-template-columns: 22px minmax(0, 1fr);
}

.assistant-conversation .suggestion-toolbox-list article > .button {
  grid-column: 2;
  justify-self: start;
}

@keyframes assistant-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

.bubble {
  max-width: 78%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bubble.user {
  align-self: flex-end;
  background: #2b4669;
}

.bubble.assistant {
  align-self: flex-start;
  background: rgba(255, 132, 151, 0.1);
  border: 1px solid rgba(255, 132, 151, 0.22);
}

.empty,
.loading-card {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast .toast-message {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.35;
}

.toast .toast-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  flex: none;
  color: #0b0717;
  background: var(--muted);
}

.toast[data-variant="success"] {
  border-left-color: var(--accent);
}
.toast[data-variant="success"] .toast-icon {
  background: var(--accent);
}
.toast[data-variant="error"] {
  border-left-color: var(--danger);
}
.toast[data-variant="error"] .toast-icon {
  background: var(--danger);
  color: #fff;
}
.toast[data-variant="info"] {
  border-left-color: var(--purple);
}
.toast[data-variant="info"] .toast-icon {
  background: var(--purple);
}

.toast .toast-action {
  flex: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.toast .toast-action:hover {
  background: var(--accent);
  color: #0b0717;
}

.toast .toast-close {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
}
.toast .toast-close:hover {
  color: var(--text);
}

.setup-fallback {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.setup-fallback > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
}
.setup-fallback[open] > summary {
  margin-bottom: 0.6rem;
}

.confirm-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
  max-width: 420px;
  width: calc(100vw - 2rem);
}
.confirm-dialog::backdrop {
  background: rgba(4, 2, 12, 0.62);
  backdrop-filter: blur(2px);
}
.confirm-shell {
  padding: 1.4rem;
}
.confirm-shell h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.confirm-shell #confirm-body {
  margin: 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}
.confirm-actions .button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.setup-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(760px, calc(100dvh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.setup-dialog::backdrop {
  background: rgba(2, 7, 14, 0.8);
  backdrop-filter: blur(5px);
}

.setup-shell {
  display: grid;
  height: min(760px, calc(100dvh - 2rem));
  max-height: inherit;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.setup-header,
.setup-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.setup-header h2 {
  margin-bottom: 0;
}

.setup-footer {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--panel);
}

.modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
}

.setup-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.8rem 1.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.setup-tab {
  min-width: 110px;
  padding: 0.65rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.setup-tab span,
.setup-tab strong {
  display: block;
}

.setup-tab span {
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
}

.setup-tab.active {
  border-color: var(--accent);
  background: rgba(115, 224, 186, 0.08);
  color: var(--text);
}

.setup-tab.complete {
  color: var(--accent);
}

.setup-body {
  padding: 1.35rem;
  overflow-y: auto;
}

.setup-body h3 {
  font-size: 1.25rem;
}

.setup-body p,
.setup-body li {
  color: var(--muted);
  line-height: 1.6;
}

.setup-body ol,
.setup-body ul {
  padding-left: 1.3rem;
}

.setup-callout {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(115, 224, 186, 0.3);
  border-radius: 12px;
  background: rgba(115, 224, 186, 0.07);
}

.setup-callout.warning {
  border-color: rgba(255, 203, 107, 0.35);
  background: rgba(255, 203, 107, 0.08);
}

.setup-result {
  margin: 0 1.5rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
}

.setup-result[data-status="success"] {
  border-color: rgba(115, 224, 186, 0.45);
  background: rgba(115, 224, 186, 0.08);
  color: var(--accent);
}

.setup-result[data-status="error"] {
  border-color: rgba(255, 126, 138, 0.45);
  background: rgba(255, 126, 138, 0.08);
  color: var(--danger);
}

.setup-review {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.setup-review > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.setup-review span {
  color: var(--muted);
}

.setup-progress {
  color: var(--muted);
  font-size: 0.8rem;
}

.adapter-launchers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.adapter-launcher {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 18, 31, 0.45);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.adapter-launcher:hover {
  border-color: var(--accent);
}

.adapter-launcher small {
  color: var(--muted);
}

/* VS Code dark surfaces with restrained neon accents. */
.auth-wrap {
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 122, 204, 0.12), transparent 30rem),
    var(--bg);
}

.auth-card,
.item,
.network-draft,
.image-customizer,
.adapter-launcher,
.setup-ribbon,
.billing-facts,
.floating-note,
.plan-card-new,
.billing-status-card,
.admin-live,
.suggestion-toolbox,
.suggestion-toolbox-list article,
.admin-user,
.admin-user-usage span,
.talk-context span,
.trust-row span {
  background: rgba(37, 37, 38, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.talk-welcome,
.upsell-hero,
.page-hero-clean,
.admin-hero {
  border-color: rgba(197, 134, 255, 0.22);
  background:
    radial-gradient(circle at 82% 15%, rgba(0, 229, 255, 0.11), transparent 20rem),
    linear-gradient(145deg, rgba(45, 45, 48, 0.99), rgba(30, 30, 30, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.media-request,
.subscription-callout,
.setup-callout,
.setup-tab.active {
  background: rgba(57, 255, 136, 0.07);
}

.publish-destinations,
.plan-card.selected,
.plan-card-new.featured,
.plan-card-new.selected {
  box-shadow: 0 14px 38px rgba(0, 229, 255, 0.08);
}

.bubble.user {
  background: #264f78;
  color: #fff;
}

.bubble.assistant {
  border-color: rgba(0, 229, 255, 0.24);
  background: rgba(0, 229, 255, 0.08);
}

.toast {
  background: #252526;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.popular-badge,
.admin-user-identity > span {
  color: #071014;
}

.sidebar-setup,
.setup-ribbon-items a {
  background: rgba(255, 255, 255, 0.025);
}

.setup-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.2;
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    width: min(310px, 86vw);
    height: 100dvh;
    padding: 1.2rem;
    border-right: 1px solid var(--line);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar nav {
    display: grid;
    overflow-y: auto;
  }

  .sidebar-foot {
    display: flex;
  }

  .mobile-menu,
  .mobile-close {
    display: inline-flex;
  }

  .mobile-menu.button {
    display: inline-flex;
  }

  .mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 1.35rem;
  }

  .nav-scrim.visible {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(2, 7, 14, 0.72);
  }

  main {
    padding: 0 1rem 3rem;
  }

  .metric,
  .card,
  .card.third {
    grid-column: span 6;
  }

  .adapter-launchers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid-new,
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .talk-welcome,
  .upsell-hero,
  .page-hero-clean,
  .admin-hero {
    align-items: flex-start;
  }

  .upsell-avatar-wrap {
    width: min(38vw, 330px);
  }

  .admin-user {
    grid-template-columns: 1fr 1fr;
  }

  .admin-user-usage {
    grid-column: 1 / -1;
  }

  .suggestion-workspace {
    grid-template-columns: 1fr;
  }

  .suggestion-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 42vw);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .suggestion-rail-item.active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }
}

@media (max-width: 620px) {
  .schedule-dialog-fields {
    grid-template-columns: 1fr;
  }

  .assistant-dock {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .assistant-panel {
    width: calc(100vw - 1.5rem);
    height: calc(100dvh - 5.75rem);
    border-radius: 17px;
  }

  .assistant-launcher {
    min-width: 56px;
    padding: 0.5rem;
    border-radius: 15px;
  }

  .assistant-launcher img {
    width: 42px;
    height: 42px;
  }

  .assistant-launcher span {
    display: none;
  }

  .assistant-launcher i {
    top: 0.35rem;
    left: 2.5rem;
  }

  .assistant-conversation {
    padding: 0.65rem;
  }

  .assistant-conversation #chat-form .button {
    min-width: auto;
    padding-inline: 0.75rem;
  }

  .recommendation-intro .card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .recommendation-intro #add-suggestion {
    width: 100%;
  }

  .pipeline-steps i {
    width: 0.75rem;
  }

  .suggestion-tabs {
    padding: 0;
  }

  .suggestion-tab {
    min-height: 42px;
    padding-inline: 0.65rem;
  }

  .suggestion-rail {
    grid-auto-columns: minmax(170px, 72vw);
  }

  .suggestion-review {
    padding: 1rem;
  }

  .suggestion-review .item-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .suggestion-primary-action .button,
  .publish-destinations .button {
    width: 100%;
  }

  .suggestion-secondary-actions .button {
    flex: 1 1 auto;
  }

  .scheduled-post-card {
    grid-template-columns: 1fr;
  }

  .schedule-actions {
    min-width: 0;
  }

  .topbar {
    min-height: 76px;
  }

  .topbar-title .eyebrow {
    display: none;
  }

  .topbar h1 {
    font-size: 1.35rem;
  }

  .local-badge {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .miluma-avatar {
    width: 84px;
    height: 84px;
    grid-row: 1;
  }

  .metric,
  .card,
  .card.third {
    grid-column: 1 / -1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .card-header,
  .item-header {
    align-items: stretch;
    flex-direction: column;
  }

  .card-header > .button {
    width: 100%;
  }

  .chat {
    min-height: calc(100dvh - 130px);
  }

  .bubble {
    max-width: 92%;
  }

  .check {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .check > .button {
    grid-column: 2;
    justify-self: start;
  }

  .setup-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .setup-tabs {
    grid-template-columns: repeat(4, 125px);
  }

  .setup-footer {
    position: sticky;
    bottom: 0;
  }

  .setup-progress {
    display: none;
  }

  .adapter-launchers {
    grid-template-columns: 1fr;
  }

  .talk-welcome,
  .upsell-hero,
  .page-hero-clean,
  .admin-hero {
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 22px;
  }

  .avatar-stage {
    width: 135px;
    align-self: center;
  }

  .upsell-avatar-wrap {
    width: min(88vw, 340px);
    align-self: center;
  }

  .floating-note {
    display: none;
  }

  .experience-flow {
    grid-template-columns: 1fr;
  }

  .experience-flow i {
    width: 1px;
    height: 20px;
    margin-left: 0.6rem;
  }

  .plan-grid-new,
  .usage-summary-grid,
  .usage-detail-grid,
  .billing-facts,
  .billing-assurance,
  .admin-stat-grid,
  .admin-chart-grid,
  .admin-user {
    grid-template-columns: 1fr;
  }

  .setup-ribbon,
  .chat-stage-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-facts div {
    padding: 0.7rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .billing-status-card,
  .admin-live {
    min-width: 0;
    width: 100%;
  }

  .admin-user-plan,
  .admin-user-usage {
    grid-column: auto;
  }

  .admin-user-controls {
    flex-direction: column;
  }

  .admin-user-controls label,
  .admin-user-controls input,
  .admin-user-controls select,
  .admin-user-controls button {
    width: 100%;
  }

  .billing-ledger > div {
    grid-template-columns: 1fr 1fr;
  }

  .suggestion-toolbox-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestion-toolbox-list article {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .suggestion-toolbox-list article > .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Public launch experience */
.public-landing {
  --ml-ink: #0b0717;
  --ml-ink-soft: #151027;
  --ml-card: rgba(24, 18, 43, 0.78);
  --ml-card-solid: #19132b;
  --ml-line: rgba(255, 255, 255, 0.12);
  --ml-text: #f8f4ee;
  --ml-muted: #aaa4b9;
  --ml-coral: #ff765f;
  --ml-purple: #b67cff;
  --ml-mint: #64f5cb;
  --ml-yellow: #ffd87a;
  position: relative;
  min-height: 100vh;
  overflow: clip;
  padding: 0;
  background:
    radial-gradient(circle at 72% 7%, rgba(182, 124, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 95% 38%, rgba(100, 245, 203, 0.07), transparent 26rem),
    var(--ml-ink);
  color: var(--ml-text);
  isolation: isolate;
}

.public-landing::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 48%);
  content: "";
}

.ml-ambient {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 1000px;
  overflow: hidden;
  pointer-events: none;
}

.ml-ambient::before,
.ml-ambient::after {
  position: absolute;
  border: 1px solid rgba(182, 124, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.ml-ambient::before {
  width: 680px;
  height: 680px;
  top: -280px;
  right: -190px;
}

.ml-ambient::after {
  width: 420px;
  height: 420px;
  top: -150px;
  right: -60px;
}

.ml-ambient i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ml-purple);
  box-shadow: 0 0 14px currentColor;
  animation: ml-twinkle 4s ease-in-out infinite;
}

.ml-ambient i:nth-child(1) { top: 9%; left: 8%; color: var(--ml-coral); }
.ml-ambient i:nth-child(2) { top: 18%; left: 46%; animation-delay: -1s; }
.ml-ambient i:nth-child(3) { top: 12%; right: 13%; width: 7px; height: 7px; color: var(--ml-mint); animation-delay: -2.2s; }
.ml-ambient i:nth-child(4) { top: 55%; left: 4%; color: var(--ml-yellow); animation-delay: -0.5s; }
.ml-ambient i:nth-child(5) { top: 73%; right: 7%; color: var(--ml-coral); animation-delay: -3s; }
.ml-ambient i:nth-child(6) { top: 89%; left: 52%; width: 6px; height: 6px; color: var(--ml-mint); animation-delay: -1.6s; }

.public-landing .public-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  max-width: 1480px;
  min-height: 82px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4.25rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ml-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-self: start;
  color: var(--ml-text);
  text-decoration: none;
}

.ml-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(182, 124, 255, 0.22);
}

.ml-brand span {
  display: grid;
  line-height: 1;
}

.ml-brand strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.ml-brand small {
  margin-top: 0.28rem;
  color: var(--ml-muted);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.ml-nav-links,
.ml-nav-actions {
  display: flex;
  align-items: center;
}

.ml-nav-links {
  gap: 0.25rem;
  justify-self: center;
}

.ml-nav-links a {
  padding: 0.55rem 0.8rem;
  color: var(--ml-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.ml-nav-links a:hover { color: var(--ml-text); }

.ml-nav-actions {
  gap: 0.5rem;
  justify-self: end;
}

.ml-link-button,
.ml-footer button {
  border: 0;
  background: transparent;
  color: var(--ml-text);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

.ml-link-button { padding: 0.7rem 0.8rem; }

.ml-button {
  display: inline-flex;
  min-height: 52px;
  gap: 1.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1rem 0.82rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--ml-text);
  color: #100b1e;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ml-button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--ml-ink);
  color: var(--ml-text);
}

.ml-button:hover {
  border-color: var(--ml-mint);
  box-shadow: 0 18px 48px rgba(100, 245, 203, 0.13);
  transform: translateY(-2px);
}

.ml-button-small {
  min-height: 42px;
  gap: 0.7rem;
  padding: 0.45rem 0.5rem 0.45rem 0.85rem;
  font-size: 0.78rem;
}

.ml-button-small span { width: 28px; height: 28px; }

.public-landing button:focus-visible,
.public-landing a:focus-visible {
  outline: 2px solid var(--ml-mint);
  outline-offset: 4px;
}

.ml-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(630px, 1.12fr);
  gap: clamp(2.25rem, 4.5vw, 5.5rem);
  align-items: center;
  width: min(1440px, 100%);
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vh, 8rem) clamp(1rem, 4vw, 4.25rem) 7rem;
}

.ml-hero-copy { position: relative; z-index: 2; }

.ml-kicker {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  color: var(--ml-mint);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.ml-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ml-mint);
  box-shadow: 0 0 0 0 rgba(100, 245, 203, 0.55);
  animation: ml-live 2s infinite;
}

.ml-hero h1 {
  max-width: 760px;
  margin: 1.1rem 0 0;
  font-size: clamp(3.4rem, 6.1vw, 7.35rem);
  font-weight: 880;
  letter-spacing: -0.072em;
  line-height: 0.86;
}

.ml-hero h1 em,
.ml-plans-heading h2 em {
  color: transparent;
  background: linear-gradient(104deg, var(--ml-coral) 8%, var(--ml-purple) 55%, var(--ml-mint));
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.ml-hero-promise {
  margin: 1.35rem 0 0;
  color: var(--ml-text);
  font-size: clamp(1.08rem, 1.6vw, 1.45rem);
  font-weight: 760;
  letter-spacing: -0.02em;
}

.ml-hero-intro {
  max-width: 590px;
  margin: 0.85rem 0 0;
  color: var(--ml-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.ml-hero-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.7rem;
}

.ml-text-action {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.8rem;
  border: 0;
  background: transparent;
  color: var(--ml-text);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 760;
}

.ml-text-action i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ml-line);
  border-radius: 50%;
  color: var(--ml-mint);
  font-size: 0.58rem;
  font-style: normal;
}

.public-landing .landing-proof {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
}

.public-landing .landing-proof span {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ml-muted);
  font-size: 0.68rem;
  font-weight: 720;
}

.public-landing .landing-proof i {
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(100, 245, 203, 0.12);
  color: var(--ml-mint);
  font-size: 0.58rem;
  font-style: normal;
}

.ml-story-engine {
  --mx: 0px;
  --my: 0px;
  position: relative;
  z-index: 2;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 44%, rgba(182, 124, 255, 0.15), transparent 17rem),
    rgba(13, 9, 26, 0.86);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
  transform: perspective(1200px) rotateY(-1deg) translate(var(--mx), var(--my));
  transition: transform 300ms ease;
}

.ml-story-engine::after {
  position: absolute;
  z-index: -1;
  inset: 10% 5% -8%;
  border-radius: 30px;
  background: linear-gradient(100deg, rgba(255, 118, 95, 0.18), rgba(182, 124, 255, 0.23), rgba(100, 245, 203, 0.13));
  filter: blur(42px);
  opacity: 0.7;
  content: "";
}

.ml-engine-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ml-line);
  color: var(--ml-muted);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.ml-engine-bar span:first-child { display: flex; gap: 0.4rem; align-items: center; color: var(--ml-text); }
.ml-engine-bar span:first-child i { width: 6px; height: 6px; border-radius: 50%; background: var(--ml-coral); box-shadow: 0 0 9px var(--ml-coral); }
.ml-engine-bar span:last-child { color: var(--ml-mint); }

.ml-engine-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) 105px minmax(0, 1.05fr);
  min-height: 440px;
  padding: 1.15rem;
}

.ml-source-column,
.ml-output-column {
  min-width: 0;
  padding-top: 0.15rem;
}

.ml-micro-label {
  color: #777085;
  font-size: 0.53rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ml-source-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.ml-source-tabs button {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--ml-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #827c91;
  cursor: pointer;
  font-size: 0.55rem;
  font-weight: 750;
}

.ml-source-tabs button span { color: var(--ml-muted); font-size: 0.85rem; font-weight: 900; }
.ml-source-tabs button:hover { border-color: rgba(182, 124, 255, 0.45); color: var(--ml-text); }
.ml-source-tabs button.active { border-color: rgba(100, 245, 203, 0.48); background: rgba(100, 245, 203, 0.08); color: var(--ml-text); }
.ml-source-tabs button.active span { color: var(--ml-mint); }

.ml-signal-card {
  min-height: 176px;
  margin-top: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--ml-line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.ml-signal-card header,
.ml-signal-card footer,
.ml-post-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ml-signal-card header span { color: var(--ml-purple); font-size: 0.61rem; font-weight: 800; }
.ml-signal-card time { color: #716a80; font-size: 0.47rem; font-weight: 800; }
.ml-signal-card p { margin: 1.1rem 0; color: #d5d0db; font-size: 0.79rem; line-height: 1.58; }
.ml-signal-card p strong { color: var(--ml-text); }
.ml-signal-card footer { padding-top: 0.65rem; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #756f80; font-size: 0.51rem; }

.ml-next-signal {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--ml-muted);
  cursor: pointer;
  font-size: 0.61rem;
  font-weight: 750;
  text-align: left;
}

.ml-next-signal span { float: right; color: var(--ml-mint); }

.ml-agent-core {
  position: relative;
  display: grid;
  gap: 0.8rem;
  place-content: center;
  place-items: center;
}

.ml-agent-core::before,
.ml-agent-core::after {
  position: absolute;
  top: 52%;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(182, 124, 255, 0.1), var(--ml-purple));
  content: "";
}

.ml-agent-core::before { left: 0; }
.ml-agent-core::after { right: 0; transform: rotate(180deg); }

.ml-core-radar {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
}

.ml-core-radar img { position: relative; z-index: 3; width: 52px; height: 52px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; box-shadow: 0 0 25px rgba(182, 124, 255, 0.35); }
.ml-core-radar i { position: absolute; border: 1px solid rgba(182, 124, 255, 0.3); border-radius: 50%; animation: ml-radar 2.7s ease-out infinite; }
.ml-core-radar i:nth-child(1) { inset: 14px; }
.ml-core-radar i:nth-child(2) { inset: 5px; animation-delay: -0.9s; }
.ml-core-radar i:nth-child(3) { inset: -5px; animation-delay: -1.8s; }
.ml-core-status { color: var(--ml-muted); font-size: 0.43rem; font-weight: 900; letter-spacing: 0.08em; white-space: nowrap; }
.ml-core-status i { display: inline-block; width: 5px; height: 5px; margin-right: 0.25rem; border-radius: 50%; background: var(--ml-mint); box-shadow: 0 0 8px var(--ml-mint); }

.ml-post-card {
  min-height: 273px;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(182, 124, 255, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.ml-post-card > header { display: flex; justify-content: space-between; align-items: flex-start; }
.ml-post-card > header > div { display: flex; gap: 0.5rem; align-items: center; }
.ml-post-card > header span:nth-child(2) { display: grid; line-height: 1.1; }
.ml-post-card > header strong { font-size: 0.64rem; }
.ml-post-card > header small { margin-top: 0.14rem; color: #777181; font-size: 0.5rem; }
.ml-post-card > header > b { color: var(--ml-muted); font-size: 0.52rem; letter-spacing: 0.08em; }
.ml-studio-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--ml-coral), var(--ml-purple)); color: #fff; font-size: 0.55rem; font-weight: 900; }
.ml-post-card > p { min-height: 96px; margin: 0.9rem 0 0.75rem; color: #e3dee7; font-size: 0.72rem; line-height: 1.48; }
.ml-media-idea { display: flex; gap: 0.65rem; align-items: center; padding: 0.68rem; border: 1px solid rgba(100, 245, 203, 0.17); border-radius: 8px; background: linear-gradient(110deg, rgba(255, 118, 95, 0.08), rgba(182, 124, 255, 0.12)); }
.ml-media-idea > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(100, 245, 203, 0.13); color: var(--ml-mint); font-size: 0.57rem; }
.ml-media-idea div { display: grid; }
.ml-media-idea small { color: #7d7688; font-size: 0.43rem; font-weight: 850; letter-spacing: 0.09em; }
.ml-media-idea strong { margin-top: 0.15rem; color: #d7d2dd; font-size: 0.58rem; }
.ml-post-card footer { margin-top: 0.75rem; color: #716a7d; font-size: 0.65rem; }
.ml-post-card footer small { margin-left: auto; font-size: 0.48rem; }
.ml-post-card footer span { margin-right: 0.7rem; }

.ml-approval-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  border: 1px solid rgba(100, 245, 203, 0.22);
  border-radius: 8px;
  background: rgba(100, 245, 203, 0.06);
}

.ml-approval-bar > span { color: #bdb7c7; font-size: 0.54rem; font-weight: 700; }
.ml-approval-bar > span i { display: inline-grid; width: 14px; height: 14px; margin-right: 0.28rem; place-items: center; border-radius: 50%; background: var(--ml-mint); color: var(--ml-ink); font-size: 0.45rem; font-style: normal; }
.ml-approval-bar button { padding: 0.4rem 0.55rem; border: 0; border-radius: 5px; background: var(--ml-mint); color: var(--ml-ink); font-size: 0.53rem; font-weight: 900; }
.ml-approval-bar button b { margin-left: 0.6rem; }
.ml-private-note { margin: 0.55rem 0 0; color: #6f687a; font-size: 0.49rem; text-align: center; }

.ml-engine-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border-top: 1px solid var(--ml-line);
  color: #635c6e;
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.ml-engine-progress span.active { color: var(--ml-mint); }
.ml-engine-progress i { height: 1px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ml-engine-progress i::after { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--ml-purple), var(--ml-mint)); content: ""; animation: ml-scan 2.6s ease-in-out infinite; }
.ml-story-engine.is-processing .ml-signal-card { animation: ml-card-in 420ms ease both; }
.ml-story-engine.is-processing .ml-post-card { animation: ml-card-in 520ms 160ms ease both; }

.ml-scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  border: 0;
  background: transparent;
  color: #6e6877;
  cursor: pointer;
  transform: translateX(-50%);
}

.ml-scroll-cue span { font-size: 0.48rem; font-weight: 900; letter-spacing: 0.15em; }
.ml-scroll-cue i { color: var(--ml-mint); font-style: normal; animation: ml-arrow 1.8s ease-in-out infinite; }

.ml-story-marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.ml-story-marquee div {
  display: flex;
  width: max-content;
  gap: 1.6rem;
  align-items: center;
  min-height: 52px;
  animation: ml-marquee 30s linear infinite;
}

.ml-story-marquee span { color: #8f889b; font-size: 0.59rem; font-weight: 900; letter-spacing: 0.17em; }
.ml-story-marquee i { color: var(--ml-coral); font-size: 0.62rem; font-style: normal; }

.ml-problem,
.ml-transformation,
.ml-control,
.ml-plans,
.ml-final-cta,
.ml-footer {
  width: min(1320px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin-inline: auto;
}

.ml-problem { padding: clamp(6rem, 12vw, 10rem) 0; }

.ml-section-heading { display: grid; grid-template-columns: 0.82fr 1.2fr 0.8fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.ml-section-heading h2,
.ml-transformation h2,
.ml-control-copy h2,
.ml-plans-heading h2,
.ml-final-cta h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}
.ml-section-heading > p:last-child { margin: 0; color: var(--ml-muted); font-size: 0.93rem; line-height: 1.7; }

.ml-moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: clamp(3rem, 6vw, 5.5rem); }
.ml-moment { position: relative; min-height: 285px; padding: 1.35rem; overflow: hidden; border: 1px solid var(--ml-line); border-radius: 13px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)); transition: border-color 180ms ease, transform 180ms ease; }
.ml-moment::after { position: absolute; width: 190px; height: 190px; right: -100px; bottom: -120px; border-radius: 50%; background: var(--ml-coral); filter: blur(50px); opacity: 0.08; content: ""; transition: opacity 180ms ease; }
.ml-moment:nth-child(2)::after { background: var(--ml-purple); }
.ml-moment:nth-child(3)::after { background: var(--ml-mint); }
.ml-moment:hover { border-color: rgba(182, 124, 255, 0.42); transform: translateY(-5px); }
.ml-moment:hover::after { opacity: 0.18; }
.ml-moment-number { position: absolute; top: 1.35rem; right: 1.35rem; color: #50495d; font-size: 0.55rem; font-weight: 900; }
.ml-moment-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 118, 95, 0.3); border-radius: 10px; background: rgba(255, 118, 95, 0.08); color: var(--ml-coral); font-weight: 900; }
.ml-moment:nth-child(2) .ml-moment-icon { border-color: rgba(182, 124, 255, 0.3); background: rgba(182, 124, 255, 0.08); color: var(--ml-purple); }
.ml-moment:nth-child(3) .ml-moment-icon { border-color: rgba(100, 245, 203, 0.3); background: rgba(100, 245, 203, 0.08); color: var(--ml-mint); }
.ml-moment p { max-width: 290px; margin: 3.2rem 0 0.6rem; color: #ddd8e1; font-size: 1.08rem; font-weight: 730; line-height: 1.4; }
.ml-moment small { color: #716a7c; font-size: 0.52rem; font-weight: 850; letter-spacing: 0.1em; }
.ml-moment b { position: absolute; right: 1.35rem; bottom: 1.2rem; color: var(--ml-mint); font-size: 0.56rem; text-transform: uppercase; }

.ml-transformation {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: clamp(6rem, 12vw, 11rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ml-transformation h2 { margin-top: 1rem; font-size: clamp(2.6rem, 4.5vw, 4.7rem); }
.ml-transformation h2 em { color: var(--ml-purple); font-style: normal; }
.ml-transformation-copy > p:not(.ml-kicker) { max-width: 520px; margin: 1.3rem 0 0; color: var(--ml-muted); line-height: 1.7; }
.ml-transformation ul { display: grid; gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; }
.ml-transformation li { display: grid; grid-template-columns: 34px 1fr; gap: 0.7rem; padding: 0.9rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ml-transformation li > span { color: var(--ml-mint); font-size: 0.56rem; font-weight: 900; }
.ml-transformation li div { display: grid; gap: 0.2rem; }
.ml-transformation li strong { font-size: 0.8rem; }
.ml-transformation li small { color: #827b8c; font-size: 0.68rem; line-height: 1.5; }

.ml-week-card { position: relative; padding: 1.2rem; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 17px; background: linear-gradient(145deg, rgba(31, 23, 52, 0.98), rgba(17, 12, 31, 0.98)); box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28); }
.ml-week-card::before { position: absolute; z-index: -1; inset: 12% -5% -8%; border-radius: 30px; background: rgba(182, 124, 255, 0.12); filter: blur(35px); content: ""; }
.ml-week-card > header,
.ml-week-card > footer { display: flex; justify-content: space-between; align-items: center; }
.ml-week-card > header { padding-bottom: 1rem; border-bottom: 1px solid var(--ml-line); font-size: 0.58rem; font-weight: 850; letter-spacing: 0.1em; }
.ml-week-card > header span { color: var(--ml-muted); }
.ml-week-card > header b { color: var(--ml-mint); }
.ml-week-timeline { position: relative; display: grid; gap: 0.7rem; padding: 1.2rem 0; }
.ml-week-timeline > i { position: absolute; top: 1.4rem; bottom: 1.4rem; left: 77px; width: 1px; background: linear-gradient(var(--ml-coral), var(--ml-purple), var(--ml-mint)); }
.ml-week-timeline article { position: relative; display: grid; grid-template-columns: 68px 1fr auto; gap: 1.2rem; align-items: center; min-height: 88px; padding: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.ml-week-timeline article::before { position: absolute; left: 72px; width: 9px; height: 9px; border: 3px solid var(--ml-card-solid); border-radius: 50%; background: var(--ml-coral); content: ""; transform: translateX(-50%); }
.ml-week-timeline article:nth-of-type(3)::before { background: var(--ml-purple); }
.ml-week-timeline article:nth-of-type(4)::before { background: var(--ml-mint); }
.ml-week-timeline time { display: grid; gap: 0.2rem; color: #7b7487; font-size: 0.55rem; font-weight: 900; }
.ml-week-timeline time b { color: var(--ml-text); font-size: 0.68rem; }
.ml-week-timeline article > div { display: grid; grid-template-columns: auto 1fr; gap: 0 0.65rem; align-items: center; }
.ml-week-timeline article p { margin: 0; font-size: 0.77rem; font-weight: 800; }
.ml-week-timeline article small { grid-column: 2; color: #777080; font-size: 0.57rem; }
.ml-network-badge { display: grid; grid-row: 1 / 3; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: rgba(255, 118, 95, 0.12); color: var(--ml-coral); font-size: 0.54rem; font-weight: 900; }
.ml-network-badge.purple { background: rgba(182, 124, 255, 0.12); color: var(--ml-purple); }
.ml-network-badge.mint { background: rgba(100, 245, 203, 0.12); color: var(--ml-mint); }
.ml-week-timeline article > strong { color: var(--ml-mint); font-size: 0.49rem; letter-spacing: 0.08em; }
.ml-week-card > footer { padding-top: 0.9rem; border-top: 1px solid var(--ml-line); }
.ml-week-card > footer > span { color: var(--ml-muted); font-size: 0.58rem; }
.ml-week-card > footer > span i { display: inline-block; width: 6px; height: 6px; margin-right: 0.35rem; border-radius: 50%; background: var(--ml-mint); box-shadow: 0 0 9px var(--ml-mint); }
.ml-week-card > footer button { border: 0; background: transparent; color: var(--ml-text); cursor: pointer; font-size: 0.62rem; font-weight: 800; }
.ml-week-card > footer button b { margin-left: 0.5rem; color: var(--ml-mint); }

.ml-control {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: 720px;
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ml-control-visual { position: relative; display: grid; min-height: 480px; place-items: center; }
.ml-control-visual::before { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(182, 124, 255, 0.14); filter: blur(70px); content: ""; }
.ml-permission-ring { position: relative; display: grid; width: min(380px, 70vw); aspect-ratio: 1; place-items: center; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; }
.ml-permission-ring::before { position: absolute; inset: 16%; border: 1px dashed rgba(182, 124, 255, 0.3); border-radius: 50%; content: ""; animation: spin 24s linear infinite; }
.ml-permission-ring img { position: relative; z-index: 2; width: 48%; border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 50%; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35); }
.ml-permission-ring > i { position: absolute; z-index: 3; width: 8px; height: 8px; border-radius: 50%; background: var(--ml-mint); box-shadow: 0 0 12px var(--ml-mint); }
.ml-permission-ring > i:nth-child(1) { top: 14%; left: 24%; }
.ml-permission-ring > i:nth-child(2) { right: 9%; bottom: 34%; background: var(--ml-purple); box-shadow: 0 0 12px var(--ml-purple); }
.ml-permission-ring > i:nth-child(3) { bottom: 10%; left: 35%; background: var(--ml-coral); box-shadow: 0 0 12px var(--ml-coral); }
.ml-permission-note { position: absolute; z-index: 4; padding: 0.65rem 0.8rem; border: 1px solid var(--ml-line); border-radius: 8px; background: rgba(20, 14, 36, 0.92); color: #b9b3c2; font-size: 0.62rem; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); backdrop-filter: blur(14px); }
.ml-permission-note b { display: inline-grid; width: 18px; height: 18px; margin-right: 0.35rem; place-items: center; border-radius: 50%; background: rgba(100, 245, 203, 0.12); color: var(--ml-mint); }
.ml-permission-note.note-a { top: 13%; left: 1%; animation: ml-float 5s ease-in-out infinite; }
.ml-permission-note.note-b { top: 41%; right: 0; animation: ml-float 5s -1.6s ease-in-out infinite; }
.ml-permission-note.note-b b { background: rgba(255, 118, 95, 0.12); color: var(--ml-coral); }
.ml-permission-note.note-c { bottom: 10%; left: 8%; animation: ml-float 5s -3.2s ease-in-out infinite; }
.ml-control-copy h2 { margin-top: 1rem; font-size: clamp(2.6rem, 4.5vw, 4.8rem); }
.ml-control-copy > p:not(.ml-kicker) { max-width: 530px; margin: 1.3rem 0 0; color: var(--ml-muted); line-height: 1.75; }
.ml-trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-top: 2rem; }
.ml-trust-list span { padding: 0.75rem; border: 1px solid var(--ml-line); border-radius: 8px; color: #aaa4b4; font-size: 0.67rem; font-weight: 700; }
.ml-trust-list i { display: inline-grid; width: 18px; height: 18px; margin-right: 0.35rem; place-items: center; border-radius: 50%; background: rgba(100, 245, 203, 0.1); color: var(--ml-mint); font-size: 0.58rem; font-style: normal; }

.ml-plans {
  padding: clamp(6rem, 12vw, 10rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ml-plans-heading { max-width: 990px; margin: 0 auto; text-align: center; }
.ml-plans-heading .ml-kicker { justify-content: center; }
.ml-plans-heading h2 { margin-top: 1rem; }
.ml-plans-heading > p:last-child { max-width: 700px; margin: 1.4rem auto 0; color: var(--ml-muted); line-height: 1.7; }
.ml-plan-explorer { margin-top: 4rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 17px; background: linear-gradient(145deg, rgba(29, 21, 48, 0.98), rgba(14, 10, 27, 0.98)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3); }
.ml-plan-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.ml-plan-tabs button { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 0.35rem; align-items: baseline; padding: 1.25rem 1.4rem; border: 0; border-right: 1px solid var(--ml-line); border-bottom: 1px solid var(--ml-line); background: rgba(255, 255, 255, 0.015); color: #7e7789; cursor: pointer; text-align: left; }
.ml-plan-tabs button:last-child { border-right: 0; }
.ml-plan-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: linear-gradient(90deg, var(--ml-coral), var(--ml-purple), var(--ml-mint)); opacity: 0; content: ""; }
.ml-plan-tabs button.active { background: rgba(182, 124, 255, 0.08); color: var(--ml-text); }
.ml-plan-tabs button.active::after { opacity: 1; }
.ml-plan-tabs span { font-size: 0.61rem; font-weight: 900; letter-spacing: 0.1em; }
.ml-plan-tabs b { font-size: 1.45rem; }
.ml-plan-tabs small { font-size: 0.55rem; }
.ml-plan-tabs i { position: absolute; top: -11px; left: 50%; padding: 0.28rem 0.55rem; border-radius: 99px; background: var(--ml-mint); color: var(--ml-ink); font-size: 0.45rem; font-style: normal; font-weight: 950; letter-spacing: 0.08em; transform: translateX(-50%); }
.ml-plan-detail { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; min-height: 360px; padding: clamp(2rem, 5vw, 4.5rem); }
.ml-plan-detail h3 { max-width: 740px; margin: 0.7rem 0 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -0.055em; }
.ml-plan-detail > div:first-child > p { color: var(--ml-muted); }
.ml-capacity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin-top: 2rem; }
.ml-capacity > span { display: grid; gap: 0.15rem; padding: 0.85rem; border: 1px solid var(--ml-line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.ml-capacity b { color: var(--ml-mint); font-size: 1.2rem; }
.ml-capacity small { color: #80798b; font-size: 0.55rem; line-height: 1.35; }
.ml-plan-cta { display: grid; gap: 1rem; justify-items: center; width: 270px; text-align: center; }
.ml-capacity-orbit { position: relative; display: grid; width: 150px; height: 150px; place-content: center; place-items: center; border: 1px solid rgba(182, 124, 255, 0.25); border-radius: 50%; }
.ml-capacity-orbit::before { position: absolute; inset: 13%; border: 1px dashed rgba(100, 245, 203, 0.26); border-radius: 50%; content: ""; animation: spin 12s linear infinite; }
.ml-capacity-orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ml-coral); box-shadow: 0 0 10px var(--ml-coral); }
.ml-capacity-orbit i:first-child { top: 17px; right: 32px; }
.ml-capacity-orbit i:nth-child(2) { bottom: 21px; left: 24px; background: var(--ml-mint); box-shadow: 0 0 10px var(--ml-mint); }
.ml-capacity-orbit strong { font-size: 2rem; letter-spacing: -0.06em; }
.ml-capacity-orbit span { color: #716a7d; font-size: 0.45rem; font-weight: 900; letter-spacing: 0.1em; line-height: 1.35; }
.ml-plan-cta .ml-button { width: 100%; }
.ml-plan-cta > small { color: #746d7e; font-size: 0.54rem; line-height: 1.5; }
.ml-plan-detail.is-changing > div { animation: ml-card-in 380ms ease both; }

.ml-final-cta { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 2.2rem; align-items: center; margin-top: 2rem; margin-bottom: 7rem; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; background: radial-gradient(circle at 16% 50%, rgba(182, 124, 255, 0.22), transparent 18rem), linear-gradient(120deg, rgba(32, 23, 54, 0.98), rgba(15, 11, 28, 0.98)); }
.ml-final-cta::after { position: absolute; width: 500px; height: 500px; top: -360px; right: -100px; border: 1px solid rgba(100, 245, 203, 0.12); border-radius: 50%; content: ""; }
.ml-final-avatar { position: relative; width: 125px; }
.ml-final-avatar i { position: absolute; inset: 10%; border-radius: 50%; background: var(--ml-purple); filter: blur(35px); opacity: 0.45; }
.ml-final-avatar img { position: relative; width: 100%; border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 50%; }
.ml-final-cta h2 { margin-top: 0.7rem; font-size: clamp(2rem, 4vw, 4.2rem); }
.ml-final-cta p:last-child { margin: 0.7rem 0 0; color: var(--ml-muted); }
.ml-final-cta .ml-button { position: relative; z-index: 2; }

.ml-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; min-height: 100px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ml-footer p { color: #6f6879; font-size: 0.65rem; }
.ml-footer > div { display: flex; gap: 1rem; justify-self: end; }
.ml-footer a,
.ml-footer button { color: #777080; font-size: 0.63rem; text-decoration: none; }
.ml-footer button { padding: 0; }
.ml-footer a:hover,
.ml-footer button:hover { color: var(--ml-text); }

.ml-reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.ml-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes ml-twinkle { 50% { opacity: 0.22; transform: scale(0.65); } }
@keyframes ml-live { 70% { box-shadow: 0 0 0 8px rgba(100, 245, 203, 0); } }
@keyframes ml-radar { 0% { opacity: 0.15; transform: scale(0.72); } 65% { opacity: 0.55; } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes ml-scan { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes ml-card-in { from { opacity: 0.35; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes ml-arrow { 50% { transform: translateY(6px); } }
@keyframes ml-marquee { to { transform: translateX(-50%); } }
@keyframes ml-float { 50% { transform: translateY(-9px); } }

@media (max-width: 1180px) {
  .ml-hero { grid-template-columns: 1fr; max-width: 900px; padding-top: 5.5rem; }
  .ml-hero-copy { text-align: center; }
  .ml-hero-copy .ml-kicker,
  .ml-hero-actions,
  .public-landing .landing-proof { justify-content: center; }
  .ml-hero-intro { margin-inline: auto; }
  .ml-hero h1 { margin-inline: auto; font-size: clamp(4rem, 9vw, 7rem); }
  .ml-story-engine { transform: translate(var(--mx), var(--my)); }
  .ml-scroll-cue { display: none; }
  .ml-section-heading { grid-template-columns: 1fr 1.3fr; }
  .ml-section-heading > p:last-child { grid-column: 2; }
  .ml-plan-detail { gap: 2rem; }
  .ml-final-cta { grid-template-columns: auto 1fr; }
  .ml-final-cta .ml-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 860px) {
  .public-landing .public-nav { grid-template-columns: 1fr auto; min-height: 72px; }
  .ml-nav-links { display: none; }
  .ml-hero { min-height: auto; padding-bottom: 5rem; }
  .ml-engine-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ml-agent-core { min-height: 90px; }
  .ml-agent-core::before,
  .ml-agent-core::after { top: 50%; width: calc(50% - 58px); }
  .ml-agent-core::before { left: 0; }
  .ml-agent-core::after { right: 0; }
  .ml-core-radar { width: 68px; height: 68px; }
  .ml-engine-progress { display: none; }
  .ml-section-heading,
  .ml-transformation,
  .ml-control { grid-template-columns: 1fr; }
  .ml-section-heading > p:last-child { grid-column: auto; }
  .ml-moment-grid { grid-template-columns: 1fr; }
  .ml-moment { min-height: 235px; }
  .ml-transformation { gap: 4rem; }
  .ml-control-visual { grid-row: 2; }
  .ml-plan-tabs button { grid-template-columns: 1fr; }
  .ml-plan-tabs small { display: none; }
  .ml-plan-tabs i { white-space: nowrap; }
  .ml-plan-detail { grid-template-columns: 1fr; }
  .ml-plan-cta { width: 100%; }
  .ml-plan-cta .ml-button { max-width: 360px; }
  .ml-final-cta { grid-template-columns: 1fr; text-align: center; }
  .ml-final-avatar { margin: auto; }
  .ml-final-cta .ml-kicker { justify-content: center; }
  .ml-final-cta .ml-button { grid-column: auto; justify-self: center; }
  .ml-footer { grid-template-columns: 1fr auto; }
  .ml-footer > p { display: none; }
}

@media (max-width: 560px) {
  .public-landing .public-nav { padding-inline: 0.85rem; }
  .ml-nav-actions .ml-link-button { display: none; }
  .ml-brand img { width: 37px; height: 37px; }
  .ml-button-small { min-height: 38px; }
  .ml-hero { padding: 4.2rem 0.8rem 4rem; }
  .ml-hero h1 { font-size: clamp(3.25rem, 17vw, 5.2rem); }
  .ml-hero-promise { font-size: 1rem; }
  .ml-hero-actions { align-items: stretch; flex-direction: column; }
  .ml-text-action { justify-content: center; }
  .public-landing .landing-proof { gap: 0.6rem; }
  .public-landing .landing-proof span { font-size: 0.59rem; }
  .ml-engine-grid { padding: 0.8rem; }
  .ml-source-tabs button { align-content: center; justify-items: center; padding: 0.45rem 0.3rem; }
  .ml-story-engine { border-radius: 14px; }
  .ml-post-card > p { min-height: 0; }
  .ml-problem,
  .ml-transformation,
  .ml-control,
  .ml-plans,
  .ml-final-cta,
  .ml-footer { width: calc(100% - 1.6rem); }
  .ml-problem,
  .ml-transformation,
  .ml-control,
  .ml-plans { padding-block: 5rem; }
  .ml-section-heading h2,
  .ml-transformation h2,
  .ml-control-copy h2,
  .ml-plans-heading h2 { font-size: 2.6rem; }
  .ml-week-card { padding: 0.75rem; }
  .ml-week-timeline article { grid-template-columns: 52px 1fr; gap: 0.75rem; padding: 0.65rem; }
  .ml-week-timeline > i { left: 57px; }
  .ml-week-timeline article::before { left: 53px; }
  .ml-week-timeline article > strong { display: none; }
  .ml-week-card > footer { align-items: flex-start; flex-direction: column; gap: 0.7rem; }
  .ml-control-visual { min-height: 390px; }
  .ml-permission-note { font-size: 0.53rem; }
  .ml-permission-note.note-a { left: 0; }
  .ml-permission-note.note-b { right: 0; }
  .ml-permission-note.note-c { left: 0; }
  .ml-trust-list,
  .ml-capacity { grid-template-columns: 1fr; }
  .ml-plan-tabs button { padding: 1rem 0.65rem; }
  .ml-plan-tabs b { font-size: 1.15rem; }
  .ml-plan-tabs i { top: -9px; padding: 0.22rem 0.32rem; font-size: 0.37rem; }
  .ml-plan-detail { min-height: 0; padding: 1.5rem; }
  .ml-final-cta { margin-bottom: 4rem; padding: 2.2rem 1rem; }
  .ml-final-cta h2 { font-size: 2.45rem; }
  .ml-footer { min-height: 90px; }
  .ml-footer .ml-brand small { display: none; }
  .ml-footer > div { gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-reveal { opacity: 1; transform: none; }
  .ml-story-engine { transform: none; }
}

/* NEWUI — authenticated product system */
body:has(.shell:not(.auth-shell)) {
  background:
    radial-gradient(circle at 88% -5%, rgba(182, 124, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 16% 102%, rgba(100, 245, 203, 0.055), transparent 28rem),
    var(--bg);
  color: var(--text);
}

body:has(.shell:not(.auth-shell))::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
  content: "";
}

.shell:not(.auth-shell) {
  grid-template-columns: 284px minmax(0, 1fr);
}

.shell:not(.auth-shell) .sidebar {
  position: sticky;
  z-index: 8;
  gap: 1rem;
  padding: 1.3rem 1rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0, rgba(182, 124, 255, 0.12), transparent 15rem),
    rgba(10, 6, 20, 0.92);
  box-shadow: 22px 0 70px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(26px);
}

.shell:not(.auth-shell) .sidebar::after {
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 145px;
  background: linear-gradient(transparent, var(--purple), transparent);
  opacity: 0.55;
  content: "";
}

.shell:not(.auth-shell) .sidebar > .brand {
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.3rem 0.45rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shell:not(.auth-shell) .brand-avatar {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(182, 124, 255, 0.22);
}

.shell:not(.auth-shell) .brand strong {
  color: #f9f5ef;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
}

.shell:not(.auth-shell) .brand small {
  margin-top: 0.35rem;
  color: #777082;
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.shell:not(.auth-shell) .sidebar-project-switcher {
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.shell:not(.auth-shell) .sidebar-project-switcher > span {
  color: #716a7c;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.shell:not(.auth-shell) .sidebar-project-switcher select {
  min-height: 36px;
  padding-block: 0.45rem;
  border-color: rgba(100, 245, 203, 0.18);
  border-radius: 7px;
  background: rgba(100, 245, 203, 0.055);
  color: #e5e0e8;
  font-size: 0.72rem;
  font-weight: 750;
}

.shell:not(.auth-shell) #navigation {
  display: block;
  padding: 0 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 124, 255, 0.24) transparent;
}

.nav-section-label {
  margin: 1.1rem 0.65rem 0.38rem;
  color: #5f586b;
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.shell:not(.auth-shell) #navigation > a,
.shell:not(.auth-shell) .nav-group summary,
.shell:not(.auth-shell) .nav-group-links > a {
  display: flex;
  min-height: 42px;
  gap: 0.7rem;
  align-items: center;
  margin: 0.18rem 0;
  padding: 0.58rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8f899a;
  font-size: 0.73rem;
  font-weight: 720;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.shell:not(.auth-shell) #navigation > a:hover,
.shell:not(.auth-shell) .nav-group summary:hover,
.shell:not(.auth-shell) .nav-group-links > a:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #f5f0f7;
  transform: translateX(2px);
}

.shell:not(.auth-shell) #navigation a.active {
  border-color: rgba(100, 245, 203, 0.19);
  background:
    linear-gradient(90deg, rgba(100, 245, 203, 0.11), rgba(182, 124, 255, 0.055));
  color: #f9f5ef;
  box-shadow: inset 2px 0 0 var(--mint), 0 8px 22px rgba(0, 0, 0, 0.12);
}

.nav-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #827a8e;
  font-size: 0.72rem;
  font-weight: 900;
}

.shell:not(.auth-shell) #navigation a.active .nav-icon,
.shell:not(.auth-shell) .nav-group:has(a.active) summary .nav-icon {
  border-color: rgba(100, 245, 203, 0.24);
  background: rgba(100, 245, 203, 0.1);
  color: var(--mint);
  box-shadow: 0 0 16px rgba(100, 245, 203, 0.08);
}

.nav-summary-label {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.shell:not(.auth-shell) .nav-group:has(a.active) summary {
  background: rgba(182, 124, 255, 0.04);
  color: #e5e0e8;
}

.shell:not(.auth-shell) .nav-group-links {
  gap: 0.05rem;
  margin: 0.15rem 0 0.35rem 1.12rem;
  padding: 0 0 0 0.45rem;
  border-left-color: rgba(182, 124, 255, 0.15);
}

.shell:not(.auth-shell) .nav-group-links > a {
  min-height: 36px;
  font-size: 0.67rem;
}

.shell:not(.auth-shell) .nav-group-links .nav-icon {
  width: 23px;
  height: 23px;
  border: 0;
  background: transparent;
}

.shell:not(.auth-shell) .nav-group-links .install-app-cta {
  grid-template-columns: 27px 1fr;
  margin-top: 0.45rem;
  padding: 0.6rem;
  border-color: rgba(182, 124, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(182, 124, 255, 0.09), rgba(100, 245, 203, 0.035));
}

.shell:not(.auth-shell) .install-app-cta > span:first-child {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  color: white;
  font-size: 0.8rem;
}

.shell:not(.auth-shell) .nav-legal-links {
  margin-top: 0.55rem;
  border-color: rgba(255, 255, 255, 0.07);
}

.shell:not(.auth-shell) .sidebar-setup {
  gap: 0.6rem;
  margin-top: auto;
  padding: 0.75rem;
  border-color: rgba(182, 124, 255, 0.17);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(182, 124, 255, 0.1), transparent 8rem),
    rgba(255, 255, 255, 0.025);
}

.shell:not(.auth-shell) .sidebar-setup-heading {
  color: #787180;
  font-size: 0.53rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.shell:not(.auth-shell) .sidebar-setup-heading strong { color: var(--mint); }
.shell:not(.auth-shell) .sidebar-setup-list a { color: #817a8c; font-size: 0.62rem; }
.shell:not(.auth-shell) .sidebar-setup-list a.done span:first-child { color: var(--mint); }

.shell:not(.auth-shell) .progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.shell:not(.auth-shell) .progress > span {
  background: linear-gradient(90deg, var(--coral), var(--purple), var(--mint));
  box-shadow: 0 0 13px rgba(100, 245, 203, 0.2);
}

.shell:not(.auth-shell) .sidebar-foot {
  min-height: 34px;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #777080;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shell:not(.auth-shell) main {
  position: relative;
  padding: 0 clamp(1rem, 3vw, 3.5rem) 5rem;
}

.shell:not(.auth-shell) .topbar {
  z-index: 7;
  min-height: 82px;
  margin: 0 calc(clamp(1rem, 3vw, 3.5rem) * -1) 1.4rem;
  padding: 0 clamp(1rem, 3vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(11, 7, 23, 0.78);
  backdrop-filter: blur(24px);
}

.shell:not(.auth-shell) .topbar::after {
  position: absolute;
  right: clamp(1rem, 3vw, 3.5rem);
  bottom: -1px;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--mint));
  opacity: 0.35;
  content: "";
}

.shell:not(.auth-shell) .topbar-title {
  display: grid;
  gap: 0.12rem;
}

.shell:not(.auth-shell) .topbar-title .eyebrow {
  margin: 0;
  color: #696273;
  font-size: 0.49rem;
  letter-spacing: 0.15em;
}

.shell:not(.auth-shell) .topbar h1 {
  margin: 0;
  color: #f8f4ee;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.shell:not(.auth-shell) .top-actions { gap: 0.6rem; }

.topbar-agent-status,
.topbar-project {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #918a9c;
  font-size: 0.6rem;
  font-weight: 750;
}

.topbar-agent-status i {
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px var(--mint);
  animation: live-pulse 2s infinite;
}

.topbar-agent-status.attention i {
  background: var(--coral);
  box-shadow: 0 0 9px var(--coral);
}

.topbar-project {
  max-width: 180px;
  overflow: hidden;
  color: #cbc5d1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-project::before {
  margin-right: 0.45rem;
  color: var(--purple);
  content: "◆";
  font-size: 0.55rem;
}

.topbar-profile {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(182, 124, 255, 0.13);
}

.theme-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--accent);
}
.theme-toggle .theme-toggle-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: inset 0 0 0 2px var(--panel-2);
}
/* Sun in dark mode (tap for light), crescent moon in light mode (tap for dark). */
:root[data-theme="light"] .theme-toggle .theme-toggle-icon {
  background: transparent;
  box-shadow: inset -4px -1px 0 0 var(--text);
}

.shell:not(.auth-shell) .view {
  width: min(1380px, 100%);
  max-width: none;
}

.shell:not(.auth-shell) .eyebrow {
  color: var(--mint);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.shell:not(.auth-shell) h2,
.shell:not(.auth-shell) h3 {
  color: #f8f4ee;
  letter-spacing: -0.035em;
}

.shell:not(.auth-shell) .card,
.shell:not(.auth-shell) .metric,
.shell:not(.auth-shell) .hero,
.shell:not(.auth-shell) .loading-card,
.shell:not(.auth-shell) .empty,
.shell:not(.auth-shell) .usage-panel,
.shell:not(.auth-shell) .admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(182, 124, 255, 0.055), transparent 13rem),
    linear-gradient(145deg, rgba(27, 20, 45, 0.9), rgba(17, 12, 31, 0.92));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.025);
}

.shell:not(.auth-shell) .card,
.shell:not(.auth-shell) .metric { padding: 1.15rem; }

.shell:not(.auth-shell) .card:hover,
.shell:not(.auth-shell) .project-card:hover {
  border-color: rgba(182, 124, 255, 0.24);
}

.shell:not(.auth-shell) .button {
  min-height: 40px;
  gap: 0.7rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid rgba(100, 245, 203, 0.28);
  border-radius: 7px;
  background: var(--mint);
  color: #0d0a18;
  font-size: 0.69rem;
  font-weight: 880;
  box-shadow: 0 9px 22px rgba(100, 245, 203, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.shell:not(.auth-shell) .button:hover {
  background: #86f9d8;
  box-shadow: 0 13px 30px rgba(100, 245, 203, 0.14);
  transform: translateY(-1px);
}

.shell:not(.auth-shell) .button.ghost {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
  color: #ddd7e2;
  box-shadow: none;
}

.shell:not(.auth-shell) .button.ghost:hover {
  border-color: rgba(182, 124, 255, 0.35);
  background: rgba(182, 124, 255, 0.07);
}

.shell:not(.auth-shell) .button.secondary {
  border-color: rgba(182, 124, 255, 0.35);
  background: var(--purple);
  color: #100819;
}

.shell:not(.auth-shell) .button.danger {
  border-color: rgba(255, 118, 95, 0.3);
  background: rgba(255, 118, 95, 0.11);
  color: #ffb6aa;
}

.shell:not(.auth-shell) .button.compact {
  min-height: 32px;
  padding: 0.38rem 0.6rem;
  font-size: 0.61rem;
}

.shell:not(.auth-shell) .pill,
.shell:not(.auth-shell) .local-badge {
  min-height: 25px;
  padding: 0.25rem 0.52rem;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #8d8697;
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shell:not(.auth-shell) .pill[data-status="ready"],
.shell:not(.auth-shell) .pill[data-status="approved_copy_ready"] {
  border-color: rgba(100, 245, 203, 0.25);
  background: rgba(100, 245, 203, 0.08);
  color: var(--mint);
}

.shell:not(.auth-shell) .pill[data-status="drafted"] {
  border-color: rgba(182, 124, 255, 0.3);
  background: rgba(182, 124, 255, 0.08);
  color: var(--purple);
}

.shell:not(.auth-shell) input,
.shell:not(.auth-shell) textarea,
.shell:not(.auth-shell) select {
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(8, 5, 16, 0.58);
  color: #eee9f0;
  box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.1);
}

.shell:not(.auth-shell) input:focus,
.shell:not(.auth-shell) textarea:focus,
.shell:not(.auth-shell) select:focus {
  border-color: rgba(100, 245, 203, 0.5);
  outline: 2px solid rgba(100, 245, 203, 0.12);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(100, 245, 203, 0.035);
}

.shell:not(.auth-shell) label {
  color: #9c95a7;
  font-size: 0.69rem;
  font-weight: 750;
}

.shell:not(.auth-shell) .item {
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.shell:not(.auth-shell) .draft-box {
  border-left: 0;
  border: 1px solid rgba(182, 124, 255, 0.17);
  border-radius: 9px;
  background:
    linear-gradient(110deg, rgba(255, 118, 95, 0.04), rgba(182, 124, 255, 0.075));
  color: #ded9e3;
  font-size: 0.76rem;
  line-height: 1.65;
}

.shell:not(.auth-shell) .talk-experience,
.shell:not(.auth-shell) .upsell-experience,
.shell:not(.auth-shell) .billing-page,
.shell:not(.auth-shell) .usage-page,
.shell:not(.auth-shell) .admin-page {
  gap: 1rem;
  max-width: none;
}

.shell:not(.auth-shell) .talk-welcome,
.shell:not(.auth-shell) .upsell-hero,
.shell:not(.auth-shell) .page-hero-clean,
.shell:not(.auth-shell) .admin-hero {
  min-height: 390px;
  padding: clamp(1.7rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 43%, rgba(182, 124, 255, 0.14), transparent 20rem),
    radial-gradient(circle at 98% 4%, rgba(100, 245, 203, 0.07), transparent 13rem),
    linear-gradient(145deg, rgba(27, 20, 45, 0.97), rgba(13, 9, 26, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.035);
}

.shell:not(.auth-shell) .talk-welcome::after,
.shell:not(.auth-shell) .upsell-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
  content: "";
}

.shell:not(.auth-shell) .talk-welcome h2,
.shell:not(.auth-shell) .upsell-hero h2,
.shell:not(.auth-shell) .page-hero-clean h2,
.shell:not(.auth-shell) .admin-hero h2 {
  max-width: 780px;
  font-size: clamp(2.6rem, 5.6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.shell:not(.auth-shell) .talk-welcome h2 span,
.shell:not(.auth-shell) .upsell-hero h2 span {
  color: transparent;
  background: linear-gradient(100deg, var(--coral), var(--purple), var(--mint));
  background-clip: text;
  -webkit-background-clip: text;
}

.shell:not(.auth-shell) .talk-welcome p,
.shell:not(.auth-shell) .upsell-copy > p,
.shell:not(.auth-shell) .page-hero-clean p,
.shell:not(.auth-shell) .admin-hero p {
  max-width: 660px;
  color: #aaa4b9;
  font-size: 0.9rem;
  line-height: 1.72;
}

.shell:not(.auth-shell) .talk-context,
.shell:not(.auth-shell) .trust-row { gap: 0.6rem; }
.shell:not(.auth-shell) .talk-context span,
.shell:not(.auth-shell) .trust-row span {
  padding: 0.38rem 0.58rem;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #817a8c;
  font-size: 0.56rem;
  font-weight: 750;
}

.shell:not(.auth-shell) .avatar-stage {
  width: clamp(220px, 26vw, 360px);
}

.shell:not(.auth-shell) .avatar-stage::before {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--purple), var(--mint));
  filter: blur(55px);
  opacity: 0.28;
  content: "";
  animation: glow-breathe 4s ease-in-out infinite;
}

.shell:not(.auth-shell) .avatar-stage img,
.shell:not(.auth-shell) .upsell-avatar-wrap > img {
  border: 2px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36), 0 0 55px rgba(182, 124, 255, 0.14);
}

.shell:not(.auth-shell) .orbit {
  inset: -7%;
  border-color: rgba(182, 124, 255, 0.22);
}

.shell:not(.auth-shell) .orbit-two { inset: -17%; }
.avatar-scan { position: absolute; z-index: 4; top: -9%; right: 18%; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); animation: ml-twinkle 2.4s ease-in-out infinite; }

.avatar-signal {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(15, 10, 28, 0.85);
  color: #aaa4b5;
  font-size: 0.54rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.avatar-signal i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.avatar-signal.signal-one { top: 17%; left: -13%; animation: ml-float 5s ease-in-out infinite; }
.avatar-signal.signal-two { right: -12%; bottom: 17%; animation: ml-float 5s -2.5s ease-in-out infinite; }
.avatar-signal.signal-two i { background: var(--purple); box-shadow: 0 0 8px var(--purple); }

.newui-command-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.newui-signal-panel,
.newui-momentum-panel,
.newui-activity {
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(182, 124, 255, 0.06), transparent 13rem),
    linear-gradient(145deg, rgba(25, 18, 42, 0.91), rgba(15, 10, 28, 0.94));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
}

.newui-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.newui-panel-heading h3 { margin: 0.25rem 0 0; font-size: 1.05rem; }
.newui-panel-heading > a,
.newui-panel-heading > span { color: #777080; font-size: 0.57rem; font-weight: 750; text-decoration: none; }
.newui-panel-heading > a:hover { color: var(--mint); }

.newui-signal-list { display: grid; gap: 0.5rem; padding-top: 0.8rem; }
.newui-signal-list > a,
.newui-signal-list > button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: #e4dfe7;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.newui-signal-list > a:hover,
.newui-signal-list > button:hover {
  border-color: rgba(182, 124, 255, 0.25);
  background: rgba(182, 124, 255, 0.045);
  transform: translateX(2px);
}

.newui-source-icon { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(255, 118, 95, 0.22); border-radius: 8px; background: rgba(255, 118, 95, 0.07); color: var(--coral); font-weight: 900; }
.newui-source-icon.github { border-color: rgba(182, 124, 255, 0.23); background: rgba(182, 124, 255, 0.07); color: var(--purple); }
.newui-source-icon.note { border-color: rgba(100, 245, 203, 0.22); background: rgba(100, 245, 203, 0.07); color: var(--mint); }
.newui-signal-list div { display: grid; gap: 0.15rem; }
.newui-signal-list strong { font-size: 0.7rem; }
.newui-signal-list small { color: #797282; font-size: 0.57rem; }
.newui-signal-list b { color: #8a8394; font-size: 0.48rem; letter-spacing: 0.08em; }
.newui-signal-list b[data-status="ready"] { color: var(--mint); }
.newui-signal-list b[data-status="attention"] { color: var(--coral); }

.newui-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; padding-top: 0.8rem; }
.newui-metrics a { display: grid; min-height: 150px; align-content: space-between; padding: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.075); border-radius: 9px; background: rgba(255, 255, 255, 0.02); color: #f1edf3; text-decoration: none; }
.newui-metrics a:hover { border-color: rgba(100, 245, 203, 0.21); background: rgba(100, 245, 203, 0.03); }
.newui-metrics span { color: #8c8597; font-size: 0.57rem; }
.newui-metrics strong { color: transparent; background: linear-gradient(135deg, var(--coral), var(--purple), var(--mint)); background-clip: text; -webkit-background-clip: text; font-size: 2.5rem; letter-spacing: -0.07em; }
.newui-metrics small { color: #5f5869; font-size: 0.43rem; font-weight: 900; letter-spacing: 0.1em; }
.newui-capacity-line { display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: center; margin-top: 0.8rem; padding: 0.7rem; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; background: rgba(255, 255, 255, 0.018); }
.newui-capacity-line > span { color: #817a8c; font-size: 0.54rem; }
.newui-capacity-line > span i { display: inline-block; width: 6px; height: 6px; margin-right: 0.35rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.newui-capacity-line > div { height: 3px; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, 0.07); }
.newui-capacity-line > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--purple), var(--mint)); }
.newui-capacity-line > strong { color: var(--mint); font-size: 0.46rem; letter-spacing: 0.08em; }

.newui-activity { padding-bottom: 0.55rem; }
.newui-activity-list { display: grid; }
.newui-activity-list article { display: grid; grid-template-columns: 28px 10px 1fr; gap: 0.6rem; align-items: center; min-height: 58px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.newui-activity-list article > span { color: #5f586a; font-size: 0.48rem; font-weight: 900; }
.newui-activity-list article > i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 8px rgba(182, 124, 255, 0.35); }
.newui-activity-list article:nth-child(2n) > i { background: var(--coral); }
.newui-activity-list article div { display: grid; gap: 0.12rem; }
.newui-activity-list article strong { color: #cfc9d5; font-size: 0.65rem; }
.newui-activity-list article small { color: #70697b; font-size: 0.52rem; }

.shell:not(.auth-shell) .recommendation-intro {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 92% 0, rgba(100, 245, 203, 0.08), transparent 16rem),
    radial-gradient(circle at 70% 100%, rgba(182, 124, 255, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(27, 20, 45, 0.94), rgba(15, 10, 28, 0.96));
}

.shell:not(.auth-shell) .recommendation-intro h2 { font-size: clamp(1.8rem, 3.5vw, 3.3rem); }
.shell:not(.auth-shell) .pipeline-steps { padding-top: 0.2rem; }
.shell:not(.auth-shell) .pipeline-steps span { color: #827b8c; font-size: 0.6rem; }
.shell:not(.auth-shell) .pipeline-steps i { background: linear-gradient(90deg, rgba(182, 124, 255, 0.15), rgba(100, 245, 203, 0.45)); }

.shell:not(.auth-shell) .suggestion-tabs {
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.shell:not(.auth-shell) .suggestion-tab {
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.64rem;
}

.shell:not(.auth-shell) .suggestion-tab.active {
  border-color: rgba(100, 245, 203, 0.18);
  background: rgba(100, 245, 203, 0.07);
  color: #f4eff6;
}

.shell:not(.auth-shell) .suggestion-tab.active strong { background: var(--mint); color: #0b0717; }

.shell:not(.auth-shell) .suggestion-workspace {
  min-height: 520px;
  border-color: rgba(255, 255, 255, 0.105);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(23, 16, 39, 0.94), rgba(12, 8, 24, 0.96));
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.shell:not(.auth-shell) .suggestion-rail {
  gap: 0.45rem;
  padding: 0.7rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 5, 16, 0.32);
}

.shell:not(.auth-shell) .suggestion-rail-item {
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.69rem;
}

.shell:not(.auth-shell) .suggestion-rail-item:hover { background: rgba(255, 255, 255, 0.03); }
.shell:not(.auth-shell) .suggestion-rail-item.active { border-color: rgba(100, 245, 203, 0.2); background: linear-gradient(100deg, rgba(100, 245, 203, 0.08), rgba(182, 124, 255, 0.04)); box-shadow: inset 2px 0 0 var(--mint); }
.shell:not(.auth-shell) .suggestion-rail-item small { color: #696273; font-size: 0.55rem; }
.shell:not(.auth-shell) .suggestion-review { padding: clamp(1rem, 3vw, 2rem); }
.shell:not(.auth-shell) .network-draft { border-color: rgba(182, 124, 255, 0.17); border-radius: 9px; background: rgba(182, 124, 255, 0.035); }
.shell:not(.auth-shell) .suggestion-actionbar { border-color: rgba(255, 255, 255, 0.08); }

.shell:not(.auth-shell) .scheduled-post-card,
.shell:not(.auth-shell) .scheduled-item,
.shell:not(.auth-shell) .schedule-plan,
.shell:not(.auth-shell) .billing-facts,
.shell:not(.auth-shell) .billing-assurance,
.shell:not(.auth-shell) .usage-summary-grid > article,
.shell:not(.auth-shell) .admin-stat-grid > article,
.shell:not(.auth-shell) .plan-card-new {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0, rgba(182, 124, 255, 0.055), transparent 10rem),
    linear-gradient(145deg, rgba(26, 19, 43, 0.92), rgba(15, 10, 28, 0.94));
  box-shadow: 0 17px 42px rgba(0, 0, 0, 0.17);
}

.shell:not(.auth-shell) .plan-card-new {
  padding: 1.25rem;
  border-radius: 13px;
}

.shell:not(.auth-shell) .plan-card-new:hover { border-color: rgba(182, 124, 255, 0.32); transform: translateY(-4px); }
.shell:not(.auth-shell) .plan-card-new.featured,
.shell:not(.auth-shell) .plan-card-new.selected { border-color: rgba(100, 245, 203, 0.4); box-shadow: 0 24px 65px rgba(100, 245, 203, 0.07); }
.shell:not(.auth-shell) .popular-badge { background: linear-gradient(90deg, var(--coral), var(--purple), var(--mint)); color: #0b0717; }

.shell:not(.auth-shell) .usage-summary-grid article strong,
.shell:not(.auth-shell) .admin-stat-grid article strong,
.shell:not(.auth-shell) .metric strong {
  color: transparent;
  background: linear-gradient(120deg, var(--coral), var(--purple), var(--mint));
  background-clip: text;
  -webkit-background-clip: text;
}

.shell:not(.auth-shell) .impression-chart span,
.shell:not(.auth-shell) .route-bars b,
.shell:not(.auth-shell) .usage-progress span {
  background: linear-gradient(90deg, var(--coral), var(--purple), var(--mint));
}

.shell:not(.auth-shell) .setup-ribbon,
.shell:not(.auth-shell) .billing-facts,
.shell:not(.auth-shell) .billing-assurance { border-color: rgba(255, 255, 255, 0.09); }

.shell:not(.auth-shell) .assistant-launcher {
  border-color: rgba(182, 124, 255, 0.32);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 21, 50, 0.98), rgba(14, 9, 27, 0.98));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32), 0 0 35px rgba(182, 124, 255, 0.09);
}

.shell:not(.auth-shell) .assistant-launcher img { border-radius: 50%; }
.shell:not(.auth-shell) .assistant-launcher i { background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.shell:not(.auth-shell) .assistant-panel { border-color: rgba(182, 124, 255, 0.27); border-radius: 15px; background: linear-gradient(145deg, rgba(24, 17, 41, 0.99), rgba(10, 6, 20, 0.99)); box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42); }
.shell:not(.auth-shell) .bubble.assistant { border-color: rgba(182, 124, 255, 0.2); border-radius: 5px 13px 13px 13px; background: rgba(182, 124, 255, 0.07); }
.shell:not(.auth-shell) .bubble.user { border-radius: 13px 5px 13px 13px; background: linear-gradient(135deg, rgba(255, 118, 95, 0.24), rgba(182, 124, 255, 0.22)); }

.setup-dialog,
.schedule-dialog {
  border: 1px solid rgba(182, 124, 255, 0.24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(25, 18, 43, 0.99), rgba(10, 6, 20, 0.99));
  color: var(--text);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.55), 0 0 55px rgba(182, 124, 255, 0.07);
}

.setup-dialog::backdrop,
.schedule-dialog::backdrop { background: rgba(5, 2, 12, 0.78); backdrop-filter: blur(10px); }
.setup-header { border-color: rgba(255, 255, 255, 0.09); }
.setup-tabs { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.018); }
.setup-tab,
.setup-tabs button { color: #8a8395; }
.setup-tab.active,
.setup-tabs button.active { border-color: rgba(100, 245, 203, 0.25); background: rgba(100, 245, 203, 0.07); color: #f5f0f7; }
.setup-footer { border-color: rgba(255, 255, 255, 0.08); background: rgba(10, 6, 20, 0.82); backdrop-filter: blur(16px); }
.modal-close,
.assistant-close { border-color: rgba(255, 255, 255, 0.11); border-radius: 7px; background: rgba(255, 255, 255, 0.025); color: #aaa4b5; }

.toast {
  border: 1px solid rgba(100, 245, 203, 0.25);
  border-radius: 9px;
  background: rgba(18, 12, 32, 0.96);
  color: #e7e2ea;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42), 0 0 30px rgba(100, 245, 203, 0.06);
  backdrop-filter: blur(16px);
}

@media (max-width: 1080px) {
  .shell:not(.auth-shell) { grid-template-columns: 244px minmax(0, 1fr); }
  .newui-command-grid { grid-template-columns: 1fr; }
  .shell:not(.auth-shell) .talk-welcome h2,
  .shell:not(.auth-shell) .upsell-hero h2 { font-size: clamp(2.5rem, 6.5vw, 4.7rem); }
  .avatar-signal { display: none; }
}

@media (max-width: 900px) {
  .shell:not(.auth-shell) { grid-template-columns: 1fr; }
  .shell:not(.auth-shell) .sidebar { position: fixed; z-index: 20; width: min(310px, 88vw); }
  .shell:not(.auth-shell) .topbar { min-height: 72px; }
  .shell:not(.auth-shell) .mobile-menu.button { display: inline-flex; }
  .topbar-agent-status { display: none; }
  .shell:not(.auth-shell) .talk-welcome,
  .shell:not(.auth-shell) .upsell-hero,
  .shell:not(.auth-shell) .page-hero-clean,
  .shell:not(.auth-shell) .admin-hero { min-height: auto; }
}

@media (max-width: 640px) {
  .shell:not(.auth-shell) main { padding-inline: 0.75rem; }
  .shell:not(.auth-shell) .topbar { margin-inline: -0.75rem; padding-inline: 0.75rem; }
  .shell:not(.auth-shell) .topbar-title .eyebrow { display: none; }
  .shell:not(.auth-shell) .topbar h1 { font-size: 0.92rem; }
  .topbar-project { display: none; }
  .shell:not(.auth-shell) .talk-welcome,
  .shell:not(.auth-shell) .upsell-hero,
  .shell:not(.auth-shell) .page-hero-clean,
  .shell:not(.auth-shell) .admin-hero { padding: 1.2rem; border-radius: 12px; }
  .shell:not(.auth-shell) .talk-welcome h2,
  .shell:not(.auth-shell) .upsell-hero h2,
  .shell:not(.auth-shell) .page-hero-clean h2,
  .shell:not(.auth-shell) .admin-hero h2 { font-size: 2.55rem; }
  .newui-metrics { grid-template-columns: 1fr; }
  .newui-metrics a { min-height: 105px; }
  .newui-capacity-line { grid-template-columns: 1fr auto; }
  .newui-capacity-line > div { grid-column: 1 / -1; grid-row: 2; }
  .shell:not(.auth-shell) .avatar-stage { width: 170px; }
  .newui-panel-heading { align-items: stretch; flex-direction: column; }
  .newui-signal-list > a,
  .newui-signal-list > button { grid-template-columns: auto 1fr; }
  .newui-signal-list b { grid-column: 2; }
  .setup-dialog,
  .schedule-dialog { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-signal,
  .topbar-agent-status i { animation: none; }
}

/* NEWUI campaign calendar + agentic swipe review */
.shell:not(.auth-shell) .schedule-newui { gap: 1rem; }

.shell:not(.auth-shell) .schedule-intro {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  min-height: 210px;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  background:
    radial-gradient(circle at 84% 40%, rgba(100, 245, 203, 0.09), transparent 17rem),
    radial-gradient(circle at 60% 100%, rgba(182, 124, 255, 0.1), transparent 20rem),
    linear-gradient(145deg, rgba(28, 20, 47, 0.96), rgba(13, 9, 26, 0.98));
}

.shell:not(.auth-shell) .schedule-intro > div { max-width: 790px; }
.shell:not(.auth-shell) .schedule-intro h2 { margin: 0.45rem 0 0.7rem; font-size: clamp(2.2rem, 4.5vw, 4.5rem); line-height: 0.94; letter-spacing: -0.06em; }
.shell:not(.auth-shell) .schedule-intro p { max-width: 700px; }
.shell:not(.auth-shell) .campaign-calendar-panel { padding: 0; overflow: hidden; }

.campaign-calendar { min-width: 820px; }
.campaign-calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 92% 0, rgba(182, 124, 255, 0.08), transparent 14rem),
    rgba(255, 255, 255, 0.012);
}

.campaign-calendar-header h2 { margin: 0.25rem 0; font-size: clamp(1.6rem, 3vw, 2.7rem); }
.campaign-calendar-header p { margin: 0; color: #7f7889; font-size: 0.66rem; }
.calendar-controls { display: flex; gap: 0.35rem; }
.campaign-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); min-height: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(8, 5, 16, 0.32); }
.campaign-weekdays span { display: grid; place-items: center; border-right: 1px solid rgba(255, 255, 255, 0.055); color: #615a6b; font-size: 0.48rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.campaign-weekdays span:last-child { border-right: 0; }
.campaign-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.campaign-day { position: relative; min-height: 132px; padding: 0.55rem; border-right: 1px solid rgba(255, 255, 255, 0.055); border-bottom: 1px solid rgba(255, 255, 255, 0.055); background: rgba(255, 255, 255, 0.009); transition: background 160ms ease; }
.campaign-day:nth-child(7n) { border-right: 0; }
.campaign-day:hover { background: rgba(182, 124, 255, 0.025); }
.campaign-day.outside { background: rgba(0, 0, 0, 0.08); }
.campaign-day.today { background: radial-gradient(circle at 0 0, rgba(100, 245, 203, 0.075), transparent 7rem); }
.campaign-day.has-posts { background: radial-gradient(circle at 100% 100%, rgba(182, 124, 255, 0.055), transparent 8rem); }
.campaign-day-number { display: flex; justify-content: space-between; align-items: center; min-height: 21px; }
.campaign-day-number > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; color: #817a8b; font-size: 0.56rem; font-weight: 850; }
.campaign-day.today .campaign-day-number > span { background: var(--mint); color: #0b0717; box-shadow: 0 0 17px rgba(100, 245, 203, 0.18); }
.campaign-day-number small { color: var(--mint); font-size: 0.4rem; font-weight: 900; letter-spacing: 0.08em; }
.campaign-day-posts { display: grid; gap: 0.3rem; margin-top: 0.35rem; }
.campaign-event { display: grid; grid-template-columns: 25px minmax(0, 1fr) 5px; gap: 0.4rem; align-items: center; width: 100%; min-width: 0; padding: 0.32rem; border: 1px solid rgba(255, 255, 255, 0.075); border-radius: 6px; background: rgba(255, 255, 255, 0.025); color: #d9d4dd; cursor: default; text-align: left; }
.campaign-event > span:first-child { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; background: rgba(182, 124, 255, 0.1); color: var(--purple); font-size: 0.42rem; font-weight: 900; }
.campaign-event > span:nth-child(2) { display: grid; min-width: 0; }
.campaign-event strong { color: #bbb5c2; font-size: 0.48rem; }
.campaign-event small { overflow: hidden; color: #6e6778; font-size: 0.43rem; text-overflow: ellipsis; white-space: nowrap; }
.campaign-event > i,
.campaign-calendar > footer i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #7c7585; }
.campaign-event > i[data-status="scheduled"],
.campaign-calendar > footer i[data-status="scheduled"] { background: var(--purple); box-shadow: 0 0 7px rgba(182, 124, 255, 0.5); }
.campaign-event > i[data-status="processing"],
.campaign-calendar > footer i[data-status="processing"] { background: var(--yellow); }
.campaign-event > i[data-status="published"],
.campaign-calendar > footer i[data-status="published"] { background: var(--mint); }
.campaign-event > i[data-status="failed"],
.campaign-calendar > footer i[data-status="failed"] { background: var(--coral); }
.campaign-more { color: #746d7e; font-size: 0.44rem; }
.campaign-calendar > footer { display: flex; gap: 1rem; align-items: center; min-height: 42px; padding: 0 1rem; background: rgba(8, 5, 16, 0.3); color: #6e6778; font-size: 0.48rem; }
.campaign-calendar > footer span { display: flex; gap: 0.3rem; align-items: center; }

.shell:not(.auth-shell) .agent-swipe-panel {
  display: grid;
  grid-template-columns: minmax(480px, 1.28fr) minmax(260px, 0.72fr);
  min-height: 720px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 52%, rgba(182, 124, 255, 0.14), transparent 23rem),
    radial-gradient(circle at 2% 90%, rgba(100, 245, 203, 0.06), transparent 18rem),
    linear-gradient(145deg, rgba(26, 18, 44, 0.97), rgba(11, 7, 22, 0.99));
}

.agent-swipe-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-swipe-copy::after { position: absolute; top: 8%; left: -1px; width: 1px; height: 84%; background: linear-gradient(transparent, var(--purple), var(--mint), transparent); opacity: 0.35; content: ""; }
.agent-swipe-copy h2 { max-width: 520px; margin: 0.6rem 0 1rem; font-size: clamp(2.4rem, 4.5vw, 4.9rem); line-height: 0.92; letter-spacing: -0.065em; }
.agent-swipe-copy > p { max-width: 520px; color: #9b94a6; font-size: 0.8rem; line-height: 1.7; }
.swipe-legend { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: 0.7rem 0; border-block: 1px solid rgba(255, 255, 255, 0.07); color: #777080; font-size: 0.55rem; font-weight: 750; }
.swipe-legend i { color: var(--coral); font-style: normal; }
.swipe-legend span:last-child i { color: var(--mint); }
.swipe-legend kbd { display: inline-block; padding: 0.2rem 0.4rem; margin-left: 0.4rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 3px; font-family: monospace; font-size: 0.48rem; font-weight: 700; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.7); }
.swipe-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.swipe-action { display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; background: rgba(255, 255, 255, 0.025); cursor: pointer; font-size: 1.8rem; font-weight: 300; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; gap: 0.4rem; flex-direction: column; }
.swipe-action .key-hint { display: block; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.1em; opacity: 0.6; margin-top: -0.2rem; }
.swipe-action:hover .key-hint { opacity: 0.9; }
.swipe-action:disabled .key-hint { opacity: 0.15; }
.swipe-action.deny { border-color: rgba(255, 118, 95, 0.3); color: var(--coral); }
.swipe-action.approve { border-color: rgba(100, 245, 203, 0.3); color: var(--mint); }
.swipe-action.deny:hover { background: rgba(255, 118, 95, 0.09); box-shadow: 0 0 30px rgba(255, 118, 95, 0.1); transform: translateY(-3px) rotate(-6deg); }
.swipe-action.approve:hover { background: rgba(100, 245, 203, 0.09); box-shadow: 0 0 30px rgba(100, 245, 203, 0.1); transform: translateY(-3px) rotate(6deg); }
.swipe-action:disabled { cursor: default; filter: grayscale(1); opacity: 0.32; transform: none; }
.swipe-progress-copy { margin-top: 0.8rem; color: #696273; font-size: 0.52rem; text-align: center; }

.agent-swipe-stage { position: relative; display: grid; min-height: 720px; place-items: center; overflow: hidden; padding: 3rem 2rem; }
.agent-swipe-stage::before,
.agent-swipe-stage::after { position: absolute; border: 1px solid rgba(182, 124, 255, 0.11); border-radius: 50%; content: ""; }
.agent-swipe-stage::before { width: 550px; height: 550px; }
.agent-swipe-stage::after { width: 390px; height: 390px; border-color: rgba(100, 245, 203, 0.08); }
.agent-swipe-deck { position: relative; z-index: 2; width: min(500px, 100%); height: 580px; }
.agent-swipe-card { --swipe-progress: 0; position: absolute; inset: 0; display: flex; min-width: 0; flex-direction: column; padding: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 17px; background: linear-gradient(155deg, rgba(35, 25, 58, 0.99), rgba(16, 10, 30, 0.99)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.04); user-select: none; touch-action: pan-y; transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 250ms ease; }
.agent-swipe-card::before { position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--coral), var(--purple), var(--mint)); content: ""; }
.agent-swipe-card[data-swipe-index="0"] { z-index: 5; }
.agent-swipe-card[data-swipe-index="1"] { z-index: 4; transform: translateY(12px) scale(0.96) rotate(1.2deg); opacity: 0.74; }
.agent-swipe-card[data-swipe-index="2"] { z-index: 3; transform: translateY(23px) scale(0.92) rotate(-1deg); opacity: 0.45; }
.agent-swipe-card[data-swipe-index="3"] { z-index: 2; transform: translateY(32px) scale(0.88); opacity: 0.2; }
.agent-swipe-card.dragging { cursor: grabbing; transition: none; }
.agent-swipe-card > header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.agent-swipe-card > header > div { display: flex; min-width: 0; gap: 0.7rem; align-items: center; }
.agent-swipe-card > header > div > span:last-child { display: grid; min-width: 0; gap: 0.18rem; }
.agent-swipe-card > header small { color: var(--purple); font-size: 0.46rem; font-weight: 900; letter-spacing: 0.12em; }
.agent-swipe-card > header strong { overflow: hidden; color: #f4eff6; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.swipe-source-mark { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(182, 124, 255, 0.28); border-radius: 9px; background: rgba(182, 124, 255, 0.09); color: var(--purple); box-shadow: 0 0 18px rgba(182, 124, 255, 0.08); }
.swipe-card-body { display: grid; gap: 0.85rem; align-content: start; flex: 1; min-height: 0; padding: 1rem 0; }
.swipe-reason { display: -webkit-box; max-height: 4.7em; margin: 0; overflow: hidden; color: #a9a2b4; font-size: 0.72rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.swipe-image-generating { position: relative; display: grid; align-content: center; justify-items: center; min-height: 245px; padding: 2rem 1rem; overflow: hidden; border: 1px solid rgba(100, 245, 203, 0.2); border-radius: 11px; background: linear-gradient(130deg, rgba(100, 245, 203, 0.03), rgba(182, 124, 255, 0.05), rgba(100, 245, 203, 0.02)); gap: 1.2rem; }
.generating-throbber { position: relative; display: grid; width: 72px; height: 72px; place-items: center; }
.throbber-ring { position: absolute; inset: 0; border: 3px solid transparent; border-top-color: rgba(100, 245, 203, 0.6); border-right-color: rgba(182, 124, 255, 0.3); border-radius: 50%; animation: spin 2.4s linear infinite; }
.throbber-pulse { position: absolute; inset: 8px; border: 2px solid rgba(100, 245, 203, 0.4); border-radius: 50%; animation: pulse-scale 2.4s ease-in-out infinite; }
.throbber-icon { position: relative; z-index: 2; color: var(--mint); font-size: 1.8rem; font-weight: 500; }
.generating-progress { display: grid; gap: 0.6rem; width: 100%; max-width: 280px; }
.time-estimate { display: block; text-align: center; color: var(--mint); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em; }
.progress-bar { height: 4px; background: rgba(100, 245, 203, 0.15); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--mint), rgba(100, 245, 203, 0.6)); border-radius: 2px; width: 0%; transition: width 250ms linear; box-shadow: 0 0 12px rgba(100, 245, 203, 0.3); }
/* Past the time estimate we no longer know progress: show an indeterminate shimmer instead of a false 100%. */
.generating-progress.indeterminate .progress-fill { width: 100%; background: linear-gradient(90deg, rgba(100,245,203,0.15) 0%, var(--mint) 50%, rgba(100,245,203,0.15) 100%); background-size: 200% 100%; animation: progressShimmer 1.4s linear infinite; box-shadow: none; }
@keyframes progressShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.generating-throbber.small { width: 40px; height: 40px; }
.generating-throbber.small .throbber-icon { font-size: 1.1rem; }
.generating-progress .generating-progress-body { display: grid; gap: 0.4rem; }
.generating-progress .generating-progress-body p { margin: 0; color: var(--muted); font-size: 0.82rem; }
#publish-image-generation-help .generating-progress { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; max-width: none; }
@media (prefers-reduced-motion: reduce) { .generating-progress.indeterminate .progress-fill { animation: none; } }
.swipe-image-generating p { position: relative; z-index: 2; margin: 0; color: #a9a2b4; font-size: 0.79rem; font-weight: 500; }
.swipe-image-generating small { position: relative; z-index: 2; color: #70697a; font-size: 0.66rem; line-height: 1.5; }
.agent-swipe-card[data-generating="true"] { opacity: 0.65; }
.agent-swipe-card[data-generating="true"] .swipe-stamp { display: none; }
.swipe-draft { position: relative; display: grid; align-content: start; min-height: 245px; padding: 1rem; overflow: hidden; border: 1px solid rgba(182, 124, 255, 0.18); border-radius: 11px; background: linear-gradient(130deg, rgba(255, 118, 95, 0.05), rgba(182, 124, 255, 0.08), rgba(100, 245, 203, 0.035)); }
.swipe-draft::after { position: absolute; width: 160px; height: 160px; right: -95px; bottom: -95px; border-radius: 50%; background: var(--mint); filter: blur(48px); opacity: 0.08; content: ""; }
.swipe-draft small { color: #70697a; font-size: 0.44rem; font-weight: 900; letter-spacing: 0.12em; }
.swipe-draft p { display: -webkit-box; margin: 0.75rem 0 0; overflow: hidden; color: #ded9e3; font-size: 0.79rem; line-height: 1.64; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 9; }
.agent-swipe-card > footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #756e80; font-size: 0.5rem; }
.agent-swipe-card > footer i { display: inline-grid; width: 15px; height: 15px; margin-right: 0.3rem; place-items: center; border-radius: 50%; background: rgba(100, 245, 203, 0.1); color: var(--mint); font-size: 0.43rem; font-style: normal; }
.swipe-stamp { position: absolute; z-index: 8; top: 78px; padding: 0.35rem 0.6rem; border: 3px solid currentColor; border-radius: 8px; opacity: 0; font-size: 1.3rem; font-weight: 950; letter-spacing: 0.08em; pointer-events: none; }
.swipe-stamp.deny { right: 24px; color: var(--coral); transform: rotate(9deg); }
.swipe-stamp.approve { left: 24px; color: var(--mint); transform: rotate(-9deg); }
.agent-swipe-card.lean-left .swipe-stamp.deny,
.agent-swipe-card.lean-right .swipe-stamp.approve { opacity: var(--swipe-progress); }
.agent-swipe-card.swipe-out-left { opacity: 0; transform: translateX(-125%) rotate(-18deg) !important; }
.agent-swipe-card.swipe-out-right { opacity: 0; transform: translateX(125%) rotate(18deg) !important; }
.swipe-feedback { position: absolute; z-index: 7; bottom: 1rem; left: 50%; width: max-content; max-width: 90%; color: #777080; font-size: 0.55rem; text-align: center; transform: translateX(-50%); }
.swipe-empty { position: relative; z-index: 2; display: grid; max-width: 390px; justify-items: center; text-align: center; }
.swipe-empty-orbit { position: relative; display: grid; width: 110px; height: 110px; margin-bottom: 1.2rem; place-items: center; border: 1px solid rgba(182, 124, 255, 0.22); border-radius: 50%; }
.swipe-empty-orbit::before { position: absolute; inset: 14px; border: 1px dashed rgba(100, 245, 203, 0.2); border-radius: 50%; content: ""; animation: spin 16s linear infinite; }
.swipe-empty-orbit i { position: absolute; top: 7px; right: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.swipe-empty-orbit span { color: var(--purple); font-size: 1.55rem; }
.swipe-empty h3 { font-size: 1.5rem; }
.swipe-empty p { color: #888191; font-size: 0.74rem; line-height: 1.65; }
.swipe-empty-actions { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; margin-top: 0.45rem; }

@media (max-width: 1000px) {
  .shell:not(.auth-shell) .campaign-calendar-panel { overflow-x: auto; }
  .shell:not(.auth-shell) .agent-swipe-panel { grid-template-columns: 1fr; }
  .agent-swipe-copy { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .agent-swipe-copy::after { display: none; }
  .agent-swipe-copy h2 { max-width: 700px; }
}

@media (max-width: 640px) {
  .shell:not(.auth-shell) .schedule-intro { align-items: flex-start; flex-direction: column; min-height: auto; }
  .shell:not(.auth-shell) .schedule-intro h2 { font-size: 2.55rem; }
  .campaign-calendar-header { align-items: flex-start; flex-direction: column; }
  .agent-swipe-copy { padding: 1.25rem; }
  .agent-swipe-copy h2 { font-size: 2.7rem; }
  .agent-swipe-stage { min-height: 650px; padding: 2rem 0.75rem; }
  .agent-swipe-deck { width: min(90vw, 480px); height: 520px; }
  .agent-swipe-card { padding: 0.8rem; }
  .swipe-draft { min-height: 225px; }
  .swipe-legend { font-size: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-swipe-card { transition-duration: 0.01ms; }
  .swipe-empty-orbit::before { animation: none; }
}

/* Daily approval states + calendar day CRUD */
.campaign-day[role="button"] { cursor: pointer; outline: 0; }
.campaign-day[role="button"]:focus-visible { box-shadow: inset 0 0 0 2px var(--mint); }
.campaign-event { cursor: pointer; }
.campaign-event:hover { border-color: rgba(182, 124, 255, 0.3); background: rgba(182, 124, 255, 0.08); }

.swipe-generated-image {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(100, 245, 203, 0.18);
  border-radius: 11px;
  background: #090611;
}
.swipe-generated-image img { display: block; width: 100%; height: 220px; object-fit: cover; }
.swipe-generated-image::after { position: absolute; inset: auto 0 0; height: 44%; background: linear-gradient(transparent, rgba(7, 4, 13, 0.9)); content: ""; }
.swipe-generated-image span { position: absolute; z-index: 1; right: 0.65rem; bottom: 0.55rem; color: var(--mint); font-size: 0.43rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.swipe-draft.image-copy { min-height: 84px; padding: 0.7rem 0.8rem; }
.swipe-draft.image-copy p { margin-top: 0.35rem; font-size: 0.62rem; line-height: 1.45; -webkit-line-clamp: 3; }
.swipe-image-retry { display: grid; min-height: 270px; padding: 1.4rem; align-content: center; justify-items: center; border: 1px solid rgba(255, 118, 95, 0.2); border-radius: 11px; background: radial-gradient(circle at 50% 20%, rgba(255, 118, 95, 0.08), transparent 11rem); text-align: center; }
.swipe-image-retry > span { display: grid; width: 52px; height: 52px; margin-bottom: 1rem; place-items: center; border: 1px solid rgba(255, 118, 95, 0.35); border-radius: 50%; color: var(--coral); font-size: 1.4rem; }
.swipe-image-retry strong { color: #f4eff6; font-size: 1.05rem; }
.swipe-image-retry p { max-width: 320px; margin: 0.5rem 0; color: #a39cae; font-size: 0.65rem; line-height: 1.55; }
.swipe-image-retry small { color: #777080; font-size: 0.5rem; }
.swipe-empty.working .swipe-empty-orbit { box-shadow: 0 0 55px rgba(182, 124, 255, 0.14); }
.swipe-empty.working .swipe-empty-orbit::before { border-style: solid; animation-duration: 2.6s; }

.swipe-success-panel { position: relative; z-index: 5; display: grid; width: min(500px, 100%); justify-items: center; padding: clamp(1.3rem, 4vw, 2.4rem); border: 1px solid rgba(100, 245, 203, 0.22); border-radius: 20px; background: linear-gradient(145deg, rgba(32, 24, 52, 0.98), rgba(12, 8, 24, 0.99)); box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48), 0 0 70px rgba(100, 245, 203, 0.07); text-align: center; }
.swipe-success-panel::before { position: absolute; inset: 0 0 auto; height: 4px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--purple), var(--mint)); content: ""; }
.swipe-success-icon { display: grid; width: 60px; height: 60px; margin-bottom: 0.8rem; place-items: center; border: 1px solid rgba(100, 245, 203, 0.35); border-radius: 50%; background: rgba(100, 245, 203, 0.08); color: var(--mint); font-size: 1.6rem; box-shadow: 0 0 35px rgba(100, 245, 203, 0.12); }
.swipe-success-panel h3 { margin: 0.35rem 0; font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -0.045em; }
.swipe-success-panel > p:not(.eyebrow) { max-width: 390px; margin: 0.4rem 0 1rem; color: #9c95a7; font-size: 0.72rem; line-height: 1.6; }
.swipe-success-panel > img { width: min(330px, 100%); height: 165px; margin-bottom: 1rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px; object-fit: cover; }
.swipe-success-actions { display: grid; width: min(370px, 100%); gap: 0.55rem; }
.swipe-success-panel > small { margin-top: 0.8rem; color: #716a7b; font-size: 0.48rem; }

.calendar-day-dialog { width: min(1040px, calc(100vw - 2rem)); max-height: min(820px, calc(100vh - 2rem)); padding: 0; overflow: hidden; border: 1px solid rgba(182, 124, 255, 0.24); border-radius: 18px; background: #100a1d; color: var(--text); box-shadow: 0 40px 130px rgba(0, 0, 0, 0.65); }
.calendar-day-dialog::backdrop { background: rgba(5, 2, 12, 0.82); backdrop-filter: blur(12px); }
.calendar-day-shell { display: grid; max-height: min(820px, calc(100vh - 2rem)); grid-template-rows: auto minmax(0, 1fr); }
.calendar-dialog-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 94px; padding: 1.25rem 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: radial-gradient(circle at 20% 0, rgba(182, 124, 255, 0.1), transparent 18rem); }
.calendar-dialog-header h2 { margin: 0.25rem 0 0; font-size: clamp(1.5rem, 3.5vw, 2.5rem); letter-spacing: -0.045em; }
.calendar-dialog-status { max-width: 330px; margin-left: auto; padding: 0.5rem 0.7rem; border: 1px solid rgba(100, 245, 203, 0.2); border-radius: 8px; background: rgba(100, 245, 203, 0.06); color: #b9eedf; font-size: 0.55rem; line-height: 1.45; }
.calendar-day-content { display: grid; min-height: 570px; grid-template-columns: 330px minmax(0, 1fr); overflow: hidden; }
.calendar-day-list { display: flex; min-height: 0; flex-direction: column; gap: 0.45rem; padding: 1rem; overflow: auto; border-right: 1px solid rgba(255, 255, 255, 0.08); background: rgba(6, 3, 12, 0.27); }
.calendar-day-list > header { display: flex; justify-content: space-between; gap: 0.7rem; align-items: center; padding: 0 0.2rem 0.65rem; color: #827b8d; font-size: 0.58rem; }
.calendar-post-list-item { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 0.7rem; width: 100%; padding: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.075); border-radius: 10px; background: rgba(255, 255, 255, 0.02); color: #eee9f0; cursor: pointer; text-align: left; }
.calendar-post-list-item:hover,
.calendar-post-list-item.active { border-color: rgba(182, 124, 255, 0.35); background: rgba(182, 124, 255, 0.07); }
.calendar-post-list-item > span { display: grid; min-width: 0; align-content: start; }
.calendar-post-list-item strong { color: var(--purple); font-size: 0.62rem; }
.calendar-post-list-item b { overflow: hidden; font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-post-list-item small { margin-top: 0.15rem; overflow: hidden; color: #777080; font-size: 0.48rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day-empty { display: grid; min-height: 170px; align-content: center; justify-items: center; color: #756e80; text-align: center; }
.calendar-day-empty span { color: var(--purple); font-size: 1.5rem; }
.calendar-day-empty strong { margin-top: 0.5rem; color: #aaa3b2; font-size: 0.7rem; }
.calendar-day-empty small { font-size: 0.5rem; }
.calendar-day-editor { min-width: 0; padding: clamp(1rem, 3vw, 1.8rem); overflow: auto; }
.calendar-post-editor { display: grid; gap: 0.85rem; }
.calendar-editor-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.3rem; }
.calendar-editor-heading h3 { margin: 0.3rem 0 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.calendar-post-editor label { display: grid; gap: 0.35rem; color: #8f8899; font-size: 0.56rem; font-weight: 750; }
.calendar-post-editor input,
.calendar-post-editor select,
.calendar-post-editor textarea { width: 100%; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 8px; background: rgba(255, 255, 255, 0.025); color: #e9e4ec; }
.calendar-post-editor textarea { resize: vertical; line-height: 1.55; }
.calendar-post-editor :disabled { color: #8b8493; opacity: 0.72; }
.calendar-editor-time { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.calendar-editor-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.calendar-editor-meta span { padding: 0.3rem 0.5rem; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; color: #777080; font-size: 0.48rem; }
.calendar-post-editor .actions { margin-top: 0.4rem; }
.calendar-post-editor .button.danger { border-color: rgba(255, 118, 95, 0.25); color: var(--coral); }
.calendar-editor-empty { display: grid; min-height: 500px; align-content: center; justify-items: center; text-align: center; }
.calendar-editor-empty > span { color: var(--mint); font-size: 2rem; }
.calendar-editor-empty h3 { margin: 0.7rem 0 0.3rem; font-size: 1.6rem; }
.calendar-editor-empty p { max-width: 390px; margin: 0 0 1rem; color: #817a8b; font-size: 0.68rem; line-height: 1.6; }

@media (max-width: 760px) {
  .calendar-day-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .calendar-day-shell { max-height: 100vh; }
  .calendar-day-content { min-height: 0; grid-template-columns: 1fr; overflow: auto; }
  .calendar-day-list { max-height: 250px; overflow: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .calendar-day-editor { overflow: visible; }
  .calendar-editor-empty { min-height: 310px; }
}

@media (max-width: 640px) {
  .swipe-generated-image img { height: 190px; }
  .swipe-success-panel { padding: 1.15rem; }
  .calendar-editor-time { grid-template-columns: 1fr; }
}

/* GitHub + Discord opportunity starter library */
.shell:not(.auth-shell) .opportunity-library { padding: 0; overflow: hidden; border-color: rgba(182, 124, 255, 0.16); background: linear-gradient(145deg, rgba(24, 17, 41, 0.98), rgba(11, 7, 22, 0.99)); }
.opportunity-library-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; padding: clamp(1.2rem, 3vw, 2rem); border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: radial-gradient(circle at 92% 10%, rgba(100, 245, 203, 0.09), transparent 15rem); }
.opportunity-library-heading > div { max-width: 760px; }
.opportunity-library-heading h2 { margin: 0.35rem 0 0.55rem; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 0.98; letter-spacing: -0.055em; }
.opportunity-library-heading p { margin: 0; color: #8f8899; font-size: 0.7rem; line-height: 1.65; }
.opportunity-library-heading > strong { color: transparent; background: linear-gradient(135deg, var(--purple), var(--mint)); background-clip: text; -webkit-background-clip: text; font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.8; letter-spacing: -0.09em; }
.opportunity-library-toolbar { position: sticky; z-index: 2; top: 0; display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 0.75rem; align-items: center; padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(13, 8, 25, 0.96); backdrop-filter: blur(16px); }
.opportunity-library-toolbar input { width: 100%; min-height: 40px; border-color: rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.opportunity-library-toolbar > small { color: #716a7b; font-size: 0.52rem; white-space: nowrap; }
.opportunity-source-filters { display: flex; gap: 0.35rem; }
.opportunity-source-filters .button.active { border-color: rgba(100, 245, 203, 0.3); background: rgba(100, 245, 203, 0.09); color: var(--mint); }
.opportunity-library-grid { display: grid; max-height: 760px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; padding: 1rem; overflow-y: auto; }
.opportunity-library-card { position: relative; display: flex; min-height: 250px; min-width: 0; flex-direction: column; padding: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.085); border-radius: 11px; background: rgba(255, 255, 255, 0.022); transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.opportunity-library-card::after { position: absolute; right: -45px; bottom: -55px; width: 110px; height: 110px; border-radius: 50%; background: var(--purple); filter: blur(40px); opacity: 0.035; content: ""; pointer-events: none; }
.opportunity-library-card:hover { border-color: rgba(182, 124, 255, 0.25); background: rgba(182, 124, 255, 0.04); transform: translateY(-2px); }
.opportunity-library-card > header { display: flex; gap: 0.45rem; align-items: center; }
.opportunity-library-card > header > span:nth-child(2) { color: #8d8697; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.opportunity-library-card > header small { margin-left: auto; color: #665f70; font-size: 0.46rem; }
.opportunity-source { display: inline-grid; min-width: 27px; height: 27px; padding: 0 0.35rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 7px; font-size: 0.43rem; font-weight: 950; letter-spacing: 0.04em; }
.opportunity-source.github { border-color: rgba(182, 124, 255, 0.25); background: rgba(182, 124, 255, 0.09); color: var(--purple); }
.opportunity-source.discord { border-color: rgba(100, 245, 203, 0.24); background: rgba(100, 245, 203, 0.08); color: var(--mint); }
.opportunity-library-card h3 { margin: 1rem 0 0.5rem; color: #ede8ef; font-size: 1rem; line-height: 1.22; letter-spacing: -0.025em; }
.opportunity-library-card p { flex: 1; margin: 0 0 1rem; color: #8b8494; font-size: 0.62rem; line-height: 1.6; }
.opportunity-library-card .button { position: relative; z-index: 1; align-self: flex-start; }
.opportunity-library-empty { display: grid; min-height: 300px; grid-column: 1 / -1; place-items: center; align-content: center; color: #7c7586; text-align: center; }
.opportunity-library-empty > span { color: var(--purple); font-size: 2rem; }
.opportunity-library-empty h3 { margin: 0.55rem 0 0.2rem; color: #c2bcc8; }
.opportunity-library-empty p { margin: 0; font-size: 0.65rem; }
.library-selection-callout { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; padding: 0.8rem; border: 1px solid rgba(100, 245, 203, 0.18); border-radius: 9px; background: rgba(100, 245, 203, 0.045); }
.library-selection-callout strong { display: block; color: #dcd7e0; font-size: 0.7rem; }
.library-selection-callout p { margin: 0.25rem 0 0; color: #827b8c; font-size: 0.58rem; line-height: 1.55; }

@media (max-width: 980px) {
  .opportunity-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-library-toolbar { grid-template-columns: 1fr auto; }
  .opportunity-library-toolbar > small { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .recommendation-intro .card-header .actions { width: 100%; }
  .recommendation-intro .card-header .actions .button { flex: 1; }
  .opportunity-library-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .opportunity-library-heading > strong { font-size: 4rem; }
  .opportunity-library-toolbar { grid-template-columns: 1fr; }
  .opportunity-library-toolbar > small { grid-column: auto; }
  .opportunity-source-filters { overflow-x: auto; }
  .opportunity-library-grid { max-height: none; grid-template-columns: 1fr; }
  .opportunity-library-card { min-height: 220px; }
}
