:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #14213d;
  background: #eef6ff;
  --brand-navy: #14213d;
  --brand-blue: #1769aa;
  --brand-cyan: #12b9cf;
  --brand-orange: #f36b35;
  --brand-pale: #eef6ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(960px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0; }
form, label { display: grid; gap: .5rem; }
form { gap: 1rem; }
input, button { width: 100%; padding: .8rem .9rem; border: 1px solid #a9bfd6; border-radius: .6rem; font: inherit; }
button { border-color: #1769aa; color: #fff; background: #1769aa; font-weight: 700; cursor: pointer; }
.error, .success { padding: .75rem; border-radius: .5rem; }
.error { color: #8a1c1c; background: #ffe9e9; }
.success { color: #166534; background: #dcfce7; }
.muted { color: #52657a; }

.landing-body { min-height: 100svh; overflow-x: hidden; background: #fff; }
.landing-shell { width: 100%; min-height: 100svh; margin: 0; padding: 0; }
.landing { display: grid; min-height: 100svh; grid-template-columns: minmax(0, 1.68fr) minmax(360px, 1fr); color: var(--brand-navy); background: #fff; }
.landing-hero { position: relative; display: flex; min-width: 0; min-height: 100svh; overflow: hidden; align-items: flex-end; padding: clamp(1.5rem, 4vw, 4rem); color: #fff; isolation: isolate; background: #0a3149 url('/landing-territories.webp') center / cover no-repeat; }
.landing-hero::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, rgb(3 14 27 / .74) 0%, rgb(3 14 27 / .28) 62%, rgb(3 14 27 / .08) 100%), linear-gradient(0deg, rgb(3 14 27 / .68), transparent 62%); }
.landing-hero-brand { position: absolute; top: clamp(1.25rem, 3vw, 2.25rem); left: clamp(1.5rem, 4vw, 4rem); display: flex; align-items: center; gap: .65rem; font-size: .95rem; font-style: italic; font-weight: 900; letter-spacing: .08em; text-shadow: 0 2px 12px rgb(0 0 0 / .5); }
.landing-hero-brand img { width: 3rem; height: 3rem; object-fit: contain; filter: drop-shadow(0 5px 10px rgb(0 0 0 / .28)); }
.landing-copy { max-width: 42rem; padding-bottom: clamp(1rem, 4vh, 3rem); text-shadow: 0 3px 24px rgb(0 0 0 / .55); }
.landing-eyebrow { margin: 0 0 1rem; color: #b8f5fc; font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.landing-copy h1 { margin: 0; font-size: clamp(3rem, 5.5vw, 5.8rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.landing-copy > p:last-child { margin: 1.35rem 0 0; font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 650; line-height: 1.5; }

.landing-auth { display: grid; min-width: 0; place-items: center; padding: clamp(2rem, 5vw, 5rem); overflow-y: auto; background: radial-gradient(circle at 50% 20%, #fff 0%, #fff 45%, var(--brand-pale) 140%); }
.auth-panel { width: min(100%, 430px); }
.auth-brand { display: grid; justify-items: center; margin-bottom: 2rem; }
.auth-brand img { width: 5.25rem; height: 5.25rem; object-fit: contain; filter: drop-shadow(0 10px 16px rgb(20 33 61 / .14)); }
.auth-brand p { margin: .45rem 0 0; color: #0b1730; font-size: 1.25rem; font-style: italic; font-weight: 950; letter-spacing: .12em; }
.auth-heading { margin-bottom: 1.75rem; text-align: center; }
.auth-heading h2 { margin: 0; color: #0b1730; font-size: clamp(1.75rem, 3vw, 2.15rem); letter-spacing: -.025em; }
.auth-heading p { margin: .55rem 0 0; color: #718096; line-height: 1.5; }
.auth-form-panel[hidden] { display: none; }
.auth-form-panel form { gap: 1.15rem; }
.auth-form-panel label { position: relative; color: #263650; font-size: .9rem; font-weight: 750; }
.auth-form-panel input { min-height: 50px; border-color: #c5d2df; color: var(--brand-navy); background: rgb(255 255 255 / .92); box-shadow: 0 1px 2px rgb(20 33 61 / .03); transition: border-color .15s ease, box-shadow .15s ease; }
.auth-form-panel input::placeholder { color: #8a98aa; }
.auth-form-panel input:focus-visible { outline: 0; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgb(23 105 170 / .16); }
.optional { position: absolute; top: 0; right: 0; color: #8492a5; font-size: .78rem; font-weight: 500; }
.auth-submit { min-height: 50px; margin-top: .35rem; border: 0; background: linear-gradient(110deg, var(--brand-blue), #168eb9 60%, var(--brand-cyan)); box-shadow: 0 10px 22px rgb(23 105 170 / .22); transition: transform .15s ease, box-shadow .15s ease; }
.auth-submit:hover { box-shadow: 0 12px 26px rgb(23 105 170 / .3); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-switch-copy { margin: 1.5rem 0 0; color: #718096; text-align: center; font-size: .9rem; }
.auth-text-button { display: inline; width: auto; padding: 0; border: 0; border-radius: 0; color: var(--brand-blue); background: transparent; font-weight: 800; }
.auth-submit:focus-visible, .auth-text-button:focus-visible { outline: 3px solid rgb(23 105 170 / .3); outline-offset: 3px; }
.auth-form-panel .error { margin: 0 0 1.25rem; border: 1px solid #fecaca; font-size: .9rem; line-height: 1.4; }

@media (max-width: 980px) {
  .landing { grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); }
  .landing-copy h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
  .landing-auth { padding-inline: 2rem; }
}

@media (max-width: 720px) {
  .landing { display: block; }
  .landing-hero { min-height: 43svh; align-items: flex-end; padding: 1.5rem; background-position: 50% 45%; }
  .landing-hero-brand { top: 1rem; left: 1.25rem; }
  .landing-hero-brand img { width: 2.5rem; height: 2.5rem; }
  .landing-copy { padding: 3.75rem 0 0; }
  .landing-copy h1 { font-size: clamp(2.65rem, 11vw, 4.2rem); }
  .landing-copy > p:last-child { margin-top: .9rem; font-size: 1rem; }
  .landing-eyebrow { margin-bottom: .65rem; }
  .landing-auth { min-height: 57svh; padding: 2.5rem 1.25rem 3rem; overflow: visible; }
  .auth-brand { display: none; }
}

@media (max-width: 420px) {
  .landing-hero { min-height: 40svh; }
  .landing-hero-brand span { font-size: .8rem; }
  .landing-copy h1 { font-size: 2.55rem; }
  .landing-copy > p:last-child br { display: none; }
  .landing-auth { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form-panel input, .auth-submit { transition: none; }
}

.dashboard-body { overflow: hidden; background: #edf1f4; }
.dashboard-shell { width: 100%; height: 100vh; margin: 0; padding: 0; }
.dashboard { position: relative; height: 100%; color: #111827; }
.dashboard-nav { position: relative; z-index: 5; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding: 0 1.75rem; color: #fff; background: linear-gradient(110deg, #030b15, #071521); box-shadow: 0 2px 12px rgb(0 0 0 / .2); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .6rem; color: inherit; font-size: 1.2rem; font-style: italic; font-weight: 900; text-decoration: none; }
.brand-logo { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.mode-tabs { display: flex; height: 100%; align-items: stretch; gap: .2rem; }
.mode-tab { width: auto; min-width: 130px; padding: 0 1rem; border: 0; border-radius: 0; color: #f8fafc; background: transparent; font-size: 1rem; }
.mode-tab[aria-disabled="true"], .map-actions button[aria-disabled="true"], .icon-button[aria-disabled="true"] { cursor: default; }
.mode-tab.is-active { border-bottom: 3px solid #2384ff; color: #fff; }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.upload-form { display: block; }
.upload-button, .icon-button, .account-trigger { display: inline-flex; width: auto; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border: 0; color: #fff; background: rgb(255 255 255 / .1); cursor: pointer; }
.upload-button { padding: .7rem 1rem; border-radius: 999px; font-weight: 700; }
.upload-button::before { content: '☁'; font-size: 1.15rem; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.icon-button { width: 42px; padding: 0; border: 1px solid rgb(255 255 255 / .7); border-radius: 50%; font-size: 1.1rem; }
.account-menu { position: relative; }
.account-trigger { padding: .3rem .5rem .3rem .3rem; border-radius: 999px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #071521; background: linear-gradient(135deg, #f7c89c, #d97950); font-weight: 800; }
.account-popover { position: absolute; top: calc(100% + .75rem); right: 0; z-index: 10; width: 250px; padding: 1rem; border: 1px solid #d7dee8; border-radius: .9rem; color: #14213d; background: #fff; box-shadow: 0 16px 36px rgb(15 23 42 / .2); }
.account-popover form { margin-top: .8rem; }
.account-popover input { padding: .25rem; }
.account-email { margin: 0; color: #64748b; font-size: .85rem; }
.admin-link { display: inline-block; width: fit-content; color: #1769aa; font-size: .9rem; font-weight: 800; }
.secondary-button, .logout-button { padding: .6rem .75rem; }
.logout-button { color: #991b1b; border-color: #fecaca; background: #fff1f2; }
.toast { position: absolute; top: 86px; right: 1.75rem; z-index: 10; width: min(300px, calc(100vw - 2rem)); margin: 0; box-shadow: 0 8px 24px rgb(0 0 0 / .15); }

.admin-body { background: #eef6ff; }
.admin-shell { width: 100%; min-height: 100vh; margin: 0; padding: 0; }
.admin-page { min-height: 100vh; }
.admin-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.75rem; color: #fff; background: linear-gradient(110deg, #030b15, #071521); }
.admin-back-link { color: #fff; font-weight: 700; }
.admin-content { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0; }
.admin-content h1 { margin: 0; color: #0b1730; font-size: clamp(2rem, 4vw, 3rem); }
.admin-eyebrow { margin: 0 0 .4rem; color: #1769aa; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-table-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid #d7e2ed; border-radius: .8rem; background: #fff; box-shadow: 0 8px 24px rgb(20 33 61 / .08); }
.admin-flight-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.admin-flight-table th, .admin-flight-table td { padding: .9rem 1rem; border-bottom: 1px solid #e6edf4; vertical-align: middle; }
.admin-flight-table th { color: #52657a; background: #f7fafd; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.admin-flight-table tbody tr:last-child td { border-bottom: 0; }
.admin-flight-table form { display: block; }
.admin-reprocess-button { width: auto; padding: .5rem .7rem; font-size: .85rem; }

.map-stage { position: absolute; inset: 76px 0 0; overflow: hidden; background: #dae8cf; }
.map-canvas { width: 100%; height: 100%; }
.map-search { position: absolute; z-index: 2; top: 18px; left: 50%; width: min(320px, calc(100% - 2rem)); transform: translateX(-50%); }
.map-search input { border: 0; border-radius: .9rem; background: rgb(255 255 255 / .96); box-shadow: 0 4px 16px rgb(0 0 0 / .15); }
.map-search input:disabled { color: #64748b; opacity: 1; }
.map-actions { position: absolute; z-index: 2; top: 112px; right: 16px; display: grid; gap: .6rem; }
.map-actions button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: .7rem; color: #0f172a; background: #fff; box-shadow: 0 3px 12px rgb(0 0 0 / .14); font-size: 1.4rem; }
.map-empty-state { position: absolute; z-index: 3; top: 50%; left: 50%; max-width: 280px; margin: 0; padding: .8rem 1rem; border-radius: .7rem; transform: translate(-50%, -50%); text-align: center; color: #7f1d1d; background: rgb(255 255 255 / .94); box-shadow: 0 5px 18px rgb(0 0 0 / .15); }
.maplibregl-ctrl-top-right { top: 18px; right: 16px; }

.dashboard-info { position: absolute; z-index: 4; inset: 96px 20px auto; pointer-events: none; }
.dashboard-information { display: grid; grid-template-columns: 286px minmax(0, 1fr) 286px; align-items: start; gap: 16px; }
.info-card { pointer-events: auto; padding: 1rem; border: 1px solid #dbe2ea; border-radius: .7rem; background: rgb(255 255 255 / .96); box-shadow: 0 8px 22px rgb(15 23 42 / .1); }
.info-card h2 { margin: 0 0 .95rem; font-size: .8rem; letter-spacing: .02em; text-transform: uppercase; }
.viewport-stats { grid-column: 1; }
.viewport-stats[hidden] { display: none; }
.leaderboard-card { grid-column: 1; }
.leaderboard-card[hidden] { display: none; }
.empty-copy { margin: .4rem 0 0; color: #52657a; font-size: .9rem; line-height: 1.45; }
.leaderboard-period { margin: -.55rem 0 .8rem; color: #52657a; font-size: .82rem; }
.leaderboard-status { margin: 0; color: #52657a; font-size: .88rem; line-height: 1.4; }
.leaderboard-status:empty { display: none; }
.leaderboard-list { display: grid; margin-top: .25rem; }
.leaderboard-row { display: grid; grid-template-columns: 1.5rem .75rem minmax(0, 1fr) auto; align-items: center; gap: .45rem; min-height: 2.25rem; border-bottom: 1px solid #e2e8f0; font-size: .86rem; }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row.is-current-pilot { margin-inline: -.4rem; padding-inline: .4rem; border-radius: .4rem; background: #eaf4ff; }
.leaderboard-rank { color: #52657a; font-variant-numeric: tabular-nums; }
.leaderboard-swatch { width: .65rem; height: .65rem; border: 1px solid rgb(15 23 42 / .22); border-radius: 50%; background: var(--pilot-color); }
.leaderboard-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-area { font-variant-numeric: tabular-nums; white-space: nowrap; }
.current-pilot-result { margin-top: .75rem; padding-top: .45rem; border-top: 2px solid #cad5e2; }
.current-pilot-result[hidden] { display: none; }
.current-pilot-label { margin: 0 0 .15rem; color: #52657a; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.viewport-stats dl { display: grid; gap: .65rem; margin: 0; }
.viewport-stats dl div { display: flex; justify-content: space-between; padding-top: .6rem; border-top: 1px solid #e2e8f0; }
.viewport-stats dt { color: #64748b; }
.viewport-stats dd { margin: 0; font-weight: 800; }
.sheet-handle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .dashboard-nav { height: 62px; grid-template-columns: auto 1fr auto; gap: .5rem; padding: 0 .75rem; }
  .brand-name, .account-name { display: none; }
  .brand-logo { width: 1.75rem; height: 1.75rem; }
  .mode-tab { min-width: 0; padding: 0 .6rem; font-size: .88rem; }
  .upload-button { padding: .55rem .65rem; font-size: .85rem; }
  .upload-button::before { display: none; }
  .icon-button { width: 34px; min-height: 34px; }
  .account-trigger { min-height: 34px; padding: 0; background: transparent; }
  .avatar { width: 32px; height: 32px; }
  .map-stage { inset: 62px 0 0; }
  .dashboard-info { position: absolute; inset: auto 0 0; height: 76px; min-height: 0; max-height: calc(100dvh - 70px); padding: .5rem 1rem max(1rem, env(safe-area-inset-bottom)); overflow: hidden; border-radius: 1.25rem 1.25rem 0 0; background: rgb(255 255 255 / .97); box-shadow: 0 -8px 30px rgb(15 23 42 / .16); transition: height .25s ease; pointer-events: auto; }
  .dashboard-info.is-expanded { height: calc(100dvh - 70px); }
  .sheet-handle { display: grid; width: 100%; padding: .25rem 0 .55rem; touch-action: none; border: 0; background: transparent; cursor: ns-resize; }
  .sheet-handle span:first-child { width: 42px; height: 4px; margin: 0 auto; border-radius: 99px; background: #a8b3c2; }
  .dashboard-information { display: block; height: calc(100% - 25px); overflow: hidden; }
  .dashboard-info:not(.is-expanded) .info-card > :not(h2) { display: none; }
  .dashboard-info.is-expanded .dashboard-information { overflow-y: auto; overscroll-behavior: contain; }
  .info-card { margin-bottom: .75rem; box-shadow: none; }
  .viewport-stats, .leaderboard-card { transform: none; }
  .map-search { top: 14px; }
  .maplibregl-ctrl-top-right { top: 14px; right: 12px; }
  .map-actions { top: 110px; right: 12px; }
  .toast { top: 70px; right: 1rem; }
}

@media (max-width: 420px) { .nav-actions { gap: .4rem; } .mode-tab { padding-inline: .35rem; } }

.onboarding-dialog { width: min(880px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; overflow: hidden; border: 0; border-radius: 1.25rem; color: #14213d; background: #fff; box-shadow: 0 24px 80px rgb(2 8 23 / .38); }
.onboarding-dialog::backdrop { background: rgb(2 8 23 / .68); backdrop-filter: blur(3px); }
.onboarding-frame { display: grid; max-height: calc(100dvh - 2rem); grid-template-rows: minmax(0, 1fr) auto; position: relative; }
.onboarding-pages { overflow-y: auto; }
.onboarding-step { min-height: 430px; padding: clamp(2rem, 5vw, 4rem); }
.onboarding-step[hidden] { display: none; }
.onboarding-visual { display: grid; min-width: 0; place-items: center; padding: 1rem; border-radius: 1rem; background: linear-gradient(145deg, #eef6ff, #e5edf7); }
.onboarding-welcome-visual { align-content: center; gap: .75rem; color: #071521; font-size: clamp(1.2rem, 3vw, 1.8rem); font-style: italic; font-weight: 900; letter-spacing: .04em; }
.onboarding-welcome-visual img { width: min(180px, 44vw); height: auto; filter: drop-shadow(0 12px 18px rgb(15 23 42 / .18)); }
.onboarding-copy { align-self: center; }
.onboarding-copy h2 { margin: .25rem 0 .85rem; color: #0f172a; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; }
.onboarding-copy > p:last-child { margin: 0; color: #52657a; font-size: 1.05rem; line-height: 1.6; }
.onboarding-eyebrow { margin: 0; color: var(--territory-color); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.onboarding-grid { width: min(100%, 340px); height: auto; overflow: visible; }
.onboarding-grid-lines { fill: none; stroke: #b8c8d9; stroke-width: 1.5; }
.onboarding-flight-track, .onboarding-loop-track { fill: none; stroke: #f36b35; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.onboarding-glider { fill: #f36b35; }
.onboarding-claim-cell, .onboarding-enclosed-cell { fill: var(--territory-color); opacity: 0; }
.icon-button[data-onboarding-trigger] { width: 44px; min-height: 44px; }
.onboarding-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 999px; color: #334155; background: #eef2f7; font-size: 1.6rem; line-height: 1; }
.onboarding-footer { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-top: 1px solid #e2e8f0; background: #fff; }
.onboarding-progress { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.onboarding-progress [data-onboarding-progress] { display: block; width: 9px; height: 9px; border-radius: 999px; background: #cbd5e1; transition: width .2s ease, background-color .2s ease; }
.onboarding-progress [aria-current="step"] { width: 26px; background: var(--territory-color); }
.onboarding-actions { display: flex; gap: .65rem; margin-left: auto; }
.onboarding-button { width: auto; min-width: 92px; min-height: 44px; padding: .65rem 1rem; }
.onboarding-back { color: #334155; border-color: #cbd5e1; background: #fff; }
.onboarding-next, .onboarding-done { border-radius: 999px; }
.onboarding-dialog :focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }

@media (max-width: 699px) {
  .onboarding-step { display: flex; min-height: 0; flex-direction: column; gap: 1.5rem; padding: 4rem 1.25rem 1.75rem; }
  .onboarding-visual { order: 1; min-height: 220px; }
  .onboarding-copy { order: 2; }
  .onboarding-footer { position: sticky; bottom: 0; }
}

@media (min-width: 700px) {
  .onboarding-step { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: clamp(2rem, 5vw, 4rem); }
}

[data-onboarding-step][data-active] .onboarding-flight-track { animation: onboarding-draw 6s ease-in-out infinite; }
[data-onboarding-step][data-active] .onboarding-loop-track { animation: onboarding-draw-loop 6s ease-in-out infinite; }
[data-onboarding-step][data-active] .onboarding-claim-cell { animation: onboarding-claim 6s ease-out infinite; }
[data-onboarding-step][data-active] .claim-2 { animation-delay: .25s; }
[data-onboarding-step][data-active] .claim-3 { animation-delay: .5s; }
[data-onboarding-step][data-active] .claim-4 { animation-delay: .75s; }
[data-onboarding-step][data-active] .claim-5 { animation-delay: 1s; }
[data-onboarding-step][data-active] .claim-6 { animation-delay: 1.25s; }
[data-onboarding-step][data-active] .claim-7 { animation-delay: 1.5s; }
[data-onboarding-step][data-active] .onboarding-loop-claim-cell { animation: onboarding-loop-claim 6s ease-out infinite; }
[data-onboarding-step][data-active] .loop-claim-2 { animation-delay: .2s; }
[data-onboarding-step][data-active] .loop-claim-3 { animation-delay: .4s; }
[data-onboarding-step][data-active] .loop-claim-4 { animation-delay: .6s; }
[data-onboarding-step][data-active] .loop-claim-5 { animation-delay: .8s; }
[data-onboarding-step][data-active] .loop-claim-6 { animation-delay: 1s; }
[data-onboarding-step][data-active] .loop-claim-7 { animation-delay: 1.2s; }
[data-onboarding-step][data-active] .loop-claim-8 { animation-delay: 1.4s; }
[data-onboarding-step][data-active] .loop-claim-9 { animation-delay: 1.6s; }
[data-onboarding-step][data-active] .loop-claim-10 { animation-delay: 1.8s; }
[data-onboarding-step][data-active] .loop-claim-11 { animation-delay: 2s; }
[data-onboarding-step][data-active] .loop-claim-12 { animation-delay: 2.2s; }
[data-onboarding-step][data-active] .loop-claim-13 { animation-delay: 2.4s; }
[data-onboarding-step][data-active] .loop-claim-14 { animation-delay: 2.6s; }
[data-onboarding-step][data-active] .loop-claim-15 { animation-delay: 2.8s; }
[data-onboarding-step][data-active] .loop-claim-16 { animation-delay: 3s; }
[data-onboarding-step][data-active] .onboarding-enclosed-cell { animation: onboarding-enclose 6s ease-out infinite; }

@keyframes onboarding-draw {
  0%, 8% { stroke-dashoffset: 1; }
  58%, 82% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}
@keyframes onboarding-draw-loop {
  0%, 8% { stroke-dashoffset: 1; }
  55%, 84% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}
@keyframes onboarding-claim {
  0%, 18% { opacity: 0; }
  30%, 82% { opacity: .58; }
  100% { opacity: 0; }
}
@keyframes onboarding-loop-claim {
  0%, 3% { opacity: 0; }
  4%, 84% { opacity: .58; }
  100% { opacity: 0; }
}
@keyframes onboarding-enclose {
  0%, 55% { opacity: 0; }
  57%, 84% { opacity: .62; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-onboarding-step][data-active] .onboarding-flight-track,
  [data-onboarding-step][data-active] .onboarding-loop-track,
  [data-onboarding-step][data-active] .onboarding-claim-cell,
  [data-onboarding-step][data-active] .onboarding-enclosed-cell { animation: none; }
  .onboarding-flight-track, .onboarding-loop-track { stroke-dashoffset: 0; }
  .onboarding-claim-cell, .onboarding-enclosed-cell { fill: var(--territory-color); opacity: .62; }
  .onboarding-progress [data-onboarding-progress] { transition: none; }
}
