:root {
  color-scheme: dark;
  --bg: #090d1c;
  --panel: rgba(18, 24, 47, 0.9);
  --panel-strong: rgba(23, 29, 58, 0.94);
  --field: rgba(255, 255, 255, 0.045);
  --field-strong: rgba(13, 18, 37, 0.76);
  --line: rgba(170, 186, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #93a0c1;
  --muted-strong: #cfd6ee;
  --accent: #4f7cff;
  --accent-strong: #aac1ff;
  --accent-soft: rgba(79, 124, 255, 0.16);
  --danger: #ff8ea1;
  --shadow: 0 36px 96px rgba(4, 8, 24, 0.46);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --button-fill: linear-gradient(135deg, #7b5cff 0%, #4f7cff 100%);
  --button-stroke: rgba(166, 144, 255, 0.32);
  --button-text: #ffffff;
  --button-hover: linear-gradient(135deg, #8b6cff 0%, #6090ff 100%);
  --button-inner: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --button-shadow: 0 20px 40px rgba(69, 93, 240, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(139, 92, 246, 0.18), transparent 22%),
    radial-gradient(circle at 78% 14%, rgba(79, 124, 255, 0.16), transparent 26%),
    radial-gradient(circle at 52% 80%, rgba(85, 108, 220, 0.12), transparent 30%),
    linear-gradient(145deg, #090d1c 0%, #0d1225 42%, #111833 100%);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
}

.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  color: #f8f8ff;
  background:
    radial-gradient(circle at 14% 18%, rgba(139, 92, 246, 0.22), transparent 20%),
    radial-gradient(circle at 72% 16%, rgba(79, 124, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 70%, rgba(91, 114, 214, 0.12), transparent 30%),
    linear-gradient(145deg, #090d1c 0%, #0d1225 42%, #111833 100%);
}

.landing-page::before,
.landing-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 82%);
}

.landing-page::after {
  background:
    radial-gradient(circle at 54% 36%, rgba(144, 117, 255, 0.16), transparent 18%),
    radial-gradient(circle at 58% 39%, rgba(79, 124, 255, 0.18), transparent 8%);
  opacity: 0.85;
}

.landing-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
  width: min(1540px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 12px;
  font-size: 12px;
}

.landing-brand,
.landing-links,
.hero-actions,
.landing-footer {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 10px;
  color: #f9fbff;
  text-decoration: none;
  font-weight: 720;
}

.landing-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(32, 20, 84, 0.2);
}

.landing-brand .brand-mark img {
  width: 36px;
  height: 36px;
}

.landing-links {
  justify-content: center;
  gap: 30px;
  color: rgba(211, 218, 245, 0.76);
}

.landing-links a,
.landing-footer a {
  text-decoration: none;
}

.landing-links a:hover,
.landing-footer a:hover {
  color: #ffffff;
}

.landing-login {
  justify-self: end;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f6ff;
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(3, 8, 21, 0.32);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: clamp(44px, 6.5vw, 94px);
  position: relative;
  z-index: 1;
  width: min(1540px, calc(100% - 56px));
  min-height: min(920px, calc(100vh - 86px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 116px) 0 clamp(74px, 8vw, 116px);
}

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

.landing-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 0 26px;
  border: 1px solid rgba(146, 114, 255, 0.25);
  border-radius: 14px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(133, 91, 248, 0.28) 0%, rgba(78, 124, 255, 0.18) 100%);
  color: #f7f2ff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 40px rgba(40, 30, 105, 0.24);
}

.landing-hero h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(60px, 7vw, 98px);
  font-weight: 690;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.landing-hero h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(202, 209, 233, 0.86);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.56;
}

.hero-actions {
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.landing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 760;
  border: 1px solid rgba(158, 177, 255, 0.2);
  background: linear-gradient(135deg, #7b5cff 0%, #4f7cff 100%);
  color: #ffffff;
  box-shadow: 0 22px 52px rgba(69, 93, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #aa92ff;
  font-size: 16px;
  font-weight: 640;
  text-decoration: none;
}

.landing-secondary span {
  font-size: 18px;
}

.landing-login,
.landing-primary,
.landing-secondary,
.new-prompt-button,
.primary-button,
.ghost-button,
.danger-button,
.file-picker span {
  transition: box-shadow 140ms ease, filter 140ms ease, transform 140ms ease;
}

.landing-login:hover,
.landing-primary:hover,
.landing-secondary:hover,
.new-prompt-button:hover,
.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.file-picker:hover span {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.hero-product {
  position: relative;
  min-height: 720px;
}

.hero-visual {
  position: relative;
  min-height: 720px;
}

.hero-scene {
  position: absolute;
  top: 0;
  right: 0;
  width: 860px;
  height: 720px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(219, 224, 242, 0.82);
  font-size: 13px;
  backdrop-filter: blur(18px);
}

.hero-login-helper {
  display: none;
  margin: 16px 0 0;
  color: rgba(198, 205, 228, 0.76);
  font-size: 14px;
}

.landing-inline-login {
  border: 0;
  padding: 0;
  background: transparent;
  color: #c2afff;
  font-weight: 700;
}

.hero-orbits,
.prompt-cloud,
.hero-flow,
.dashboard-panel {
  position: absolute;
}

.hero-orbits {
  left: 0;
  top: 52px;
  width: 470px;
  height: 480px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(116, 101, 207, 0.28);
  border-radius: 999px;
  filter: drop-shadow(0 0 18px rgba(108, 83, 227, 0.14));
}

.orbit-one {
  inset: 40px 72px 150px 26px;
  transform: rotate(-8deg);
}

.orbit-two {
  inset: 104px 18px 72px 92px;
  transform: rotate(16deg);
}

.orbit-three {
  inset: 24px 118px 116px 82px;
  transform: rotate(38deg);
}

.orbit-four {
  inset: 160px 64px 36px 20px;
  transform: rotate(-20deg);
}

.prompt-cloud {
  left: 10px;
  top: 6px;
  width: 520px;
  height: 560px;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(228, 233, 255, 0.84)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.22));
  color: #1c1d28;
  box-shadow: 0 28px 50px rgba(4, 10, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.floating-card strong {
  display: block;
  font-size: 14px;
  font-weight: 630;
  line-height: 1.24;
}

.floating-card span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 198, 228, 0.9), rgba(226, 230, 247, 0.5));
}

.floating-card.is-muted {
  background: linear-gradient(180deg, rgba(238, 241, 255, 0.82), rgba(210, 216, 244, 0.7));
}

.floating-card.is-accent {
  background: linear-gradient(180deg, rgba(190, 150, 255, 0.96), rgba(142, 108, 248, 0.94));
  color: #fdfaff;
}

.floating-card.is-accent strong {
  font-size: 15px;
}

.floating-card.is-accent span {
  background: rgba(255, 255, 255, 0.44);
}

.card-a {
  left: 24px;
  top: 24px;
  width: 140px;
  min-height: 148px;
  transform: rotate(-11deg);
}

.card-b {
  left: 208px;
  top: 2px;
  width: 120px;
  min-height: 108px;
  transform: rotate(12deg);
}

.card-c {
  left: 165px;
  top: 110px;
  width: 150px;
  min-height: 112px;
  transform: rotate(8deg);
}

.card-d {
  left: 118px;
  top: 230px;
  width: 152px;
  min-height: 152px;
  transform: rotate(2deg);
}

.card-e {
  left: 330px;
  top: 164px;
  width: 122px;
  min-height: 140px;
  transform: rotate(-12deg);
}

.card-f {
  left: 286px;
  top: 288px;
  width: 148px;
  min-height: 168px;
  transform: rotate(-6deg);
}

.card-g {
  left: 66px;
  top: 412px;
  width: 136px;
  min-height: 104px;
  transform: rotate(-18deg);
}

.card-h {
  left: 336px;
  top: 460px;
  width: 132px;
  min-height: 122px;
  transform: rotate(8deg);
}

.card-i {
  left: 214px;
  top: 500px;
  width: 114px;
  min-height: 92px;
  transform: rotate(-18deg);
}

.floating-chip {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  font-size: 20px;
  box-shadow: 0 20px 36px rgba(6, 11, 28, 0.28);
  backdrop-filter: blur(12px);
}

.chip-gold {
  left: 18px;
  top: 294px;
  width: 56px;
  height: 56px;
  background: linear-gradient(180deg, #ffe28d, #efbe53);
  color: rgba(45, 28, 0, 0.78);
}

.chip-violet {
  left: 274px;
  top: 260px;
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, rgba(221, 200, 255, 0.95), rgba(191, 160, 255, 0.84));
  color: #7155d8;
  font-size: 16px;
}

.chip-logo {
  left: 386px;
  top: 114px;
  width: 46px;
  height: 46px;
  background: linear-gradient(180deg, rgba(154, 152, 255, 0.98), rgba(109, 111, 255, 0.86));
  color: #f6f5ff;
  font-size: 18px;
}

.chip-logo-bottom {
  left: 420px;
  top: 356px;
}

.hero-flow {
  left: 362px;
  top: 188px;
  width: 332px;
  height: 210px;
}

.flow-line {
  position: absolute;
  left: 0;
  right: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110, 88, 240, 0), rgba(115, 114, 255, 0.55) 36%, rgba(156, 204, 255, 0.94) 100%);
  box-shadow: 0 0 16px rgba(109, 134, 255, 0.4);
}

.flow-line-one {
  top: 26px;
  transform: rotate(-16deg);
}

.flow-line-two {
  top: 58px;
  transform: rotate(-11deg);
}

.flow-line-three {
  top: 88px;
  transform: rotate(-5deg);
}

.flow-line-four {
  top: 112px;
}

.flow-line-five {
  top: 136px;
  transform: rotate(5deg);
}

.flow-line-six {
  top: 166px;
  transform: rotate(10deg);
}

.flow-arrow {
  position: absolute;
  right: 0;
  top: 86px;
  width: 50px;
  height: 50px;
  border-top: 4px solid #d8ebff;
  border-right: 4px solid #d8ebff;
  transform: rotate(45deg);
  border-radius: 4px;
  box-shadow: 0 0 26px rgba(124, 181, 255, 0.58);
}

.dashboard-panel {
  border: 1px solid rgba(170, 186, 255, 0.2);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(28, 37, 73, 0.68), rgba(19, 24, 48, 0.88));
  box-shadow: 0 36px 96px rgba(4, 8, 24, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
}

.dashboard-panel-back {
  right: 28px;
  top: 36px;
  width: 650px;
  height: 538px;
  opacity: 0.52;
}

.dashboard-panel-front {
  right: 0;
  top: 56px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  width: 690px;
  min-height: 560px;
  overflow: hidden;
}

.dashboard-rail {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: rgba(235, 239, 255, 0.88);
  background: rgba(255, 255, 255, 0.02);
}

.rail-icon.is-active {
  border-color: rgba(144, 162, 255, 0.32);
  background: linear-gradient(180deg, rgba(91, 128, 255, 0.88), rgba(108, 83, 239, 0.78));
  box-shadow: 0 20px 36px rgba(71, 109, 255, 0.34);
}

.rail-icon svg,
.search-icon svg,
.search-tune svg {
  width: 22px;
  height: 22px;
}

.rail-icon svg,
.search-icon svg,
.search-tune svg,
.dashboard-rail path,
.dashboard-rail circle,
.dashboard-surface path,
.dashboard-surface circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-surface {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px 24px 24px 22px;
}

.dashboard-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 245, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-search span:nth-child(2) {
  flex: 1;
  color: rgba(240, 243, 255, 0.84);
  font-size: 17px;
}

.search-icon,
.search-tune {
  display: grid;
  place-items: center;
  color: rgba(236, 240, 255, 0.82);
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(217, 223, 244, 0.7);
  font-size: 14px;
  font-weight: 600;
}

.dashboard-tab.is-active {
  border-color: rgba(176, 147, 255, 0.32);
  background: linear-gradient(135deg, rgba(149, 103, 255, 0.94), rgba(95, 110, 255, 0.9));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(86, 92, 255, 0.28);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  position: relative;
  min-height: 192px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
  line-height: 1;
}

.dashboard-card-star {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(247, 249, 255, 0.88);
  font-size: 16px;
}

.dashboard-card h3 {
  margin: 18px 0 0;
  color: #f5f7ff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.dashboard-card p {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 16px 0 0;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 640;
}

.dashboard-card-line {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.tone-purple .dashboard-card-icon {
  background: linear-gradient(180deg, rgba(148, 112, 255, 0.96), rgba(104, 82, 235, 0.92));
  color: #f6f3ff;
}

.tone-purple p,
.tone-purple .dashboard-card-line {
  background: linear-gradient(90deg, rgba(164, 119, 255, 0.94), rgba(112, 84, 242, 0.9));
  color: #f7f2ff;
}

.tone-green .dashboard-card-icon {
  background: linear-gradient(180deg, rgba(121, 184, 165, 0.96), rgba(72, 142, 122, 0.92));
  color: #f5fff9;
}

.tone-green p,
.tone-green .dashboard-card-line {
  background: linear-gradient(90deg, rgba(103, 191, 155, 0.94), rgba(70, 146, 122, 0.92));
  color: #effff8;
}

.tone-blue .dashboard-card-icon {
  background: linear-gradient(180deg, rgba(105, 145, 255, 0.96), rgba(60, 106, 232, 0.92));
  color: #f4f8ff;
}

.tone-blue p,
.tone-blue .dashboard-card-line {
  background: linear-gradient(90deg, rgba(106, 144, 255, 0.94), rgba(65, 110, 234, 0.92));
  color: #eef4ff;
}

.tone-gold .dashboard-card-icon {
  background: linear-gradient(180deg, rgba(217, 194, 102, 0.96), rgba(168, 142, 48, 0.92));
  color: #fff8da;
}

.tone-gold p,
.tone-gold .dashboard-card-line {
  background: linear-gradient(90deg, rgba(226, 194, 88, 0.94), rgba(181, 153, 59, 0.92));
  color: #fff7d3;
}

.landing-section,
.landing-testimonial,
.landing-final,
.landing-footer {
  position: relative;
  z-index: 1;
  width: min(1540px, calc(100% - 56px));
  margin-right: auto;
  margin-left: auto;
}

.landing-section {
  padding: clamp(72px, 9vw, 122px) 0 0;
}

.section-intro {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0 auto 38px;
  text-align: center;
}

.section-intro h2,
.workflow-copy h2,
.landing-testimonial h2,
.landing-final h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

#testimonialTitle {
  line-height: 1.1 !important;
}

.section-intro h2 {
  max-width: 780px;
}

.landing-page .eyebrow {
  color: #aa92ff;
  letter-spacing: 0.12em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid article {
  min-height: 196px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(23, 29, 58, 0.88), rgba(15, 19, 39, 0.96));
  box-shadow: 0 24px 60px rgba(4, 8, 21, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-grid article span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(170, 145, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(137, 100, 255, 0.18), rgba(79, 124, 255, 0.12));
  color: #f1ecff;
  font-size: 18px;
}

.feature-grid h3 {
  margin: 30px 0 8px;
  color: #f6f8ff;
  font-size: 18px;
}

.feature-grid p {
  margin: 0;
  color: rgba(197, 203, 226, 0.78);
  font-size: 14px;
  line-height: 1.56;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
}

.workflow-copy h2 {
  margin-top: 10px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.workflow-list div {
  min-height: 142px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px 18px 20px;
  background: rgba(18, 24, 47, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workflow-list strong,
.workflow-list span {
  display: block;
}

.workflow-list strong {
  color: #f6f8ff;
  font-size: 15px;
}

.workflow-list span {
  margin-top: 10px;
  color: rgba(198, 205, 228, 0.76);
  font-size: 13px;
  line-height: 1.56;
}

.workflow-image {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(22, 29, 58, 0.92), rgba(15, 20, 40, 0.96));
  box-shadow: 0 28px 72px rgba(4, 8, 21, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.workflow-image img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

.landing-testimonial {
  margin-top: clamp(82px, 11vw, 150px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(circle at 50% 0%, rgba(128, 96, 255, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(21, 28, 56, 0.92), rgba(14, 19, 38, 0.97));
  box-shadow: 0 30px 76px rgba(4, 8, 21, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

.landing-testimonial blockquote {
  max-width: 760px;
  margin: 24px auto 0;
  color: #f7f8ff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.24;
}

.landing-testimonial p {
  margin: 18px 0 0;
  color: rgba(198, 205, 228, 0.78);
  font-size: 14px;
}

.landing-final {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 18% 10%, rgba(132, 104, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(26, 34, 67, 0.96), rgba(14, 19, 38, 0.98));
  box-shadow: 0 30px 72px rgba(4, 8, 21, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-final > div:first-child {
  max-width: 700px;
}

.landing-final h2 {
  margin-top: 10px;
}

.landing-final p:not(.eyebrow) {
  margin: 16px 0 0;
  color: rgba(201, 207, 229, 0.78);
  font-size: 16px;
  line-height: 1.5;
}

.landing-final .hero-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.landing-footer {
  justify-content: center;
  gap: 20px;
  padding: 34px 0 38px;
  color: rgba(177, 186, 216, 0.68);
  font-size: 12px;
}

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

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  width: min(1480px, calc(100% - 36px));
  min-height: calc(100vh - 36px);
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid rgba(170, 186, 255, 0.2);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(28, 37, 73, 0.72), rgba(19, 24, 48, 0.9));
  box-shadow: 0 36px 96px rgba(4, 8, 24, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 8%, rgba(139, 92, 246, 0.18), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(79, 124, 255, 0.14), transparent 20%),
    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: auto, auto, 68px 68px, 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42));
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 2px 2px 4px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.brand .brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 2px;
  flex: 0 0 auto;
  border: 1px solid rgba(170, 186, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f5ff;
  box-shadow:
    0 16px 32px rgba(4, 8, 24, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.brand .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

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

.brand strong {
  color: #f9fbff;
  font-size: 15px;
  line-height: 1.2;
}

.brand span {
  margin-top: 2px;
  color: rgba(190, 199, 226, 0.76);
  font-size: 12px;
}

.user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 12px 12px 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-card strong,
.user-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card strong {
  color: #f4f7ff;
  font-size: 13px;
}

.user-card span {
  margin-top: 2px;
  color: rgba(182, 191, 221, 0.68);
  font-size: 11px;
}

.new-prompt-button,
.primary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  border: 1px solid rgba(170, 186, 255, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--button-text);
  font-weight: 720;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.new-prompt-button,
.primary-button {
  background: var(--button-fill);
  color: var(--button-text);
  border-color: var(--button-stroke);
  box-shadow: var(--button-shadow), var(--button-inner);
}

.new-prompt-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.045);
  color: #d8def4;
  backdrop-filter: blur(14px);
}

.danger-button {
  border-color: rgba(255, 142, 161, 0.22);
  background: rgba(255, 142, 161, 0.12);
  color: #ffc1cc;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2px;
}

.nav-label,
.eyebrow {
  margin: 0;
  color: rgba(170, 146, 255, 0.92);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-label {
  padding: 0 10px 2px;
}

.nav-item,
.collection-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: rgba(214, 221, 244, 0.76);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-item {
  padding: 0 10px;
}

.collection-item {
  padding: 0 10px;
}

.nav-item > span:first-child,
.nav-item > .nav-icon,
.collection-item > .collection-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 244, 255, 0.88);
  transition: inherit;
}

.nav-item:hover,
.collection-item:hover,
.nav-item.is-active,
.collection-item.is-active {
  border-color: rgba(170, 186, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item:hover,
.collection-item:hover {
  transform: translateY(-1px);
}

.nav-item.is-active,
.collection-item.is-active {
  border-color: rgba(176, 147, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 36px rgba(7, 12, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item.is-active > span:first-child,
.nav-item.is-active > .nav-icon,
.collection-item.is-active > .collection-icon {
  border-color: rgba(176, 147, 255, 0.24);
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.98), rgba(79, 124, 255, 0.92));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(78, 102, 255, 0.34);
}

.nav-item em,
.collection-item em {
  color: rgba(167, 177, 209, 0.76);
  font-size: 12px;
  font-style: normal;
}

.collection-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #7b5cff 0%, #4f7cff 100%);
}

.collection-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storage-card {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.storage-copy {
  display: grid;
  gap: 3px;
}

.storage-copy .nav-label {
  padding: 0;
}

.storage-copy strong {
  color: #f5f7ff;
  font-size: 14px;
  line-height: 1.2;
}

.storage-copy span,
.storage-note {
  color: rgba(180, 190, 220, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.storage-meter {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.storage-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b5cff 0%, #4f7cff 100%);
  transition: width 180ms ease;
}

.storage-card.is-unlimited .storage-meter-fill {
  background: linear-gradient(90deg, #6fddaa 0%, #4fd2a4 100%);
}

.storage-card.is-near-limit .storage-meter-fill {
  background: linear-gradient(90deg, #f3b564 0%, #e38956 100%);
}

.storage-note {
  margin: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(236, 240, 255, 0.9);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 140ms ease, filter 140ms ease, transform 140ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  filter: none;
}

.workspace {
  min-width: 0;
  position: relative;
  padding: 24px 28px 36px;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 10, 22, 0.7);
  backdrop-filter: blur(18px);
}

.auth-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid rgba(170, 186, 255, 0.18);
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 88% 14%, rgba(79, 124, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #1a2244 0%, #10172f 100%);
  box-shadow: 0 34px 94px rgba(4, 8, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(26px);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.auth-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(170, 186, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 20px 44px rgba(4, 8, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.auth-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-panel h2 {
  margin: 2px 0 0;
  color: #f8f9ff;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.auth-panel label {
  display: grid;
  gap: 7px;
  color: #d7ddf3;
  font-size: 12px;
  font-weight: 680;
}

.auth-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
}

.auth-message {
  min-height: 18px;
  margin: -2px 0 0;
  color: #ff9dae;
  font-size: 13px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(660px, 100%);
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(236, 240, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.search-wrap > span {
  display: grid;
  place-items: center;
  width: 24px;
  font-size: 19px;
  line-height: 1;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f6f8ff;
  font-size: 15px;
}

.search-wrap input::placeholder {
  color: rgba(214, 220, 241, 0.62);
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

select::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(158, 169, 203, 0.74);
}

select {
  appearance: none;
  min-height: 44px;
  border-color: var(--line);
  border-radius: var(--radius);
  padding: 0 46px 0 16px;
  background-color: var(--field-strong);
  background-image:
    url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%2397A5C8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center, 0 0;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  color: #f6f8ff;
  font-size: 13px;
  font-weight: 650;
  transition: box-shadow 140ms ease, filter 140ms ease, transform 140ms ease;
}

select:hover {
  border-color: rgba(185, 196, 233, 0.3);
  background-color: var(--field-strong);
  filter: none;
}

select:focus {
  outline: 0;
  border-color: rgba(139, 108, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(101, 102, 241, 0.18);
}

select option {
  background: #111833;
  color: #f5f7ff;
  font-weight: 650;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(139, 108, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(101, 102, 241, 0.18);
}

.library-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

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

h1 {
  margin-bottom: 0;
  color: #f7f9ff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  color: #eef2ff;
  font-size: 15px;
}

.header-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-stats span {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(189, 198, 223, 0.82);
  font-size: 12px;
  backdrop-filter: blur(14px);
}

.header-stats strong {
  color: #ffffff;
}

.type-tabs {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.type-tabs button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(217, 223, 244, 0.74);
  font-size: 14px;
  font-weight: 650;
  backdrop-filter: blur(14px);
}

.type-tabs button.is-active {
  border-color: rgba(176, 147, 255, 0.28);
  background: linear-gradient(135deg, rgba(149, 103, 255, 0.94), rgba(95, 110, 255, 0.9));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(86, 92, 255, 0.28);
}

.pinned-section,
.all-section {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(181, 190, 218, 0.72);
  font-size: 13px;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.prompt-grid.is-compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 224px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.prompt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(170, 186, 255, 0.16);
  box-shadow: 0 30px 66px rgba(4, 8, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-top,
.card-actions,
.card-meta,
.tag-list {
  display: flex;
  align-items: center;
}

.card-top {
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f4f7ff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.type-badge {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(213, 221, 244, 0.7);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-badge.is-skill {
  border-color: rgba(144, 211, 188, 0.2);
  background: rgba(84, 167, 136, 0.14);
  color: #b4f0d6;
}

.star-button,
.copy-button,
.edit-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(239, 243, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 140ms ease, filter 140ms ease, transform 140ms ease;
}

.star-button:hover,
.copy-button:hover,
.edit-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  filter: none;
}

.star-button {
  color: rgba(247, 249, 255, 0.82);
}

.star-button:hover {
  color: #ffffff;
}

.star-button.is-on {
  border-color: rgba(176, 147, 255, 0.2);
  background: linear-gradient(135deg, rgba(149, 103, 255, 0.94), rgba(95, 110, 255, 0.88));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(86, 92, 255, 0.22);
}

.star-button.is-on:hover {
  color: #ffffff;
}

.prompt-excerpt {
  display: -webkit-box;
  min-height: 66px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 12px 13px;
  background: rgba(7, 11, 24, 0.28);
  color: rgba(205, 213, 238, 0.76);
  font-family: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-list {
  gap: 6px;
  flex-wrap: wrap;
}

.attachment-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px;
}

.tag {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(205, 213, 238, 0.78);
  font-size: 11px;
  white-space: nowrap;
}

.attachment-chip {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  border: 1px solid rgba(170, 186, 255, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(79, 124, 255, 0.12);
  color: #dbe6ff;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.attachment-chip.is-image {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.attachment-chip-preview,
.attachment-chip-preview img {
  display: block;
  width: 100%;
  height: 100%;
}

.attachment-chip-preview img {
  object-fit: cover;
}

.attachment-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip .attachment-chip-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 14px;
  overflow: visible;
}

.attachment-chip:hover {
  border-color: rgba(170, 186, 255, 0.24);
  background: rgba(79, 124, 255, 0.18);
}

.card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.card-meta {
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(172, 181, 208, 0.74);
  font-size: 12px;
}

.card-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(170, 186, 255, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f0f4ff;
  font-weight: 680;
}

.card-actions {
  gap: 6px;
}

.button-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-dialog,
.collection-dialog,
.user-dialog {
  width: min(680px, calc(100vw - 24px));
  border: 1px solid rgba(170, 186, 255, 0.18);
  border-radius: 28px;
  padding: 0;
  background: linear-gradient(180deg, rgba(21, 28, 56, 0.96), rgba(14, 19, 38, 0.98));
  box-shadow: 0 30px 86px rgba(4, 8, 24, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(26px);
}

.prompt-dialog::backdrop,
.collection-dialog::backdrop,
.user-dialog::backdrop {
  background: rgba(6, 10, 22, 0.74);
  backdrop-filter: blur(10px);
}

.prompt-form,
.collection-form,
.user-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header h2 {
  margin-top: 2px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.user-dialog-summary {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.045);
}

.user-dialog-summary strong {
  font-size: 13px;
}

.user-dialog-summary span {
  color: rgba(182, 191, 221, 0.7);
  font-size: 11px;
}

.prompt-form label,
.user-form label {
  display: grid;
  gap: 6px;
  color: #d7ddf3;
  font-size: 12px;
  font-weight: 680;
}

.prompt-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 12px 14px;
}

.prompt-form input:not([type="checkbox"]),
.prompt-form textarea,
.user-form input {
  width: 100%;
  padding: 12px 13px;
}

.tags-field input[name="tags"] {
  display: none;
}

.tag-input-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-strong);
  cursor: text;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.tag-input-shell:focus-within {
  border-color: rgba(139, 108, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(101, 102, 241, 0.18);
}

.tag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f7ff;
  font-size: 12px;
  font-weight: 650;
}

.tag-chip-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(236, 240, 255, 0.88);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.tag-chip-remove:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tag-chip-remove:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(101, 102, 241, 0.2);
}

.tag-input-shell [data-tag-input] {
  flex: 1 1 120px;
  min-width: 120px;
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.tag-input-shell [data-tag-input]:focus {
  outline: 0;
}

.tag-input-shell [data-tag-input]::placeholder {
  color: rgba(158, 169, 203, 0.74);
  font-weight: 500;
}

.prompt-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 48px 0 16px;
}

.prompt-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.45;
  font-weight: 500;
}

.form-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.attachment-panel {
  display: grid;
  gap: 0;
  padding-top: 2px;
}

.attachment-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.attachment-message {
  margin: 0;
  color: #d7ddf3;
  font-size: 12px;
}

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

.attachment-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.attachment-card-add {
  border-style: dashed;
  color: var(--text);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.attachment-card-add:hover {
  border-color: rgba(170, 186, 255, 0.24);
  box-shadow: 0 16px 34px rgba(4, 8, 24, 0.22);
  transform: translateY(-1px);
}

.attachment-card-add:focus-visible {
  outline: 0;
  border-color: rgba(139, 108, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(101, 102, 241, 0.18);
}

.attachment-card-add.is-compact {
  align-content: center;
}

.attachment-add-surface {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 100%;
  text-align: center;
}

.attachment-add-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(149, 103, 255, 0.94), rgba(95, 110, 255, 0.88));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(86, 92, 255, 0.24);
}

.attachment-add-icon .button-icon {
  width: 16px;
  height: 16px;
}

.attachment-add-surface strong {
  font-size: 13px;
}

.attachment-add-note {
  margin: 0;
  color: rgba(178, 188, 218, 0.72);
  font-size: 11px;
  line-height: 1.4;
}

.attachment-add-note.is-error {
  color: #ff9dae;
}

.attachment-add-note.is-status {
  color: #d8def4;
}

.attachment-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.18) 0%, rgba(139, 92, 246, 0.12) 100%);
}

.attachment-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-preview-fallback {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #dbe6ff;
}

.attachment-preview-fallback .button-icon {
  width: 22px;
  height: 22px;
}

.attachment-preview-fallback span {
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.attachment-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.attachment-card-body strong,
.attachment-card-body small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-card-body strong {
  font-size: 11px;
}

.attachment-card-body small {
  color: rgba(172, 181, 208, 0.74);
  font-size: 10px;
}

.attachment-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.attachment-action-spacer {
  width: 32px;
  height: 32px;
}

.attachment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.04);
}

.attachment-row-main {
  min-width: 0;
}

.attachment-row-main strong,
.attachment-row-main small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-row-main strong {
  font-size: 12px;
}

.attachment-row-main small {
  margin-top: 2px;
  color: rgba(172, 181, 208, 0.74);
  font-size: 11px;
}

.attachment-action {
  font: inherit;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(239, 243, 255, 0.86);
  font-size: 12px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 140ms ease, filter 140ms ease, transform 140ms ease;
}

.attachment-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  filter: none;
}

.attachment-action.is-danger {
  border-color: rgba(255, 142, 161, 0.22);
  background: rgba(255, 142, 161, 0.12);
  color: #ffc1cc;
}

.attachment-action.is-danger:hover {
  color: #ffd4db;
}

.attachment-input-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.prompt-form .check-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.prompt-form .check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-switch {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 21px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.check-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(4, 8, 24, 0.26);
  transition: transform 140ms ease;
}

.prompt-form .check-label input[type="checkbox"]:checked + .check-switch {
  background: linear-gradient(135deg, rgba(149, 103, 255, 0.94), rgba(95, 110, 255, 0.88));
}

.prompt-form .check-label input[type="checkbox"]:checked + .check-switch::after {
  transform: translateX(13px);
}

.prompt-form .check-label input[type="checkbox"]:focus-visible + .check-switch {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(101, 102, 241, 0.18);
}

.dialog-actions {
  margin: 4px -2px 0;
  padding: 0;
}

.dialog-actions span {
  flex: 1;
}

.collection-editor-list {
  display: grid;
  gap: 8px;
}

.collection-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.collection-editor-row input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
}

.collection-editor-count {
  color: rgba(172, 181, 208, 0.74);
  font-size: 12px;
  white-space: nowrap;
}

.collection-editor-row.is-protected .icon-button {
  opacity: 0.34;
  filter: grayscale(1);
  cursor: not-allowed;
  transform: none;
}

.add-row-button {
  justify-self: start;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(170, 186, 255, 0.18);
  border-radius: 18px;
  padding: 11px 14px;
  background: rgba(14, 19, 38, 0.92);
  color: #f5f7ff;
  font-size: 13px;
  box-shadow: 0 24px 56px rgba(4, 8, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1280px) {
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-testimonial,
  .landing-final,
  .landing-footer {
    width: min(100% - 48px, 1180px);
  }

  .landing-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: 32px;
  }

  .hero-product {
    min-height: 650px;
  }

  .hero-visual {
    min-height: 660px;
  }

  .hero-scene {
    transform: scale(0.88);
    transform-origin: right center;
  }
}

@media (max-width: 900px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
    width: min(100% - 40px, 920px);
  }

  .landing-links {
    display: none;
  }

  .landing-hero,
  .landing-section,
  .landing-testimonial,
  .landing-final,
  .landing-footer {
    width: min(100% - 40px, 920px);
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 38px;
    padding-top: 48px;
  }

  .landing-hero h1 {
    font-size: clamp(48px, 14vw, 88px);
  }

  .hero-product {
    min-height: 560px;
    overflow: hidden;
  }

  .hero-visual {
    min-height: 620px;
  }

  .hero-scene {
    left: 50%;
    right: auto;
    margin-left: -430px;
    transform: scale(0.78);
    transform-origin: center top;
  }

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

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-section {
    grid-template-columns: 1fr;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .landing-final {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-final .hero-actions {
    width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 920px);
    min-height: calc(100vh - 24px);
    margin: 12px auto;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .workspace {
    padding: 20px 16px 30px;
  }

  .topbar,
  .library-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-stats {
    justify-content: flex-start;
  }

  h1 {
    font-size: 36px;
  }

  .prompt-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-testimonial,
  .landing-final,
  .landing-footer {
    width: calc(100% - 32px);
  }

  .landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
  }

  .landing-brand span:last-child {
    display: none;
  }

  .landing-login {
    min-height: 34px;
    position: absolute;
    top: 0;
    right: 0;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions,
  .landing-final .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-primary {
    width: 100%;
  }

  .landing-secondary {
    justify-content: center;
  }

  .hero-login-helper {
    display: block;
  }

  .hero-proof {
    gap: 10px;
  }

  .hero-product {
    min-height: 360px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-scene {
    left: 50%;
    right: auto;
    margin-left: -430px;
    transform: scale(0.5);
    transform-origin: center top;
  }

  .dashboard-tabs {
    gap: 8px;
  }

  .dashboard-tab {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .dashboard-card {
    min-height: 176px;
  }

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

  .feature-grid article {
    min-height: 150px;
  }

  .landing-testimonial,
  .landing-final {
    padding: 26px;
  }

  .prompt-grid,
  .prompt-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .app-shell {
    width: calc(100% - 20px);
    min-height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 26px;
  }

  .sidebar {
    padding: 20px 14px;
  }

  .prompt-form,
  .collection-form,
  .user-form {
    padding: 16px;
  }
}
