@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}
header a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}
header img {
  height: 1.75rem;
  width: 1.75rem;
  display: block;
  flex-shrink: 0;
}
header a:has(img) {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
main {
  padding: 2.5rem 1.5rem 4rem;
}
body.app-editor main {
  padding: 0;
}
body:not(.app-editor) h1 {
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 0.85rem;
  font-weight: 650;
}
body:not(.app-editor) h2 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  font-weight: 600;
}
body:not(.app-editor) p {
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
#waitlist-form,
#login,
#create-team,
form.invite {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  max-width: 24rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
}
body:not(.app-editor) input,
body:not(.app-editor) button {
  font: inherit;
  padding: 0.7rem 0.9rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #0f766e;
}
body.login,
body.landing,
body.not-found,
body.expired,
body.app-none,
body.app-guest,
body.app-picker,
body.app-team,
body.app-admin,
body.app-editor {
  background-color: #ffffff;
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
body.login header,
body.landing header,
body.app-none header,
body.app-editor header {
  border-bottom-color: #e2e8f0;
}
body.app-none header,
body.app-guest header,
body.app-picker header,
body.app-team header,
body.app-admin header {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.12);
}
body.app-none .appbar-end,
body.app-guest .appbar-end,
body.app-picker .appbar-end,
body.app-team .appbar-end,
body.app-admin .appbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
body.app-none header > a,
body.app-guest header > a,
body.app-picker header > a,
body.app-team header > a,
body.app-admin header > a {
  flex-shrink: 0;
  white-space: nowrap;
}
body.app-none header nav a,
body.app-guest header nav a,
body.app-picker header nav a,
body.app-team header nav a,
body.app-admin header nav a {
  font-weight: 500;
  font-size: 0.85rem;
  color: #0f766e;
}
body.app-none header p,
body.app-guest header p,
body.app-picker header p,
body.app-team header p,
body.app-admin header p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
body.app-none header form,
body.app-guest header form,
body.app-picker header form,
body.app-team header form,
body.app-admin header form {
  display: inline;
  margin: 0;
}
body.app-none header button,
body.app-guest header button,
body.app-picker header button,
body.app-team header button,
body.app-admin header button {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}
body.login:not(.landing) a[href="/"] {
  color: #0f766e;
}
a[href="/#waitlist"] {
  color: #0f766e;
}
body.landing a[href="/login"] {
  color: #0f766e;
}
body.landing header > a[href="/login"],
body.landing header > a[href="/app"],
body.landing .hero a[href="/login"],
body.landing .hero a[href="/app"] {
  color: #0f766e;
  border: 1px solid #0f766e;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

/* Landing — layered SaaS: tall hero, overlapping product, bands, footer */
body.landing {
  background-color: #ffffff;
}
body.landing header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.12);
}
body.landing main {
  max-width: none;
  margin-inline: 0;
  padding: 1px 0 0;
}
body.landing .hero {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.2fr);
  align-items: center;
  column-gap: 2.5rem;
  row-gap: 0.85rem;
  background-image: radial-gradient(
      ellipse 70% 48% at 50% -6%,
      rgba(15, 118, 110, 0.38),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.18) 36%,
      rgba(255, 255, 255, 0.72) 82%,
      #ffffff 100%
    ),
    url("/hero-mesh.jpg");
  background-size: cover;
  background-position: center top;
  text-align: start;
  padding: 2.25rem max(1.5rem, calc((100% - 72rem) / 2)) 0;
}
body.landing .hero h1,
body.landing .hero > p {
  grid-column: 1;
}
body.landing h1 {
  font-size: 72px;
  max-width: 14ch;
  margin: 0 0 1rem;
}
body.landing .hero h1 span {
  color: #0f766e;
}
body.landing .hero > p:first-of-type {
  color: #64748b;
  font-size: 1.2rem;
  max-width: 32rem;
  margin: 0 0 1.75rem;
}
body.landing a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.28);
}
body.landing a.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px #0f766e, 0 8px 24px rgba(15, 118, 110, 0.28);
}
body.landing .hero > p:nth-of-type(2) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}
body.landing .hero > p:nth-of-type(2) a[href="/login"],
body.landing .hero > p:nth-of-type(2) a[href="/app"] {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}
body.landing .hero figure {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0 0 -6.5rem;
  width: 100%;
  max-width: none;
  padding: 0.5rem 0 0;
  position: relative;
  z-index: 1;
  perspective: 1600px;
}
body.landing .hero figure::before {
  content: "";
  position: absolute;
  inset: 12% 8% -8%;
  background: radial-gradient(
    ellipse at center,
    rgba(15, 118, 110, 0.28),
    transparent 68%
  );
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}
.product-shot {
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transform: rotateX(8deg) rotateY(-3deg);
  transform-origin: center 12%;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}
@keyframes hero-shot-drift {
  from {
    transform: rotateX(8deg) rotateY(-3deg) translateY(0);
  }
  to {
    transform: rotateX(8deg) rotateY(-3deg) translateY(-10px);
  }
}
body.landing .hero .product-shot {
  animation: hero-shot-drift 7s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  body.landing .hero .product-shot {
    animation-name: none;
  }
}
.product-shot .shot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: nowrap;
}
.product-shot .shot-brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.product-shot .shot-team {
  font-size: 0.62rem;
  font-weight: 500;
  color: #64748b;
}
.product-shot .shot-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.product-shot .shot-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.product-shot .shot-btn {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.22rem 0.48rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  white-space: nowrap;
}
.product-shot .shot-btn.primary,
.product-shot .shot-btn.accent {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}
.product-shot .shot-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.28rem;
  padding: 0.32rem 0.7rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.product-shot .shot-main {
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr) 9rem;
  min-height: 16rem;
}
.product-shot .shot-rail {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 0.65rem 0.5rem;
}
.product-shot .shot-h {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0.7rem 0 0.3rem;
}
.product-shot .shot-rail .shot-h:first-child {
  margin-top: 0;
}
.product-shot .shot-model {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.4rem;
  color: #0f172a;
}
.product-shot .slice-item {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.32rem 0.4rem;
  border-radius: 6px;
  color: #0f172a;
}
.product-shot .slice-item.on {
  background: #f0fdfa;
  color: #0f766e;
}
.product-shot .shot-timeline {
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-shot .shot-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.7rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.product-shot .time-rule {
  flex: 1;
  height: 2px;
  background: rgba(85, 93, 102, 0.35);
}
.product-shot .shot-board {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0.7rem 0.65rem 0.85rem;
  overflow: hidden;
}
.product-shot .shot-lane-rail {
  display: flex;
  flex-direction: column;
  width: 5.1rem;
  flex: 0 0 5.1rem;
  padding-right: 0.35rem;
  border-right: 1px solid #e2e8f0;
}
.product-shot .lane-label {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.35rem 0.25rem 0;
  min-height: 2.55rem;
}
.product-shot .lane-label:first-child {
  min-height: 1.7rem;
  color: #64748b;
}
.product-shot .lane-label.actor {
  color: #d97706;
  background: rgba(245, 158, 11, 0.1);
}
.product-shot .lane-label.command {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}
.product-shot .lane-label.event {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
}
.product-shot .lane-label.readmodel {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}
.product-shot .lane-label.automation {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}
.product-shot .shot-col {
  width: 7.4rem;
  flex: 0 0 7.4rem;
  margin-left: 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-shot .slice-head {
  padding: 0.35rem 0.45rem;
  min-height: 1.7rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #0f172a;
}
.product-shot .shot-lane {
  padding: 0.28rem 0.35rem 0.38rem;
  min-height: 2.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.product-shot .shot-lane.actor {
  background: rgba(245, 158, 11, 0.1);
}
.product-shot .shot-lane.command {
  background: rgba(37, 99, 235, 0.1);
}
.product-shot .shot-lane.event {
  background: rgba(234, 88, 12, 0.1);
}
.product-shot .shot-lane.readmodel {
  background: rgba(22, 163, 74, 0.1);
}
.product-shot .shot-lane.automation {
  background: rgba(124, 58, 237, 0.1);
}
.product-shot .chip {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  border-top: 3px solid;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.product-shot .chip.actor {
  background: #fef3c7;
  border-top-color: #f59e0b;
}
.product-shot .chip.command {
  background: #dbeafe;
  border-top-color: #2563eb;
}
.product-shot .chip.on {
  box-shadow: 0 0 0 2px #0f766e;
}
.product-shot .shot-connection {
  font-size: 0.52rem;
  font-weight: 600;
  color: #0f766e;
  letter-spacing: -0.01em;
}
.product-shot .chip.event {
  background: #ffedd5;
  border-top-color: #ea580c;
}
.product-shot .chip.readmodel {
  background: #dcfce7;
  border-top-color: #16a34a;
}
.product-shot .chip.automation {
  background: #ede9fe;
  border-top-color: #7c3aed;
}
.product-shot .shot-inspector {
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  padding: 0.7rem 0.65rem;
}
.product-shot .shot-inspector .shot-h {
  margin-top: 0;
  margin-bottom: 0.55rem;
}
.product-shot .inspector-k {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.55rem;
}
.product-shot .inspector-k:first-of-type {
  margin-top: 0;
}
.product-shot .inspector-v {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.15rem;
  color: #0f172a;
}
body.landing .bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
  max-width: none;
  width: 100%;
  margin: 0;
  background-color: transparent;
  padding: 8.5rem max(1.5rem, calc((100% - 64rem) / 2)) 4.5rem;
  box-shadow: none;
}
body.landing .bento article {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 2.75rem;
  align-items: center;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: start;
  box-shadow: none;
}
body.landing .team-shot {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  text-align: start;
}
body.landing .team-shot {
  padding: 1rem 1.1rem 1.15rem;
}
body.landing .team-shot .shot-h {
  margin-top: 0;
  margin-bottom: 0.7rem;
}
body.landing .team-row {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
body.landing .team-row:last-child {
  margin-bottom: 0;
}
body.landing .team-row.on {
  box-shadow: 0 0 0 2px #0f766e, 0 8px 20px rgba(15, 23, 42, 0.06);
}
body.landing .slice-shot {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  padding: 0.85rem 0.9rem 1rem;
}
body.landing .slice-shot .shot-board {
  display: flex;
  align-items: stretch;
}
body.landing .slice-shot .shot-lane-rail {
  display: flex;
  flex-direction: column;
  width: 5.6rem;
  flex: 0 0 5.6rem;
  padding: 0.15rem 0.35rem 0 0;
  gap: 0;
}
body.landing .slice-shot .lane-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  min-height: 2.55rem;
  display: flex;
  align-items: center;
}
body.landing .slice-shot .lane-label:first-child {
  min-height: 1.7rem;
}
body.landing .slice-shot .shot-col {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.landing .slice-shot .slice-head {
  padding: 0.35rem 0.45rem;
  min-height: 1.7rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
}
body.landing .slice-shot .shot-lane {
  padding: 0.28rem 0.35rem 0.38rem;
  min-height: 2.55rem;
}
body.landing .slice-shot .shot-lane.actor {
  background: rgba(245, 158, 11, 0.1);
}
body.landing .slice-shot .shot-lane.command {
  background: rgba(37, 99, 235, 0.1);
}
body.landing .slice-shot .shot-lane.event {
  background: rgba(234, 88, 12, 0.1);
}
body.landing .slice-shot .shot-lane.readmodel {
  background: rgba(22, 163, 74, 0.1);
}
body.landing .slice-shot .shot-lane.automation {
  background: rgba(124, 58, 237, 0.1);
}
body.landing .slice-shot .chip {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  border-top: 3px solid;
  display: inline-block;
}
body.landing .slice-shot .chip.actor {
  background: #fef3c7;
  border-top-color: #f59e0b;
}
body.landing .slice-shot .chip.command {
  background: #dbeafe;
  border-top-color: #2563eb;
}
body.landing .slice-shot .chip.event {
  background: #ffedd5;
  border-top-color: #ea580c;
}
body.landing .slice-shot .chip.readmodel {
  background: #dcfce7;
  border-top-color: #16a34a;
}
body.landing .slice-shot .chip.automation {
  background: #ede9fe;
  border-top-color: #7c3aed;
}
body.landing .invite-shot {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  padding: 1.1rem 1.15rem 1.2rem;
  text-align: start;
}
body.landing .invite-shot .shot-h {
  margin-top: 0;
  margin-bottom: 0.45rem;
}
body.landing .invite-field {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
body.landing .invite-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
}
body.landing .bento p:last-child {
  margin-bottom: 0;
}
body.landing .waitlist-band {
  background: #0f172a;
  background-color: #0f172a;
  background-image: linear-gradient(
      rgba(15, 23, 42, 0.78),
      rgba(15, 23, 42, 0.88)
    ),
    url("/waitlist-silk.jpg");
  background-size: cover;
  background-position: center;
  border-top: 0;
  padding: 4.5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 28px 64px rgba(0, 0, 0, 0.22),
    0 -24px 56px rgba(15, 23, 42, 0.18),
    0 28px 56px rgba(15, 23, 42, 0.24);
}
body.landing .waitlist-band h2 {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  color: #ffffff;
}
body.landing .waitlist-band > p {
  color: #ffffff;
}
body.landing #waitlist-form {
  margin-top: 0.5rem;
  width: 100%;
  text-align: left;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
body.landing #waitlist-form label {
  flex: 1 0 100%;
}
body.landing #waitlist-form input {
  flex: 1 1 8rem;
  min-width: 0;
}
body.landing #waitlist-form button {
  flex: 0 0 auto;
}
body.landing footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.15rem 1.75rem 1.4rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 -1px 0 rgba(15, 23, 42, 0.04),
    0 -16px 40px rgba(15, 23, 42, 0.12);
}
body.landing footer a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}
body.landing footer img {
  height: 1.75rem;
  width: 1.75rem;
  display: block;
  flex-shrink: 0;
}
body.landing footer a:has(img) {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

@media (max-width: 800px) {
  body.landing h1 {
    font-size: 36px;
    max-width: none;
  }
  body.landing .hero {
    padding-top: 56px;
    grid-template-columns: minmax(0, 1fr);
  }
  body.landing .hero h1,
  body.landing .hero > p,
  body.landing .hero figure {
    grid-column: 1;
    grid-row: auto;
  }
  body.landing .hero figure {
    margin-bottom: -3.5rem;
  }
  .product-shot {
    transform: rotateX(7deg);
  }
  .product-shot .shot-toolbar {
    flex-wrap: wrap;
  }
  .product-shot .shot-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-shot .shot-rail,
  .product-shot .shot-inspector {
    display: none;
  }
  .product-shot .shot-col + .shot-col {
    display: none;
  }
  .hero .product-shot .shot-col {
    flex-grow: 1;
    width: auto;
    flex-basis: auto;
  }
  body.landing #waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }
  body.landing .bento {
    padding-top: 5.5rem;
  }
  body.landing .bento article {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Login */
body.login:not(.landing) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.92)
    ),
    url("/login-mesh.jpg");
  background-size: cover;
  background-position: center top;
}
body.login:not(.landing) main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding: 3rem 1.5rem 4rem;
}
body.login:not(.landing) h1 {
  font-size: 2rem;
}
body.login:not(.landing) form#login {
  width: min(24rem, 100%);
}
body.login:not(.landing) a[href="/#waitlist"] {
  margin-top: 1rem;
  font-weight: 500;
  text-decoration: none;
}

body.not-found main,
body.expired main,
body.app-none main,
body.app-guest main,
body.app-picker main,
body.app-team main,
body.app-admin main {
  max-width: 36rem;
  margin-inline: auto;
}
#waitlist-form button {
  background-color: #0f766e;
  color: #ffffff;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
}
#waitlist-form input {
  border: 1px solid #e2e8f0;
  border-top-color: #e2e8f0;
  border-radius: 10px;
}
#login button {
  background-color: #0f766e;
  color: #ffffff;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
}
#login input {
  border: 1px solid #e2e8f0;
  border-top-color: #e2e8f0;
  border-radius: 10px;
}
body.not-found h1 {
  font-size: 36px;
}
body.expired a[href="/login"] {
  background-color: #0f766e;
  color: #ffffff;
  border-radius: 10px;
}
body.app-none a[href="/app"] {
  color: #0f766e;
}
#create-team button {
  background-color: #0f766e;
  color: #ffffff;
  border-radius: 10px;
}
#create-team input {
  border-top-color: #e2e8f0;
  border-radius: 10px;
}
body.app-none form[action="/api/auth/sign-out"] button {
  background-color: transparent;
}
body.app-picker h1 + p a {
  color: #0f766e;
}
#create-model button {
  background-color: #0f766e;
  color: #ffffff;
  border-radius: 10px;
  border: 0;
}
body.app-team .models-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}
body.app-team .models-toolbar h2 {
  margin: 0;
}
body.app-team #create-model {
  display: inline;
  margin: 0;
}
body.app-team #create-model button {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}
body.app-team main > p {
  color: #64748b;
  margin: 0 0 1rem;
}
body.app-team article {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 0 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.06);
}
body.app-team article a {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 1rem 1.15rem;
  text-decoration: none;
  font-weight: 600;
  color: #0f172a;
}
form.invite button {
  background-color: #0f766e;
  color: #ffffff;
  border-radius: 10px;
}
form.invite input {
  border-top-color: #e2e8f0;
}
#save-model button {
  background-color: #0f766e;
  color: #ffffff;
  border-radius: 10px;
}
#export-model button {
  background-color: transparent;
}
body.app-editor form[action="/api/auth/sign-out"] button {
  background-color: transparent;
}
body.app-editor section[aria-label="Timeline"] {
  background-color: #f8fafc;
}
body.app-editor section[aria-label="Inspector"] {
  border-left-color: #e2e8f0;
}
li[data-kind="actor"] {
  background-color: #fef3c7;
  border-top-color: #f59e0b;
  border-radius: 10px;
}
li[data-kind="command"] {
  background-color: #dbeafe;
  border-top-color: #2563eb;
}
li[data-kind="event"] {
  background-color: #ffedd5;
  border-top-color: #ea580c;
}
li[data-kind="readmodel"] {
  background-color: #dcfce7;
  border-top-color: #16a34a;
}
li[data-kind="automation"] {
  background-color: #ede9fe;
  border-top-color: #7c3aed;
}

/* Editor — Mac DocumentEditorView: sidebar | timeline | inspector */
html:has(body.app-editor) {
  height: 100%;
}
body.app-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.app-editor header {
  position: relative;
  flex: 0 0 auto;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: #ffffff;
  backdrop-filter: none;
}
body.app-editor header > a {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  margin-right: 0.75rem;
}
body.app-editor header nav a {
  font-weight: 500;
  font-size: 0.85rem;
  color: #0f766e;
}
body.app-editor .editor-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
body.app-editor header p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}
body.app-editor .editor-brand a {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
body.app-editor h1 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
body.app-editor .editor-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 52rem) {
  body.app-editor .editor-actions {
    flex: 1 1 100%;
    margin-left: 0;
  }
}
body.app-editor .editor-actions p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0.35rem 0 0.5rem;
}
body.app-editor .editor-actions form {
  display: inline;
  margin: 0;
}
body.app-editor header button,
body.app-editor .editor-toolbar button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}
body.app-editor .editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex: 0 0 auto;
}
body.app-editor .editor-toolbar button:first-of-type {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}
body.app-editor main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr) 17.5rem;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "banner banner banner"
    "slices timeline inspector";
  padding: 0;
}
body.app-editor main > p {
  grid-area: banner;
  margin: 0;
  padding: 0.45rem 0.85rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 500;
}
body.app-editor .slice-rail {
  grid-area: slices;
  border-right: 1px solid #e2e8f0;
  overflow: auto;
  padding: 0.75rem 0.65rem;
  background: #f8fafc;
  min-width: 0;
}
body.app-editor .slice-rail h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0.85rem 0 0.4rem;
}
body.app-editor .slice-rail h2:first-child {
  margin-top: 0;
}
body.app-editor .model-row {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  color: #0f172a;
}
body.app-editor .slice-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
body.app-editor .slice-rail li {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}
body.app-editor .slice-rail li:hover {
  background: rgba(74, 122, 209, 0.12);
  color: #0f172a;
}
body.app-editor section[aria-label="Timeline"] {
  grid-area: timeline;
  overflow: hidden;
  padding: 0;
  background-color: #f8fafc;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.app-editor .time-chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
body.app-editor .time-rule {
  flex: 1;
  height: 2px;
  background: rgba(85, 93, 102, 0.35);
}
body.app-editor .timeline-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}
body.app-editor .timeline-empty h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #0f172a;
}
body.app-editor .timeline-empty p {
  margin: 0;
  max-width: 28rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}
body.app-editor .board {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-items: stretch;
  gap: 0;
  padding: 1.1rem;
  transform-origin: 0 0;
}
body.app-editor section[aria-label="Timeline"]:has(.slice-col) .timeline-empty {
  display: none;
}
body.app-editor section[aria-label="Timeline"]:has(.slice-col) .board {
  display: flex;
}
body.app-editor .board-pan {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  min-height: 0;
  gap: inherit;
}
body.app-editor .lane-rail {
  display: flex;
  flex-direction: column;
  width: 8rem;
  flex: 0 0 8rem;
  align-self: start;
  padding-right: 0.5rem;
  border-right: 1px solid #e2e8f0;
}
body.app-editor .lane-label {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.65rem 0.4rem 0;
  min-height: 5.4rem;
}
body.app-editor .lane-label:first-child {
  min-height: 3.5rem;
  color: #64748b;
}
body.app-editor .lane-label.actor {
  color: #d97706;
  background: rgba(245, 158, 11, 0.1);
}
body.app-editor .lane-label.command {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}
body.app-editor .lane-label.event {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
}
body.app-editor .lane-label.readmodel {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}
body.app-editor .lane-label.automation {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}
body.app-editor .slice-col {
  width: 14.5rem;
  flex: 0 0 14.5rem;
  align-self: start;
  height: max-content;
  margin-left: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
body.app-editor section[aria-label="Timeline"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
body.app-editor .slice-head {
  padding: 0.65rem 0.7rem;
  min-height: 3.5rem;
  flex-shrink: 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}
body.app-editor section[aria-label="Timeline"] .slice-head li {
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}
body.app-editor .lane {
  padding: 0.55rem 0.65rem 0.7rem;
  min-height: 5.4rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
body.app-editor .lane[data-lane="actor"] {
  background: rgba(245, 158, 11, 0.1);
}
body.app-editor .lane[data-lane="command"] {
  background: rgba(37, 99, 235, 0.1);
}
body.app-editor .lane[data-lane="event"] {
  background: rgba(234, 88, 12, 0.1);
}
body.app-editor .lane[data-lane="readmodel"] {
  background: rgba(22, 163, 74, 0.1);
}
body.app-editor .lane[data-lane="automation"] {
  background: rgba(124, 58, 237, 0.1);
}
body.app-editor section[aria-label="Timeline"] li {
  position: relative;
  padding: 0.5rem 0.5rem 0.55rem 0.65rem;
  min-width: 0;
  border-top-width: 3px;
  border-top-style: solid;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
}
body.app-editor section[aria-label="Timeline"] li:has(button) {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding-top: 0.3rem;
}
body.app-editor section[aria-label="Timeline"] li button {
  position: static;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  overflow: hidden;
  font: inherit;
  font-size: 0;
  font-weight: 500;
  padding: 0;
  border: 1px dashed #94a3b8;
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1;
}
body.app-editor .lane > button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border: 1px dashed #94a3b8;
  background: rgba(255, 255, 255, 0.55);
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
body.app-editor section[aria-label="Timeline"] p[data-kind="connection"] {
  margin: 0.65rem 1rem 0.85rem;
  font-size: 0.75rem;
  color: #64748b;
}
body.app-editor .board-pan > p[data-kind="connection"] {
  flex-basis: 100%;
}
body.app-editor section[aria-label="Inspector"] {
  grid-area: inspector;
  overflow: auto;
  padding: 0.9rem 0.85rem;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  min-width: 0;
}
body.app-editor section[aria-label="Inspector"] h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.75rem;
}
body.app-editor .inspector-empty {
  margin: 2rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}
body.app-editor .inspector-empty-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}
body.app-editor section[aria-label="Inspector"]:has(label) .inspector-empty,
body.app-editor section[aria-label="Inspector"]:has(label) .inspector-empty-hint {
  display: none;
}
body.app-editor section[aria-label="Inspector"] label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
}
body.app-editor section[aria-label="Inspector"] input,
body.app-editor section[aria-label="Inspector"] select,
body.app-editor section[aria-label="Inspector"] textarea {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #0f172a;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
body.app-editor section[aria-label="Inspector"] button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}
body.app-editor #save-model button {
  background-color: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}
body.app-editor #export-model button,
body.app-editor form[action="/api/auth/sign-out"] button {
  background: transparent;
}
@media (max-width: 800px) and (min-width: 721px) {
  body.app-editor .board {
    padding: 0.5rem;
    min-width: 0;
  }
  body.app-editor .lane-rail {
    width: 4.25rem;
    flex: 0 0 4.25rem;
  }
  body.app-editor .slice-col {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin-left: 0.4rem;
  }
  body.app-editor .lane-label,
  body.app-editor .lane {
    min-height: 3.25rem;
  }
  body.app-editor .lane-label:first-child,
  body.app-editor .slice-head {
    min-height: 2.5rem;
  }
}
@media (max-width: 720px) {
  html:has(body.app-editor) {
    overflow: hidden;
  }
  body.app-editor {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  body.app-editor header {
    min-width: 0;
    gap: 0.5rem;
  }
  body.app-editor .editor-actions {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: 0;
    min-width: 0;
  }
  body.app-editor .editor-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
  }
  body.app-editor main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "banner"
      "slices"
      "timeline"
      "inspector";
    min-width: 0;
  }
  body.app-editor .slice-rail {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    max-height: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
  }
  body.app-editor .slice-rail h2 {
    margin: 0;
  }
  body.app-editor .slice-rail ul {
    flex-direction: row;
  }
  body.app-editor section[aria-label="Timeline"] {
    min-width: 0;
    min-height: 0;
  }
  body.app-editor .board {
    padding: 0.5rem;
    min-width: 0;
  }
  body.app-editor .lane-rail {
    width: 4.25rem;
    flex: 0 0 4.25rem;
  }
  body.app-editor .slice-col {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin-left: 0.4rem;
  }
  body.app-editor .lane-label,
  body.app-editor .lane {
    min-height: 3.25rem;
  }
  body.app-editor .lane-label:first-child,
  body.app-editor .slice-head {
    min-height: 2.5rem;
  }
  body.app-editor section[aria-label="Inspector"] {
    border-left: 0;
    border-top: 1px solid #e2e8f0;
    max-height: 7rem;
    min-width: 0;
  }
}

