:root {
  --ink: #10251d; --ink-soft: #617068; --paper: #f3f0e5; --white: #fffef9;
  --green: #187a55; --green-dark: #102b21; --green-soft: #dcecdf;
  --orange: #f1a169; --orange-soft: #fae5d3; --red: #b54436; --line: rgba(16,37,29,.14);
  --shadow: 0 26px 80px rgba(20,46,36,.12); --content: 1220px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; line-height: 1.5; background: radial-gradient(circle at 88% 2%, rgba(241,161,105,.24), transparent 28rem), radial-gradient(circle at 4% 43%, rgba(24,122,85,.11), transparent 34rem), var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 11px 14px; color: white; background: var(--green-dark); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.dashboard-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 10px max(24px, calc((100vw - var(--content))/2)); background: rgba(243,240,229,.9); border-bottom: 1px solid rgba(16,37,29,.1); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; color: white; background: var(--green-dark); border-radius: 13px; font-size: .88rem; font-weight: 900; }
.brand > span:last-child { display: grid; }
.brand strong { line-height: 1.1; }
.brand small { margin-top: 3px; color: var(--ink-soft); }
.dashboard-header nav { display: flex; align-items: center; gap: 7px; }
.dashboard-header nav a, .dashboard-header nav button { min-height: 42px; padding: 0 13px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.dashboard-header nav button { color: white; background: var(--green-dark); }
.dashboard-shell { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 58px 0 100px; }
.hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 60px; align-items: end; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(3.2rem,6.2vw,6rem); line-height: .91; letter-spacing: -.068em; }
.hero h1 em { display: block; color: var(--green); font-family: Georgia, serif; font-weight: 500; }
.hero-copy > p:last-child { max-width: 730px; margin: 28px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.launch-meter { padding: 28px; color: white; background: var(--green-dark); border-radius: 26px; box-shadow: var(--shadow); }
.launch-meter > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.launch-meter span { color: rgba(255,255,255,.69); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.launch-meter div strong { font-size: 2.7rem; line-height: 1; }
.meter-track { height: 8px; margin: 20px 0; overflow: hidden; background: rgba(255,255,255,.14); border-radius: 10px; }
.meter-track i { display: block; width: 0; height: 100%; background: var(--orange); border-radius: inherit; transition: width .35s ease; }
.launch-meter h2 { margin: 0; font-size: 1.28rem; }
.launch-meter p { margin: 8px 0 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 52px 0 70px; }
.quick-actions a { display: grid; min-height: 150px; padding: 20px; text-decoration: none; background: rgba(255,254,249,.78); border: 1px solid var(--line); border-radius: 20px; transition: transform .18s ease, border-color .18s ease; }
.quick-actions a:hover { transform: translateY(-3px); border-color: rgba(24,122,85,.5); }
.quick-actions span { display: grid; width: 31px; height: 31px; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: .68rem; font-weight: 900; }
.quick-actions strong { margin-top: 20px; }
.quick-actions small { margin-top: 3px; color: var(--ink-soft); }
.credit-balance-card { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: clamp(28px,5vw,70px); align-items: center; margin: -28px 0 70px; padding: clamp(28px,5vw,54px); color: white; background: var(--green-dark); border-radius: 30px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.credit-balance-copy h2 { margin: 0; font-size: clamp(2.5rem,5vw,4.8rem); line-height: .94; letter-spacing: -.06em; }
.credit-balance-copy h2 strong { color: var(--orange); font-size: 1.12em; }
.credit-balance-copy > p:last-child { max-width: 690px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.65; }
.credit-balance-copy > p:last-child b { color: white; }
.credit-pack { display: grid; gap: 10px; padding: 24px; color: var(--ink); background: var(--white); border-radius: 21px; }
.credit-pack > span { color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.credit-pack > strong { font-size: 2.4rem; line-height: 1; letter-spacing: -.05em; }
.credit-pack > strong small { color: var(--ink-soft); font-size: .72rem; letter-spacing: 0; }
.credit-pack > p { margin: 0; color: var(--ink-soft); font-size: .82rem; }
.credit-pack > button, .credit-pack > a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 5px; padding: 0 15px; color: white; background: var(--green); border: 0; border-radius: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }
.credit-pack > button:disabled { color: var(--ink-soft); background: var(--paper); cursor: not-allowed; }
.credit-pack > a { color: var(--green-dark); background: var(--orange); }
.credit-pack > small { color: var(--ink-soft); line-height: 1.45; }
.credit-pack .form-status { margin: 0; }
.section-block { padding: clamp(24px,4vw,46px); background: rgba(255,254,249,.88); border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 20px 60px rgba(20,46,36,.07); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem,4vw,3.6rem); line-height: 1; letter-spacing: -.055em; }
.section-heading p:last-child { max-width: 700px; margin: 14px 0 0; color: var(--ink-soft); }
.section-heading.compact { align-items: start; }
.section-heading.compact h2 { font-size: clamp(2rem,3.2vw,3rem); }
.section-stat { display: grid; flex: 0 0 auto; min-width: 150px; text-align: right; }
.section-stat strong { color: var(--green); font-size: 3.2rem; line-height: 1; }
.section-stat span { font-weight: 850; }
.section-stat small { color: var(--ink-soft); }
.security-ribbon { display: flex; gap: 13px; align-items: center; margin: 30px 0 18px; padding: 14px 17px; background: var(--green-soft); border-radius: 15px; }
.security-ribbon > span { display: grid; flex: 0 0 30px; height: 30px; place-items: center; color: white; background: var(--green); border-radius: 50%; font-weight: 900; }
.security-ribbon p { margin: 0; font-size: .88rem; }
.connection-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.connection-card { display: flex; flex-direction: column; min-height: 315px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.connection-card.selected { border-color: rgba(24,122,85,.65); box-shadow: inset 0 0 0 1px rgba(24,122,85,.12); }
.connection-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.connection-icon { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: var(--green-dark); border-radius: 12px; font-weight: 900; }
.status-pill { padding: 6px 9px; color: var(--ink-soft); background: var(--paper); border-radius: 999px; font-size: .66rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.status-pill.ready, .status-pill.connected { color: #0d6746; background: var(--green-soft); }
.status-pill.attention { color: #8a4a20; background: var(--orange-soft); }
.status-pill.error { color: #8b2f27; background: #f7dcd7; }
.connection-card h3 { margin: 20px 0 6px; font-size: 1.2rem; }
.connection-card > p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.field-state { display: grid; gap: 5px; margin: 18px 0; padding: 12px; background: var(--paper); border-radius: 12px; font-size: .78rem; }
.field-state span { color: var(--ink-soft); }
.field-state b { color: var(--ink); }
.connection-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.connection-actions button, .connection-actions a { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; font-size: .76rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.connection-actions button { color: white; background: var(--green-dark); }
.connection-actions a { display: inline-flex; align-items: center; background: white; }
.connection-owner { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .72rem; }
.connection-proof, .connection-error { display: block; margin: 3px 0 9px; font-size: .72rem; font-weight: 800; }
.connection-proof { color: var(--green); }
.connection-error { color: var(--red); }
.authorization-result { position: relative; display: flex; align-items: center; gap: 18px; margin: 0 0 18px; padding: 18px 54px 18px 20px; color: white; background: var(--green-dark); border-radius: 17px; }
.authorization-result > div { display: grid; flex: 1; }
.authorization-result span { color: var(--orange); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.authorization-result strong { margin-top: 3px; font-size: 1.05rem; }
.authorization-result p { margin: 3px 0 0; color: rgba(255,255,255,.7); font-size: .8rem; }
.authorization-result a { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 42px; padding: 0 13px; color: var(--green-dark); background: var(--orange); border-radius: 10px; font-size: .78rem; font-weight: 900; text-decoration: none; }
.authorization-result button { position: absolute; top: 9px; right: 10px; color: rgba(255,255,255,.7); background: transparent; border: 0; font-size: 1.4rem; cursor: pointer; }
.activity-panel { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); gap: 34px; align-items: start; margin-top: 16px; padding: 28px 32px; color: white; background: var(--green-dark); border-radius: 24px; }
.activity-panel h2 { margin: 0; font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1; letter-spacing: -.045em; }
.activity-panel > div:first-child > p:last-child { margin: 12px 0 0; color: rgba(255,255,255,.64); font-size: .84rem; }
.activity-list { display: grid; gap: 7px; }
.activity-item { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; align-items: center; padding: 10px 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.activity-item > span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--green-dark); background: var(--orange); border-radius: 50%; font-size: .74rem; font-weight: 900; }
.activity-item div { display: grid; min-width: 0; }
.activity-item strong { font-size: .8rem; }
.activity-item small { overflow: hidden; color: rgba(255,255,255,.58); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-empty { margin: 0; padding: 22px; color: rgba(255,255,255,.65); border: 1px dashed rgba(255,255,255,.18); border-radius: 13px; }
.lower-grid { display: grid; grid-template-columns: minmax(0,1.17fr) minmax(340px,.83fr); gap: 16px; margin-top: 16px; align-items: start; }
.team-list { display: grid; gap: 8px; margin-top: 28px; }
.team-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.team-avatar { display: grid; width: 44px; height: 44px; place-items: center; color: white; background: var(--green); border-radius: 13px; font-size: .76rem; font-weight: 900; }
.team-copy { display: grid; min-width: 0; }
.team-copy strong, .team-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-copy small { color: var(--ink-soft); }
.team-progress { display: grid; min-width: 92px; text-align: right; }
.team-progress strong { color: var(--green); }
.team-progress span { color: var(--ink-soft); font-size: .72rem; }
.team-progress button { margin-top: 5px; padding: 4px 8px; color: var(--red); background: transparent; border: 0; font-size: .72rem; font-weight: 850; cursor: pointer; }
.team-progress button.reactivate { color: var(--green); }
.team-progress button[data-reset-member] { color: var(--ink-soft); }
.recovery-result { display: grid; gap: 8px; margin-top: 12px; padding: 15px; background: var(--orange-soft); border: 1px solid rgba(181,68,54,.12); border-radius: 14px; }
.recovery-result span { color: #7f4a25; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.recovery-result code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recovery-result button { justify-self: start; min-height: 38px; padding: 0 11px; color: white; background: var(--green-dark); border: 0; border-radius: 9px; font-size: .76rem; font-weight: 850; cursor: pointer; }
.invite-card { display: grid; gap: 13px; margin-top: 26px; padding: 22px; background: var(--green-dark); border-radius: 20px; color: white; }
.invite-card span { color: var(--orange); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.invite-card h3 { margin: 3px 0 0; font-size: 1.5rem; }
.invite-card p { margin: 4px 0 0; color: rgba(255,255,255,.67); font-size: .84rem; }
label { display: grid; gap: 6px; font-size: .78rem; font-weight: 850; }
label small { color: rgba(255,255,255,.6); font-weight: 600; }
input, select { width: 100%; min-height: 46px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; }
.form-grid { display: grid; gap: 10px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.invite-card > button { min-height: 46px; color: var(--green-dark); background: var(--orange); border: 0; border-radius: 11px; font-weight: 900; cursor: pointer; }
.invite-result { display: grid; gap: 8px; }
.invite-result code { overflow: hidden; padding: 10px; color: white; background: rgba(255,255,255,.1); border-radius: 9px; text-overflow: ellipsis; white-space: nowrap; }
.invite-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.invite-result button, .invite-result a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; font-weight: 850; text-decoration: none; cursor: pointer; }
.invite-result a { color: var(--green-dark); background: var(--orange); border-color: var(--orange); }
.welcome-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 20px 22px; color: white; background: var(--green-dark); border-radius: 20px; }
.welcome-banner div { display: grid; gap: 4px; }
.welcome-banner span { color: var(--orange); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.welcome-banner strong { font-size: 1.25rem; }
.welcome-banner p { margin: 0; color: rgba(255,255,255,.72); }
.welcome-banner a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--green-dark); background: var(--orange); border-radius: 11px; font-weight: 900; text-decoration: none; }
.preflight-list { display: grid; gap: 7px; margin-top: 26px; }
.preflight-item { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.preflight-item > span:first-child { display: grid; width: 28px; height: 28px; place-items: center; color: var(--ink-soft); background: var(--paper); border-radius: 50%; font-weight: 900; }
.preflight-item.complete > span:first-child { color: white; background: var(--green); }
.preflight-item strong { font-size: .84rem; }
.preflight-item small { color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; }
.pilot-card { margin-top: 22px; padding: 22px; color: white; background: var(--green-dark); border-radius: 19px; }
.pilot-card.ready { background: var(--green); }
.pilot-card > span { color: var(--orange); font-size: .69rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pilot-card strong { display: block; margin-top: 7px; font-size: 1.32rem; }
.pilot-card p { color: rgba(255,255,255,.7); font-size: .84rem; }
.pilot-card a { display: inline-flex; align-items: center; min-height: 41px; margin-top: 6px; padding: 0 12px; color: var(--green-dark); background: var(--orange); border-radius: 10px; font-size: .78rem; font-weight: 900; text-decoration: none; }
.form-status { min-height: 1.2em; margin: 10px 0 0; color: var(--green); font-size: .82rem; font-weight: 750; }
.form-status.error { color: var(--red); }
.access-card { width: min(560px, calc(100% - 40px)); margin: 12vh auto; padding: 38px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.access-card > span { color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.access-card h1 { margin: 10px 0; font-size: 2.5rem; line-height: 1; letter-spacing: -.05em; }
.access-card p { color: var(--ink-soft); }
.access-card a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 15px; color: white; background: var(--green-dark); border-radius: 11px; font-weight: 850; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(241,161,105,.7); outline-offset: 2px; }
@media (max-width: 980px) {
  .hero, .lower-grid, .activity-panel, .credit-balance-card { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .launch-meter { max-width: 520px; }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .connection-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .dashboard-header { position: static; align-items: center; padding: 12px 16px; }
  .brand small { display: none; }
  .dashboard-header nav { flex-wrap: wrap; justify-content: flex-end; }
  .dashboard-header nav a { display: none; }
  .dashboard-header nav a:first-child { display: none; }
  .dashboard-shell { width: min(100% - 28px, var(--content)); padding: 38px 0 70px; }
  .hero { gap: 28px; }
  .hero h1 { font-size: clamp(3rem,15vw,4.5rem); }
  .quick-actions { grid-template-columns: 1fr 1fr; margin: 34px 0 46px; }
  .credit-balance-card { margin: 0 0 46px; padding: 24px; border-radius: 24px; }
  .quick-actions a { min-height: 132px; padding: 16px; }
  .quick-actions strong { margin-top: 14px; font-size: .88rem; }
  .quick-actions small { font-size: .72rem; }
  .section-block { padding: 20px; border-radius: 23px; }
  .section-heading { display: grid; gap: 18px; }
  .section-stat { min-width: 0; text-align: left; }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-card { min-height: 280px; }
  .authorization-result { display: grid; }
  .authorization-result a { justify-self: start; }
  .team-row { grid-template-columns: 40px minmax(0,1fr); }
  .team-avatar { width: 40px; height: 40px; }
  .team-progress { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; text-align: left; }
  .form-grid.two { grid-template-columns: 1fr; }
  .welcome-banner { align-items: stretch; flex-direction: column; }
  .welcome-banner a { justify-content: center; }
  .invite-share-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
