:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f9;
  color: #102a3a;
  font-synthesis: none;
  --ink: #102a3a;
  --muted: #587080;
  --line: #d8e2e8;
  --paper: #ffffff;
  --navy: #0b2434;
  --teal: #087e8b;
  --teal-dark: #05616b;
  --sky: #e7f5f6;
  --orange: #c96615;
  --red: #b42318;
  --green: #147a55;
  --shadow: 0 16px 40px rgba(16, 42, 58, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f4f7f9; }
body { margin: 0; min-height: 100vh; background: #f4f7f9; }
body, button, input, select, textarea { font: inherit; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button, input, select, textarea { min-height: 44px; }
:focus-visible { outline: 3px solid #f6a94b; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; }
p { line-height: 1.6; }
code { background: #edf2f5; border-radius: 5px; padding: 2px 5px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted, .hint { color: var(--muted); }
.hint { float: right; font-size: .78rem; font-weight: 500; }
.eyebrow { margin-bottom: .55rem; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.08rem; font-weight: 800; text-decoration: none; }
.mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--teal); color: white; font-size: .86rem; letter-spacing: -.03em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 17px; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button.small { min-height: 38px; padding: 8px 13px; font-size: .9rem; }
.button.primary { background: var(--teal); color: white; box-shadow: 0 5px 12px rgba(8, 126, 139, .2); }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { border-color: #bfd0d9; background: white; color: var(--ink); }
.button.secondary:hover { background: #f3f7f9; }
.button:disabled, button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.text-button { min-height: 36px; border: 0; background: transparent; color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.text-button.danger { color: var(--red); }
.button-row, .hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.public-header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 max(22px, calc((100vw - 1180px) / 2)); background: white; border-bottom: 1px solid var(--line); }
.public-header nav { display: flex; align-items: center; gap: 18px; }
.public-header nav > a:not(.button) { color: var(--ink); font-weight: 700; text-decoration: none; }
.landing { max-width: 1180px; margin: auto; padding: 58px 22px 80px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 58px; align-items: center; min-height: 530px; }
.landing-hero h1 { max-width: 760px; font-size: clamp(2.7rem, 6vw, 5.4rem); }
.landing-hero > div > p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 1.16rem; }
.hero-actions { margin: 30px 0; }
.feature-list { display: flex; flex-wrap: wrap; gap: 12px 25px; padding: 0; color: #365363; list-style: none; }
.feature-list li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }
.altimeter-card { padding: 34px; border-radius: 28px; background: var(--navy); color: white; box-shadow: 0 28px 70px rgba(11, 36, 52, .25); transform: rotate(1deg); }
.altimeter-card p { margin: 24px 0 0; color: #c7dce5; }
.altimeter-face { display: grid; min-height: 280px; place-items: center; align-content: center; border: 10px solid #233f4d; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #17394a, #071923 70%); box-shadow: inset 0 0 0 2px #4b6874; }
.altimeter-face span { color: #9ab6c2; font-size: .65rem; letter-spacing: .22em; }
.altimeter-face strong { font-variant-numeric: tabular-nums; font-size: 3.3rem; letter-spacing: -.05em; }
.altimeter-face small { color: #9ab6c2; letter-spacing: .2em; }
.landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.landing-grid article { min-height: 210px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.landing-grid p { color: var(--muted); }
.step { color: var(--teal); font-weight: 900; }

.auth-layout { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: linear-gradient(135deg, #e8f4f5, #f7f9fa 55%, #edf3f6); }
.auth-card { width: min(100%, 480px); padding: 38px; border: 1px solid rgba(191, 208, 217, .8); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 42px; }
.auth-card h1 { margin-bottom: 10px; font-size: 2.25rem; }
.auth-links { display: grid; gap: 10px; margin: 24px 0 0; text-align: center; }
.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #233f4d; font-size: .9rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #b9cbd5; border-radius: 9px; background: white; color: var(--ink); padding: 10px 12px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(8, 126, 139, .16); }
.verification-state { padding: 22px 0 4px; text-align: center; }
.state-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: #def5ea; color: var(--green); font-size: 1.5rem; font-weight: 900; }
.error-icon { background: #fee4e2; color: var(--red); }

.loading-screen, .noscript { display: grid; min-height: 100vh; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid #c5d5dc; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-topbar { position: fixed; z-index: 30; top: 0; right: 0; left: 0; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.connectivity { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; }
.connectivity i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.connectivity.offline i { background: var(--orange); }
.sync-pill { min-height: 36px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #365363; padding: 7px 12px; font-size: .82rem; font-weight: 750; cursor: pointer; }
.sync-pill.pending, .sync-pill.offline { border-color: #efc99e; background: #fff7ed; color: #9a4d0b; }
.sync-pill.conflict, .sync-pill.error { border-color: #f1b8b5; background: #fff1f0; color: var(--red); }
.avatar { display: grid; width: 38px; min-height: 38px; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: white; font-weight: 800; cursor: pointer; }
.mobile-menu { display: none; width: 44px; border: 0; background: transparent; font-size: 1.3rem; }
.app-frame { min-height: 100vh; padding-top: 68px; }
.sidebar { position: fixed; top: 68px; bottom: 0; left: 0; z-index: 20; display: flex; width: 240px; flex-direction: column; gap: 25px; padding: 28px 16px 18px; border-right: 1px solid var(--line); background: white; }
.nav-section { display: grid; gap: 5px; }
.nav-label { padding: 0 12px 7px; color: #7a919e; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-link { min-height: 43px; padding: 11px 13px; border-radius: 9px; color: #365363; font-weight: 700; text-decoration: none; }
.nav-link:hover { background: #f0f5f7; }
.nav-link.active { background: var(--sky); color: var(--teal-dark); }
.sidebar-footer { display: grid; gap: 10px; margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.offline-summary { display: grid; gap: 2px; }
.offline-summary strong { font-size: .85rem; }
.offline-summary span { color: var(--muted); font-size: .73rem; }
.sidebar-footer .text-button { justify-self: start; padding: 0; }
.app-main { min-width: 0; margin-left: 240px; padding: 42px clamp(20px, 4vw, 58px) 80px; }
.app-main > * { max-width: 1180px; margin-right: auto; margin-left: auto; }
.page-heading, .detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1, .detail-heading h1 { margin-bottom: 6px; }
.page-heading p:last-child, .detail-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.panel { margin-bottom: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 5px 16px rgba(16, 42, 58, .035); }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-header h2 { margin-bottom: 4px; }
.panel-header p { margin: 0; color: var(--muted); font-size: .9rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.metric-card { display: grid; gap: 6px; min-height: 145px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.metric-card strong { font-size: 2.15rem; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); }
.metric-card.warning { border-color: #efc99e; background: #fffaf3; }
.jump-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.jump-row { display: grid; grid-template-columns: 85px 1.4fr 1.1fr .8fr 70px; gap: 16px; align-items: center; min-height: 78px; padding: 12px 17px; color: var(--ink); text-decoration: none; }
.jump-row + .jump-row { border-top: 1px solid var(--line); }
.jump-row:hover { background: #f7fafb; }
.jump-row > span { display: grid; min-width: 0; gap: 4px; }
.jump-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump-row small { color: var(--muted); font-size: .76rem; }
.jump-number strong { font-size: 1.3rem; }
.row-status { justify-items: end; }
.warning-dot, .ok-dot { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #fff1e4; color: var(--orange); }
.ok-dot { background: #e4f5ee; color: var(--green); }
.table-empty, .profile-empty { padding: 38px 20px; color: var(--muted); text-align: center; }
.profile-empty strong { color: var(--ink); }
.empty-state { padding: 58px 25px; text-align: center; }
.empty-state > p { max-width: 560px; margin-right: auto; margin-left: auto; color: var(--muted); }
.empty-state > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 17px; background: var(--sky); color: var(--teal); font-size: 1.8rem; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 10px; margin-bottom: 18px; }
.filter-bar label { gap: 0; }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 750; text-decoration: none; }
.source-badge, .quality-tag { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; background: #edf3f6; color: #365363; padding: 5px 10px; font-size: .75rem; font-style: normal; font-weight: 800; }
.quality-tag.good { background: #e4f5ee; color: var(--green); }
.quality-tag.warning { background: #fff1e4; color: #9a4d0b; }
.summary-grid, .measurement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.measurement-grid { grid-template-columns: repeat(5, 1fr); }
.detail-value { display: grid; gap: 6px; min-width: 0; }
.detail-value span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.detail-value strong { overflow: hidden; font-size: 1.02rem; text-overflow: ellipsis; }
.profile-chart { margin: 0; }
.profile-chart svg { width: 100%; max-height: 320px; overflow: visible; }
.profile-chart line { stroke: #b8cbd5; stroke-width: 1; }
.profile-chart polyline { fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.profile-chart text { fill: var(--muted); font-size: 12px; }
.profile-chart figcaption { color: var(--muted); font-size: .78rem; text-align: center; }
.recording-list { display: grid; gap: 12px; }
.recording-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; }
.recording-card.preferred { border-color: #77b7be; background: #f2fbfb; }
.recording-card h3 { margin: 4px 0 13px; }
.recording-kicker { color: var(--teal-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recording-card dl, .device-card dl { display: flex; flex-wrap: wrap; gap: 15px 28px; margin: 0; }
.recording-card dl div, .device-card dl div { display: grid; gap: 3px; }
dt { color: var(--muted); font-size: .72rem; font-weight: 700; }
dd { margin: 0; font-weight: 750; }
.preferred-check { color: var(--green); font-weight: 800; white-space: nowrap; }
.mismatch { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 16px; padding: 11px 13px; border-radius: 9px; background: #fff1e4; color: #7a3b08; font-size: .83rem; }
.mismatch span { color: #8e5527; }
.mismatch.acknowledged { background: #eef3f5; color: #365363; }
.save-state { color: var(--muted); font-size: .78rem; font-weight: 800; }
.provenance p { color: var(--muted); }
.conflict-list { display: grid; gap: 15px; }
.conflict-list article { padding: 18px; border: 1px solid #efc99e; border-radius: 12px; background: #fffaf3; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.comparison > div { display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: white; }
.comparison span { color: var(--muted); font-size: .74rem; font-weight: 700; }
.atlas-connect { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(135deg, #0b2434, #123f50); color: white; }
.atlas-connect > div { max-width: 660px; }
.atlas-connect p, .atlas-connect li { color: #c7dce5; }
.atlas-connect .eyebrow { color: #6dd1d7; }
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.device-card { display: flex; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; }
.device-card > div:last-child { min-width: 0; flex: 1; }
.device-symbol { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-weight: 900; }
.device-card h3 { margin-bottom: 3px; }
.device-card p { margin-bottom: 15px; color: var(--muted); }
.import-panel { display: grid; grid-template-columns: 1.5fr .7fr; gap: 22px; }
.drop-zone { padding: 48px 25px; border: 2px dashed #b8cbd5; border-radius: 14px; text-align: center; }
.drop-zone > span { color: var(--teal); font-size: 2rem; }
.privacy-note { align-self: center; padding: 20px; border-radius: 12px; background: var(--sky); }
.privacy-note p { margin-bottom: 0; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.settings-grid .panel { margin-bottom: 0; }
.settings-list { display: grid; gap: 0; margin: 0 0 18px; }
.settings-list > div { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.settings-list dt { font-size: .82rem; }
.verification-banner, .alert { display: grid; gap: 2px; margin-bottom: 20px; padding: 13px 16px; border: 1px solid #efc99e; border-radius: 10px; background: #fff7ed; color: #7a3b08; }
.verification-banner span { font-size: .82rem; }
.alert.error { border-color: #f1b8b5; background: #fff1f0; color: var(--red); }
.alert.success { border-color: #abd9c7; background: #edf9f4; color: #0e6546; }
.field-message { margin: 0; color: var(--orange); font-size: .85rem; }

.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(7, 25, 35, .62); }
.modal { position: relative; width: min(100%, 680px); padding: 30px; border-radius: 18px; background: white; box-shadow: 0 26px 80px rgba(0, 0, 0, .3); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; border: 0; border-radius: 50%; background: #edf3f6; color: var(--ink); font-size: 1.45rem; cursor: pointer; }
dialog.modal { border: 0; margin: auto; max-height: calc(100dvh - 48px); overflow-y: auto; color: var(--ink); }
dialog.modal::backdrop { background: rgba(7, 25, 35, .62); }

@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .measurement-grid { grid-template-columns: repeat(3, 1fr); }
  .jump-row { grid-template-columns: 72px 1.4fr 1fr 75px; }
  .jump-row > span:nth-child(4) { display: none; }
}

@media (max-width: 800px) {
  .landing { padding-top: 30px; }
  .landing-hero { grid-template-columns: 1fr; min-height: auto; }
  .altimeter-card { max-width: 420px; }
  .landing-grid { grid-template-columns: 1fr; }
  .mobile-menu { display: block; }
  .app-topbar .brand { margin-right: auto; }
  .connectivity { display: none; }
  .sidebar { transform: translateX(-105%); transition: transform .18s ease; box-shadow: var(--shadow); }
  .nav-open .sidebar { transform: translateX(0); }
  .app-main { margin-left: 0; padding: 28px 18px 70px; }
  .summary-grid, .measurement-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid, .device-grid, .import-panel { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  h1 { font-size: 2rem; }
  .public-header { padding: 0 14px; }
  .public-header nav > a:not(.button) { display: none; }
  .landing { padding: 32px 16px 60px; }
  .landing-hero { gap: 34px; }
  .landing-hero h1 { font-size: 2.65rem; }
  .altimeter-card { padding: 22px; }
  .altimeter-face { min-height: 245px; }
  .auth-layout { padding: 0; align-items: stretch; }
  .auth-card { min-height: 100vh; padding: 28px 22px; border: 0; border-radius: 0; }
  .app-topbar { padding: 0 10px; }
  .app-topbar .brand > span:last-child { display: none; }
  .sync-pill { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-heading, .detail-heading { align-items: start; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .metrics, .form-grid, .summary-grid, .measurement-grid, .comparison { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .panel { padding: 18px; }
  .filter-bar { grid-template-columns: 1fr; }
  .jump-row { grid-template-columns: 62px minmax(0, 1fr) 34px; gap: 10px; }
  .jump-row > span:nth-child(3), .jump-row > span:nth-child(4) { display: none; }
  .recording-card, .atlas-connect { align-items: stretch; flex-direction: column; }
  .recording-card .button { width: 100%; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-height: 94vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 27px 20px; }
  dialog.modal { margin: auto 0 0; max-height: 94dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.measurement-source { display: block; font-size: .8rem; font-weight: 400; margin-top: .35rem; }
.canopy-input { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.canopy-input legend { font-weight: 600; }
.canopy-input .text-button { grid-column: 1 / -1; }

.measurement-input, .display-units { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.measurement-input > label:first-child { flex: 1 1 130px; }
.measurement-input > label:nth-child(2) { flex: 0 1 110px; }
.measurement-input > .text-button { flex-basis: 100%; }
.measurement-warning { color: #7a4900; background: #fff5dc; padding: 12px; border-radius: 8px; }
.statistics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 18px; }
.statistics-table { width: 100%; border-collapse: collapse; }
.statistics-table th, .statistics-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.statistics-table .text-button { text-align: left; overflow-wrap: anywhere; }

/* GravityWorks product family: compact logbook surfaces, original local artwork. */
:root { --ink: #202428; --muted: #596168; --line: #d6d8da; --navy: #151719; --red: #b72725; --shadow: none; }
html, body { background: #f4f4f3; color: var(--ink); }
h1, h2, h3, .product-name, .jump-number strong { font-family: "Arial Narrow", "Roboto Condensed", "Impact", sans-serif; font-stretch: condensed; letter-spacing: .015em; }
h1 { font-size: clamp(2rem, 3vw, 2.8rem); }
h2 { font-size: 1.25rem; }
.eyebrow, .nav-label, .form-section { color: #596168; letter-spacing: .12em; }
.button, input, select, textarea, .panel, .metric-card, .jump-list, .nav-link,
.recording-card, .device-card, .alert, .verification-banner, .auth-card,
.conflict-list article, .comparison > div, .measurement-warning, .canopy-input,
.privacy-note, .drop-zone, .landing-grid article { border-radius: 2px; box-shadow: none; }
.button.primary { background: var(--red); box-shadow: none; }
.button.primary:hover { background: #94201e; }
.button.secondary { border-color: #aeb4b8; }
.public-header, .app-topbar { background: var(--navy); border-bottom: 3px solid var(--red); color: white; backdrop-filter: none; }
.brand { gap: 12px; color: white; white-space: nowrap; }
.product-name { font-size: 1.7rem; font-weight: 900; }
.brand-divider { color: #8c9297; font-weight: 400; }
.byline { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 400; }
.gravityworks-logo { display: block; width: 150px; height: auto; object-fit: contain; }
.public-header nav > a:not(.button) { color: white; }
.public-header nav .button { border-color: #777; color: white; }
.app-topbar .connectivity { color: #c7cccf; }
.avatar { border: 1px solid #727a80; border-radius: 2px; }
.mobile-menu { color: white; }
.sync-pill { border-radius: 2px; }
.sidebar { width: 210px; }
.nav-link.active { background: #f7ebeb; color: #9b211f; box-shadow: inset 3px 0 var(--red); }
.app-main { margin-left: 210px; padding: 32px clamp(20px, 3vw, 44px) 64px; }
.panel { padding: 22px; margin-bottom: 16px; }
.page-heading, .detail-heading { margin-bottom: 22px; }
.metric-card { min-height: 116px; border-top: 3px solid #737d83; padding: 18px; }
.metric-card:first-child { border-top-color: var(--red); }
.metric-card strong { font-variant-numeric: tabular-nums; }
.source-badge { border-radius: 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.jump-row { grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) 100px 70px; min-height: 76px; gap: 14px; padding: 12px 16px; }
.jump-row > span { min-width: 0; overflow-wrap: anywhere; }
.jump-number strong { font-size: 1.65rem; color: #98201f; }
.jump-row .row-status { font-size: .75rem; }
.jump-row:hover { background: #f7f7f6; }
.logbook-entry { border-top: 3px solid var(--red); }
.logbook-entry .summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; padding: 0 0 18px; }
.logbook-entry .measurement-grid { border-top: 1px solid var(--line); padding: 16px 0; gap: 14px 18px; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
.detail-value { min-width: 0; overflow-wrap: anywhere; }
.detail-value > span { text-transform: uppercase; letter-spacing: .055em; font-size: .68rem; }
.detail-value > strong { font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.measurement-source { font-size: .72rem; color: var(--muted); }
.missing-value { color: var(--muted); font-weight: 400; }
.identity-label { font-size: .72rem; font-weight: 700; margin-right: .5rem; }
.jump-notes { border-top: 1px solid var(--line); padding: 16px 0 0; }
.jump-notes h2 { font-family: inherit; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.jump-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
.display-units { border-top: 1px solid var(--line); padding-top: 14px; gap: 16px; }
.display-units label { font-size: .75rem; }
.display-units select { padding: 6px 10px; min-width: 92px; }
.advanced { padding: 0; }
.advanced > summary { cursor: pointer; padding: 17px 22px; font-weight: 750; min-height: 48px; }
.advanced > summary > span { font-size: .78rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.advanced[open] { padding-bottom: 20px; }
.advanced > :not(summary) { margin-left: 22px; margin-right: 22px; }
.advanced[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.mismatch { margin: 0 0 16px; border-left: 3px solid #ae6515; border-radius: 2px; }
.recording-card .mismatch { margin-top: 16px; }
.editor-panel { border-left: 3px solid #17727c; }
.form-section { font-family: inherit; text-transform: uppercase; font-size: .76rem; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin: 8px 0 0; }
.form-section small { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 8px; }
.field-help { color: var(--muted); font-size: .82rem; }
.field-help summary { cursor: pointer; min-height: 32px; }
.field-help p { margin: 0 0 8px; }
.measurement-input { display: grid; grid-template-columns: minmax(0,1fr) 85px; align-content: start; align-items: end; gap: 8px; }
.measurement-input > label:only-of-type { grid-column: 1 / -1; }
.measurement-input > label:nth-child(2) { font-size: .7rem; }
.measurement-input > .text-button { grid-column: 1 / -1; text-align: left; padding-left: 0; }
.canopy-input { align-self: start; margin: 0; }
.form-grid > * { min-width: 0; }
.modal { border-radius: 3px; box-shadow: 0 12px 60px #0006; padding: 28px; }
dialog.modal { border-top: 4px solid var(--red); }
.modal-close { border-radius: 2px; }
.modal h2 { font-size: 1.8rem; }
.form-actions { border-top: 1px solid var(--line); padding-top: 16px; }
.date-filter { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.date-filter label { flex: 1 1 150px; }
.date-filter > a { min-height: 44px; display: inline-flex; align-items: center; font-size: .85rem; }
.date-filter [hidden] { display: none; }
.filter-context { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.statistics-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .045em; }
.statistics-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.statistics-table td { overflow-wrap: anywhere; }
.statistics-table .text-button { min-height: 44px; }
.auth-layout { background: #ededec; }
.auth-brand { display: flex; background: var(--navy); padding: 16px; margin: -38px -38px 32px; min-height: 82px; border-bottom: 3px solid var(--red); }
.altimeter-card { border-radius: 3px; transform: none; box-shadow: none; }
.sidebar { transition: none; }
@media (max-width: 1050px) {
 .jump-row > span:nth-child(4) { display: grid; }
 .jump-row { grid-template-columns: 54px minmax(0,1.3fr) minmax(0,1fr) 84px 65px; gap: 10px; }
}
@media (max-width: 800px) {
 .app-main { margin-left: 0; padding: 26px 18px 60px; }
 .brand { gap: 8px; }
 .gravityworks-logo { width: 124px; }
 .topbar-actions { gap: 8px; }
}
@media (max-width: 580px) {
 .app-topbar { flex-wrap: wrap; height: 108px; padding: 8px 12px; }
 .app-topbar .brand { width: calc(100% - 48px); }
 .app-topbar .brand > span:last-child { display: flex; }
 .app-topbar .topbar-actions { width: 100%; justify-content: flex-end; }
 .app-topbar .sync-pill { max-width: none; }
 .app-topbar .connectivity { display: inline-flex; margin-right: auto; }
 .app-frame { padding-top: 108px; }
 .sidebar { top: 108px; }
 .public-header { flex-wrap: wrap; gap: 12px; padding: 14px; }
 .auth-brand { margin: -28px -22px 28px; padding: 16px 22px; }
 .panel { padding: 16px; }
 .advanced { padding: 0; }
 .advanced > summary { padding: 16px; }
 .advanced > summary > span { display: block; margin: 6px 0 0; }
 .advanced > :not(summary) { margin-left: 16px; margin-right: 16px; }
 .jump-row { grid-template-columns: 50px minmax(0,1fr) 70px; gap: 8px 10px; padding: 12px; }
 .jump-row .jump-number { grid-row: 1 / 3; align-self: start; }
 .jump-row > span:nth-child(3) { display: grid; grid-column: 2; grid-row: 2; }
 .jump-row > span:nth-child(4) { display: grid; grid-column: 3; grid-row: 2; font-size: .78rem; }
 .jump-row > .row-status { grid-column: 3; grid-row: 1; }
 .logbook-entry .summary-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
 .logbook-entry .measurement-grid { grid-template-columns: 1fr 1fr; }
 .detail-heading .button-row { width: 100%; justify-content: space-between; }
 .date-filter label { flex-basis: 100%; }
 .date-filter .button { flex: 1; }
 .modal { border-radius: 2px; padding: 24px 18px; }
 .recording-card { padding: 14px; }
}
@media (max-width: 380px) {
 .app-topbar .brand { gap: 6px; }
 .app-topbar .product-name { font-size: 1.4rem; }
 .app-topbar .gravityworks-logo { width: 100px; }
}
