:root {
  --primary: #151e0b;
  --primary-soft: #dde7c7;
  --forest: #606b4d;
  --sage: #a4ae8e;
  --warm: #fdfcf5;
  --background: #f7f9f2;
  --nav: #f1f3e9;
  --surface: #ffffff;
  --ink: #1a1c18;
  --muted: #44483d;
  --subtle: #75796b;
  --line: #e1e4d5;
  --amber: #b25b00;
  --amber-soft: #fff1d6;
  --red: #ba1a1a;
  --red-soft: #ffdad6;
  --blue: #2e5b8c;
  --blue-soft: #e8f0f8;
  --shadow: 0 18px 46px rgba(21, 30, 11, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 0 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.button-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.brand-mark strong {
  display: none;
}

.brand-mark.compact img {
  height: 34px;
}

.desktop-sidebar .brand-mark img {
  height: 46px;
  max-width: 172px;
}

.marketing-nav .brand-mark img {
  height: 44px;
  max-width: 180px;
}

.mobile-topbar .brand-mark img {
  height: 30px;
  max-width: 122px;
}

/* Marketing page */

.marketing-page {
  background: var(--background);
}

.marketing-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.language-select,
.language-field select,
.mobile-language-select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 900;
  outline: none;
}

.marketing-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.marketing-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 52px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 48px;
}

.marketing-copy h1 {
  margin: 16px 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
  word-break: keep-all;
}

.marketing-copy h1 span {
  display: inline;
}

.marketing-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.public-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  min-height: min(660px, calc(100vh - 140px));
}

.public-hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-hero-panel img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 18px;
}

.public-hero-panel strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.public-hero-panel ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.public-hero-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.public-hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-product-preview {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-toolbar,
.preview-card,
.preview-list span,
.preview-score article {
  border: 1px solid var(--line);
  background: var(--warm);
}

.preview-toolbar {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-lg);
  padding: 10px 12px;
}

.preview-toolbar span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.preview-toolbar i {
  font-style: normal;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

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

.preview-score article {
  min-height: 100px;
  border-radius: var(--radius-lg);
  padding: 16px;
}

.preview-score strong {
  display: block;
  font-size: 32px;
}

.preview-score span,
.preview-card span,
.preview-list span {
  color: var(--muted);
}

.preview-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.preview-card b,
.preview-card span {
  display: block;
}

.preview-card b {
  margin-bottom: 8px;
  font-size: 19px;
}

.preview-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-weight: 700;
}

.marketing-strip,
.marketing-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.marketing-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 0 52px;
}

.marketing-strip article,
.role-grid article,
.buyer-grid article,
.workflow-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.marketing-strip article {
  min-height: 104px;
  padding: 18px;
}

.marketing-strip strong,
.marketing-strip span,
.role-grid span,
.role-grid h3,
.role-grid p,
.buyer-grid h3,
.buyer-grid p {
  display: block;
}

.marketing-strip strong {
  font-size: 20px;
}

.marketing-strip span {
  margin-top: 8px;
  color: var(--muted);
}

.marketing-section {
  padding: 64px 0;
}

.section-intro {
  max-width: 760px;
}

.section-intro h2,
.split-section h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-intro p,
.split-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.role-grid,
.buyer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.role-grid article,
.buyer-grid article {
  padding: 22px;
}

.audience-card {
  display: block;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(21, 30, 11, 0.04);
}

.audience-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.role-grid span {
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.audience-card span {
  display: block;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-grid h3,
.buyer-grid h3 {
  margin: 12px 0 8px;
}

.audience-card h3 {
  margin: 14px 0 10px;
  font-size: 26px;
}

.role-grid p,
.buyer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: start;
}

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

.workflow-list article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  min-height: 64px;
  align-items: center;
  padding: 14px 16px;
}

.workflow-list span {
  color: var(--muted);
}

.public-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.public-cta h2,
.public-cta p {
  margin: 0;
}

.public-cta h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.public-cta p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

/* Service workspace */

.service-page {
  min-height: 100vh;
  background: var(--background);
}

.service-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 352px;
}

.student-app,
.partner-app {
  grid-template-columns: 268px minmax(0, 1fr);
}

.gateway-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 28px 0 56px;
}

.gateway-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gateway-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(135deg, rgba(221, 231, 199, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow: var(--shadow);
}

.gateway-hero h1,
.gateway-hero p {
  margin: 0;
}

.gateway-hero h1 {
  max-width: 760px;
  margin-top: 8px;
  font-size: 44px;
  line-height: 1.08;
}

.gateway-hero p {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.gateway-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(21, 30, 11, 0.04);
}

.gateway-card span {
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gateway-card strong {
  font-size: 24px;
}

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

.gateway-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: var(--surface);
}

.gateway-note strong,
.gateway-note p {
  display: block;
}

.gateway-note p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.gateway-note code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--warm);
  color: var(--primary);
  font-weight: 800;
}

.desktop-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 24px 18px;
  background: var(--nav);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.side-nav b {
  font: inherit;
}

.language-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.side-nav button,
.mobile-bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.side-nav button {
  min-height: 48px;
  border-radius: var(--radius-md);
  padding: 0 12px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.side-nav button span,
.mobile-bottom-nav span {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.side-nav button span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.side-nav button.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.side-nav button.active span {
  background: var(--primary);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--surface);
}

.sidebar-footer span,
.sidebar-footer strong {
  display: block;
}

.sidebar-footer span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-footer strong {
  margin-top: 6px;
}

.service-main {
  min-width: 0;
  padding: 24px;
}

.mobile-topbar {
  display: none;
}

.workspace-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.workspace-header p,
.workspace-header h1 {
  margin: 0;
}

.workspace-header p {
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-header h1 {
  margin-top: 4px;
  font-size: 30px;
  letter-spacing: 0;
}

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

.screen-root {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.panel,
.lead-card,
.match-card,
.document-card,
.report-card,
.form-panel,
.insight-card,
.pipeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(21, 30, 11, 0.04);
}

.panel {
  padding: 20px;
}

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

.panel-header h2,
.panel-header h3,
.panel-header p {
  margin: 0;
}

.panel-header h2 {
  margin-top: 4px;
  font-size: 25px;
}

.panel-header h3 {
  margin-top: 4px;
  font-size: 20px;
}

.panel-header p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.kpi {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--surface);
}

.kpi span,
.kpi strong,
.kpi small {
  display: block;
}

.kpi span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi strong {
  margin-top: 8px;
  font-size: 28px;
}

.kpi small {
  margin-top: 5px;
  color: var(--muted);
}

.lead-card {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.lead-avatar,
.avatar-button {
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.lead-avatar {
  width: 58px;
  height: 58px;
}

.lead-card h2,
.lead-card p {
  margin: 0;
}

.lead-card p {
  margin-top: 5px;
  color: var(--muted);
}

.status-pill,
.tag,
.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-ready {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-review {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-risk {
  background: var(--red-soft);
  color: var(--red);
}

.status-info {
  background: var(--blue-soft);
  color: var(--blue);
}

.score-grid {
  display: grid;
  gap: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 118px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--nav);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.path-list,
.document-list,
.action-list,
.match-list,
.pipeline-list {
  display: grid;
  gap: 12px;
}

.path-item,
.action-item,
.pipeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--warm);
}

.path-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.path-item > .status-pill {
  justify-self: end;
  align-self: start;
}

.path-item h3,
.path-item p,
.action-item strong,
.action-item p {
  margin: 0;
}

.path-item p,
.action-item p,
.pipeline-item span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.trust-panel {
  border-color: rgba(13, 122, 83, 0.22);
  background: linear-gradient(180deg, rgba(232, 246, 239, 0.88), rgba(255, 255, 255, 0.96));
}

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

.trust-grid article {
  border: 1px solid rgba(13, 122, 83, 0.18);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(72, 92, 61, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, rgba(247, 248, 241, 0.72), rgba(255, 255, 255, 0.88));
}

.evidence-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.evidence-header h3,
.evidence-header p {
  margin: 0;
}

.evidence-header h3 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.evidence-header p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

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

.evidence-item {
  min-height: 142px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.evidence-item strong,
.evidence-item span,
.evidence-item p {
  display: block;
}

.evidence-item strong {
  color: var(--ink);
  line-height: 1.25;
}

.evidence-item div > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.evidence-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-item > .status-pill {
  justify-self: start;
}

.handoff-gate {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(181, 116, 27, 0.24);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 237, 0.78), rgba(255, 255, 255, 0.9));
}

.handoff-gate.ready {
  border-color: rgba(13, 122, 83, 0.22);
  background: linear-gradient(180deg, rgba(232, 246, 239, 0.78), rgba(255, 255, 255, 0.94));
}

.handoff-gate-header,
.handoff-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.handoff-gate-header h3,
.handoff-gate-header p,
.handoff-actions span {
  margin: 0;
}

.handoff-gate-header h3 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.handoff-gate-header p,
.handoff-actions span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

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

.gate-step-list {
  display: grid;
  gap: 8px;
}

.gate-step {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.78);
}

.gate-step strong,
.gate-step p {
  margin: 0;
}

.gate-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.review-workbench {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(71, 128, 165, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, rgba(239, 247, 250, 0.78), rgba(255, 255, 255, 0.92));
}

.review-workbench-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.review-workbench-header h3,
.review-workbench-header p {
  margin: 0;
}

.review-workbench-header h3 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.review-workbench-header p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.review-step-grid {
  display: grid;
  gap: 10px;
}

.review-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.review-step.done {
  border-color: rgba(13, 122, 83, 0.22);
}

.review-step.blocked {
  background: rgba(250, 241, 241, 0.72);
}

.review-step strong,
.review-step p {
  margin: 0;
}

.review-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.path-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: var(--nav);
  color: var(--muted);
}

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

.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(96, 107, 77, 0.2);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(247, 248, 241, 0.78);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.match-card {
  padding: 18px;
}

.match-card-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: start;
}

.school-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.match-card h3,
.match-card p {
  margin: 0;
}

.match-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.match-actions,
.document-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.document-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.document-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--nav);
  color: var(--primary);
  font-weight: 900;
}

.document-card h3,
.document-card p {
  margin: 0;
}

.document-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.document-card > div:last-child {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
  background: var(--warm);
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(96, 107, 77, 0.16);
}

.toggle-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.toggle-field input {
  width: 18px;
  height: 18px;
}

.report-card {
  padding: 24px;
  background: var(--warm);
}

.report-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.report-title h2,
.report-title p {
  margin: 0;
}

.report-title p {
  margin-top: 6px;
  color: var(--muted);
}

.report-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.report-section h3 {
  margin: 0 0 10px;
}

.insight-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 18px 24px 0;
}

.insight-card {
  padding: 18px;
  margin-bottom: 14px;
}

.insight-card h3,
.insight-card p {
  margin: 0;
}

.insight-card p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.mini-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.mini-stat span {
  color: var(--muted);
}

.ai-output {
  white-space: pre-wrap;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--warm);
  color: var(--muted);
  line-height: 1.55;
}

.nav-section-label {
  margin: 16px 12px 4px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-shell {
  display: grid;
  gap: 16px;
}

.start-shell {
  display: grid;
  gap: 16px;
}

.start-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 24px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(221, 231, 199, 0.95), rgba(255, 255, 255, 0.95)),
    var(--surface);
  box-shadow: var(--shadow);
}

.start-hero h2,
.start-hero p {
  margin: 0;
}

.start-hero h2 {
  max-width: 720px;
  margin-top: 8px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.start-hero p {
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.onboarding-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-steps li {
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 900;
}

.onboarding-steps li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--nav);
  color: var(--primary);
  font-size: 12px;
}

.onboarding-steps li.active {
  border-color: rgba(21, 30, 11, 0.28);
  background: var(--primary);
  color: #fff;
}

.onboarding-steps li.active span {
  background: #fff;
}

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

.visa-choice-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 28px rgba(21, 30, 11, 0.04);
}

.visa-choice-card span,
.visa-choice-card strong,
.visa-choice-card small,
.visa-choice-card em {
  display: block;
}

.visa-choice-card span {
  width: fit-content;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--nav);
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.visa-choice-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.visa-choice-card small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.visa-choice-card em {
  margin-top: auto;
  color: var(--forest);
  font-style: normal;
  font-weight: 900;
}

.visa-choice-card.active {
  border-color: rgba(21, 30, 11, 0.48);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(21, 30, 11, 0.08);
}

.start-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--surface);
}

.start-action-bar strong,
.start-action-bar span {
  display: block;
}

.start-action-bar span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.onboarding-progress-panel,
.onboarding-panel,
.onboarding-summary {
  padding: 20px;
}

.onboarding-steps-interactive li {
  padding: 0;
  overflow: hidden;
}

.onboarding-steps-interactive li button {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: inherit;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 900;
}

.onboarding-steps li.complete {
  border-color: rgba(96, 107, 77, 0.24);
  background: rgba(221, 231, 199, 0.56);
  color: var(--primary);
}

.onboarding-steps li.complete span {
  background: var(--surface);
}

.onboarding-panel {
  display: grid;
  gap: 18px;
}

.onboarding-header h2,
.onboarding-header p,
.onboarding-summary h3,
.onboarding-summary p {
  margin: 0;
}

.onboarding-header h2 {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.onboarding-header p,
.onboarding-summary p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.onboarding-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.onboarding-form-grid .field:nth-child(3) {
  grid-column: 1 / -1;
}

.onboarding-insight,
.inline-validation {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.onboarding-insight {
  background: var(--warm);
}

.onboarding-insight span,
.onboarding-insight strong,
.onboarding-insight p {
  display: block;
}

.onboarding-insight span {
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.onboarding-insight strong {
  margin-top: 6px;
  font-size: 24px;
}

.onboarding-insight p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.onboarding-choice-strip,
.document-precheck-grid {
  display: grid;
  gap: 10px;
}

.onboarding-choice-strip {
  grid-template-columns: repeat(3, 1fr);
}

.onboarding-choice-strip article,
.document-precheck-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--warm);
}

.onboarding-choice-strip strong,
.onboarding-choice-strip span,
.document-precheck-grid span,
.document-precheck-grid strong,
.document-precheck-grid small {
  display: block;
}

.onboarding-choice-strip span,
.document-precheck-grid small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.document-precheck-grid {
  grid-template-columns: repeat(3, 1fr);
}

.document-precheck-grid article span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 900;
}

.document-precheck-grid article.ready span {
  background: #d9f3df;
  color: #176b34;
}

.consent-stack {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--warm);
}

.trust-note {
  border-color: rgba(13, 122, 83, 0.22);
  background: linear-gradient(180deg, rgba(232, 246, 239, 0.88), rgba(255, 255, 255, 0.96));
}

.inline-validation {
  font-weight: 800;
  line-height: 1.45;
}

.inline-validation.is-ok {
  background: rgba(221, 231, 199, 0.56);
  color: var(--primary);
}

.inline-validation.is-warning {
  border-color: rgba(178, 91, 0, 0.28);
  background: var(--amber-soft);
  color: var(--amber);
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.onboarding-summary {
  position: sticky;
  top: 24px;
}

.student-hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(221, 231, 199, 0.92), rgba(255, 255, 255, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.student-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.student-hero h2,
.student-hero p,
.student-hero-summary strong,
.student-hero-summary span,
.student-hero-summary small {
  margin: 0;
}

.student-hero h2 {
  max-width: 760px;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: 0;
}

.student-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.student-hero-summary {
  align-self: center;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(96, 107, 77, 0.18);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.student-hero-summary strong {
  font-size: 24px;
  line-height: 1.15;
}

.student-hero-summary span,
.student-hero-summary small {
  color: var(--muted);
  line-height: 1.45;
}

.student-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card,
.next-action-card,
.cost-card,
.program-card,
.partner-packet {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(21, 30, 11, 0.04);
}

.metric-card {
  min-height: 118px;
  padding: 16px;
}

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.15;
}

.metric-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.student-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.next-action-card,
.cost-card {
  padding: 20px;
}

.next-action-card {
  background: var(--primary);
  color: #fff;
}

.next-action-card .eyebrow,
.next-action-card p {
  color: rgba(255, 255, 255, 0.78);
}

.next-action-card h3,
.next-action-card p,
.cost-card h3,
.cost-card p {
  margin: 0;
}

.next-action-card h3,
.cost-card h3 {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1.18;
}

.next-action-card p,
.cost-card p {
  margin-top: 8px;
  line-height: 1.55;
}

.next-action-card .button-primary {
  margin-top: 16px;
  background: #fff;
  color: var(--primary);
}

.recommendation-grid,
.partner-grid,
.settings-grid {
  display: grid;
  gap: 12px;
}

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

.program-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.program-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-card h3,
.program-card p {
  margin: 0;
}

.program-card h3 {
  font-size: 20px;
  line-height: 1.2;
}

.program-card p,
.program-card-meta {
  color: var(--muted);
  line-height: 1.45;
}

.program-card-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.checklist-note,
.settings-grid article,
.partner-packet {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--warm);
}

.checklist-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.checklist-note span,
.settings-grid span,
.partner-packet span,
.fine-print {
  color: var(--muted);
  line-height: 1.45;
}

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

.settings-grid strong,
.settings-grid span,
.partner-packet strong,
.partner-packet span {
  display: block;
}

.settings-grid span,
.partner-packet span {
  margin-top: 6px;
}

.partner-packet .tag-row .tag,
.partner-packet .source-chip-row .source-chip {
  display: inline-flex;
  margin-top: 0;
}

.partner-packet-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.partner-packet-status span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 0;
  font-size: 12px;
  font-weight: 900;
}

.request-status {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--warm);
}

.request-status strong,
.request-status span {
  display: block;
}

.request-status strong {
  margin-top: 4px;
  text-transform: capitalize;
}

.request-status span:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.compact-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.implementation-command-center {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: linear-gradient(180deg, #fff, var(--warm));
}

.implementation-header,
.section-kicker-row,
.implementation-phase,
.next-action-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.implementation-header h3,
.implementation-header p,
.next-action-item strong,
.next-action-item span,
.implementation-phase strong,
.implementation-phase span {
  margin: 0;
}

.implementation-header h3 {
  margin-top: 3px;
  font-size: 22px;
}

.implementation-header p,
.implementation-phase span,
.next-action-item span,
.section-kicker-row small {
  color: var(--muted);
  line-height: 1.5;
}

.implementation-timeline {
  display: grid;
  gap: 10px;
}

.implementation-phase,
.next-action-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.implementation-phase {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(240px, 0.9fr);
  align-items: center;
}

.implementation-phase dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.implementation-phase dl div {
  min-width: 0;
}

.implementation-phase dt,
.implementation-phase dd {
  margin: 0;
}

.implementation-phase dt {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.implementation-phase dd {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.next-action-board {
  display: grid;
  gap: 10px;
}

.next-action-item {
  align-items: center;
}

.next-action-item code {
  max-width: min(420px, 48vw);
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: var(--nav);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.compact-pipeline {
  margin-top: 12px;
}

.ops-table {
  display: grid;
  gap: 10px;
}

.ops-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--warm);
}

.ops-row strong,
.ops-row span {
  display: block;
}

.ops-row span {
  color: var(--muted);
  font-size: 13px;
}

.warm-panel {
  background: var(--warm);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(480px, calc(100% - 32px));
  border-radius: var(--radius-md);
  padding: 13px 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.auth-locked {
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(247, 249, 242, 0.86);
  backdrop-filter: blur(14px);
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-card h2,
.auth-card p {
  margin: 0;
}

.auth-card h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.12;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.6;
}

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

.auth-provider-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--warm);
  color: var(--ink);
  text-decoration: none;
}

.auth-provider-row strong,
.auth-provider-row span {
  display: block;
}

.auth-provider-row strong {
  font-weight: 900;
}

.auth-provider-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-provider-row.disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.auth-dev-button {
  width: 100%;
}

.auth-error {
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--red-soft);
  color: var(--red) !important;
  font-weight: 800;
}

.account-chip {
  min-height: 40px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.telegram-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(247, 249, 242, 0.92), rgba(239, 247, 250, 0.92)),
    var(--warm);
}

.telegram-login-shell {
  width: min(560px, 100%);
}

.telegram-login-card h1 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.12;
}

.telegram-widget-mount,
.telegram-login-fallback {
  min-height: 70px;
  display: grid;
  align-items: center;
  justify-items: start;
  gap: 14px;
}

.telegram-secret-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telegram-secret-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(96, 107, 77, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--warm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.icon-button,
.avatar-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
}

.icon-button {
  border-radius: var(--radius-md);
  font-weight: 900;
}

.avatar-button {
  border-radius: 50%;
}

.mobile-language-select {
  min-width: 48px;
  max-width: 58px;
  padding: 0 6px;
  justify-self: end;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1180px) {
  .service-app {
    grid-template-columns: 228px minmax(0, 1fr);
  }

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

  .insight-panel {
    display: none;
  }

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

  .kpi-row,
  .ops-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .implementation-phase {
    grid-template-columns: 1fr;
  }

  .next-action-item {
    align-items: stretch;
    flex-direction: column;
  }

  .next-action-item code {
    max-width: 100%;
  }

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

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

  .student-hero,
  .student-two-col,
  .recommendation-grid,
  .partner-grid,
  .start-hero,
  .visa-choice-grid,
  .onboarding-shell {
    grid-template-columns: 1fr;
  }

  .onboarding-summary {
    position: static;
  }

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

  .ops-row {
    grid-template-columns: 1fr auto;
  }

  .request-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    font-size: 15px;
  }

  .marketing-nav nav {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-select {
    max-width: 118px;
  }

  .marketing-hero,
  .split-section,
  .role-grid,
  .buyer-grid,
  .audience-grid,
  .public-cta,
  .marketing-strip {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    min-height: auto;
    padding: 32px 0 48px;
    gap: 28px;
  }

  .marketing-copy h1 {
    font-size: 42px;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .preview-score {
    grid-template-columns: 1fr;
  }

  .public-hero-panel {
    padding: 22px;
  }

  .public-hero-panel img {
    width: 72px;
    height: 72px;
  }

  .public-cta {
    align-items: start;
  }

  .evidence-header,
  .evidence-grid,
  .handoff-gate-header,
  .handoff-gate-summary,
  .handoff-actions,
  .gate-step,
  .review-workbench-header,
  .review-step {
    grid-template-columns: 1fr;
  }

  .review-step-actions {
    justify-content: flex-start;
  }

  .partner-packet-status {
    grid-template-columns: 1fr;
  }

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

  .service-app {
    display: block;
    min-height: 100vh;
    background: var(--background);
  }

  .gateway-shell {
    width: min(100% - 28px, 720px);
    padding-top: 18px;
  }

  .gateway-header {
    align-items: flex-start;
  }

  .gateway-hero {
    padding: 24px;
  }

  .gateway-hero h1 {
    font-size: 34px;
  }

  .desktop-sidebar,
  .workspace-header .header-actions,
  .insight-panel {
    display: none;
  }

  .service-main {
    padding: 0 16px 92px;
  }

  .mobile-topbar {
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 64px 1fr 48px;
    align-items: center;
    gap: 6px;
    background: rgba(247, 249, 242, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .mobile-topbar .brand-mark {
    justify-self: center;
  }

  .workspace-header {
    min-height: 72px;
    margin: 14px 0 10px;
  }

  .workspace-header h1 {
    font-size: 24px;
  }

  .screen-root {
    gap: 14px;
  }

  .panel,
  .lead-card,
  .match-card,
  .document-card,
  .report-card {
    border-radius: var(--radius-lg);
  }

  .lead-card {
    grid-template-columns: 52px 1fr;
  }

  .lead-card > .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .kpi-row,
  .ops-summary,
  .form-grid,
  .onboarding-form-grid,
  .onboarding-choice-strip,
  .document-precheck-grid,
  .student-metric-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .student-hero {
    min-height: auto;
    padding: 20px;
  }

  .start-hero {
    padding: 20px;
  }

  .student-hero h2,
  .start-hero h2 {
    font-size: 34px;
  }

  .student-hero p,
  .start-hero p {
    font-size: 15px;
  }

  .start-action-bar {
    display: grid;
  }

  .onboarding-progress-panel,
  .onboarding-panel,
  .onboarding-summary {
    padding: 16px;
  }

  .onboarding-steps-interactive {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .onboarding-steps-interactive li button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .onboarding-steps-interactive li strong {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .onboarding-header h2 {
    font-size: 28px;
  }

  .metric-card,
  .next-action-card,
  .cost-card,
  .program-card,
  .visa-choice-card {
    border-radius: var(--radius-lg);
  }

  .score-row {
    grid-template-columns: 96px 1fr 36px;
  }

  .path-item,
  .document-card,
  .match-card-head {
    grid-template-columns: 1fr;
  }

  .school-logo,
  .document-icon {
    display: none;
  }

  .document-card > div:last-child {
    grid-column: auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 18;
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 8px 10px;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

.mobile-bottom-nav button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 14px;
    min-width: 0;
    overflow: hidden;
  }

  .mobile-bottom-nav span {
    width: 28px;
    height: 24px;
    border-radius: 999px;
  }

  .mobile-bottom-nav strong {
    font-size: 11px;
  }

  .mobile-bottom-nav button.active {
    color: var(--primary);
  }

  .mobile-bottom-nav button.active span {
    background: var(--primary-soft);
    color: var(--primary);
  }
}

@media (max-width: 520px) {
  .marketing-nav {
    width: calc(100% - 24px);
  }

  .marketing-nav .nav-actions .button-primary {
    display: none;
  }

  .marketing-nav .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .marketing-hero,
  .marketing-strip,
  .marketing-section {
    width: calc(100% - 24px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .marketing-copy h1 {
    font-size: 36px;
    line-height: 1.08;
    word-break: break-all;
    max-width: 360px;
  }

  .marketing-copy p {
    overflow-wrap: anywhere;
    word-break: break-all;
    max-width: 360px;
  }

  .marketing-copy p {
    font-size: 16px;
  }

  .marketing-copy h1 span {
    display: block;
  }

  .public-hero-panel strong {
    font-size: 22px;
  }

  .audience-card {
    min-height: 0;
  }
}
