:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #111114;
  --muted: #6e6e73;
  --soft: #fdfdfd;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #0071e3;
  --blue-2: #0a84ff;
  --green: #34c759;
  --amber: #b26a00;
  --red: #ff3b30;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.07);
}

/* Landing refresh v10 */
.landing-wide {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(124, 58, 237, 0.14), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(255, 122, 50, 0.16), transparent 28%),
    linear-gradient(135deg, #edf4ff 0%, #fffaf7 48%, #f4f7ff 100%);
}

.landing-wide .landing-lights {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(124, 58, 237, 0.18), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(255, 122, 50, 0.18), transparent 20%),
    radial-gradient(circle at 54% 82%, rgba(14, 165, 233, 0.15), transparent 22%);
  filter: blur(2px);
  animation: landingLightsMove 12s ease-in-out infinite alternate;
}

@keyframes landingLightsMove {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.78; }
  50% { transform: translate3d(3%, 2%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.02); opacity: 0.86; }
}

.landing-wide .designer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.72) 48%, rgba(255,255,255,0.92)),
    radial-gradient(circle at 50% 0%, rgba(255, 122, 50, 0.10), transparent 30%);
  box-shadow: none;
}

.landing-wide .designer-nav {
  min-height: 92px;
  width: min(1520px, calc(100% - 52px));
  margin: 0 auto;
  padding: 0;
}

.landing-wide .designer-links {
  gap: clamp(14px, 2vw, 34px);
}

.landing-wide .designer-nav-cta,
.landing-wide .designer-primary,
.landing-wide .designer-secondary,
.landing-wide .primary-link {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-wide .designer-nav-cta::after,
.landing-wide .designer-primary::after,
.landing-wide .designer-secondary::after,
.landing-wide .primary-link::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -50%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: landingButtonShine 4.6s ease-in-out infinite;
}

@keyframes landingButtonShine {
  0%, 42% { transform: translateX(0) rotate(18deg); opacity: 0; }
  52% { opacity: 1; }
  76%, 100% { transform: translateX(420%) rotate(18deg); opacity: 0; }
}

.landing-wide .designer-nav-cta:hover,
.landing-wide .designer-primary:hover,
.landing-wide .designer-secondary:hover,
.landing-wide .primary-link:hover {
  transform: translateY(-2px);
}

.landing-wide .landing-hero {
  width: min(1520px, calc(100% - 52px));
  margin: 0 auto;
  padding: 88px 0 54px;
}

.landing-wide .landing-hero::before {
  inset: 0 -12vw auto;
  height: 680px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 122, 50, 0.16), transparent 26%),
    radial-gradient(circle at 22% 50%, rgba(124, 58, 237, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.82), rgba(255, 255, 255, 0));
  animation: heroWash 9s ease-in-out infinite alternate;
}

@keyframes heroWash {
  from { transform: translateY(-12px); opacity: 0.70; }
  to { transform: translateY(10px); opacity: 1; }
}

.landing-wide .designer-hero-copy {
  width: min(900px, 100%);
}

.landing-wide .designer-hero h1 {
  font-size: clamp(56px, 7vw, 112px);
  letter-spacing: 0;
}

.landing-wide .designer-hero p {
  max-width: 760px;
  font-size: 19px;
}

.landing-wide .hero-dashboard-frame,
.landing-wide .about-visual,
.landing-wide .dashboard-display {
  border: 1px solid rgba(255,255,255,0.86);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255,255,255,0.56)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.85), transparent 32%);
  box-shadow: 0 36px 110px rgba(31, 41, 55, 0.16);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.landing-wide .hero-dashboard-frame {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 44px auto 0;
  border-radius: 34px;
  padding: 18px;
}

.landing-wide .hero-dashboard-frame img,
.landing-wide .about-visual img,
.landing-wide .dashboard-display img {
  width: 100%;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
}

.landing-wide .hero-dashboard-frame img {
  aspect-ratio: 16 / 7.7;
}

.landing-wide .visual-card {
  border-color: rgba(255,255,255,0.78);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
}

.landing-wide .visual-score {
  left: 28px;
  top: auto;
  bottom: 34px;
}

.landing-wide .visual-angle {
  right: 34px;
  top: 34px;
}

.landing-wide .visual-usage {
  right: 32%;
  bottom: -34px;
}

.landing-wide .trust-strip {
  margin-top: 76px;
}

.landing-wide .designer-section {
  width: min(1520px, calc(100% - 52px));
  margin: 0 auto;
  border-top: 0;
  padding: 88px 0;
}

.about-split,
.dashboard-showcase-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.about-copy h2,
.dashboard-copy h2 {
  margin: 10px 0 0;
  color: #17191f;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
}

.about-copy p,
.dashboard-copy p {
  margin: 18px 0 0;
  color: #636b77;
  font-size: 17px;
  line-height: 1.7;
}

.about-points,
.dashboard-feature-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.about-points span,
.dashboard-feature-list strong {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 16px 38px rgba(31,41,55,0.06);
  color: #252a33;
  font-weight: 900;
}

.about-visual {
  border-radius: 34px;
  padding: 16px;
  transform: rotate(1.2deg);
}

.process-section {
  position: relative;
}

.process-section::before,
.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 44px 0 auto;
  height: 360px;
  border-radius: 44px;
  background:
    radial-gradient(circle at 30% 30%, rgba(124,58,237,0.10), transparent 30%),
    radial-gradient(circle at 70% 30%, rgba(255,122,50,0.12), transparent 34%);
  pointer-events: none;
}

.process-grid,
.testimonial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article,
.testimonial-grid article {
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 24px 70px rgba(31,41,55,0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.process-grid article {
  min-height: 250px;
}

.process-grid span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #111216, #7c3aed);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 20px 42px rgba(124,58,237,0.20);
}

.process-grid h3 {
  margin: 34px 0 12px;
  color: #17191f;
  font-size: 24px;
}

.process-grid p,
.testimonial-grid p {
  margin: 0;
  color: #66707f;
  line-height: 1.62;
}

.dashboard-showcase-section {
  width: 100%;
  max-width: none;
  padding: 94px max(26px, calc((100vw - 1520px) / 2));
  background:
    radial-gradient(circle at 74% 18%, rgba(124,58,237,0.16), transparent 28%),
    linear-gradient(135deg, rgba(239,246,255,0.88), rgba(255,247,237,0.84));
}

.dashboard-display {
  border-radius: 36px;
  padding: 16px;
}

.dashboard-display img {
  aspect-ratio: 16 / 8;
}

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

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

.testimonial-grid article {
  min-height: 260px;
  display: grid;
  align-content: space-between;
}

.testimonial-grid strong {
  display: block;
  margin-top: 26px;
  color: #17191f;
  font-size: 18px;
}

.testimonial-grid span {
  color: #8b93a1;
  font-size: 13px;
  font-weight: 850;
}

.landing-wide .designer-pricing {
  width: min(1520px, calc(100% - 52px));
  background: transparent;
}

.landing-wide .price-card {
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(31,41,55,0.10);
}

.clean-footer {
  width: min(1520px, calc(100% - 52px));
  margin: 0 auto;
  padding: 30px 0 44px;
  min-height: auto;
  justify-content: space-between;
}

@media (max-width: 1180px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-split,
  .dashboard-showcase-section,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .landing-wide .visual-card {
    position: relative;
    inset: auto;
    width: auto;
    margin: 12px 0 0;
    transform: none;
  }
}

@media (max-width: 760px) {
  .landing-wide .designer-nav,
  .landing-wide .landing-hero,
  .landing-wide .designer-section,
  .landing-wide .designer-pricing,
  .clean-footer {
    width: min(100% - 24px, 1520px);
  }

  .landing-wide .designer-nav {
    padding: 14px 0;
  }

  .landing-wide .designer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .landing-wide .designer-links a {
    min-height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.62);
  }

  .landing-wide .landing-hero {
    padding: 56px 0 34px;
  }

  .landing-wide .designer-hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .landing-wide .designer-hero p {
    font-size: 16px;
  }

  .landing-wide .hero-dashboard-frame,
  .about-visual,
  .dashboard-display {
    border-radius: 24px;
    padding: 8px;
  }

  .landing-wide .hero-dashboard-frame img,
  .about-visual img,
  .dashboard-display img {
    border-radius: 18px;
    aspect-ratio: 4 / 3;
  }

  .landing-wide .designer-section,
  .dashboard-showcase-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .dashboard-showcase-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .process-grid,
  .dashboard-feature-list,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article,
  .testimonial-grid article {
    min-height: auto;
  }

  .about-copy h2,
  .dashboard-copy h2 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .clean-footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 113, 227, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(52, 199, 89, 0.10), transparent 26%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-body,
.login-body {
  min-height: 100vh;
}

.landing {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 50px;
}

.landing-nav,
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.landing-nav {
  min-height: 64px;
  position: relative;
  z-index: 3;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #303034;
  font-size: 14px;
  font-weight: 750;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand.centered {
  justify-content: center;
}

.mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #111114, #38383d);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.08;
}

.brand span,
.eyebrow,
.stat-stack span,
.settings-grid span,
.metric-card span,
.proposal-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-link,
.ghost-link,
.primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
}

.nav-link,
.ghost-link {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  color: var(--ink);
}

.primary-link {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 113, 227, 0.24);
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 42px;
}

.saas-hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-content: start;
  gap: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 42px;
  margin-top: 18px;
  padding: 48px 34px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.58)),
    radial-gradient(circle at 24% 70%, rgba(255, 181, 199, 0.30), transparent 32%),
    radial-gradient(circle at 78% 68%, rgba(93, 108, 255, 0.26), transparent 34%),
    linear-gradient(135deg, #f5f7ff, #fff5ef 56%, #eef3ff);
  box-shadow: 0 34px 100px rgba(42, 54, 94, 0.16);
}

.saas-hero::after {
  content: "";
  position: absolute;
  inset: auto -4% -20% -4%;
  height: 330px;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(122, 108, 255, 0.22), transparent 42%),
    radial-gradient(ellipse at 55% 26%, rgba(255, 174, 143, 0.26), transparent 42%),
    radial-gradient(ellipse at 85% 40%, rgba(0, 113, 227, 0.20), transparent 40%);
  filter: blur(2px);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
}

.centered-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
}

.mini-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,0.78);
  color: #4a4a50;
  font-size: 12px;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.centered-copy h1 {
  max-width: 21ch;
  margin: 18px auto 16px;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.02;
  text-align: center;
}

.centered-copy p {
  max-width: 690px;
  text-align: center;
}

.centered-actions {
  justify-content: center;
}

.hero-board {
  position: relative;
  z-index: 2;
  min-height: 320px;
  margin-top: 12px;
}

.main-dashboard-card {
  width: min(700px, 76%);
  margin: 0 auto;
  border-radius: 28px;
  padding: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 30px 80px rgba(80, 86, 130, 0.22);
  backdrop-filter: blur(18px);
}

.dash-top {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.dash-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8d8de;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-grid article,
.floating-card {
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.dash-grid article span,
.floating-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dash-grid article strong,
.floating-card strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

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

.dash-grid p,
.floating-card p {
  margin: 8px 0 0;
  color: #3a3a3f;
  line-height: 1.45;
}

.floating-card {
  position: absolute;
  width: 200px;
}

.progress-card {
  left: 7%;
  top: 50px;
  transform: rotate(-4deg);
}

.project-card {
  right: 7%;
  bottom: 16px;
  transform: rotate(4deg);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.logo-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  color: #606068;
  font-weight: 850;
}

.section-heading {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
}

.feature-cloud,
.pricing {
  padding: 72px 0 32px;
}

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

.feature-grid article,
.price-card {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: var(--shadow-soft);
}

.feature-grid article > span {
  color: var(--blue);
  font-weight: 900;
}

.feature-grid h3 {
  margin: 16px 0 10px;
  font-size: 24px;
}

.feature-grid p,
.price-card p,
.payment-note {
  color: var(--muted);
  line-height: 1.5;
}

.price-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.price-card.featured {
  background: linear-gradient(180deg, #111827, #1e293b);
  color: #fff;
  transform: translateY(-12px);
}

.price-card > span {
  color: var(--blue);
  font-weight: 900;
}

.price-card.featured > span,
.price-card.featured p,
.price-card.featured li {
  color: #d8e4ff;
}

.price-card strong {
  font-size: 48px;
}

.price-card strong span {
  font-size: 16px;
  color: var(--muted);
}

.price-card ul {
  margin: 0;
  padding-left: 19px;
  color: #333337;
  line-height: 1.9;
}

.payment-note {
  text-align: center;
  margin: 22px 0 0;
}

.landing-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
}

.user-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 310px 1fr;
}

.user-side {
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 22px;
  backdrop-filter: blur(22px);
}

.usage-ring {
  min-height: 160px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.92) 0 48%, transparent 49%),
    conic-gradient(var(--blue) 0 30%, rgba(0,0,0,0.08) 30% 100%);
  box-shadow: var(--shadow-soft);
}

.usage-ring strong,
.usage-ring span {
  display: block;
}

.usage-ring strong {
  font-size: 28px;
}

.usage-ring span {
  color: var(--muted);
  font-weight: 800;
}

.user-workspace {
  padding: 28px;
}

.user-hero {
  margin-bottom: 22px;
}

.user-hero h1 {
  max-width: 740px;
  margin: 8px 0 10px;
  font-size: clamp(42px, 6vw, 72px);
}

.user-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.auth-switch a {
  color: var(--blue);
}

.hero-copy h1 {
  margin: 12px 0 16px;
  max-width: 10ch;
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: #333337;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
}

.hero-device,
.login-card,
.panel,
.stat-stack div,
.settings-grid div,
.metric-card,
.proposal-preview {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero-device {
  border-radius: 34px;
  padding: 18px;
}

.device-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.device-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d2d2d7;
}

.device-content {
  display: grid;
  gap: 12px;
}

.metric-card,
.proposal-preview {
  border-radius: 22px;
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.proposal-preview p {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.22;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-strip article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.feature-strip article > span {
  color: var(--blue);
  font-weight: 900;
}

.feature-strip h2 {
  margin: 14px 0 8px;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-card {
  width: min(100%, 460px);
  border-radius: 30px;
  padding: 26px;
}

.login-copy {
  text-align: center;
  margin: 28px 0 22px;
}

.login-copy h1 {
  margin: 8px 0 10px;
  font-size: 42px;
  line-height: 1;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-error {
  border: 1px solid rgba(255, 59, 48, 0.18);
  background: rgba(255, 59, 48, 0.08);
  color: #9f1d16;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 800;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

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

.nav-item,
.ghost-btn,
.primary {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 850;
}

.nav-item {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #303034;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-stack {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.stat-stack div,
.settings-grid div {
  border-radius: 20px;
  padding: 16px;
}

.stat-stack strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.workspace {
  min-width: 0;
  padding: 26px;
}

.topbar {
  margin-bottom: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.topbar h1 {
  margin-top: 5px;
  font-size: clamp(38px, 5vw, 64px);
}

h2 {
  font-size: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(330px, 0.85fr) minmax(430px, 1.15fr);
}

.panel {
  border-radius: var(--radius);
  padding: 18px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(0, 0, 0, 0.06);
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 850;
}

.pill.good {
  background: rgba(52, 199, 89, 0.16);
  color: #137333;
}

.pill.warn {
  background: rgba(255, 149, 0, 0.14);
  color: var(--amber);
}

form label {
  display: grid;
  gap: 8px;
  color: #343438;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 113, 227, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary {
  width: 100%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.22);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
  color: var(--ink);
}

.ghost-btn.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.ghost-link {
  min-height: 44px;
  border-radius: 14px;
}

.output-panel {
  min-height: 690px;
}

#proposalOutput,
#trainResult {
  white-space: pre-wrap;
  line-height: 1.55;
  color: #26262a;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

.file-drop {
  min-height: 88px;
  place-items: center;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.file-drop input {
  display: none;
}

.file-drop span {
  color: var(--muted);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.search-box {
  min-width: min(100%, 320px);
}

.library-list {
  display: grid;
  gap: 10px;
}

.memory-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
}

.memory-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.memory-card h3 {
  margin: 0;
  font-size: 15px;
}

.memory-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #3a3a3c;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 850;
}

.delete-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 59, 48, 0.22);
  background: rgba(255, 59, 48, 0.08);
  color: var(--red);
  font-weight: 900;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.settings-grid strong {
  display: block;
  margin-top: 8px;
}

.note {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 14px;
  color: #333337;
}

code {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
}

@media (max-width: 1080px) {
  .hero,
  .grid.two,
  .user-app {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

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

  .feature-grid,
  .pricing-grid,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: relative;
    inset: auto;
    transform: none;
    width: auto;
    margin: 12px auto;
  }

  .main-dashboard-card {
    width: 100%;
  }

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

  .user-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

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

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .stat-stack,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .output-panel {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .landing,
  .workspace,
  .sidebar {
    width: auto;
    padding: 14px;
  }

  .landing-nav,
  .landing-links,
  .topbar,
  .panel-head,
  .memory-card header,
  .split,
  .topbar-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    min-height: auto;
    padding: 38px 0;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .saas-hero {
    border-radius: 26px;
    padding: 38px 16px 24px;
  }

  .centered-copy h1 {
    font-size: 44px;
  }

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

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

  .login-card {
    padding: 20px;
  }
}

/* Landing v4 */
.glass-nav {
  position: sticky;
  top: 12px;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 10px 14px 10px 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 20px 60px rgba(40, 52, 86, 0.10);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.landing .mark {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.88), transparent 18%),
    linear-gradient(145deg, #0f172a, #0057d9 58%, #16a34a);
}

.saas-hero {
  min-height: 770px;
  border-radius: 46px;
  padding: 44px 34px 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 18% 70%, rgba(38, 99, 235, 0.24), transparent 28%),
    radial-gradient(circle at 84% 58%, rgba(16, 185, 129, 0.18), transparent 27%),
    radial-gradient(circle at 50% 100%, rgba(244, 114, 182, 0.22), transparent 33%),
    linear-gradient(135deg, #eef5ff 0%, #ffffff 46%, #f3fbf7 100%);
}

.saas-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  pointer-events: none;
}

.saas-hero::after {
  height: 360px;
  background:
    radial-gradient(ellipse at 18% 55%, rgba(0, 113, 227, 0.28), transparent 42%),
    radial-gradient(ellipse at 52% 28%, rgba(255, 182, 121, 0.28), transparent 42%),
    radial-gradient(ellipse at 84% 44%, rgba(52, 199, 89, 0.20), transparent 41%);
  animation: softWave 8s ease-in-out infinite alternate;
}

.hero-grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  opacity: 0.62;
}

.hero-reveal {
  animation: riseIn 700ms ease-out both;
}

.centered-copy h1 {
  max-width: 25ch;
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: clamp(40px, 4.3vw, 58px);
  line-height: 1;
}

.centered-copy p {
  max-width: 780px;
  font-size: clamp(16px, 1.25vw, 20px);
  color: #333742;
}

.mini-pill {
  min-height: 34px;
  border-color: rgba(0, 113, 227, 0.13);
  background: rgba(255, 255, 255, 0.84);
  color: #0f3f87;
}

.hero-board {
  min-height: 390px;
  margin-top: -18px;
}

.hero-product-card {
  width: min(820px, 80%);
  padding: 14px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
  transform: perspective(1100px) rotateX(6deg);
  animation: cardHover 5.5s ease-in-out infinite alternate;
}

.dash-top {
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dash-top em {
  margin-left: 6px;
  font-style: normal;
}

.product-screen {
  min-height: 300px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 14px;
}

.product-screen aside,
.screen-main {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.product-screen aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.product-screen aside strong {
  margin-bottom: 6px;
}

.screen-tab {
  display: block;
  border-radius: 14px;
  padding: 11px 12px;
  color: #596074;
  font-size: 13px;
  font-weight: 850;
}

.screen-tab.active {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.screen-main {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 16px;
}

.score-ring {
  min-height: 140px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at center, #fff 0 48%, transparent 49%),
    conic-gradient(#0071e3 0 84%, rgba(15, 23, 42, 0.08) 84% 100%);
}

.score-ring strong {
  font-size: 42px;
  line-height: 1;
}

.score-ring span,
.screen-main article span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.screen-main article {
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.92));
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.screen-main article strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.screen-main article p {
  margin: 9px 0 0;
  color: #3c4252;
  line-height: 1.45;
}

.proposal-line {
  grid-column: 1 / -1;
}

.floating-card {
  z-index: 3;
  width: 230px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.float-one {
  animation: floatOne 5s ease-in-out infinite alternate;
}

.float-two {
  animation: floatTwo 5.4s ease-in-out infinite alternate;
}

.float-three {
  animation: floatThree 5.8s ease-in-out infinite alternate;
}

.reply-card {
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%) rotate(-2deg);
}

.orbit-dot {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #0071e3;
  box-shadow: 0 0 0 10px rgba(0, 113, 227, 0.10);
  animation: pulseDot 2.6s ease-in-out infinite;
}

.dot-one {
  left: 19%;
  top: 30px;
}

.dot-two {
  right: 22%;
  top: 82px;
  background: #16a34a;
  box-shadow: 0 0 0 10px rgba(22, 163, 74, 0.11);
  animation-delay: 400ms;
}

.dot-three {
  left: 72%;
  bottom: 48px;
  background: #f59e0b;
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.12);
  animation-delay: 900ms;
}

.motion-strip {
  overflow: hidden;
  margin: 26px 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}

.motion-strip div {
  width: max-content;
  display: flex;
  gap: 12px;
  padding: 12px;
  animation: scrollServices 28s linear infinite;
}

.motion-strip span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: #495064;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.conversion-band,
.workflow-section {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.60);
  box-shadow: var(--shadow-soft);
}

.conversion-band {
  padding: 64px 26px 28px;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.conversion-grid article,
.workflow-cards article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.conversion-grid article::after,
.workflow-cards article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.10);
}

.conversion-grid span,
.workflow-cards span,
.feature-grid article > span {
  color: var(--blue);
  font-weight: 900;
}

.conversion-grid h3,
.workflow-cards strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.08;
}

.conversion-grid p,
.workflow-copy p,
.workflow-cards p {
  color: var(--muted);
  line-height: 1.5;
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
}

.workflow-copy h2 {
  max-width: 550px;
  margin-top: 12px;
  font-size: clamp(34px, 4.5vw, 58px);
}

.workflow-copy p {
  max-width: 520px;
  font-size: 17px;
}

.workflow-cards {
  display: grid;
  gap: 12px;
}

.workflow-cards article {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 18px;
}

.workflow-cards span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 16px;
  background: rgba(0, 113, 227, 0.10);
}

.workflow-cards strong {
  margin: 0;
  font-size: 21px;
}

.workflow-cards p {
  margin: 2px 0 0;
}

.feature-cloud,
.pricing {
  padding-top: 84px;
}

.feature-grid article,
.price-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-grid article:hover,
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 113, 227, 0.16);
  box-shadow: 0 24px 60px rgba(40, 52, 86, 0.13);
}

.price-card.featured {
  background:
    radial-gradient(circle at 90% 6%, rgba(0, 113, 227, 0.34), transparent 30%),
    linear-gradient(180deg, #0f172a, #111827);
}

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

@keyframes softWave {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-12px) scale(1.03);
  }
}

@keyframes cardHover {
  from {
    transform: perspective(1100px) rotateX(6deg) translateY(0);
  }
  to {
    transform: perspective(1100px) rotateX(3deg) translateY(-8px);
  }
}

@keyframes floatOne {
  from {
    transform: rotate(-4deg) translateY(0);
  }
  to {
    transform: rotate(-2deg) translateY(-14px);
  }
}

@keyframes floatTwo {
  from {
    transform: rotate(4deg) translateY(0);
  }
  to {
    transform: rotate(2deg) translateY(-12px);
  }
}

@keyframes floatThree {
  from {
    transform: translateX(-50%) rotate(-2deg) translateY(0);
  }
  to {
    transform: translateX(-50%) rotate(1deg) translateY(-10px);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes scrollServices {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero-product-card {
    width: 100%;
    transform: none;
    animation: none;
  }

  .product-screen,
  .screen-main,
  .conversion-grid,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .reply-card {
    left: auto;
    bottom: auto;
    transform: none;
  }
}

@media (max-width: 620px) {
  .glass-nav {
    position: relative;
    top: auto;
    border-radius: 22px;
  }

  .saas-hero {
    min-height: auto;
    padding: 34px 14px 20px;
  }

  .saas-hero::before,
  .orbit-dot {
    display: none;
  }

  .centered-copy h1 {
    max-width: 13ch;
    font-size: clamp(38px, 13vw, 52px);
  }

  .product-screen aside {
    grid-template-columns: 1fr 1fr;
  }

  .product-screen aside strong {
    grid-column: 1 / -1;
  }

  .screen-main article strong {
    font-size: 20px;
  }

  .motion-strip {
    border-radius: 24px;
  }

  .conversion-band,
  .workflow-section {
    padding: 22px 14px;
    border-radius: 26px;
  }
}

/* Final landing proportion override */
.landing .saas-hero {
  min-height: 700px;
  padding-top: 34px;
}

.landing .centered-copy h1 {
  max-width: 24ch;
  margin: 12px auto 10px;
  font-size: clamp(38px, 3.7vw, 52px);
  line-height: 1.02;
}

.landing .centered-copy p {
  max-width: 720px;
  font-size: clamp(15px, 1.08vw, 18px);
}

.landing .hero-actions {
  margin-top: 18px;
}

.landing .hero-board {
  margin-top: -26px;
}

@media (max-width: 620px) {
  .landing .saas-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .landing .centered-copy h1 {
    max-width: 13ch;
    font-size: clamp(36px, 12vw, 48px);
  }

  .landing .hero-board {
    margin-top: 4px;
  }
}

/* Designer landing v6 */
.designer-body {
  background:
    linear-gradient(90deg, rgba(158, 174, 188, 0.50), rgba(238, 214, 197, 0.46)),
    #eef1f4;
}

.designer-shell {
  width: min(1190px, calc(100% - 46px));
  margin: 34px auto 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 125, 52, 0.09), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(24, 149, 217, 0.12), transparent 32%),
    #fffdfb;
  box-shadow: 0 36px 96px rgba(31, 41, 55, 0.16);
}

.designer-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 54px;
}

.designer-brand,
.designer-links,
.designer-actions,
.hero-kicker,
.trust-strip,
.stat-row,
.designer-footer,
.designer-footer div {
  display: flex;
  align-items: center;
}

.designer-brand {
  gap: 10px;
}

.designer-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff7a32, #218bd8);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(255, 122, 50, 0.22);
}

.designer-brand strong,
.designer-brand small {
  display: block;
  line-height: 1.04;
}

.designer-brand small {
  color: #7a7f88;
  font-size: 11px;
  font-weight: 800;
}

.designer-links {
  gap: 28px;
  color: #282d35;
  font-size: 12px;
  font-weight: 800;
}

.designer-nav-cta,
.designer-primary,
.designer-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
}

.designer-nav-cta {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.designer-hero {
  position: relative;
  padding: 38px 54px 62px;
  text-align: center;
}

.designer-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 122, 50, 0.12), transparent 29%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.92), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-kicker,
.designer-hero-copy,
.hero-visual-wrap,
.trust-strip {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #626873;
  font-size: 13px;
  font-weight: 850;
}

.hero-kicker strong {
  color: #21252c;
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-stack i {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-left: -7px;
  background: linear-gradient(135deg, #ffb16f, #60a5fa);
}

.avatar-stack i:first-child {
  margin-left: 0;
}

.avatar-stack i:nth-child(2) {
  background: linear-gradient(135deg, #82d7c0, #3b82f6);
}

.avatar-stack i:nth-child(3) {
  background: linear-gradient(135deg, #f9a8d4, #ff7a32);
}

.designer-hero-copy {
  width: min(720px, 100%);
  margin: 0 auto;
}

.designer-hero h1 {
  margin: 0;
  color: #17191f;
  font-size: clamp(42px, 4.7vw, 60px);
  line-height: 1;
  text-align: center;
}

.designer-hero h1 span {
  display: block;
  color: #f97316;
}

.designer-hero p {
  max-width: 590px;
  margin: 14px auto 0;
  color: #5f6570;
  font-size: 16px;
  line-height: 1.56;
}

.designer-actions {
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.designer-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
}

.designer-secondary {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.designer-hero-copy > small {
  display: none;
  margin-top: 10px;
  color: #8b919c;
  font-size: 12px;
  font-weight: 800;
}

.hero-visual-wrap {
  width: min(920px, 100%);
  margin: 22px auto 0;
  transform: translateY(-82px);
  margin-bottom: -82px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(31, 41, 55, 0.14);
}

.hero-visual-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
}

.visual-card {
  position: absolute;
  width: 210px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.visual-card span {
  color: #747b87;
  font-size: 12px;
  font-weight: 900;
}

.visual-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 24px;
  line-height: 1.05;
}

.visual-card p {
  margin: 8px 0 0;
  color: #5f6570;
  font-size: 13px;
  line-height: 1.4;
}

.visual-score {
  left: -44px;
  top: 28%;
  transform: rotate(-3deg);
}

.visual-angle {
  right: -54px;
  top: 20%;
  transform: rotate(3deg);
}

.visual-usage {
  right: 58px;
  bottom: -32px;
}

.trust-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin: 74px auto 0;
  color: #8a9099;
  font-size: 14px;
  font-weight: 900;
}

.designer-section {
  padding: 74px 62px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-intro.left {
  margin-left: 0;
  text-align: left;
}

.section-intro h2,
.workflow-copy h2 {
  margin: 10px 0 0;
  color: #17191f;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
}

.section-intro p,
.workflow-copy p {
  margin: 14px 0 0;
  color: #666d78;
  line-height: 1.56;
}

.slider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
}

.slider-grid article,
.category-grid article,
.mini-dashboard {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.07);
}

.slider-grid article {
  min-height: 190px;
  border-radius: 8px;
  padding: 24px;
}

.slider-grid span,
.category-grid span {
  color: #f97316;
  font-weight: 950;
}

.slider-grid h3 {
  margin: 28px 0 10px;
  color: #22252c;
  font-size: 20px;
}

.slider-grid p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.workflow-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 46px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 35%, rgba(33, 139, 216, 0.10), transparent 30%),
    #fbfdff;
}

.mini-dashboard {
  border-radius: 20px;
  padding: 18px;
}

.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 13px;
}

.mini-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8dde7;
}

.mini-head strong {
  margin-left: 6px;
  color: #2b3038;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-grid article {
  min-height: 118px;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.mini-grid article span {
  color: #7a828e;
  font-size: 12px;
  font-weight: 900;
}

.mini-grid article strong {
  display: block;
  margin-top: 10px;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.1;
}

.mini-grid article p {
  margin: 10px 0 0;
  color: #68707d;
}

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

.bars {
  height: 74px;
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 12px;
}

.bars i {
  width: 100%;
  border-radius: 999px 999px 0 0;
  background: #ece7e2;
}

.bars i:nth-child(1) { height: 38%; }
.bars i:nth-child(2) { height: 58%; }
.bars i:nth-child(3) { height: 78%; background: #f97316; }
.bars i:nth-child(4) { height: 50%; }
.bars i:nth-child(5) { height: 68%; }

.pro-copy {
  padding: 0;
}

.stat-row {
  gap: 26px;
  margin-top: 26px;
}

.stat-row strong {
  color: #111827;
  font-size: 28px;
}

.stat-row span {
  display: block;
  margin-top: 4px;
  color: #747b87;
  font-size: 12px;
  font-weight: 850;
}

.category-band {
  background: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-grid article {
  min-height: 132px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 10px;
  text-align: center;
}

.category-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.10);
}

.category-grid strong {
  color: #252a33;
  font-size: 14px;
}

.category-grid small {
  color: #7a828e;
  font-weight: 750;
}

.designer-pricing {
  background:
    linear-gradient(180deg, #fff, #f8fbff);
}

.designer-pricing .price-card {
  border-radius: 14px;
}

.designer-footer {
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 0 62px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: #6b7280;
  font-weight: 850;
}

.designer-footer div {
  gap: 18px;
}

@media (max-width: 1080px) {
  .designer-links {
    gap: 16px;
  }

  .visual-score,
  .visual-angle,
  .visual-usage {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 12px;
    transform: none;
  }

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

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

@media (max-width: 720px) {
  .designer-shell {
    width: min(100% - 22px, 1190px);
    margin: 12px auto 28px;
  }

  .designer-nav,
  .designer-footer {
    padding: 16px 18px;
  }

  .designer-nav,
  .designer-links,
  .designer-footer,
  .designer-footer div,
  .designer-actions,
  .hero-kicker,
  .stat-row {
    display: grid;
    justify-items: center;
  }

  .designer-links {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .designer-hero,
  .designer-section {
    padding: 42px 18px;
  }

  .designer-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero-visual-wrap {
    margin-top: 34px;
    transform: none;
    margin-bottom: 0;
  }

  .hero-visual-wrap img {
    aspect-ratio: 4 / 3;
  }

  .slider-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

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

/* User bidder studio v8 */
.bidder-studio {
  height: 100vh;
  display: grid;
  grid-template-columns: 72px 270px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 12%, rgba(153, 112, 255, 0.18), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(255, 150, 88, 0.12), transparent 26%),
    #f6f5f8;
  color: #16171d;
}

.studio-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 20px;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 16px 0 50px rgba(31, 41, 55, 0.04);
}

.rail-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #111216;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.studio-rail nav,
.rail-bottom,
.studio-menu,
.recent-list {
  display: grid;
}

.studio-rail nav,
.rail-bottom {
  gap: 12px;
  justify-items: center;
}

.studio-rail a,
.studio-rail button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 950;
}

.studio-rail a.active,
.studio-rail a:hover,
.studio-rail button.active,
.studio-rail button:hover {
  background: #fff;
  color: #7c3aed;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12);
}

.rail-logo img,
.profile-mark img,
.top-profile img,
#profileAvatarPreview img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.studio-sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 16px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.74);
  border-right: 1px solid rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.studio-brand,
.studio-user,
.studio-topbar,
.studio-actions,
.output-head {
  display: flex;
  align-items: center;
}

.studio-brand {
  gap: 10px;
}

.profile-mark {
  border: 0;
  padding: 0;
}

.studio-brand strong,
.studio-brand span,
.studio-user strong,
.studio-user span {
  display: block;
  line-height: 1.1;
}

.studio-brand span,
.studio-user span {
  color: #777e8b;
  font-size: 12px;
  font-weight: 800;
}

.new-chat-btn {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: #111216;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(17, 18, 22, 0.16);
}

.studio-search {
  position: relative;
  margin: 0;
}

.studio-search span {
  display: none;
}

.studio-search input {
  border-radius: 12px;
  background: #fff;
}

.studio-menu,
.recent-list {
  gap: 8px;
}

.studio-menu a,
.studio-menu button {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: #3c424d;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.studio-menu a.active,
.studio-menu a:hover,
.studio-menu button.active,
.studio-menu button:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.recent-list {
  align-content: start;
  overflow: hidden;
}

.recent-list span {
  margin-top: 8px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.recent-list p {
  margin: 0;
  overflow: hidden;
  color: #343a45;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-user {
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  padding-top: 14px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  text-align: left;
  width: 100%;
}

.studio-user > span,
.studio-user a {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
}

.studio-main {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 22px;
  overflow: hidden;
}

.studio-topbar {
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 54px rgba(31, 41, 55, 0.07);
  backdrop-filter: blur(20px);
}

.workspace-select span,
.output-head span {
  color: #747b87;
  font-size: 12px;
  font-weight: 850;
}

.workspace-select strong {
  display: block;
  margin-top: 2px;
}

.studio-actions {
  gap: 10px;
}

.top-profile {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #111216;
  color: #fff;
  font-weight: 950;
  overflow: hidden;
}

.icon-action,
.upgrade-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 900;
}

.icon-action {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  color: #1f2937;
}

.upgrade-action {
  background: #111216;
  color: #fff;
}

.studio-welcome {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 0 24px;
  text-align: center;
}

.ai-orb {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.95), transparent 24%),
    radial-gradient(circle at 50% 50%, #e6dcff, #a978ff 58%, rgba(124, 58, 237, 0.15) 62%);
  box-shadow: 0 0 0 14px rgba(124, 58, 237, 0.06), 0 20px 60px rgba(124, 58, 237, 0.24);
}

.studio-welcome h1 {
  margin: 0;
  color: #9d72ff;
  font-size: clamp(28px, 3vw, 44px);
}

.studio-welcome p {
  margin: 0;
  color: #22242b;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 850;
  line-height: 1.15;
}

.bid-workspace {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(440px, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.studio-view {
  display: none;
  min-height: 0;
  overflow: auto;
}

.studio-view.active {
  display: block;
}

#view-proposal.active,
#view-followup.active,
#view-training.active {
  overflow: hidden;
}

.compact-welcome {
  padding-bottom: 14px;
}

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

.dash-stat,
.usage-chart-card,
.history-card,
.history-page {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.dash-stat {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
}

.dash-stat span {
  color: #747b87;
  font-size: 12px;
  font-weight: 900;
}

.dash-stat strong {
  color: #14161c;
  font-size: 42px;
  line-height: 1;
}

.dash-stat small {
  color: #8b93a1;
  font-weight: 800;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
}

.usage-chart-card,
.history-card,
.history-page {
  overflow: hidden;
}

.usage-chart {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  padding: 24px;
}

.usage-chart div {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 9px;
}

.usage-chart i {
  width: 100%;
  max-width: 42px;
  align-self: end;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #8b5cf6, #111216);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.16);
}

.usage-chart span {
  color: #7b828f;
  font-size: 11px;
  font-weight: 850;
}

.history-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.history-list.large {
  padding: 20px;
}

.profile-intelligence-page {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 0%, rgba(124, 58, 237, 0.10), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(0, 113, 227, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(61, 74, 102, 0.10);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.intelligence-form {
  max-height: calc(100vh - 154px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  scrollbar-width: thin;
}

.intelligence-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 26px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68)),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,0.9), transparent 34%);
  box-shadow: 0 18px 48px rgba(61, 74, 102, 0.08);
}

.primary-memory-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: start;
}

.intelligence-card h3 {
  margin: 2px 0 8px;
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1;
}

.intelligence-card p,
.intelligence-section-head small {
  margin: 0;
  color: #7b828f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.intelligence-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.intelligence-section-head h3 {
  font-size: clamp(22px, 1.8vw, 30px);
}

.intelligence-form label {
  margin-bottom: 12px;
  color: #282d38;
  font-size: 13px;
  font-weight: 900;
}

.intelligence-form input,
.intelligence-form textarea {
  border-color: rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.intelligence-actions {
  position: sticky;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 -12px 42px rgba(61, 74, 102, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.history-item span {
  color: #8b93a1;
  font-size: 12px;
  font-weight: 850;
}

.history-item strong {
  display: block;
  margin-top: 4px;
  color: #252a33;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-item button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed;
  font-weight: 900;
}

.history-item button[data-delete] {
  background: rgba(255, 59, 48, 0.10);
  color: #c24136;
}

.empty-line {
  margin: 0;
  color: #8b93a1;
  text-align: center;
}

.bid-input-card,
.bid-output-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.mobile-bid-switch {
  display: none;
}

.bid-input-card {
  padding: 18px;
  min-height: 0;
  overflow: auto;
}

.compact-head {
  margin-bottom: 14px;
}

.bid-input-card label {
  margin-bottom: 12px;
}

.bid-input-card input,
.bid-input-card textarea,
.bid-input-card select {
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
}

.attachment-drop {
  min-height: 84px;
  align-content: center;
  border: 1px dashed rgba(124, 58, 237, 0.28);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(0, 113, 227, 0.04)),
    rgba(255, 255, 255, 0.82);
  color: #343a45;
}

.attachment-drop input {
  display: none;
}

.attachment-drop span {
  display: block;
  margin-top: 4px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 850;
}

.generate-bid-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #111216, #3b2a67);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(63, 44, 111, 0.18);
}

.bid-output-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.output-head {
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  padding: 18px 20px;
}

.output-head h2 {
  margin-top: 2px;
  font-size: 28px;
}

.output-status {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed !important;
}

.proposal-canvas {
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.98)),
    radial-gradient(circle at 16% 0%, rgba(124, 58, 237, 0.06), transparent 28%),
    #fff;
  background-size: 100% 38px;
  padding: 28px 30px;
  overflow: auto;
  color: #1f2430;
  font-size: 15px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.proposal-canvas.empty-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  color: #8b93a1;
  text-align: center;
}

.proposal-canvas.is-thinking {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(124, 58, 237, 0.12), transparent 32%),
    radial-gradient(circle at 30% 74%, rgba(0, 113, 227, 0.08), transparent 26%),
    #fff;
}

.ai-thinking {
  width: min(100%, 560px);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  color: #1f2430;
}

.thinking-orb {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.98), transparent 18%),
    radial-gradient(circle at 50% 50%, #d8c8ff, #8057ff 54%, rgba(124,58,237,0.16) 62%);
  box-shadow:
    0 0 0 16px rgba(124, 58, 237, 0.06),
    0 26px 70px rgba(124, 58, 237, 0.28);
  animation: thinkingPulse 1.8s ease-in-out infinite;
}

.thinking-orb::before,
.thinking-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(124, 58, 237, 0.24);
  animation: thinkingRing 2.4s linear infinite;
}

.thinking-orb::after {
  inset: -20px;
  border-color: rgba(0, 113, 227, 0.16);
  animation-duration: 3.2s;
  animation-direction: reverse;
}

.thinking-orb i {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  filter: blur(1px);
  animation: thinkingFloat 2.2s ease-in-out infinite alternate;
}

.thinking-orb b {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 8px rgba(255,255,255,0.45);
}

.thinking-copy strong {
  display: block;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.1;
}

.thinking-copy p {
  max-width: 430px;
  margin: 8px auto 0;
  color: #747b87;
  line-height: 1.5;
}

.thinking-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.thinking-steps span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(124, 58, 237, 0.10);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,0.72);
  color: #5f6675;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(61, 74, 102, 0.06);
  animation: stepGlow 1.8s ease-in-out infinite;
}

.thinking-steps span:nth-child(2) {
  animation-delay: 220ms;
}

.thinking-steps span:nth-child(3) {
  animation-delay: 440ms;
}

.thinking-steps span:nth-child(4) {
  animation-delay: 660ms;
}

.thinking-scan {
  width: min(100%, 420px);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 18, 22, 0.06);
}

.thinking-scan i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #0a84ff, #34c759);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
  animation: scanMove 1.25s ease-in-out infinite alternate;
}

@keyframes thinkingPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.035); }
}

@keyframes thinkingRing {
  from { transform: rotate(0deg) scale(1); opacity: 0.78; }
  to { transform: rotate(360deg) scale(1.05); opacity: 0.38; }
}

@keyframes thinkingFloat {
  from { transform: translate(-10px, -8px); opacity: 0.55; }
  to { transform: translate(10px, 8px); opacity: 0.9; }
}

@keyframes stepGlow {
  0%, 100% { transform: translateY(0); background: rgba(255,255,255,0.72); }
  50% { transform: translateY(-2px); background: rgba(244,240,255,0.92); }
}

@keyframes scanMove {
  from { transform: translateX(-8%); }
  to { transform: translateX(148%); }
}

.edit-composer {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  background: rgba(255, 255, 255, 0.88);
}

.edit-composer.active {
  display: grid;
}

.edit-composer textarea {
  min-height: 52px;
  max-height: 120px;
  resize: vertical;
  border-radius: 16px;
  background: #fff;
}

.edit-composer button {
  min-width: 154px;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #111216;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(17, 18, 22, 0.13);
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.profile-modal.active {
  display: block;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 22, 0.28);
  backdrop-filter: blur(10px);
}

.profile-panel {
  position: absolute;
  top: 22px;
  right: 22px;
  width: min(560px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 100px rgba(31, 41, 55, 0.24);
  overflow: hidden;
}

.profile-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.profile-panel header span,
.profile-actions span {
  color: #7b828f;
  font-size: 12px;
  font-weight: 850;
}

.profile-panel header h2 {
  margin-top: 2px;
  font-size: 30px;
}

.profile-panel header button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed;
  font-weight: 900;
}

.profile-form {
  overflow: auto;
  padding: 20px;
}

.profile-photo-picker {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #252a33;
  cursor: pointer;
}

.profile-photo-picker input {
  display: none;
}

#profileAvatarPreview {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, #111216, #3b2a67);
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(63, 44, 111, 0.18);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

/* User studio v15 polish */
.bidder-studio {
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 70% 5%, rgba(183, 212, 255, 0.55), transparent 28%),
    radial-gradient(circle at 48% 72%, rgba(255, 224, 229, 0.46), transparent 30%),
    linear-gradient(135deg, #eef3ff 0%, #fbfbfd 48%, #fff2ee 100%);
}

.studio-rail {
  display: none;
}

.studio-sidebar {
  position: relative;
  height: calc(100vh - 36px);
  top: auto;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.80);
  border-radius: 30px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 90px rgba(61, 74, 102, 0.12);
}

.studio-brand {
  min-height: 78px;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(135deg, #111216, #2c2d34);
  color: #fff;
  box-shadow: 0 20px 44px rgba(17, 18, 22, 0.16);
}

.studio-brand .mark,
.studio-brand .profile-mark {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.studio-brand span {
  color: rgba(255, 255, 255, 0.68);
}

.new-chat-btn {
  min-height: 54px;
  border-radius: 18px;
  background: #111216;
  box-shadow: 0 18px 34px rgba(17, 18, 22, 0.14);
}

.studio-search input {
  min-height: 52px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(61, 74, 102, 0.05);
}

.studio-menu {
  gap: 7px;
}

.studio-menu button {
  min-height: 46px;
  border-radius: 16px;
  padding: 0 14px;
  color: #3b4250;
  font-size: 14px;
}

.studio-menu button.active,
.studio-menu button:hover {
  background: #fff;
  box-shadow: 0 16px 30px rgba(61, 74, 102, 0.08);
}

.recent-list {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.recent-list p {
  min-height: 28px;
  display: flex;
  align-items: center;
}

.studio-user {
  min-height: 62px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(61, 74, 102, 0.06);
}

.studio-main {
  height: calc(100vh - 36px);
  gap: 16px;
  padding: 0;
}

.studio-topbar {
  min-height: 76px;
  border-radius: 30px;
  padding: 14px 18px 14px 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(61, 74, 102, 0.10);
}

.workspace-select span {
  color: #858b99;
}

.workspace-select strong {
  font-size: 18px;
}

.icon-action,
.upgrade-action,
.top-profile {
  min-height: 46px;
  border-radius: 16px;
}

.icon-action {
  background: rgba(255, 255, 255, 0.92);
}

.top-profile {
  width: 46px;
  height: 46px;
}

.studio-view.active {
  min-height: 0;
}

.bid-workspace {
  grid-template-columns: minmax(360px, 0.43fr) minmax(520px, 0.57fr);
  gap: 18px;
}

.bid-input-card,
.bid-output-card,
.history-page,
.usage-chart-card,
.history-card,
.dash-stat {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(61, 74, 102, 0.10);
}

.bid-input-card {
  border-radius: 28px;
  padding: 22px;
  scrollbar-width: none;
}

.proposal-canvas::-webkit-scrollbar,
.recent-list::-webkit-scrollbar {
  width: 8px;
}

.proposal-canvas::-webkit-scrollbar-thumb,
.recent-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 18, 22, 0.18);
}

.bid-input-card::-webkit-scrollbar {
  display: none;
}

.compact-head h2 {
  font-size: 24px;
}

.bid-input-card label {
  color: #282d38;
  font-size: 13px;
}

.bid-input-card input,
.bid-input-card textarea,
.bid-input-card select {
  border-color: rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bid-input-card textarea[name="job"] {
  min-height: 180px;
}

.bid-input-card textarea[name="custom_instructions"] {
  min-height: 118px;
}

.attachment-drop {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(0, 113, 227, 0.04)),
    rgba(255, 255, 255, 0.88);
}

.generate-bid-btn {
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111216, #262334);
  box-shadow: 0 18px 36px rgba(17, 18, 22, 0.16);
}

.bid-output-card {
  border-radius: 30px;
}

.output-head {
  min-height: 94px;
  padding: 22px 28px;
}

.output-head h2 {
  font-size: clamp(30px, 2.2vw, 42px);
}

.output-status,
.pill {
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed !important;
}

.proposal-canvas {
  padding: 34px 42px;
  background: #fff;
  font-size: 16px;
  line-height: 1.78;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 18, 22, 0.20) transparent;
}

.edit-composer {
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 12px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.edit-composer textarea {
  min-height: 64px;
  border-radius: 20px;
  font-size: 14px;
}

.edit-composer button {
  min-width: 0;
  min-height: 64px;
  border-radius: 20px;
}

.dashboard-grid {
  gap: 16px;
}

.dash-stat,
.usage-chart-card,
.history-card,
.history-page {
  border-radius: 28px;
}

.dash-stat {
  min-height: 150px;
}

@media (max-width: 1180px) {
  .bidder-studio {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }

  .studio-sidebar {
    display: grid;
  }

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

@media (max-width: 860px) {
  .bidder-studio {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .studio-sidebar,
  .studio-main {
    height: auto;
  }

  .studio-main {
    overflow: visible;
  }
}

@media (max-width: 1180px) {
  .bidder-studio {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .studio-sidebar {
    display: none;
  }

  .bid-workspace {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .dashboard-grid,
  .dashboard-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .bidder-studio {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .studio-rail {
    position: relative;
    height: auto;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    padding: 10px;
  }

  .studio-rail nav,
  .rail-bottom {
    display: flex;
  }

  .studio-main {
    height: auto;
    overflow: visible;
    padding: 12px;
  }

  .studio-view,
  #view-proposal.active,
  #view-followup.active,
  #view-training.active {
    overflow: visible;
  }

  .bid-workspace {
    height: auto;
  }

  .studio-topbar,
  .studio-actions,
  .split {
    display: grid;
  }

  .edit-composer.active {
    display: grid;
    grid-template-columns: 1fr;
  }

  .studio-welcome {
    padding: 24px 0 18px;
  }

  .bid-output-card {
    height: min(680px, 78vh);
    min-height: 460px;
  }

  .profile-panel {
    inset: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
  }

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

  .dashboard-grid,
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

/* Final responsive guard for v15 */
@media (max-width: 1180px) {
  .bidder-studio {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }

  .studio-rail {
    display: none;
  }

  .studio-sidebar {
    display: grid;
  }
}

@media (max-width: 860px) {
  .bidder-studio {
    grid-template-columns: 1fr;
  }

  .studio-sidebar {
    display: grid;
  }
}

.bid-input-card {
  scrollbar-width: none !important;
}

.bid-input-card::-webkit-scrollbar {
  display: none !important;
}

/* Mobile-first Apple polish v17 */
.new-chat-btn,
.generate-bid-btn,
.upgrade-action,
.edit-composer button,
.icon-action,
.top-profile,
.studio-menu button,
.studio-user,
.profile-trigger {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.new-chat-btn::after,
.generate-bid-btn::after,
.upgrade-action::after,
.edit-composer button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255,255,255,0.24) 45%, transparent 56% 100%);
  transform: translateX(-120%);
  transition: transform 680ms ease;
}

.new-chat-btn:hover::after,
.generate-bid-btn:hover::after,
.upgrade-action:hover::after,
.edit-composer button:hover::after {
  transform: translateX(120%);
}

.new-chat-btn:active,
.generate-bid-btn:active,
.upgrade-action:active,
.edit-composer button:active,
.icon-action:active,
.top-profile:active,
.studio-menu button:active {
  transform: scale(0.98);
}

.bid-input-card,
.bid-output-card,
.studio-topbar,
.studio-sidebar,
.dash-stat,
.usage-chart-card,
.history-card,
.history-page {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.64)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.82), transparent 28%);
}

@media (max-width: 760px) {
  html,
  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(164, 197, 255, 0.56), transparent 38%),
      radial-gradient(circle at 100% 34%, rgba(255, 210, 222, 0.58), transparent 30%),
      linear-gradient(180deg, #f5f8ff 0%, #fff8f6 100%);
  }

  .bidder-studio {
    min-height: 100vh;
    display: block;
    padding: 12px;
    background: transparent;
  }

  .studio-rail {
    display: none !important;
  }

  .studio-sidebar {
    position: sticky;
    top: 8px;
    z-index: 20;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "brand new"
      "menu menu";
    gap: 10px;
    padding: 10px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 60px rgba(58, 70, 96, 0.13);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
  }

  .studio-brand {
    grid-area: brand;
  }

  .new-chat-btn {
    grid-area: new;
    width: 52px;
    min-height: 52px;
    padding: 0;
    font-size: 0;
  }

  .new-chat-btn::before {
    content: "+";
    font-size: 24px;
    line-height: 1;
  }

  .studio-search,
  .studio-user {
    display: none;
  }

  .studio-brand {
    min-height: 62px;
    border-radius: 22px;
    padding: 10px;
  }

  .studio-brand .mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .studio-brand strong {
    font-size: 16px;
  }

  .new-chat-btn {
    min-height: 50px;
    border-radius: 20px;
  }

  .studio-search input {
    min-height: 46px;
    border-radius: 18px;
  }

  .studio-menu {
    grid-area: menu;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .studio-menu::-webkit-scrollbar {
    display: none;
  }

  .studio-menu button {
    min-width: max-content;
    min-height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.70);
    scroll-snap-align: start;
  }

  .studio-menu button.active {
    background: #111216;
    color: #fff;
    box-shadow: 0 14px 30px rgba(17, 18, 22, 0.14);
  }

  .recent-list {
    display: none;
  }

  .studio-user {
    min-height: 52px;
    border-radius: 18px;
    padding: 10px 12px;
  }

  .studio-main {
    height: auto;
    display: block;
    margin-top: 12px;
    overflow: visible;
  }

  .studio-topbar {
    position: sticky;
    top: 140px;
    z-index: 16;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: auto;
    border-radius: 26px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
  }

  .workspace-select strong {
    font-size: 18px;
  }

  .studio-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .icon-action,
  .upgrade-action {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 15px;
    font-size: 13px;
  }

  .top-profile {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }

  .bid-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    overflow: visible;
  }

  .mobile-bid-switch {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    position: sticky;
    top: 224px;
    z-index: 14;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 18px;
    background: rgba(255,255,255,0.76);
    box-shadow: 0 16px 42px rgba(61,74,102,0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .mobile-bid-switch button {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #626a78;
    font-size: 12px;
    font-weight: 900;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  }

  .mobile-bid-switch button:active {
    transform: scale(0.97);
  }

  .mobile-bid-switch button.active {
    background: #111216;
    color: #fff;
    box-shadow: 0 10px 24px rgba(17,18,22,0.16);
  }

  #userBidForm[data-mobile-pane="input"] .bid-output-card,
  #userBidForm[data-mobile-pane="output"] .bid-input-card {
    display: none;
  }

  .bid-input-card,
  .bid-output-card {
    border-radius: 28px;
    background:
      linear-gradient(145deg, rgba(255,255,255,0.80), rgba(255,255,255,0.58)),
      radial-gradient(circle at 20% 0%, rgba(255,255,255,0.9), transparent 34%);
    box-shadow: 0 20px 64px rgba(58, 70, 96, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .bid-input-card {
    padding: 16px;
  }

  .compact-head {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: -16px -16px 14px;
    padding: 16px;
    border-radius: 28px 28px 18px 18px;
    background: rgba(255,255,255,0.76);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .compact-head h2 {
    font-size: 22px;
  }

  .bid-input-card label {
    font-size: 12px;
    margin-bottom: 11px;
  }

  .bid-input-card input,
  .bid-input-card textarea,
  .bid-input-card select {
    border-radius: 20px;
    padding: 14px;
    background: rgba(255,255,255,0.86);
  }

  .bid-input-card textarea[name="job"] {
    min-height: 150px;
  }

  .bid-input-card textarea[name="custom_instructions"] {
    min-height: 104px;
  }

  .attachment-drop {
    min-height: 78px;
    border-radius: 22px;
  }

  .split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .generate-bid-btn {
    position: sticky;
    bottom: 12px;
    z-index: 4;
    min-height: 56px;
    border-radius: 22px;
  }

  .bid-output-card {
    height: calc(100dvh - 286px);
    min-height: 590px;
    grid-template-rows: auto 1fr auto;
  }

  .output-head {
    min-height: 76px;
    padding: 18px;
  }

  .output-head h2 {
    font-size: 32px;
  }

  .proposal-canvas {
    padding: 22px;
    font-size: 15px;
    line-height: 1.72;
    background: rgba(255,255,255,0.70);
  }

  .proposal-canvas.is-thinking {
    padding: 20px;
  }

  .thinking-orb {
    width: 86px;
    height: 86px;
  }

  .thinking-copy strong {
    font-size: 24px;
  }

  .thinking-copy p {
    font-size: 13px;
  }

  .thinking-steps {
    gap: 7px;
  }

  .thinking-steps span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .edit-composer {
    grid-template-columns: 1fr;
    padding: 12px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .edit-composer textarea {
    min-height: 58px;
    max-height: 96px;
    border-radius: 20px;
  }

  .edit-composer button {
    min-height: 54px;
    border-radius: 20px;
  }

  .dashboard-grid,
  .dashboard-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-intelligence-page {
    border-radius: 28px;
  }

  .intelligence-form {
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .primary-memory-card,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .intelligence-card {
    border-radius: 24px;
    padding: 15px;
  }

  .intelligence-section-head {
    display: grid;
  }

  .dash-stat {
    min-height: 112px;
  }

  .profile-panel {
    inset: 10px;
    border-radius: 28px;
  }
}

@media (max-width: 430px) {
  .bidder-studio {
    padding: 10px;
  }

  .studio-topbar {
    top: 136px;
  }

  .mobile-bid-switch {
    top: 220px;
  }

  .studio-actions {
    gap: 6px;
  }

  .icon-action,
  .upgrade-action {
    padding: 0 10px;
    font-size: 12px;
  }

  .bid-output-card {
    height: 76vh;
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-chat-btn,
  .generate-bid-btn,
  .upgrade-action,
  .edit-composer button,
  .icon-action,
  .top-profile,
  .studio-menu button,
  .studio-user,
  .profile-trigger,
  .new-chat-btn::after,
  .generate-bid-btn::after,
  .upgrade-action::after,
  .edit-composer button::after {
    transition: none;
  }
}

/* Manual checkout */
.payment-body {
  min-height: 100vh;
  margin: 0;
  color: #17191d;
  background: #f4f6f9;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.payment-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid #e0e4ea;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.payment-brand,
.payment-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.payment-brand { color: inherit; text-decoration: none; }
.payment-brand > span,
.payment-user > span {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #16181c;
  font-weight: 900;
}

.payment-brand div,
.payment-user div { display: grid; }
.payment-brand strong,
.payment-user strong { font-size: 14px; }
.payment-brand small,
.payment-user small { color: #788190; font-size: 10px; }

.payment-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.payment-intro { max-width: 700px; margin-bottom: 28px; }
.payment-intro h1 { margin: 8px 0 10px; font-size: clamp(34px, 5vw, 55px); line-height: 1.04; letter-spacing: 0; }
.payment-intro p { max-width: 620px; margin: 0; color: #657080; font-size: 16px; line-height: 1.6; }

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.payment-main-card,
.payment-summary-card {
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 32, 45, 0.08);
}

.payment-main-card { padding: clamp(20px, 4vw, 36px); }
.payment-summary-card { position: sticky; top: 92px; padding: 26px; }

.payment-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
}

.payment-step-head > span {
  width: 32px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #1769e0;
  font-size: 12px;
  font-weight: 850;
}

.payment-step-head div { display: grid; gap: 3px; }
.payment-step-head strong { font-size: 17px; }
.payment-step-head small { color: #788190; font-size: 11px; }

.checkout-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}

.checkout-plan {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  color: #262a31;
  background: #fff;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.checkout-plan:hover { transform: translateY(-2px); border-color: #8ab7f8; box-shadow: 0 10px 24px rgba(23, 105, 224, 0.1); }
.checkout-plan.selected { border: 2px solid #1769e0; padding: 15px; background: #f5f9ff; }
.checkout-plan span { color: #687382; font-size: 11px; font-weight: 800; }
.checkout-plan strong { font-size: 20px; }
.checkout-plan small { color: #87909d; font-size: 10px; line-height: 1.35; }

.payment-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 15px 16px;
  border: 1px solid #cbd9ee;
  border-radius: 8px;
  background: #f4f8ff;
}

.payment-status-banner > svg { width: 20px; color: #1769e0; }
.payment-status-banner > div { min-width: 0; display: grid; gap: 3px; }
.payment-status-banner strong { font-size: 13px; }
.payment-status-banner span { color: #657080; font-size: 11px; line-height: 1.45; }
.payment-status-banner.approved { border-color: #b9dfd2; background: #f0faf6; }
.payment-status-banner.approved > svg { color: #12805c; }
.payment-status-banner.rejected { border-color: #edc7ca; background: #fff6f6; }
.payment-status-banner.rejected > svg { color: #b4232c; }
.payment-status-banner a { margin-left: auto; color: #1769e0; font-size: 11px; font-weight: 800; }

.qr-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.qr-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 15px;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  cursor: pointer;
  background: #fbfcfe;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.qr-option:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(24, 32, 45, 0.08); }
.qr-option:has(input:checked) { border: 2px solid #1769e0; padding: 14px; background: #f7faff; }
.qr-option input { position: absolute; opacity: 0; pointer-events: none; }
.qr-option img { width: min(100%, 220px); aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #fff; }
.qr-option strong { font-size: 14px; }
.qr-option small { color: #747f8f; font-size: 10px; text-align: center; }
.qr-check { position: absolute; top: 10px; right: 10px; width: 24px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #d9dfe7; border-radius: 50%; color: transparent; background: #fff; }
.qr-check svg { width: 13px; }
.qr-option:has(input:checked) .qr-check { border-color: #1769e0; color: #fff; background: #1769e0; }

.manual-account-line,
.payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  background: #f8fafc;
}
.manual-account-line span,
.payment-total span { color: #6f7987; font-size: 11px; }
.manual-account-line strong { font-size: 13px; }
.payment-total { margin: 0 0 30px; background: #17191d; color: #fff; }
.payment-total span { color: #bdc4cd; }
.payment-total strong { font-size: 23px; }
.payment-total strong small { color: #aeb7c2; font-size: 10px; }

.payment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-form-grid label { display: grid; gap: 7px; color: #343a44; font-size: 11px; font-weight: 780; }
.payment-form-grid label span { color: #929aa6; font-size: 9px; font-weight: 650; }
.payment-form-grid input { min-width: 0; height: 48px; border: 1px solid #dce1e8; border-radius: 7px; padding: 0 13px; color: #20242b; background: #fff; font: inherit; }
.payment-form-grid input:focus { outline: 3px solid rgba(23, 105, 224, 0.13); border-color: #1769e0; }

.proof-uploader {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  margin: 14px 0;
  border: 1px dashed #9fb9df;
  border-radius: 8px;
  color: #303743;
  background: #f8fbff;
  cursor: pointer;
  text-align: center;
}
.proof-uploader input { position: absolute; opacity: 0; pointer-events: none; }
.proof-uploader strong { max-width: 90%; overflow-wrap: anywhere; font-size: 13px; }
.proof-uploader small { color: #7a8492; font-size: 10px; }
.proof-preview { width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; color: #1769e0; background: #e9f2ff; }
.proof-preview svg { width: 26px; }
.proof-preview img { width: 100%; height: 100%; object-fit: cover; }

.payment-submit { width: 100%; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; color: #fff; background: #1769e0; box-shadow: 0 12px 24px rgba(23, 105, 224, 0.24); font-size: 14px; font-weight: 850; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; }
.payment-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(23, 105, 224, 0.3); }
.payment-submit svg { width: 18px; }

.summary-label { color: #788190; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.payment-summary-card h2 { margin: 8px 0 16px; font-size: 25px; }
.summary-price { display: flex; align-items: baseline; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid #e7eaf0; }
.summary-price strong { font-size: 34px; }
.summary-price span { color: #788190; font-size: 11px; }
.payment-summary-card ul { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.payment-summary-card li { display: flex; align-items: center; gap: 9px; color: #4e5866; font-size: 11px; line-height: 1.4; }
.payment-summary-card li svg { width: 15px; color: #16835f; }
.review-promise { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 8px; color: #1f2937; background: #eef4ff; }
.review-promise > svg { width: 21px; color: #1769e0; }
.review-promise div { display: grid; gap: 2px; }
.review-promise strong { font-size: 11px; }
.review-promise span { color: #6f7988; font-size: 9px; }
.payment-help { display: grid; gap: 4px; margin-top: 16px; padding: 14px 0; border-bottom: 1px solid #e7eaf0; }
.payment-help span { color: #7a8492; font-size: 10px; }
.payment-help a { color: #1769e0; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.payment-summary-card > p { display: flex; gap: 7px; margin: 14px 0 0; color: #7c8592; font-size: 9px; line-height: 1.5; }
.payment-summary-card > p svg { width: 13px; flex: 0 0 auto; }

/* Payment review */
.nav-count { min-width: 22px; height: 20px; display: inline-grid; place-items: center; margin-left: auto; border-radius: 10px; color: #fff; background: #e24850; font-size: 9px; }
.payment-admin-filters { display: flex; gap: 8px; }
.payment-admin-filters input,
.payment-admin-filters select { min-height: 38px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 11px; background: #fff; font: inherit; }
.payment-review-list { display: grid; gap: 12px; }
.payment-review-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 17px; padding: 14px; border: 1px solid #e0e4ea; border-radius: 8px; background: #fff; }
.payment-proof-thumb { position: relative; min-height: 150px; overflow: hidden; border-radius: 7px; background: #f1f4f8; }
.payment-proof-thumb img { width: 100%; height: 100%; object-fit: cover; }
.payment-proof-thumb span { position: absolute; inset: auto 8px 8px; padding: 7px 9px; border-radius: 6px; color: #fff; background: rgba(17, 20, 25, 0.82); font-size: 9px; font-weight: 800; text-align: center; }
.payment-review-copy { min-width: 0; display: grid; align-content: start; gap: 12px; }
.payment-review-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.payment-review-title > div { min-width: 0; display: grid; gap: 4px; }
.payment-review-title strong { font-size: 15px; }
.payment-review-title span { color: #727c89; font-size: 10px; overflow-wrap: anywhere; }
.payment-state { padding: 7px 9px; border-radius: 7px; color: #8a5a06; background: #fff5dc; font-size: 9px; white-space: nowrap; }
.payment-state.approved { color: #087354; background: #e9f8f2; }
.payment-state.rejected { color: #af2630; background: #fff0f1; }
.payment-state.superseded { color: #697382; background: #f0f2f5; }
.payment-review-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-review-meta span { padding: 7px 9px; border-radius: 6px; color: #626c79; background: #f4f6f8; font-size: 9px; }
.payment-review-note { margin: 0; color: #6b7481; font-size: 10px; line-height: 1.5; }
.payment-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.payment-review-actions button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dce1e8; border-radius: 7px; padding: 0 12px; color: #4c5664; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.payment-review-actions button svg { width: 14px; }
.payment-review-actions .approve { border-color: #b7ded0; color: #087354; background: #eefaf6; }
.payment-review-actions .reject { border-color: #ebc4c7; color: #af2630; background: #fff6f6; }
.admin-form-grid .span-2 { grid-column: 1 / -1; }

@media (max-width: 820px) {
  .payment-user div { display: none; }
  .payment-shell { width: min(100% - 24px, 680px); padding: 34px 0 60px; }
  .payment-layout { grid-template-columns: 1fr; }
  .payment-summary-card { position: static; grid-row: 1; }
  .checkout-plans { grid-template-columns: 1fr; }
  .checkout-plan { grid-template-columns: 1fr auto; align-items: center; }
  .checkout-plan small { grid-column: 1 / -1; }
  .payment-admin-filters { width: 100%; }
  .payment-admin-filters input { min-width: 0; flex: 1; }
  .payment-review-card { grid-template-columns: 110px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .payment-topbar { min-height: 62px; padding: 8px 12px; }
  .payment-brand > span,
  .payment-user > span { width: 38px; }
  .payment-shell { width: min(100% - 18px, 480px); padding-top: 26px; }
  .payment-intro h1 { font-size: 34px; }
  .payment-intro p { font-size: 14px; }
  .payment-main-card,
  .payment-summary-card { box-shadow: 0 10px 28px rgba(24, 32, 45, 0.07); }
  .payment-main-card { padding: 16px; }
  .payment-summary-card { padding: 20px; }
  .qr-options { grid-template-columns: 1fr; }
  .qr-option img { width: min(82vw, 260px); }
  .payment-form-grid { grid-template-columns: 1fr; }
  .payment-status-banner { align-items: flex-start; }
  .payment-status-banner a { margin-left: 0; }
  .payment-review-card { grid-template-columns: 1fr; }
  .payment-proof-thumb { min-height: 230px; }
  .payment-review-title { align-items: flex-start; }
}

/* Admin control center */
.admin-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 6%, rgba(135, 176, 255, 0.30), transparent 28%),
    radial-gradient(circle at 46% 92%, rgba(255, 196, 210, 0.30), transparent 30%),
    linear-gradient(135deg, #eef3ff 0%, #fbfbfd 52%, #fff5f2 100%);
}

.admin-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.admin-sidebar,
.admin-topbar,
.admin-panel,
.admin-hero,
.admin-stats article {
  border: 1px solid rgba(255,255,255,0.78);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.84), rgba(255,255,255,0.62)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.82), transparent 28%);
  box-shadow: 0 24px 70px rgba(61, 74, 102, 0.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  border-radius: 30px;
  padding: 16px;
}

.admin-brand,
.admin-side-card {
  border-radius: 22px;
  padding: 14px;
}

.admin-brand {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: linear-gradient(135deg, #111216, #2c2d34);
  color: #fff;
  box-shadow: 0 20px 44px rgba(17,18,22,0.16);
}

.admin-brand > div:last-child {
  min-width: 0;
}

.admin-brand strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

.admin-brand .mark {
  background: rgba(255,255,255,0.10);
  box-shadow: none;
}

.admin-brand span,
.admin-side-card span,
.admin-side-card small,
.admin-panel-head span,
.admin-hero span {
  color: #7b828f;
  font-size: 12px;
  font-weight: 850;
}

.admin-brand span {
  color: rgba(255,255,255,0.68);
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-nav button,
.admin-logout {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  background: transparent;
  color: #3b4250;
  font-weight: 850;
  text-align: left;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: #111216;
  color: #fff;
  box-shadow: 0 14px 30px rgba(17,18,22,0.14);
}

.admin-side-card {
  background: rgba(255,255,255,0.76);
}

.admin-side-card strong,
.admin-side-card small {
  display: block;
}

.admin-side-card strong {
  margin-top: 6px;
  color: #111216;
}

.admin-logout {
  justify-content: center;
  background: rgba(255,255,255,0.76);
  color: #7c3aed;
}

.admin-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.admin-topbar {
  min-height: 76px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 30px;
  padding: 14px 18px 14px 22px;
}

.admin-topbar h1 {
  margin-top: 4px;
  font-size: 30px;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-view {
  display: none;
  min-width: 0;
}

.admin-view.active {
  display: block;
}

.admin-hero {
  min-height: 210px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 34px;
  padding: 28px;
  overflow: hidden;
}

.admin-hero h2 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(34px, 4vw, 58px);
  overflow-wrap: anywhere;
}

.admin-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.98), transparent 18%),
    radial-gradient(circle at 50% 50%, #d8c8ff, #8057ff 54%, rgba(124,58,237,0.16) 62%);
  box-shadow: 0 0 0 18px rgba(124,58,237,0.06), 0 30px 80px rgba(124,58,237,0.28);
  animation: thinkingPulse 2s ease-in-out infinite;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.admin-stats article,
.admin-panel {
  min-width: 0;
  border-radius: 28px;
  padding: 20px;
}

.admin-stats span {
  color: #7b828f;
  font-size: 12px;
  font-weight: 900;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
}

.admin-stats small {
  color: #8b93a1;
  font-weight: 800;
}

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

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

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: 1 / -1;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin-top: 3px;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.admin-panel-head input {
  max-width: 280px;
}

.admin-chart {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  align-items: end;
  gap: 9px;
}

.admin-chart div {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 8px;
}

.admin-chart i {
  width: 100%;
  max-width: 34px;
  align-self: end;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #7c3aed, #0a84ff);
  box-shadow: 0 12px 24px rgba(124,58,237,0.16);
}

.admin-chart span,
.plan-bar span,
.admin-list-item span,
.admin-list-item small,
.admin-user-row span {
  color: #7b828f;
  font-size: 12px;
  font-weight: 800;
}

.plan-bars,
.admin-list,
.admin-table,
.plans-editor,
.admin-form-grid {
  display: grid;
  gap: 12px;
}

.plan-bar {
  display: grid;
  gap: 8px;
}

.plan-bar > div {
  display: flex;
  justify-content: space-between;
}

.plan-bar i {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17,18,22,0.07);
}

.plan-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111216, #7c3aed);
}

.admin-list-item,
.admin-user-row,
.plan-editor-card {
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.78);
}

.admin-list-item {
  display: grid;
  gap: 10px;
}

.admin-list-item strong,
.admin-user-row strong {
  display: block;
  margin-top: 4px;
}

.admin-list-item pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  color: #252a33;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 120px 120px 110px 110px 70px 70px;
  align-items: center;
  gap: 10px;
}

.admin-user-row button,
.generate-bid-btn.compact {
  min-height: 38px;
  border: 0;
  border-radius: 13px;
  padding: 0 12px;
  background: #111216;
  color: #fff;
  font-weight: 900;
}

.admin-user-row button[data-reset-user] {
  background: rgba(124,58,237,0.12);
  color: #7c3aed;
}

.plans-editor {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-editor-card {
  display: grid;
  gap: 10px;
}

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

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

.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.admin-top-actions a,
.admin-top-actions button {
  max-width: 100%;
}

.admin-note,
.admin-output {
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.68);
  color: #4b5563;
}

.admin-output {
  min-height: 420px;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .admin-shell,
  .admin-grid,
  .admin-grid.two,
  .admin-stats,
  .plans-editor {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .span-2,
  .span-3 {
    grid-column: auto;
  }

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

@media (max-width: 680px) {
  .admin-shell {
    gap: 10px;
    padding: 8px;
  }

  .admin-sidebar,
  .admin-topbar,
  .admin-panel,
  .admin-hero,
  .admin-stats article {
    border-radius: 24px;
  }

  .admin-sidebar {
    gap: 10px;
    padding: 12px;
  }

  .admin-brand {
    min-height: 64px;
    border-radius: 20px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .admin-nav button,
  .admin-logout {
    min-height: 40px;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
  }

  .admin-side-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .admin-main {
    gap: 10px;
  }

  .admin-topbar {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 18px;
  }

  .admin-topbar h1 {
    font-size: 30px;
  }

  .admin-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .admin-top-actions .icon-action,
  .admin-top-actions .upgrade-action {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .admin-hero {
    min-height: 0;
    padding: 22px;
  }

  .admin-hero h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 0.98;
  }

  .admin-orb {
    width: 82px;
    height: 82px;
    justify-self: end;
  }

  .admin-stats {
    gap: 10px;
    margin: 10px 0;
  }

  .admin-stats article,
  .admin-panel {
    padding: 16px;
  }

  .admin-stats strong {
    font-size: 34px;
  }

  .admin-grid,
  .admin-grid.two {
    gap: 10px;
  }

  .admin-panel-head {
    display: grid;
    gap: 12px;
  }

  .admin-panel-head input,
  .admin-panel-head button {
    width: 100%;
  }

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

  .admin-chart {
    height: 190px;
    gap: 4px;
  }

  .admin-chart span {
    font-size: 9px;
  }

  .plans-editor {
    gap: 10px;
  }
}

/* Bidding intelligence system v30 */
.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bid-action-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(220px, 1.22fr);
  gap: 10px;
}

.secondary-bid-btn {
  min-height: 58px;
  border: 1px solid rgba(17, 18, 22, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #1d2430;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 28px rgba(61,74,102,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.secondary-bid-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 18px 34px rgba(61,74,102,0.13);
}

#view-proposal .bid-output-card {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto;
}

.proposal-intelligence {
  display: block;
  padding: 0;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  background:
    radial-gradient(circle at 14% 10%, rgba(70, 145, 255, 0.16), transparent 34%),
    radial-gradient(circle at 96% 90%, rgba(255, 137, 112, 0.14), transparent 36%),
    rgba(248, 250, 255, 0.82);
}

.proposal-intelligence summary {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  cursor: pointer;
  list-style: none;
}

.proposal-intelligence summary::-webkit-details-marker { display: none; }

.proposal-intelligence .fit-score {
  width: 58px;
  height: 58px;
}

.proposal-intelligence .fit-score strong { font-size: 20px; }
.proposal-intelligence .fit-score span { font-size: 8px; }

.intelligence-toggle {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.74);
  color: #5c6471;
  font-size: 9px;
  font-weight: 900;
}

.proposal-intelligence[open] .intelligence-toggle::before { content: "Hide "; }
.proposal-intelligence:not([open]) .intelligence-toggle::before { content: ""; }

.intelligence-expanded {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(15,23,42,0.05);
  padding: 10px 18px 12px;
}

.proposal-intelligence[hidden],
.variant-tabs[hidden],
.proposal-quality[hidden] {
  display: none;
}

.fit-score {
  width: 86px;
  height: 86px;
  display: grid;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  color: #0c5f49;
  background: conic-gradient(#28b487 0 78%, rgba(40,180,135,0.12) 78% 100%);
  box-shadow: inset 0 0 0 9px rgba(255,255,255,0.9), 0 15px 32px rgba(28, 120, 94, 0.13);
}

.fit-score.consider {
  color: #8a5d00;
  background: conic-gradient(#f4b63d 0 58%, rgba(244,182,61,0.14) 58% 100%);
}

.fit-score.skip {
  color: #a53b42;
  background: conic-gradient(#ef6a70 0 38%, rgba(239,106,112,0.13) 38% 100%);
}

.fit-score strong {
  font-size: 26px;
  line-height: 1;
}

.fit-score span {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 950;
}

.psychology-summary span,
.psychology-summary strong,
.psychology-summary small {
  display: block;
}

.psychology-summary span {
  color: #858b99;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.psychology-summary strong {
  margin: 4px 0;
  color: #161a22;
  font-size: 15px;
}

.psychology-summary small {
  color: #6d7480;
  line-height: 1.35;
}

.fit-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.fit-factors div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.fit-factors span {
  overflow: hidden;
  color: #59616f;
  font-size: 9px;
  font-weight: 850;
  text-transform: capitalize;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fit-factors i,
.insight-bar i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15,23,42,0.07);
}

.fit-factors b,
.insight-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1267d5, #7c58d8, #ee8068);
}

.intelligence-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  border-top: 1px solid rgba(15,23,42,0.06);
  padding-top: 10px;
}

.intelligence-detail p {
  margin: 0;
  color: #56606d;
  font-size: 11px;
}

.variant-tabs {
  display: flex;
  gap: 7px;
  padding: 10px 18px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.72);
  scrollbar-width: none;
}

.variant-tabs::-webkit-scrollbar { display: none; }

.variant-tabs button {
  min-width: max-content;
  min-height: 34px;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(248,250,253,0.9);
  color: #59616f;
  font-size: 11px;
  font-weight: 900;
}

.variant-tabs button.active {
  border-color: #16181d;
  background: #16181d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17,18,22,0.16);
}

.proposal-quality {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid rgba(15,23,42,0.06);
  background: rgba(249, 251, 255, 0.92);
}

.proposal-quality strong {
  font-size: 11px;
}

.proposal-quality > span {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.proposal-quality i {
  min-width: max-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  text-transform: capitalize;
}

.proposal-quality i.pass { background: rgba(40,180,135,0.10); color: #087a5b; }
.proposal-quality i.warn { background: rgba(239,106,112,0.12); color: #ae3f47; }

.extra-hooks {
  border-top: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.9);
}

.extra-hooks summary {
  cursor: pointer;
  padding: 10px 18px;
  color: #4f5663;
  font-size: 11px;
  font-weight: 900;
}

.extra-hooks > div {
  display: grid;
  gap: 6px;
  padding: 0 18px 12px;
}

.extra-hooks button {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 12px;
  padding: 9px;
  background: rgba(248,250,255,0.88);
  color: #4f5663;
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
}

.extra-hooks button span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #16181d;
  color: #fff;
  font-weight: 900;
}

.history-item {
  align-items: center;
}

.history-fit {
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(18,103,213,0.09);
  color: #1267d5;
  font-size: 9px;
  font-weight: 900;
}

.history-actions select {
  min-height: 34px;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 12px;
  padding: 0 28px 0 10px;
  background-color: rgba(255,255,255,0.9);
  color: #343b47;
  font-size: 11px;
  font-weight: 850;
}

.portfolio-page {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 30px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 24px 70px rgba(61,74,102,0.10);
  backdrop-filter: blur(24px);
}

.portfolio-layout {
  height: calc(100% - 94px);
  display: grid;
  grid-template-columns: minmax(340px, 0.38fr) minmax(0, 0.62fr);
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.portfolio-upload-card,
.portfolio-library-card {
  min-width: 0;
  overflow: auto;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.72);
}

.portfolio-upload-card h3,
.portfolio-library-card h3 {
  margin: 4px 0 16px;
  font-size: 22px;
}

.portfolio-upload-card label {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  color: #343b47;
  font-size: 12px;
  font-weight: 850;
}

.portfolio-upload-card input,
.portfolio-upload-card textarea,
.portfolio-upload-card select {
  width: 100%;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 13px;
  background: rgba(255,255,255,0.9);
}

.form-status {
  display: block;
  margin-top: 10px;
  color: #7b828f;
  font-size: 11px;
  line-height: 1.45;
}

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

.portfolio-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 20px;
  padding: 12px;
  background: rgba(248,250,255,0.86);
}

.portfolio-thumb {
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #dcecff, #f1e9ff 55%, #ffe7dd);
  color: #4d4a66;
  font-size: 10px;
  font-weight: 950;
}

.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item span { color: #797f8b; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.portfolio-item strong { display: block; margin-top: 4px; color: #171a21; font-size: 13px; }
.portfolio-item p { margin: 5px 0; color: #6b7280; font-size: 10px; line-height: 1.45; }
.portfolio-item small { color: #087a5b; font-size: 9px; font-weight: 800; }
.portfolio-item > button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  border-radius: 9px;
  padding: 5px 7px;
  background: rgba(255,255,255,0.88);
  color: #a53b42;
  font-size: 9px;
  font-weight: 900;
}

.portfolio-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px dashed rgba(15,23,42,0.10);
  border-radius: 22px;
  color: #7b828f;
  text-align: center;
}

.portfolio-empty strong { color: #232832; }

.intelligence-admin-stats {
  margin-top: 0;
}

.admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-bars {
  display: grid;
  gap: 14px;
}

.insight-bar {
  display: grid;
  gap: 7px;
}

.insight-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.insight-bar strong {
  color: #343b47;
  font-size: 12px;
  text-transform: capitalize;
}

.insight-bar span {
  color: #7b828f;
  font-size: 11px;
  font-weight: 900;
}

.insight-bar i {
  height: 10px;
}

@media (max-width: 1180px) {
  .proposal-intelligence summary {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .fit-factors {
    grid-column: 1 / -1;
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .portfolio-upload-card,
  .portfolio-library-card {
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .dashboard-grid,
  .bid-action-row,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .proposal-intelligence {
    padding: 0;
  }

  .proposal-intelligence summary {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px;
  }

  .proposal-intelligence .fit-score {
    width: 50px;
    height: 50px;
  }

  .proposal-intelligence .fit-score strong {
    font-size: 17px;
  }

  .proposal-intelligence .intelligence-toggle {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }

  .proposal-intelligence .intelligence-expanded {
    padding: 10px 12px 12px;
  }

  .fit-score {
    width: 72px;
    height: 72px;
  }

  .fit-score strong { font-size: 22px; }

  .fit-factors {
    grid-template-columns: 1fr 1fr;
    gap: 6px 9px;
  }

  .fit-factors div {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .intelligence-detail {
    display: grid;
  }

  .variant-tabs {
    padding: 9px 12px;
  }

  .proposal-quality {
    grid-template-columns: 1fr;
    padding: 9px 12px;
  }

  #view-proposal .bid-output-card {
    height: 82vh;
    min-height: 650px;
  }

  .portfolio-page {
    height: auto;
    overflow: visible;
  }

  .portfolio-layout {
    height: auto;
    padding: 10px;
  }

  .portfolio-upload-card,
  .portfolio-library-card {
    border-radius: 20px;
    padding: 14px;
  }

  .history-item,
  .history-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .history-actions select,
  .history-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-bid-btn { transition: none; }
}

/* Secure customer authentication */
.customer-login {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(20, 110, 245, 0.15), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(15, 159, 121, 0.12), transparent 28%),
    linear-gradient(145deg, #f5f8fd, #ffffff 48%, #f6f8fb);
}

.customer-login::before,
.customer-login::after {
  position: absolute;
  z-index: -1;
  width: 48vw;
  height: 120px;
  border-radius: 50%;
  content: "";
  filter: blur(72px);
  opacity: 0.42;
  animation: authLight 12s ease-in-out infinite alternate;
}

.customer-login::before {
  top: 9%;
  left: -12%;
  background: linear-gradient(90deg, #70a7ff, #b9d9ff, transparent);
}

.customer-login::after {
  right: -12%;
  bottom: 11%;
  background: linear-gradient(90deg, transparent, #b4ead8, #ffcabf);
  animation-delay: -5s;
}

@keyframes authLight {
  from { transform: translate3d(-4%, -8px, 0) rotate(-8deg); }
  to { transform: translate3d(14%, 22px, 0) rotate(-3deg); }
}

.customer-login .login-card {
  width: min(100%, 470px);
  border: 1px solid rgba(216, 224, 234, 0.92);
  border-radius: 18px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 100px rgba(22, 38, 65, 0.14);
}

.customer-login .brand.centered {
  justify-content: flex-start;
}

.customer-login .mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 17px;
}

.customer-login .brand strong,
.customer-login .brand span {
  display: block;
}

.customer-login .brand strong { font-size: 17px; }
.customer-login .brand span { margin-top: 2px; color: #7b8493; font-size: 11px; font-weight: 760; }

.customer-login .login-copy {
  margin: 32px 0 24px;
  text-align: left;
}

.customer-login .login-copy h1 {
  margin: 7px 0 10px;
  font-size: 36px;
  letter-spacing: 0;
}

.customer-login .login-copy p {
  color: #687283;
  font-size: 14px;
  line-height: 1.6;
}

.customer-login .login-form {
  display: grid;
}

.customer-login .login-form label {
  gap: 7px;
  margin-bottom: 13px;
  color: #3c4654;
  font-size: 12px;
}

.customer-login .login-form input {
  min-height: 50px;
  border-color: #dce2ea;
  border-radius: 9px;
  background: #fff;
}

.customer-login .login-form .primary {
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 9px;
  background: #146ef5;
  box-shadow: 0 14px 30px rgba(20, 110, 245, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.customer-login .login-form .primary:hover {
  background: #0b5fdb;
  box-shadow: 0 18px 36px rgba(20, 110, 245, 0.28);
  transform: translateY(-2px);
}

.google-auth-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #dce2ea;
  border-radius: 9px;
  background: #fff;
  color: #252b34;
  font-size: 13px;
  font-weight: 780;
  box-shadow: 0 8px 22px rgba(25, 40, 64, 0.05);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.google-auth-button:hover {
  border-color: #bfc9d8;
  box-shadow: 0 12px 28px rgba(25, 40, 64, 0.09);
  transform: translateY(-1px);
}

.google-auth-button svg {
  width: 18px;
  height: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9aa3af;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: #e3e7ed;
}

.login-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #c8ebdc;
  border-radius: 9px;
  color: #087657;
  background: #eefaf6;
  font-size: 12px;
  font-weight: 760;
}

.customer-login .login-error {
  border-radius: 9px;
  font-size: 12px;
}

.customer-login .verification-code {
  padding-left: 22px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 8px;
  text-align: center;
}

.resend-form {
  margin-top: 12px;
  text-align: center;
}

.resend-form button {
  border: 0;
  padding: 8px 10px;
  color: #146ef5;
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.customer-login .auth-switch {
  margin: 18px 0 0;
  font-size: 12px;
}

.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e9ecf1;
  color: #7d8795;
  font-size: 10px;
  font-weight: 720;
}

.auth-security-note svg {
  width: 14px;
  height: 14px;
  color: #0c9871;
}

.profile-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.account-session-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: #f8fafc;
}

.account-session-actions > div {
  min-width: 0;
  display: grid;
}

.account-session-actions strong {
  color: #282e38;
  font-size: 12px;
}

.account-session-actions span {
  color: #7b8492;
  font-size: 10px;
}

.profile-logout {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid #efc9c9;
  border-radius: 8px;
  padding: 0 13px;
  color: #b4232c;
  background: #fff;
  font-size: 11px;
  font-weight: 820;
}

.profile-logout svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 560px) {
  .customer-login {
    align-items: start;
    padding: 14px;
  }

  .customer-login .login-card {
    margin-top: max(8px, env(safe-area-inset-top));
    border-radius: 15px;
    padding: 22px 18px;
  }

  .customer-login .login-copy {
    margin: 26px 0 20px;
  }

  .customer-login .login-copy h1 {
    font-size: 31px;
  }

  .account-session-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 13px 15px max(13px, env(safe-area-inset-bottom));
  }

  .profile-logout {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-login::before,
  .customer-login::after {
    animation: none;
  }
}
