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

:root {
  --bg: #f3f6fb;
  --ink: #0f1b2d;
  --ink-soft: #4b5b71;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --line: #d9e1ec;
  --brand: #114067;
  --brand-2: #0e5b7a;
  --gold: #c58a2b;
  --gold-soft: #fff4de;
  --ok: #2e9f75;
  --danger: #db4f4f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 35px rgba(16, 34, 58, 0.08);
  --shadow-strong: 0 18px 45px rgba(16, 34, 58, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(17, 64, 103, 0.14) 0%, rgba(17, 64, 103, 0) 34%),
    radial-gradient(circle at 92% 12%, rgba(197, 138, 43, 0.16) 0%, rgba(197, 138, 43, 0) 34%),
    linear-gradient(180deg, #f6f9fd 0%, #edf3f9 100%);
  font: 14px/1.6 "Sora", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-wrap {
  min-height: 100vh;
}

#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  max-width: 340px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.toast.success {
  border-left: 4px solid var(--ok);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--gold);
}

.card-premium {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.apple-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #6ed4ff 0%, #6ed4ff 24%, transparent 26%),
    radial-gradient(circle at 70% 65%, #f06ecc 0%, #f06ecc 26%, transparent 28%),
    radial-gradient(circle at 50% 50%, #ffffff 0%, #f0f6ff 66%, #dfeaf8 100%);
  border: 1px solid rgba(120, 166, 207, 0.38);
  box-shadow: 0 6px 14px rgba(26, 89, 134, 0.18);
}

/* Apple-style marketing home */
.apple-home {
  position: relative;
  min-height: 100vh;
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  overflow: hidden;
}

.apple-bg-aurora {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(62px);
  z-index: 0;
  animation: glowMove 9s ease-in-out infinite alternate;
}

.apple-bg-a {
  left: -180px;
  top: -170px;
  background: rgba(66, 134, 184, 0.24);
}

.apple-bg-b {
  right: -210px;
  bottom: -210px;
  background: rgba(208, 147, 54, 0.18);
}

.apple-nav,
.apple-hero {
  position: relative;
  z-index: 1;
}

.apple-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.apple-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.apple-brand strong {
  font-size: 20px;
}

.apple-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apple-links a {
  text-decoration: none;
  color: #1f2f45;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
}

.apple-links a:hover {
  background: rgba(255, 255, 255, 0.66);
}

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

.apple-actions .btn {
  min-width: 86px;
  text-align: center;
}

.apple-hero {
  margin: 90px auto 0;
  text-align: center;
  max-width: 940px;
}

.apple-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d7e5f3;
  background: rgba(255, 255, 255, 0.85);
  color: #31577c;
  font-weight: 700;
  font-size: 12px;
}

.apple-hero-title {
  margin: 16px auto 0;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
  text-wrap: balance;
}

.apple-type-row {
  margin: 14px auto 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 14px;
  color: #1c344f;
  font-weight: 600;
  font-size: 16px;
}

.apple-type-text {
  display: inline-block;
  min-width: 0;
  text-align: left;
  font-family: "SFMono-Regular", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: #0f4e77;
  font-weight: 700;
  white-space: nowrap;
}

.apple-type-caret {
  display: inline-block;
  vertical-align: -0.1em;
  width: 1px;
  height: 1.2em;
  background: #0f4e77;
  transform-origin: center;
  animation: blinkCaret 1s steps(1) infinite, caretNudge 1.2s ease-in-out infinite;
}

.apple-hero-sub {
  margin: 14px auto 0;
  color: #4b5b71;
  font-size: 17px;
  max-width: 640px;
}

.apple-hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.apple-preview {
  margin: 34px auto 0;
  max-width: 780px;
  padding: 16px;
  display: grid;
  grid-template-columns: 300px 120px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.apple-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 260px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(122, 214, 255, 0.2) 0%, rgba(122, 214, 255, 0.04) 65%, rgba(122, 214, 255, 0) 100%),
    rgba(18, 64, 101, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
  margin: 0 auto;
}

.apple-orbit::before,
.apple-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  border: 1px solid rgba(162, 215, 245, 0.3);
}

.apple-orbit::after {
  inset: 30%;
}

.apple-orbit .n {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8adfff;
  box-shadow: 0 0 0 5px rgba(138, 223, 255, 0.23), 0 0 18px rgba(138, 223, 255, 0.48);
  animation: pulseNode 1.8s ease-in-out infinite;
}

.apple-orbit .n1 {
  left: 22%;
  top: 36%;
}

.apple-orbit .n2 {
  left: 64%;
  top: 28%;
  animation-delay: 0.35s;
}

.apple-orbit .n3 {
  left: 40%;
  top: 68%;
  animation-delay: 0.7s;
}

.apple-orbit .n4 {
  left: 72%;
  top: 66%;
  animation-delay: 1.1s;
}

.apple-bars {
  height: 84px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
}

.apple-bars i {
  display: block;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, #9be6ff, #2f9fd5);
  box-shadow: 0 8px 14px rgba(33, 121, 171, 0.25);
}

.apple-preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.apple-preview li {
  border: 1px solid #d8e3ef;
  border-radius: 11px;
  background: #fff;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.apple-preview li span {
  font-weight: 700;
}

.apple-preview li em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 12px;
}

/* Refined nav-less home */
.apple-home-clean {
  max-width: 1180px;
  min-height: 100svh;
  padding: clamp(12px, 2.2vw, 24px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.apple-home-clean .apple-bg-a {
  left: -210px;
  top: -220px;
}

.apple-home-clean .apple-bg-b {
  right: -220px;
  bottom: -240px;
}

.apple-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0;
}

.apple-brand-mark strong {
  font-size: 19px;
  letter-spacing: 0.01em;
}

.apple-topbar {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: min(980px, 100%);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.apple-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apple-topbar-actions .btn {
  min-width: 92px;
  text-align: center;
}

.apple-hero-clean {
  margin: 0 auto;
  width: min(980px, 100%);
  min-height: calc(100svh - 128px);
  padding: clamp(18px, 4vw, 36px) 14px clamp(18px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.apple-home-clean .apple-hero-title {
  margin-top: 16px;
  max-width: 10ch;
  font-size: clamp(38px, 6.6vw, 74px);
  line-height: 1.12;
}

.apple-home-clean .apple-type-row {
  margin-top: 18px;
}

.apple-home-clean .apple-type-text {
  min-width: 0;
}

.apple-home-clean .apple-hero-sub {
  margin-top: 16px;
  font-size: 15px;
  max-width: 44ch;
}

.apple-home-clean .apple-hero-actions {
  margin-top: 24px;
}

.apple-home-clean .apple-hero-actions .btn {
  min-width: 128px;
}

.apple-chip-grid {
  margin-top: 28px;
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.apple-chip {
  position: relative;
  padding: 16px 18px;
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 252, 255, 0.9) 100%),
    var(--card);
}

.apple-chip::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 64, 103, 0) 0%, rgba(17, 64, 103, 0.26) 50%, rgba(17, 64, 103, 0) 100%);
}

.apple-chip strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.apple-chip span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.apple-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* Solo auth forms */
.auth-solo-page {
  position: relative;
  min-height: 100vh;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auth-solo-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(52px);
  z-index: 0;
}

.auth-solo-orb-a {
  left: -120px;
  top: -140px;
  background: rgba(66, 134, 184, 0.24);
}

.auth-solo-orb-b {
  right: -130px;
  bottom: -140px;
  background: rgba(208, 147, 54, 0.18);
}

.auth-solo-back,
.auth-solo-card {
  position: relative;
  z-index: 1;
}

.auth-solo-back {
  position: absolute;
  top: 18px;
  left: 22px;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}

.auth-solo-card {
  width: min(560px, calc(100vw - 24px));
  padding: 24px 22px;
}

.auth-solo-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-solo-head h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.auth-solo-switch {
  margin: 14px 0 0;
  text-align: center;
  color: var(--ink-soft);
}

.auth-solo-switch a {
  color: #1566d8;
  font-weight: 700;
  text-decoration: none;
}

.mkt-page {
  position: relative;
  min-height: 100vh;
  padding: 22px;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.mkt-orb {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(64px);
  z-index: 0;
  animation: glowMove 10s ease-in-out infinite alternate;
}

.mkt-orb-a {
  left: -180px;
  top: -160px;
  background: rgba(18, 82, 127, 0.28);
}

.mkt-orb-b {
  right: -200px;
  bottom: -220px;
  background: rgba(197, 138, 43, 0.2);
}

.mkt-nav,
.mkt-hero,
.mkt-section,
.mkt-final {
  position: relative;
  z-index: 1;
}

.mkt-nav {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

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

.mkt-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #258bc4);
  box-shadow: 0 0 0 6px rgba(17, 64, 103, 0.12);
}

.mkt-nav-links {
  display: flex;
  gap: 8px;
}

.mkt-nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.mkt-nav-links a:hover {
  color: var(--brand);
  background: #f1f7fd;
}

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

.mkt-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.mkt-hero-right {
  display: grid;
  gap: 10px;
}

.mkt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #d3e3f3;
  background: #eef6fd;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}

.mkt-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.mkt-hero p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 720px;
}

.mkt-hero-cta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mkt-hero-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mkt-hero-metrics article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.mkt-hero-metrics strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.mkt-hero-metrics span {
  color: var(--ink-soft);
  font-size: 12px;
}

.mkt-visual {
  padding: 14px;
  background: linear-gradient(155deg, rgba(12, 47, 74, 0.92), rgba(20, 87, 129, 0.9));
  color: #e8f4ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 12px;
}

.mkt-radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  margin: 0 auto;
  max-width: 240px;
  background:
    radial-gradient(circle at center, rgba(56, 179, 255, 0.24) 0%, rgba(56, 179, 255, 0.03) 60%, rgba(56, 179, 255, 0) 100%),
    rgba(8, 24, 40, 0.55);
  overflow: hidden;
}

.mkt-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(173, 222, 255, 0.26);
}

.mkt-ring-1 {
  transform: scale(0.38);
}

.mkt-ring-2 {
  transform: scale(0.62);
}

.mkt-ring-3 {
  transform: scale(0.86);
}

.mkt-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8eddff;
  box-shadow: 0 0 0 5px rgba(142, 221, 255, 0.2), 0 0 16px rgba(142, 221, 255, 0.56);
  animation: pulseNode 1.8s ease-in-out infinite;
}

.mkt-node-a {
  left: 22%;
  top: 36%;
}

.mkt-node-b {
  left: 67%;
  top: 29%;
  animation-delay: 0.35s;
}

.mkt-node-c {
  left: 38%;
  top: 64%;
  animation-delay: 0.8s;
}

.mkt-node-d {
  left: 72%;
  top: 68%;
  animation-delay: 1.15s;
}

.mkt-bars {
  height: 56px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}

.mkt-bars span {
  display: block;
  border-radius: 999px;
  height: var(--h);
  background: linear-gradient(180deg, #8fe2ff, #2ba4db);
  box-shadow: 0 6px 14px rgba(16, 118, 168, 0.42);
}

.mkt-showcase {
  padding: 16px;
  height: 100%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.9));
}

.mkt-showcase h3 {
  margin: 0;
  font-size: 18px;
}

.mkt-showcase ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mkt-showcase li {
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.mkt-showcase li span {
  font-weight: 700;
}

.mkt-showcase li em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 12px;
}

.mkt-section {
  padding: 4px 2px;
}

.mkt-section-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.015em;
}

.mkt-section-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.mkt-value-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mkt-value-grid article {
  padding: 16px;
}

.mkt-value-grid h3 {
  margin: 0;
  font-size: 17px;
}

.mkt-value-grid p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.mkt-flow {
  padding: 18px;
}

.mkt-flow ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mkt-flow li {
  border: 1px solid #d7e4f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 3px;
}

.mkt-flow strong {
  font-size: 15px;
}

.mkt-flow span {
  color: var(--ink-soft);
}

.mkt-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mkt-trust-grid article {
  padding: 16px;
}

.mkt-trust-grid h3 {
  margin: 0;
  font-size: 17px;
}

.mkt-trust-grid p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.mkt-final {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mkt-final h2 {
  margin: 0;
  font-size: 24px;
}

.mkt-final > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.authx-page {
  position: relative;
  min-height: 100vh;
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.authx-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(56px);
  z-index: 0;
  animation: glowMove 9s ease-in-out infinite alternate;
}

.authx-orb-a {
  left: -150px;
  top: -120px;
  background: rgba(18, 82, 127, 0.24);
}

.authx-orb-b {
  right: -170px;
  bottom: -180px;
  background: rgba(197, 138, 43, 0.2);
}

.authx-nav,
.authx-layout {
  position: relative;
  z-index: 1;
}

.authx-nav {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.authx-back {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}

.authx-nav-links {
  display: flex;
  gap: 8px;
}

.authx-nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid #d4e2f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}

.authx-nav-links a:hover {
  color: var(--brand);
  background: #f4f9ff;
}

.authx-layout {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 560px);
  gap: 12px;
  align-items: start;
}

.authx-brand {
  padding: 24px;
  position: sticky;
  top: 20px;
}

.authx-brand h1 {
  margin: 0;
  font-size: clamp(28px, 3.9vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.authx-brand p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.authx-brand-points {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.authx-brand-points article {
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
}

.authx-brand-points strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.authx-brand-points span {
  color: var(--ink-soft);
  font-size: 12px;
}

.authx-forms {
  display: grid;
  gap: 10px;
}

.authx-card {
  padding: 18px;
}

.authx-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.field-hint {
  margin-top: -6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.availability-hint {
  min-height: 18px;
  transition: color 0.2s ease;
}

.availability-hint.checking {
  color: #8a6f35;
}

.availability-hint.ok {
  color: var(--ok);
}

.availability-hint.bad {
  color: var(--danger);
}

.landing-shell {
  position: relative;
  min-height: 100vh;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  overflow: hidden;
}

.auth-shell {
  min-height: auto;
  max-width: 1480px;
  margin: 0 auto;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.landing-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(52px);
  z-index: 0;
  animation: glowMove 9s ease-in-out infinite alternate;
}

.landing-glow-a {
  left: -120px;
  top: -80px;
  background: rgba(20, 84, 129, 0.24);
}

.landing-glow-b {
  right: -110px;
  bottom: -110px;
  background: rgba(197, 138, 43, 0.22);
}

.landing-hero,
.landing-auth {
  position: relative;
  z-index: 1;
}

.landing-hero {
  padding: 34px;
  animation: riseIn 0.55s ease;
}

.auth-hero {
  position: sticky;
  top: 24px;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 64, 103, 0.12);
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 620px;
}

.hero-metrics {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.hero-metrics article {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.hero-metrics span {
  color: var(--ink-soft);
  font-size: 13px;
}

.landing-auth {
  display: grid;
  gap: 14px;
  align-content: start;
}

.auth-card {
  padding: 20px;
}

.auth-card h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

.form-stack {
  display: grid;
  gap: 10px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #324257;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: #8fa7bf;
  box-shadow: 0 0 0 3px rgba(17, 64, 103, 0.12);
}

input.field-valid,
input.field-valid:focus {
  border-color: #6eb89d;
  box-shadow: 0 0 0 3px rgba(46, 159, 117, 0.14);
}

input.field-invalid,
input.field-invalid:focus {
  border-color: #d46a6a;
  box-shadow: 0 0 0 3px rgba(219, 79, 79, 0.14);
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px rgba(17, 64, 103, 0.28);
}

.btn-chat-main {
  color: #fff;
  background: linear-gradient(135deg, #0f5d7f, #114067);
  box-shadow: 0 9px 20px rgba(17, 64, 103, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-gold {
  color: #2f1f08;
  background: linear-gradient(135deg, #e9bc6d, #c58a2b);
  box-shadow: 0 8px 18px rgba(197, 138, 43, 0.26);
}

.btn-outline {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card-solid);
}

.error-text {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
  text-align: center;
}

.notice-text {
  margin: 0;
  color: var(--ok);
  font-weight: 600;
  text-align: center;
}

.auth-inline-block {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #d6e3ef;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

#send-code-btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.auth-back-home {
  margin-top: 16px;
}

.console-layout {
  min-height: 100vh;
  padding: 20px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
}

.console-side {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.side-profile strong {
  display: block;
  font-size: 15px;
}

.side-profile small {
  color: var(--ink-soft);
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav-tabs .side-link {
  padding: 8px 10px;
}

.side-link {
  display: block;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.side-link:hover,
.side-link.active {
  border-color: #bdd0e4;
  color: var(--brand);
  background: #f6fbff;
}

.side-link-chat-cta {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f5d7f, #114067);
  box-shadow: 0 10px 18px rgba(17, 64, 103, 0.26);
}

.side-link-chat-cta:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #106588, #155377);
}

.side-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.side-block h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f1fa;
  color: #16456b;
}

.chip-sm {
  font-size: 11px;
  padding: 2px 8px;
}

.side-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.memory-list {
  margin: 6px 0 0;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 12px;
}

.memory-list li + li {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.side-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}

.side-footer a {
  color: var(--danger);
  text-decoration: none;
  font-weight: 600;
}

.console-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.dashboard-stage {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92));
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.stage-crumb {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.stage-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-badge {
  display: inline-block;
  border: 1px solid #d8e5f2;
  background: #f8fbff;
  color: #294764;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.stage-tabs {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-tab {
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid #dce7f2;
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.stage-tab:hover {
  color: var(--brand);
  border-color: #b7cce1;
  background: #f4faff;
}

.stage-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 7px 14px rgba(17, 64, 103, 0.2);
}

.home-hero {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.9));
}

.home-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-hero-head h2 {
  margin: 0;
  font-size: 20px;
}

.home-hero p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.minimal-kpi-grid {
  margin-top: 12px;
}

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

.kpi-card {
  padding: 12px 14px;
}

.kpi-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

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

.panel {
  padding: 14px;
}

.tab-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 253, 255, 0.9));
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-title-row h3 {
  margin: 0;
  font-size: 17px;
}

.title-group {
  display: grid;
  gap: 2px;
}

.title-group small {
  color: var(--ink-soft);
  font-size: 12px;
}

details.panel {
  padding: 0;
  overflow: hidden;
}

details.panel[open] {
  padding-bottom: 10px;
}

.panel-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.panel-summary-nav {
  gap: 12px;
}

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

.panel-summary::after {
  content: "\5C55\5F00";
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
}

details.panel[open] .panel-summary::after {
  content: "\6536\8D77";
}

.panel-summary-right {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
  margin-right: 10px;
}

.panel-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.panel-nav a {
  text-decoration: none;
  color: var(--brand);
  border: 1px solid #d4e1ef;
  background: #f7fbff;
  border-radius: 999px;
  padding: 3px 10px;
}

.panel-nav a:hover {
  background: #eaf4fd;
}

.panel-page {
  color: var(--ink-soft);
  min-width: 52px;
  text-align: center;
}

.nav-disabled {
  color: #9aa8b9;
  border: 1px solid #e2e8ef;
  background: #f6f8fb;
  border-radius: 999px;
  padding: 3px 10px;
}

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

.panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.panel-head small {
  color: var(--ink-soft);
}

.empty-block {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.66);
  margin: 12px 14px 14px;
}

.rec-list,
.dm-list,
.discovery-list {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.rec-card,
.dm-card,
.discovery-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-solid);
  padding: 12px 14px;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dm-card,
.discovery-card {
  text-decoration: none;
  color: inherit;
}

.rec-card:hover,
.dm-card:hover,
.discovery-card:hover,
.community-card:hover,
.profile-card:hover {
  transform: translateY(-1px);
  border-color: #b5cbe1;
  box-shadow: var(--shadow);
}

.rec-mutual {
  border-color: #acd8c5;
  background: #eefcf6;
}

.rec-rejected {
  opacity: 0.56;
}

.rec-top,
.dm-top,
.discovery-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.rec-score {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.status-chip {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7fbff;
  color: var(--ink-soft);
  font-size: 12px;
  padding: 4px 9px;
}

.rec-reason {
  margin: 8px 0 6px;
  color: #2d3f54;
}

.rec-pair {
  margin: 0 0 8px;
  font-weight: 600;
}

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

.dm-top strong,
.discovery-top strong {
  font-size: 15px;
}

.dm-top span,
.discovery-top span {
  color: var(--ink-soft);
  font-size: 12px;
}

.dm-agent,
.discovery-meta {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.dm-preview,
.discovery-preview {
  margin: 6px 0 0;
  color: #2d3f54;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.community-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}

.community-search-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

.community-hint {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.community-pager {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.community-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-solid);
  padding: 12px;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.comm-avatar {
  width: 44px;
  height: 44px;
  margin: 0 auto 7px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #145481, #1f738f);
}

.community-card strong {
  display: block;
}

.community-card small {
  color: var(--ink-soft);
}

.comm-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.chat-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.chat-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}

.back-btn:hover {
  background: #f5f9fd;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.chat-header-meta strong {
  display: block;
}

.chat-header-meta small {
  color: var(--ink-soft);
}

.chat-messages {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  background:
    linear-gradient(155deg, rgba(17, 64, 103, 0.05) 0%, rgba(255, 255, 255, 0.68) 38%),
    linear-gradient(330deg, rgba(197, 138, 43, 0.06) 0%, rgba(255, 255, 255, 0.7) 45%);
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--ink-soft);
}

.chat-empty .hint {
  font-size: 13px;
}

.msg {
  max-width: min(78%, 700px);
}

.msg-user {
  align-self: flex-end;
}

.msg-agent {
  align-self: flex-start;
}

.msg-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid transparent;
  word-break: break-word;
}

.msg-user .msg-bubble {
  background: linear-gradient(135deg, #114067, #0f5d7f);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.msg-agent .msg-bubble {
  background: #fff;
  border-color: var(--line);
  border-bottom-left-radius: 5px;
}

.msg-time {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.msg-user .msg-time {
  text-align: right;
}

.chat-input {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-submit {
  min-width: 112px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  background: linear-gradient(135deg, #c58a2b, #e2b563);
  cursor: pointer;
}

.chat-submit:disabled {
  opacity: 0.55;
}

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

.profile-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.profile-head h3 {
  margin: 0;
  font-size: 16px;
}

.profile-head small {
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f5d7f, #114067);
  box-shadow: 0 0 0 6px rgba(17, 64, 103, 0.12);
}

.profile-dot-gold {
  background: linear-gradient(135deg, #e0af5c, #c58a2b);
  box-shadow: 0 0 0 6px rgba(197, 138, 43, 0.16);
}

.profile-block + .profile-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d8e2ed;
}

.profile-block label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-block p {
  margin: 0;
  color: #2d3f54;
}

.profile-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.chip-warn {
  background: #fff4de;
  color: #8a5a0c;
}

.profile-memory-list {
  margin-top: 0;
  font-size: 13px;
  color: #2d3f54;
}

.dashboard-footer-settings {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.92));
}

.footer-settings-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-settings-head strong {
  font-size: 15px;
}

.footer-settings-head small {
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-settings-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-settings-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.setting-item {
  border: 1px solid #deebf6;
  border-radius: 12px;
  background: #f9fcff;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.setting-item label {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.setting-item select {
  width: 100%;
  border: 1px solid #cfdceb;
  border-radius: 10px;
  background: #fff;
  padding: 8px 9px;
  font: inherit;
  color: var(--ink);
}

.footer-settings-actions {
  flex: 0 0 auto;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-settings-form .btn {
  justify-self: end;
  min-width: 118px;
}

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

@keyframes glowMove {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(18px) scale(1.08);
  }
}

@keyframes pulseNode {
  0% {
    transform: scale(0.86);
    opacity: 0.72;
  }
  60% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.86);
    opacity: 0.74;
  }
}

@keyframes blinkCaret {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes caretNudge {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .apple-home {
    padding: 14px 14px 20px;
  }

  .apple-home-clean {
    padding: 12px;
  }

  .apple-topbar {
    padding: 9px 12px;
  }

  .apple-home-clean .apple-hero-clean {
    min-height: calc(100svh - 118px);
    padding: clamp(16px, 6vw, 34px) 10px 20px;
  }

  .apple-home-clean .apple-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apple-home-clean .apple-brand-mark strong {
    font-size: 18px;
  }

  .apple-nav {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
  }

  .apple-links {
    order: 3;
    width: 100%;
  }

  .apple-hero {
    margin-top: 56px;
  }

  .apple-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .apple-preview ul {
    text-align: left;
  }

  .auth-solo-card {
    width: min(600px, calc(100vw - 20px));
  }

  .mkt-page {
    padding: 14px;
  }

  .mkt-nav {
    flex-wrap: wrap;
  }

  .mkt-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .mkt-radar {
    max-width: 200px;
  }

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

  .mkt-value-grid {
    grid-template-columns: 1fr;
  }

  .mkt-trust-grid {
    grid-template-columns: 1fr;
  }

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

  .authx-page {
    padding: 14px;
  }

  .authx-layout {
    grid-template-columns: 1fr;
  }

  .authx-brand {
    position: static;
  }

  .landing-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .console-layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }

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

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

  .home-hero-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer-settings-form {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-settings-form .btn {
    width: 100%;
  }

  .footer-settings-actions {
    min-width: 0;
    justify-content: stretch;
  }
}

@media (max-width: 620px) {
  .apple-home-clean .apple-hero-clean {
    min-height: auto;
    padding: 14px 8px 14px;
  }

  .apple-topbar {
    padding: 8px 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .apple-home-clean .apple-brand-mark strong {
    font-size: 17px;
  }

  .apple-topbar-actions {
    width: 100%;
    justify-content: center;
  }

  .apple-topbar-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .apple-home-clean .apple-hero-title {
    font-size: clamp(32px, 11vw, 44px);
    max-width: 9.2ch;
  }

  .apple-home-clean .apple-type-row {
    width: 100%;
  }

  .apple-home-clean .apple-type-text {
    min-width: 0;
  }

  .apple-home-clean .apple-chip-grid {
    width: min(440px, 100%);
    grid-template-columns: 1fr;
  }

  .apple-home-clean .apple-chip {
    text-align: center;
  }

  .apple-brand strong {
    font-size: 18px;
  }

  .apple-actions {
    width: 100%;
  }

  .apple-actions .btn {
    flex: 1 1 auto;
  }

  .apple-hero-title {
    font-size: clamp(30px, 10vw, 42px);
    max-width: 13ch;
  }

  .apple-type-row {
    width: 100%;
    min-height: 34px;
    font-size: 14px;
  }

  .apple-type-text {
    min-width: 0;
  }

  .apple-hero-sub {
    font-size: 15px;
  }

  .apple-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .apple-preview {
    padding: 12px;
  }

  .auth-solo-page {
    padding: 12px;
  }

  .auth-solo-back {
    top: 12px;
    left: 14px;
  }

  .auth-solo-card {
    padding: 16px 14px;
    width: calc(100vw - 16px);
  }

  .auth-solo-head h1 {
    font-size: 34px;
  }

  .mkt-nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .mkt-nav-actions {
    width: 100%;
  }

  .mkt-nav-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .mkt-hero-cta .btn {
    width: 100%;
    text-align: center;
  }

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

  .authx-nav {
    flex-wrap: wrap;
  }

  .authx-nav-links {
    width: 100%;
  }

  .authx-nav-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .authx-card {
    padding: 14px;
  }

  .mkt-final > div .btn {
    width: 100%;
  }

  .landing-hero {
    padding: 20px;
  }

  .auth-card {
    padding: 14px;
  }

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

  .chat-shell {
    padding: 10px;
  }

  .panel-summary {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .panel-nav {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .panel-title-row {
    flex-wrap: wrap;
  }

  .stage-tabs {
    gap: 6px;
  }

  .stage-tab {
    padding: 4px 10px;
  }

  .stage-actions {
    gap: 8px;
  }

  .btn-chat-main {
    width: 100%;
    text-align: center;
  }

  .dashboard-footer-settings {
    padding: 12px;
  }

  .footer-settings-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .footer-settings-form {
    gap: 10px;
  }

  .footer-settings-grid {
    grid-template-columns: 1fr;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

  .chat-submit {
    width: 100%;
  }

  .msg {
    max-width: 92%;
  }
}

