:root {
  --brand-blue: #34427e;
  --brand-blue-bright: #455aa6;
  --brand-violet: #6b4357;
  --brand-rust: #b83d0c;
  --brand-rust-bright: #d24e1a;
  --navy-900: #14182e;
  --navy-800: #1f2444;
  --navy-700: #343a5e;
  --slate-900: #14132a;
  --slate-700: #2e3354;
  --slate-600: #444a6b;
  --gray-500: #61667f;
  --gray-400: #9094ac;
  --bg-app: #f7f8fc;
  --bg-warm: #fbf6f3;
  --bg-subtle: #eef0f8;
  --white: #ffffff;
  --blue-50: #eef0f8;
  --blue-100: #d8dcec;
  --rust-50: #fbede6;
  --rust-100: #f4d9cc;
  --violet-50: #f4eef1;
  --green: #1e9e63;
  --green-soft: #ecf8f1;
  --amber: #e08a0b;
  --amber-soft: #fdf3e2;
  --red: #dc3a3a;
  --red-soft: #fceded;
  --border: #e6e7f0;
  --border-strong: #c9cbdd;
  --shadow-card: 0 6px 20px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 16px 34px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --grad-brand: linear-gradient(115deg, #34427e 0%, #6b4357 52%, #b83d0c 100%);
  --grad-hero: linear-gradient(125deg, #14182e 0%, #2a2f58 38%, #5a3c5a 70%, #8e3a1c 100%);
  --maxw: 1200px;
  --sidebar-w: 264px;
  --topbar-h: 68px;
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(180deg, rgba(238, 240, 248, 0.72), rgba(247, 248, 252, 0) 360px),
    var(--bg-app);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--slate-700);
  background: var(--bg-app);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-900);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0;
  min-width: 0;
}

.brandMark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--grad-brand);
  color: white;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(52, 66, 126, 0.28);
}

.brandMark::after {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  grid-area: 1 / 1;
  transform: translate(-6px, -3px);
}

.brandMark.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.brandMark.small::after {
  display: none;
}

.brandText {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brandText span:last-child {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
}

.topNav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 24, 46, 0.92);
  backdrop-filter: blur(18px);
}

.topNavInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--maxw));
  min-height: 72px;
  margin: 0 auto;
  gap: 20px;
}

.topNav .brand {
  color: white;
}

.topNav .brandText span:last-child {
  color: #c7cae4;
}

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

.navLinks a,
.navLinks button,
.pillButton,
.ghostButton,
.dangerButton,
.iconButton {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.navLinks a {
  color: #e4e6f2;
}

.navLinks a:hover,
.ghostButton:hover,
.pillButton:hover,
.dangerButton:hover,
.iconButton:hover,
.sideLink:hover,
.bottomNav a:hover {
  transform: translateY(-1px);
}

.pillButton {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 10px 26px rgba(52, 66, 126, 0.28);
}

.pillButton.warm {
  background: var(--brand-rust);
  box-shadow: 0 10px 26px rgba(184, 61, 12, 0.24);
}

.ghostButton {
  border: 1px solid var(--border);
  background: white;
  color: var(--slate-700);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.topNav .ghostButton {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.dangerButton {
  background: var(--red);
  color: white;
}

.iconButton {
  width: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: white;
  color: var(--slate-700);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: var(--navy-900);
  color: white;
}

.heroImage {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.02);
  opacity: 0.52;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 80% 20%, rgba(210, 78, 26, 0.18), rgba(20, 24, 46, 0) 58%),
    linear-gradient(90deg, rgba(20, 24, 46, 0.97) 0%, rgba(20, 24, 46, 0.83) 46%, rgba(20, 24, 46, 0.48) 100%);
}

.heroInner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  width: min(100% - 40px, var(--maxw));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  align-items: center;
  gap: 52px;
  padding: 70px 0 104px;
}

.heroCopy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4d9cc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-rust-bright);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--slate-900);
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero h1 {
  margin-top: 18px;
  color: white;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 900;
  max-width: 760px;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e4e6f2;
  font-size: 20px;
  line-height: 1.65;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trustStrip,
.authProof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trustStrip span,
.authProof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef0f8;
  font-size: 13px;
  font-weight: 800;
}

.trustStrip.light span {
  border-color: var(--border);
  background: white;
  color: var(--slate-700);
  box-shadow: var(--shadow-card);
}

.heroProof {
  display: grid;
  gap: 14px;
  align-self: end;
  padding-bottom: 20px;
}

.glassPanel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(20, 24, 46, 0.78);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.proofHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 0;
}

.proofHead strong {
  color: white;
}

.miniStatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7cae4;
  font-size: 13px;
  font-weight: 700;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.proofImage {
  margin: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: #f7f8fc;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 46, 0.04);
}

.proofMetrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proofMetrics div {
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proofMetrics div:last-child {
  border-right: 0;
}

.proofMetrics span {
  display: block;
  color: #c7cae4;
  font-size: 12px;
}

.proofMetrics strong {
  display: block;
  margin-top: 2px;
  color: white;
  font-size: 19px;
}

.section {
  width: min(100% - 40px, var(--maxw));
  margin: 0 auto;
  padding: 80px 0;
}

.sectionTitle {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.sectionTitle h1,
.sectionTitle h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.sectionTitle p {
  max-width: 530px;
  color: var(--gray-500);
  font-size: 17px;
}

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

.card,
.statCard,
.panel,
.authCard,
.tablePanel,
.message,
.settingRow,
.memoryCard,
.profileBlock,
.childTile {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    white;
  box-shadow: var(--shadow-card);
}

.card,
.panel,
.statCard,
.memoryCard,
.profileBlock,
.settingRow,
.tablePanel,
.childTile {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.panel:hover,
.statCard:hover,
.memoryCard:hover,
.profileBlock:hover,
.settingRow:hover,
.childTile:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.childTile {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.childTile p {
  margin: 0;
  color: var(--gray-500);
}

.childTile h3 {
  font-size: 21px;
}

.card {
  min-height: 184px;
  padding: 24px;
}

.cardIcon,
.sideIcon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--brand-blue);
  font-weight: 900;
}

.card:nth-child(2n) .cardIcon,
.card:nth-child(2n) .sideIcon {
  background: var(--rust-50);
  color: var(--brand-rust);
}

.card h3 {
  margin-top: 18px;
  font-size: 21px;
}

.cardIcon {
  box-shadow: inset 0 0 0 1px rgba(52, 66, 126, 0.06);
}

.card p {
  margin-top: 8px;
  color: var(--gray-500);
}

.authPage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(0, 1.14fr);
  background:
    radial-gradient(780px 520px at 95% 8%, rgba(244, 217, 204, 0.6), rgba(247, 248, 252, 0) 58%),
    var(--bg-app);
}

.authAside {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 24px;
  padding: 46px;
  background: var(--navy-900);
  color: white;
}

.authAside::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56%;
  background:
    radial-gradient(620px 340px at 30% 20%, rgba(69, 90, 166, 0.36), rgba(20, 24, 46, 0)),
    linear-gradient(0deg, rgba(20, 24, 46, 0.96), rgba(20, 24, 46, 0.12));
}

.authAside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.authAsideContent {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.authAside h1 {
  color: white;
  font-size: 46px;
}

.authAside p {
  color: #d8dcec;
  font-size: 18px;
}

.authMain {
  display: grid;
  place-items: center;
  padding: 36px;
}

.authCard {
  width: min(100%, 480px);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.authCard .brand {
  margin-bottom: 32px;
}

.authCard h1 {
  font-size: 32px;
}

.authCard > p {
  margin: 8px 0 24px;
  color: var(--gray-500);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--slate-900);
  background: #fbfcff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.composer input:focus {
  outline: none;
  border-color: var(--brand-blue-bright);
  background: white;
  box-shadow: 0 0 0 4px rgba(52, 66, 126, 0.12);
}

.field textarea {
  min-height: 124px;
  padding-top: 12px;
  resize: vertical;
}

.formFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.verifyCode input {
  min-width: 0;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  background: var(--bg-app);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 16px;
  background:
    radial-gradient(500px 280px at 30% 0%, rgba(69, 90, 166, 0.28), rgba(20, 24, 46, 0) 62%),
    var(--navy-900);
  color: #e4e6f2;
}

.sidebar .brand {
  padding: 0 8px;
  color: white;
}

.sidebar .brandText span:last-child {
  color: #9094ac;
}

.sideGroup {
  display: grid;
  gap: 6px;
}

.sideLabel {
  padding: 0 12px 4px;
  color: #9094ac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sideLink {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  color: #d8dcec;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.sideLink.active {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  box-shadow: inset 3px 0 0 var(--brand-rust-bright);
}

.sideLink .sideIcon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4d9cc;
  box-shadow: none;
}

.sidebarFooter {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebarFooter strong {
  display: block;
  color: white;
}

.sidebarFooter span {
  color: #c7cae4;
  font-size: 13px;
}

.main {
  min-width: 0;
  padding-bottom: 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 252, 0.92);
  backdrop-filter: blur(16px);
}

.topbarTitle {
  min-width: 0;
}

.topbarTitle strong {
  display: block;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 19px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbarTitle span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

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

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: white;
  font-weight: 900;
}

.content {
  display: grid;
  gap: 24px;
  width: min(100% - 40px, 1180px);
  margin: 30px auto 0;
}

.pageHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 2px;
}

.pageHeader h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
}

.pageHeader p {
  margin-top: 6px;
  color: var(--gray-500);
  max-width: 680px;
  font-size: 16px;
}

.pageKicker {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--brand-rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.statCard {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.statCard::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 82px;
  height: 82px;
  border-radius: 0 18px 0 82px;
  background: linear-gradient(135deg, rgba(216, 220, 236, 0.48), rgba(251, 237, 230, 0.72));
}

.statCard span {
  position: relative;
  z-index: 1;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.statCard strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  color: var(--slate-900);
  font-size: 30px;
  line-height: 1.1;
}

.statCard small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
}

.statLine {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 7px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--blue-50);
}

.statLine::before {
  content: "";
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
}

.twoCol {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 20px;
}

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

.panel,
.tablePanel {
  padding: 22px;
}

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

.panelHead h2 {
  font-size: 21px;
}

.panelHead p {
  margin-top: 4px;
  color: var(--gray-500);
}

.list {
  display: grid;
  gap: 12px;
}

.listItem {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.listItem strong {
  display: block;
  color: var(--slate-900);
}

.listItem span {
  display: block;
  color: var(--gray-500);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--blue-50);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.insightBand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--blue-100);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(238, 240, 248, 0.94), rgba(251, 237, 230, 0.78)),
    white;
  box-shadow: var(--shadow-card);
}

.insightBand h2 {
  font-size: 22px;
}

.insightBand p {
  max-width: 780px;
  margin-top: 5px;
  color: var(--gray-500);
}

.badge.warm {
  background: var(--rust-50);
  color: var(--brand-rust);
}

.badge.good {
  background: var(--green-soft);
  color: var(--green);
}

.badge.warn {
  background: var(--amber-soft);
  color: #9c6008;
}

.badge.bad {
  background: var(--red-soft);
  color: var(--red);
}

.progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: var(--blue-50);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
}

.timeline {
  display: grid;
  gap: 14px;
}

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

.timelineItem::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand-rust);
  box-shadow: 0 0 0 6px var(--rust-50);
}

.timelineItem strong {
  color: var(--slate-900);
}

.timelineItem p {
  color: var(--gray-500);
}

.chatLayout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
}

.conversation {
  display: flex;
  min-height: 620px;
  flex-direction: column;
}

.messages {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 16px;
  padding: 4px;
}

.message {
  max-width: 78%;
  padding: 14px 16px;
  box-shadow: none;
}

.message span {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.message p {
  margin: 0;
}

.message.ai {
  border-color: var(--blue-100);
  background: linear-gradient(180deg, #f6f7fc, var(--blue-50));
}

.message.user {
  justify-self: end;
  border-color: var(--rust-100);
  background: linear-gradient(180deg, #fff8f4, var(--rust-50));
}

.message.user span {
  color: var(--brand-rust);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.composer input {
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 16px;
  background: #fbfcff;
}

.profileGrid,
.settingsGrid,
.memoryGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profileBlock,
.memoryCard,
.settingRow {
  padding: 18px;
}

.memoryCard {
  display: grid;
  gap: 13px;
}

.memoryCard h3,
.profileBlock h3,
.settingRow h3 {
  font-size: 21px;
}

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

.memoryFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.settingRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.toggle {
  position: relative;
  width: 52px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-100);
  flex: 0 0 auto;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-card);
}

.toggle.on {
  background: var(--brand-blue);
}

.toggle.on::after {
  left: 26px;
}

.tablePanel {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--brand-blue);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--slate-700);
}

tr:last-child td {
  border-bottom: 0;
}

.opsShell .sidebar {
  background:
    radial-gradient(520px 300px at 30% 0%, rgba(184, 61, 12, 0.18), rgba(16, 19, 33, 0) 62%),
    #101321;
}

.opsShell .topbar {
  background: rgba(247, 248, 252, 0.92);
}

.riskBand {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(640px 280px at 80% 10%, rgba(220, 58, 58, 0.22), rgba(20, 24, 46, 0)),
    var(--navy-900);
  color: white;
}

.riskBand h2 {
  color: white;
}

.riskBand p {
  color: #c7cae4;
}

.partnerHero {
  min-height: 100vh;
  background:
    radial-gradient(760px 420px at 100% 0%, rgba(251, 237, 230, 0.9), rgba(247, 248, 252, 0) 58%),
    var(--bg-app);
}

.partnerBand {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 48px;
  width: min(100% - 40px, var(--maxw));
  margin: 0 auto;
  padding: 58px 0 88px;
  align-items: center;
}

.partnerCopy h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.partnerCopy p {
  margin-top: 18px;
  color: var(--gray-500);
  font-size: 19px;
}

.partnerPreview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.partnerPreview img {
  width: 100%;
}

.bottomNav {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-around;
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.bottomNav a {
  display: grid;
  min-width: 52px;
  place-items: center;
  gap: 2px;
  border-radius: 16px;
  padding: 8px 6px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 900;
}

.bottomNav a span:first-child {
  font-size: 18px;
  line-height: 1;
}

.bottomNav a.active {
  background: var(--blue-50);
  color: var(--brand-blue);
}

.emptyState {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  color: var(--gray-500);
  text-align: center;
}

.emptyState strong {
  display: block;
  color: var(--slate-900);
  font-size: 20px;
}

@media (max-width: 1080px) {
  .heroInner,
  .partnerBand {
    grid-template-columns: 1fr;
  }

  .heroProof {
    align-self: start;
    max-width: 680px;
  }

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

  .threeCol,
  .profileGrid,
  .settingsGrid,
  .memoryGrid,
  .chatLayout,
  .insightBand {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .navLinks a:not(.pillButton),
  .topNav .ghostButton {
    display: none;
  }

  .topNavInner,
  .section,
  .content,
  .partnerBand {
    width: min(100% - 28px, var(--maxw));
  }

  .heroInner {
    width: min(100% - 28px, var(--maxw));
    padding: 46px 0 88px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p,
  .partnerCopy p {
    font-size: 17px;
  }

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

  .authAside {
    min-height: 260px;
    padding: 28px;
  }

  .authAside h1 {
    font-size: 34px;
  }

  .authMain {
    padding: 20px 14px 34px;
  }

  .authCard {
    padding: 22px;
  }

  .authProof,
  .trustStrip {
    margin-top: 18px;
  }

  .shell {
    display: block;
    padding-bottom: 86px;
  }

  .sidebar {
    display: none;
  }

  .bottomNav {
    display: flex;
  }

  .topbar {
    padding: 0 14px;
  }

  .topbarActions .ghostButton,
  .topbarActions .pillButton {
    display: none;
  }

  .pageHeader {
    display: grid;
  }

  .pageHeader .pillButton {
    justify-self: start;
  }

  .twoCol,
  .featureGrid,
  .statGrid {
    grid-template-columns: 1fr;
  }

  .sectionTitle {
    display: grid;
  }

  .message {
    max-width: 92%;
  }

  .conversation {
    min-height: 520px;
  }

  .listItem {
    align-items: start;
  }
}

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

  .proofMetrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .proofMetrics div:last-child {
    border-bottom: 0;
  }

  .heroActions,
  .formFooter {
    display: grid;
  }

  .heroActions .pillButton,
  .heroActions .ghostButton,
  .authCard .pillButton,
  .pageHeader .pillButton,
  .riskBand .dangerButton,
  .composer .pillButton {
    width: 100%;
  }

  .composer,
  .riskBand,
  .settingRow {
    grid-template-columns: 1fr;
  }

  .settingRow .toggle {
    justify-self: start;
  }

  .listItem {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .listItem .badge {
    grid-column: 2;
    justify-self: start;
  }

  .panel,
  .tablePanel,
  .profileBlock,
  .memoryCard,
  .settingRow,
  .childTile {
    padding: 16px;
  }

  .topbarTitle span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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