/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-white: #fff;
    --font-weight-extrabold: 800;
    --radius-xl: 0.75rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-ink: #17231d;
    --color-surface: #fffdf8;
    --color-line: #dcd9cd;
    --color-green: #2f654d;
    --color-green-dark: #214a39;
    --color-green-soft: #dfe9df;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .-ml-px {
    margin-left: -1px;
  }
  .block {
    display: block;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .h-full {
    height: 100%;
  }
  .min-h-\[46px\] {
    min-height: 46px;
  }
  .w-full {
    width: 100%;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .touch-manipulation {
    touch-action: manipulation;
  }
  .resize {
    resize: both;
  }
  .items-center {
    align-items: center;
  }
  .justify-center {
    justify-content: center;
  }
  .rounded-none {
    border-radius: 0;
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .rounded-r-\[11px\] {
    border-top-right-radius: 11px;
    border-bottom-right-radius: 11px;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-l-0 {
    border-left-style: var(--tw-border-style);
    border-left-width: 0px;
  }
  .border-\[\#cfcbbf\] {
    border-color: #cfcbbf;
  }
  .border-green {
    border-color: var(--color-green);
  }
  .border-line {
    border-color: var(--color-line);
  }
  .border-transparent {
    border-color: transparent;
  }
  .bg-green {
    background-color: var(--color-green);
  }
  .bg-surface {
    background-color: var(--color-surface);
  }
  .bg-transparent {
    background-color: transparent;
  }
  .p-0 {
    padding: 0;
  }
  .text-\[1\.2rem\] {
    font-size: 1.2rem;
  }
  .font-extrabold {
    --tw-font-weight: var(--font-weight-extrabold);
    font-weight: var(--font-weight-extrabold);
  }
  .text-green-dark {
    color: var(--color-green-dark);
  }
  .text-ink {
    color: var(--color-ink);
  }
  .text-white {
    color: var(--color-white);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .active\:bg-green-soft {
    &:active {
      background-color: var(--color-green-soft);
    }
  }
}
:root {
  color-scheme: light;
  --ink: #17231d;
  --ink-soft: #526059;
  --paper: #f3f1ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --line: #dcd9cd;
  --green: #2f654d;
  --green-dark: #214a39;
  --green-soft: #dfe9df;
  --gold: #b18535;
  --gold-soft: #f0e2bd;
  --blue: #3f6f86;
  --blue-dark: #294f62;
  --blue-soft: #dceaf0;
  --red: #a6493f;
  --red-soft: #f5dedb;
  --shadow: 0 14px 34px rgba(26, 37, 31, 0.09);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overscroll-behavior-y: contain;
}
#app {
  min-height: 100vh;
  transform: var(--pull-refresh-app-transform, none);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.25, 1);
}
body.pull-refresh-active #app {
  will-change: transform;
}
body.pull-refresh-active {
  overflow-x: hidden;
}
body.pull-refresh-dragging #app {
  transition: none;
}
button, input, select, textarea {
  font: inherit;
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
.boot-screen {
  display: grid;
  gap: 16px;
  justify-items: center;
  min-height: 100vh;
  place-content: center;
  text-align: center;
  color: var(--ink-soft);
}
.boot-screen p {
  margin: 0;
}
.brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-logo-on-dark {
  aspect-ratio: 523.68 / 65.43;
}
.brand-logo-on-light {
  aspect-ratio: 522.52 / 64.28;
}
.brand-heading {
  margin: 0;
}
.boot-logo {
  width: min(230px, 72vw);
}
.route-loader {
  align-items: center;
  background: radial-gradient(circle at top left, rgba(188, 148, 57, 0.16), transparent 34rem), var(--paper);
  color: var(--ink-soft);
  display: grid;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}
.route-loader-card {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.route-loader-logo {
  width: min(250px, 76vw);
}
.route-loader-status {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
}
.route-loader-status .sync-dot {
  animation: pulse 0.9s infinite alternate;
}
.app-shell {
  min-height: 100vh;
}
.desktop-rail {
  display: none;
}
.topbar {
  align-items: center;
  background: rgba(243, 241, 234, 0.93);
  border-bottom: 1px solid rgba(220, 217, 205, 0.8);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 62px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.topbar-brand {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.topbar-logo {
  flex: 0 1 auto;
  width: clamp(138.6px, 39.9vw, 184.8px);
}
.compact-topbar {
  min-height: 50px;
  padding: max(7px, env(safe-area-inset-top)) 14px 7px;
}
.topbar-back-link {
  align-items: center;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 7px;
  min-width: 0;
  padding: 6px 0;
  text-decoration: none;
}
.topbar-back-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-back-link:focus {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.22);
  outline: none;
}
.sync-pill {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
}
.lucide-icon {
  display: block;
  flex: 0 0 auto;
  height: 20px;
  stroke-width: 2;
  width: 20px;
}
.button-icon {
  height: 18px;
  width: 18px;
}
.sync-icon {
  color: var(--green);
  height: 16px;
  width: 16px;
}
.sync-dot {
  background: var(--green);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}
.sync-pill[data-status="offline"] .sync-icon, .sync-pill[data-status="pending"] .sync-icon, .drawer-sync-button[data-status="offline"] .sync-icon, .drawer-sync-button[data-status="pending"] .sync-icon {
  color: var(--gold);
}
.sync-pill[data-status="syncing"] .sync-icon, .drawer-sync-button[data-status="syncing"] .sync-icon {
  animation: icon-spin 1s linear infinite;
  color: var(--green);
}
.pull-refresh-indicator {
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  transform: translate(-50%, -78px);
  transition: opacity 0.16s ease, transform 0.2s ease;
  z-index: 65;
}
.pull-refresh-indicator.is-visible {
  opacity: 1;
}
.pull-refresh-bubble {
  align-items: center;
  background: rgba(23, 35, 29, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(26, 37, 31, 0.18);
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  white-space: nowrap;
}
.pull-refresh-icon {
  color: var(--green-soft);
  height: 16px;
  width: 16px;
}
.pull-refresh-indicator[data-status="ready"] .pull-refresh-icon, .pull-refresh-indicator[data-status="complete"] .pull-refresh-icon {
  color: var(--gold-soft);
}
.pull-refresh-indicator[data-status="offline"] .pull-refresh-icon, .pull-refresh-indicator[data-status="error"] .pull-refresh-icon {
  color: var(--gold);
}
.pull-refresh-indicator[data-status="refreshing"] .pull-refresh-icon {
  animation: icon-spin 1s linear infinite;
}
.compact-topbar .sync-pill {
  min-height: 34px;
}
.topbar-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.menu-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  height: 38px;
  min-height: 36px;
  justify-content: center;
  padding: 0;
  place-items: center;
  width: 38px;
}
.menu-button .lucide-icon {
  height: 21px;
  width: 21px;
}
@keyframes pulse {
  to {
    opacity: 0.25;
  }
}
@keyframes icon-spin {
  to {
    transform: rotate(360deg);
  }
}
.content {
  margin: 0 auto;
  max-width: 1020px;
  padding: 22px 16px calc(32px + env(safe-area-inset-bottom));
}
.compact-shell .content {
  padding-top: 14px;
}
.page-header {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.matches-page-header {
  margin-bottom: 16px;
}
.matches-page-header h1 {
  margin-bottom: 0;
}
.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.desktop-header-actions, .desktop-header-cta {
  display: none !important;
}
.detail-heading-top {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.detail-heading-top > div {
  min-width: 0;
}
.bto-header-actions {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.secondary-action-menu {
  flex: 0 0 auto;
  position: relative;
}
.secondary-action-menu summary {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  height: 40px;
  list-style: none;
  padding: 0;
  place-items: center;
  width: 40px;
}
.secondary-action-menu summary::-webkit-details-marker {
  display: none;
}
.secondary-action-menu summary::marker {
  content: "";
}
.secondary-action-menu summary:hover, .secondary-action-menu summary:focus {
  border-color: var(--green);
  outline: none;
}
.secondary-action-menu[open] summary {
  background: var(--green-soft);
  border-color: var(--green);
}
.secondary-action-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 2px;
  min-width: 178px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
}
.secondary-action-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  gap: 10px;
  min-height: 38px;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.secondary-action-item:hover, .secondary-action-item:focus {
  background: var(--green-soft);
  outline: none;
}
.secondary-action-item .lucide-icon {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}
.eyebrow {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  text-transform: uppercase;
}
h1, h2, h3, p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  font-weight: bold;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 6px;
}
h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
}
h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.muted {
  color: var(--ink-soft);
}
.small {
  font-size: 0.78rem;
}
.button {
  align-items: center;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  text-decoration: none;
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--green-dark);
}
.button.block {
  width: 100%;
}
.icon-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.welcome-screen {
  display: grid;
  gap: 18px;
}
.welcome-intro {
  background: linear-gradient(135deg, var(--surface) 0%, #f5f0df 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
.welcome-brand-heading {
  margin-bottom: 18px;
}
.welcome-logo {
  width: min(280px, 84vw);
}
.welcome-intro .muted {
  font-size: 1.03rem;
  line-height: 1.42;
  max-width: 620px;
}
.welcome-primary-action {
  margin-top: 8px;
}
.welcome-feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.welcome-feature {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 16px;
}
.welcome-feature h2 {
  margin-bottom: 5px;
}
.welcome-feature p {
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 0;
}
.welcome-feature-icon {
  align-items: center;
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--green-dark);
  display: grid;
  height: 38px;
  place-items: center;
  width: 38px;
}
.welcome-feature-icon .lucide-icon {
  height: 20px;
  width: 20px;
}
.welcome-footnote {
  line-height: 1.45;
  margin: 0;
}
.grid {
  display: grid;
  gap: 14px;
}
.dashboard-grid {
  grid-template-columns: 1fr;
}
.dashboard-primary-stack {
  align-self: start;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(220, 217, 205, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body {
  padding: 18px;
}
.clickable-card {
  position: relative;
}
.card-hit-link {
  border-radius: inherit;
  color: inherit;
  inset: 0;
  position: absolute;
  text-decoration: none;
  z-index: 1;
}
.clickable-card :is(a:not(.card-hit-link), button, input, select, textarea, summary) {
  position: relative;
  z-index: 2;
}
.card-hit-link:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(47, 101, 77, 0.24);
  outline: none;
}
.card.clickable-card:hover, .card.clickable-card:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
}
.card-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
}
.card-header h2, .card-header p {
  margin-bottom: 0;
}
.hero-card {
  background: radial-gradient(circle at 85% 12%, rgba(217, 184, 108, 0.28), transparent 32%), var(--ink);
  color: #f9f7f1;
}
.hero-card .muted {
  color: #b9c2bd;
}
.hero-card .eyebrow {
  color: #d9b86c;
}
.dashboard-match-title {
  color: #f9f7f1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 8px;
}
.dashboard-match-meta {
  align-items: center;
  color: #cbd3cf;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 18px;
}
.dashboard-match-meta span {
  align-items: center;
  display: inline-flex;
}
.dashboard-match-meta span + span::before {
  content: "·";
  margin-right: 9px;
}
.hero-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
  margin: 6px 0 4px;
}
.hero-card .hero-value + .muted {
  margin-bottom: 14px;
}
.metric-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
.metric {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 7px;
  padding: 12px;
}
.metric strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}
.metric span {
  color: #b9c2bd;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.dashboard-quick-actions {
  margin-top: -4px;
}
.dashboard-quick-actions.is-single {
  grid-template-columns: 1fr;
}
.dashboard-quick-actions .quick-action {
  min-height: 56px;
}
.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 24px 0 12px;
}
.section-heading h2 {
  margin: 0;
}
.inventory-row, .setup-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  min-height: 58px;
  padding: 10px 0;
}
.inventory-row:last-child, .setup-row:last-child {
  border-bottom: 0;
}
.dashboard-performance-header {
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}
.dashboard-performance-header > div:first-child {
  min-width: 0;
}
.dashboard-performance-header h2 {
  white-space: nowrap;
}
.dashboard-performance-header .header-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
}
.dashboard-performance-card .card-body {
  display: grid;
  gap: 22px;
}
.dashboard-match-trends, .dashboard-stage-trends {
  display: grid;
  gap: 12px;
}
.dashboard-stage-trends {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.dashboard-section-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}
.dashboard-section-heading h2, .dashboard-section-heading p {
  margin: 0;
}
.dashboard-section-heading h2 {
  font-size: 1.05rem;
  line-height: 1.15;
}
.performance-chart {
  height: 240px;
  min-height: 0;
  position: relative;
}
.performance-chart canvas {
  max-height: 240px;
}
.stage-trend-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.stage-trend-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px 14px;
}
.stage-trend-card > * {
  min-width: 0;
}
.stage-trend-card-header {
  align-items: baseline;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-width: 0;
  width: 100%;
}
.stage-trend-card-header > div {
  min-width: 0;
}
.stage-trend-card-header h3 {
  margin: 0;
}
.stage-trend-card-header h3 {
  font-size: 1rem;
  line-height: 1.15;
}
.stage-trend-card-header strong {
  color: var(--green-dark);
  font-size: 0.96rem;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.stage-trend-chart {
  height: 150px;
  min-height: 0;
  position: relative;
}
.stage-trend-chart canvas {
  max-height: 150px;
}
.setup-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.setup-value {
  background: var(--green-soft);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 8px;
  text-align: center;
}
.firearm-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.firearm-card h2 {
  margin-bottom: 6px;
}
.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-title-link:hover, .card-title-link:focus {
  color: var(--green-dark);
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.firearm-detail-card .identity-grid {
  margin-top: 0;
}
.firearm-detail-card + .firearm-bto-card, .firearm-bto-card + .firearm-bto-history-card {
  margin-top: 14px;
}
.firearm-position-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 2px;
}
.firearm-note-card {
  background: var(--paper);
  border-radius: 10px;
  margin-top: 14px;
  padding: 12px;
}
.firearm-note-card > span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.firearm-note-card p {
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}
.firearm-bto-measurement-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.firearm-bto-active-list {
  display: grid;
  gap: 16px;
}
.firearm-bto-active-list .firearm-bto-measurement + .firearm-bto-measurement {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.firearm-bto-measurement.clickable-card {
  border-radius: 10px;
}
.firearm-bto-measurement.clickable-card .card-hit-link:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(47, 101, 77, 0.18);
}
.firearm-bto-measurement.clickable-card:hover h3, .firearm-bto-measurement.clickable-card:focus-within h3 {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.firearm-bto-measurement-top h3 {
  margin: 0 0 3px;
}
.firearm-bto-summary-grid {
  grid-template-columns: minmax(0, 1fr);
}
.firearm-bto-history-list {
  display: grid;
  gap: 0;
}
.firearm-bto-history-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px 0;
  text-decoration: none;
}
.firearm-bto-history-row:first-child {
  padding-top: 0;
}
.firearm-bto-history-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.firearm-bto-history-row strong, .firearm-bto-history-row span {
  display: block;
}
.firearm-bto-history-row > div > span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 3px;
}
.firearm-bto-history-values {
  color: var(--green-dark);
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.firearm-bto-history-values small {
  color: var(--ink-soft);
  display: block;
  font-size: 0.68rem;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.firearm-bto-history-row:hover .firearm-bto-history-values, .firearm-bto-history-row:focus .firearm-bto-history-values {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.compact-button {
  min-height: 36px;
  padding: 0 9px;
  white-space: nowrap;
}
.inventory-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.inventory-amount {
  font-weight: 800;
}
.inventory-category-list, .inventory-stock-list {
  margin-bottom: 14px;
}
.inventory-category-card h2, .inventory-stock-card-item h2 {
  margin-bottom: 5px;
}
.inventory-category-card-top {
  align-items: start;
  column-gap: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  row-gap: 8px;
}
.inventory-category-card-top h2 {
  margin: 0;
  min-width: 0;
}
.inventory-category-card-top .match-meta {
  grid-column: 1 / -1;
}
.inventory-category-total {
  font-size: 1rem;
  font-weight: 800;
  justify-self: end;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}
.inventory-score-block {
  min-width: 112px;
}
.inventory-score-block strong {
  white-space: nowrap;
}
.inventory-list-section {
  margin-top: 16px;
}
.loading-recent-section {
  margin-top: 18px;
}
.inventory-section-link {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}
.inventory-section-link:hover, .inventory-section-link:focus {
  text-decoration: underline;
}
.inventory-add-list {
  max-width: 760px;
}
.inventory-adjustment-card {
  margin-top: 14px;
  overflow: visible;
}
.inventory-summary-grid {
  margin-top: 0;
}
.inventory-item-summary-grid {
  grid-template-columns: minmax(0, 1fr);
}
.inventory-item-quick-actions {
  margin-bottom: 18px;
}
.inventory-filter-strip {
  flex: 0 1 340px;
  margin: 0 0 14px;
  max-width: min(100%, 340px);
}
.inventory-filter-field {
  margin: 0;
}
.inventory-item-identity {
  margin-bottom: 14px;
}
.inventory-identity-top {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}
.inventory-identity-top .muted {
  margin-bottom: 0;
}
.inventory-identity-top .header-actions {
  flex-wrap: wrap;
}
.inventory-adjustment-current {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}
.inventory-adjustment-current h2 {
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 4px;
}
.inventory-adjustment-threshold {
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 12px;
}
.inventory-adjustment-threshold span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.inventory-adjustment-threshold strong {
  display: block;
}
.inventory-adjustment-form {
  background: rgba(243, 241, 234, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: visible;
  padding: 12px;
}
.inventory-adjustment-grid {
  align-items: end;
  column-gap: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
}
.inventory-note-field {
  min-width: 0;
}
.inventory-component-field {
  min-width: 0;
}
.inventory-brand-field, .inventory-cartridge-field, .inventory-firings-field, .inventory-new-brand-field, .inventory-new-component-field, .inventory-new-bullet-fields, .inventory-new-primer-fields, .inventory-primer-size-field, .inventory-primer-magnum-field {
  min-width: 0;
}
.inventory-new-primer-fields, .inventory-new-bullet-fields {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
}
.inventory-new-primer-fields .field, .inventory-new-bullet-fields .field {
  margin: 0;
}
.inventory-checkbox-field {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid #cfcbbf;
  border-radius: 11px;
  box-sizing: border-box;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}
.inventory-new-primer-fields > .inventory-primer-magnum-field {
  align-self: end;
}
.inventory-checkbox-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
}
.inventory-checkbox-field input[type="checkbox"] {
  accent-color: var(--green);
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  min-height: 18px;
  padding: 0;
  width: 18px;
}
.inventory-checkbox-field span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inventory-post-button {
  margin-top: 4px;
  min-height: 46px;
  padding-left: 14px;
  padding-right: 14px;
  width: 100%;
}
.inventory-adjustment-form .form-error {
  margin-top: 10px;
}
.inventory-threshold-list {
  display: grid;
  gap: 8px;
}
.inventory-threshold-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 12px;
}
.inventory-threshold-row strong, .inventory-threshold-row p {
  margin: 0;
}
.inventory-threshold-field {
  margin: 0;
}
.inventory-history-section {
  margin-top: 18px;
}
.inventory-history-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.inventory-history-heading h2 {
  margin-bottom: 0;
}
.inventory-ledger {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow-x: auto;
  overflow-y: hidden;
}
.inventory-ledger-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  font-size: 0.82rem;
  gap: 10px;
  grid-template-columns: minmax(96px, 0.8fr) minmax(180px, 1.4fr) minmax(94px, 0.8fr) minmax(94px, 0.8fr) 48px;
  min-width: 580px;
  min-height: 38px;
  padding: 8px 10px;
}
.inventory-ledger-row:first-child {
  border-top: 0;
}
.inventory-ledger-compact .inventory-ledger-row {
  grid-template-columns: minmax(96px, 0.85fr) minmax(180px, 1.45fr) minmax(94px, 0.8fr) minmax(94px, 0.8fr) 48px;
}
.inventory-ledger-compact.inventory-ledger-show-item .inventory-ledger-row {
  grid-template-columns: minmax(96px, 0.75fr) minmax(150px, 1.25fr) minmax(190px, 1.35fr) minmax(94px, 0.75fr) minmax(94px, 0.75fr) 48px;
  min-width: 780px;
}
.inventory-ledger-compact.inventory-ledger-hide-balance .inventory-ledger-row {
  grid-template-columns: minmax(96px, 0.85fr) minmax(180px, 1.45fr) minmax(94px, 0.8fr) 48px;
  min-width: 480px;
}
.inventory-ledger-compact.inventory-ledger-show-item.inventory-ledger-hide-balance .inventory-ledger-row {
  grid-template-columns: minmax(96px, 0.8fr) minmax(150px, 1.25fr) minmax(190px, 1.45fr) minmax(94px, 0.8fr) 48px;
  min-width: 680px;
}
.inventory-ledger-heading {
  background: rgba(223, 233, 223, 0.55);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.inventory-ledger-actions {
  align-items: center;
  align-self: stretch;
  background: var(--surface);
  display: flex;
  justify-content: end;
  padding-left: 6px;
  padding-right: 8px;
  position: sticky;
  right: 0;
  z-index: 1;
}
.inventory-ledger-action-heading {
  align-self: stretch;
  background: rgba(223, 233, 223, 0.95);
  position: sticky;
  right: 0;
  z-index: 2;
}
.inventory-ledger-edit-link {
  height: 32px;
  width: 32px;
}
.inventory-ledger-item-label {
  display: grid;
  gap: 3px;
}
.inventory-ledger-item-main {
  align-items: center;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-weight: 800;
}
.inventory-ledger-item-detail {
  color: var(--ink-soft);
}
.inventory-movement {
  font-weight: 800;
}
.inventory-movement.positive {
  color: var(--green-dark);
}
.inventory-movement.negative {
  color: var(--red);
}
.inventory-empty-ledger {
  margin: 0;
}
.withdrawal-summary, .reconcile-preview {
  background: rgba(243, 241, 234, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 16px;
  padding: 12px;
}
.withdrawal-summary .section-heading {
  margin: 0 0 10px;
}
.withdrawal-summary-list, .withdrawal-component-list {
  display: grid;
  gap: 8px;
}
.withdrawal-summary-row, .withdrawal-component-list > div {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}
.withdrawal-component-list > div {
  align-items: start;
  grid-template-columns: max-content minmax(0, 1fr);
}
.withdrawal-summary-row span, .withdrawal-component-list span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}
.withdrawal-summary-row strong, .withdrawal-component-list strong {
  text-align: right;
}
.withdrawal-component-list strong {
  min-width: 0;
  overflow-wrap: break-word;
}
.withdrawal-summary-row small {
  color: var(--ink-soft);
  grid-column: 1 / -1;
}
.withdrawal-summary-row.warning strong, .withdrawal-warning {
  color: var(--red);
}
.withdrawal-summary-row.retired strong {
  color: var(--gold-dark);
}
.withdrawal-warning {
  font-weight: 800;
  margin: 10px 0 0;
}
.inventory-withdrawal-components {
  margin-top: 14px;
}
.inventory-withdrawal-components .section-heading {
  margin: 0 0 12px;
}
.withdrawal-load-identity-item, .withdrawal-note-identity-item {
  grid-column: 1 / -1;
}
.inventory-withdrawal-card.is-reversed {
  opacity: 0.76;
}
.field-label-row {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.field-label-row a {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}
.field-label-row a:hover, .field-label-row a:focus {
  text-decoration: underline;
}
.settings-list {
  display: grid;
  gap: 8px;
}
.settings-row {
  align-items: center;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 12px;
  text-decoration: none;
}
.settings-row:hover, .settings-row:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
  outline: none;
}
.settings-row-icon {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.settings-row > :not(.settings-row-icon):not(.settings-row-arrow) {
  min-width: 0;
}
.settings-row h2, .settings-row p {
  margin: 0;
  overflow-wrap: anywhere;
}
.settings-row-arrow {
  color: var(--ink-soft);
  font-size: 1.35rem;
  justify-self: end;
  line-height: 1;
}
.cartridge-list {
  display: grid;
  gap: 8px;
}
.cartridge-row {
  align-items: center;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
  text-decoration: none;
}
.cartridge-row:hover, .cartridge-row:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
  outline: none;
}
.cartridge-row h2, .cartridge-row p {
  margin: 0;
}
.cartridge-row > span {
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
}
.ballistic-groups {
  display: grid;
  gap: 12px;
}
.ballistic-group .card-header {
  padding-bottom: 10px;
}
.ballistic-group .card-header h2 {
  font-size: 1rem;
  margin: 0;
}
.ballistic-profile-list {
  display: grid;
  gap: 6px;
  padding-top: 10px;
}
.ballistic-profile-row {
  align-items: center;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 10px;
  color: inherit;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 12px;
  text-decoration: none;
}
.ballistic-profile-row:hover, .ballistic-profile-row:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
  outline: none;
}
.ballistic-profile-row small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}
.ballistic-profile-row > span {
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
}
.ballistic-identity {
  background: var(--surface);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 17px 18px;
}
.ballistic-chart-card, .ballistic-note-card {
  margin-top: 14px;
}
.ballistic-wind-stack {
  display: grid;
  gap: 18px;
}
.ballistic-wind-block {
  display: block;
}
.ballistic-wind-block + .ballistic-wind-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.ballistic-wind-title {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 3px 12px;
  grid-template-columns: minmax(0, 1fr) 12px;
  justify-content: stretch;
  list-style: none;
}
.ballistic-wind-title > strong {
  grid-column: 1;
}
.ballistic-wind-title::-webkit-details-marker {
  display: none;
}
.ballistic-wind-title::marker {
  content: "";
}
.ballistic-wind-title::after {
  align-self: center;
  border-bottom: 2px solid var(--ink-soft);
  border-right: 2px solid var(--ink-soft);
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 8px;
  justify-self: end;
  transform: rotate(45deg);
  transform-origin: 60% 60%;
  width: 8px;
}
.ballistic-wind-block[open] > .ballistic-wind-title::after {
  transform: rotate(225deg);
}
.ballistic-wind-title:hover::after, .ballistic-wind-title:focus::after {
  border-color: var(--green-dark);
}
.ballistic-wind-reference {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  grid-column: 1;
  grid-row: 2;
  justify-content: flex-start;
  min-width: 0;
}
.ballistic-wind-reference span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
}
.ballistic-wind-reference strong {
  color: var(--ink);
  margin-left: 3px;
}
.ballistic-wind-block:not([open]) .ballistic-wind-reference {
  display: none;
}
.ballistic-wind-block[open] .wind-grid {
  margin-top: 12px;
}
.ballistic-wind-block:not([open]) > .wind-grid {
  display: none;
}
.wind-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wind-cell {
  background: var(--paper);
  border-radius: 10px;
  padding: 10px;
}
.wind-cell span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.wind-cell strong {
  display: block;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.ballistic-note-card p {
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}
.bto-group:first-of-type .section-heading {
  margin-top: 0;
}
.bto-list {
  display: grid;
  gap: 12px;
}
.bto-card {
  color: inherit;
  display: block;
  text-decoration: none;
}
.bto-card.is-inactive {
  background: rgba(255, 253, 248, 0.64);
  box-shadow: 0 5px 14px rgba(26, 37, 31, 0.035);
}
.bto-card:hover, .bto-card:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
  outline: none;
}
.bto-card-top {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
.bto-card-top h2 {
  margin: 9px 0 5px;
  overflow-wrap: anywhere;
}
.bto-card-range {
  background: var(--green-soft);
  border-radius: 12px;
  color: var(--green-dark);
  padding: 11px 12px;
}
.bto-card-range span, .bto-form-preview span, .bto-recommendation span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.bto-card-range strong {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.bto-form-preview div {
  background: var(--paper);
  border-radius: 10px;
  min-width: 0;
  padding: 10px;
}
.bto-form-preview strong {
  display: block;
  overflow-wrap: anywhere;
}
.bto-identity {
  background: var(--surface);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 17px 18px;
}
.bto-identity-top {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.bto-recommendation {
  background: var(--ink);
  border-radius: 14px;
  color: white;
  margin-top: 16px;
  padding: 14px;
}
.bto-recommendation span {
  color: #b9c2bd;
}
.bto-recommendation strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.bto-form-preview {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 18px;
  padding-top: 18px;
}
.load-filter-access {
  margin: -6px 0 14px;
}
.load-filter-open-button b {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.72rem;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}
.load-filter-drawer-open {
  overflow: hidden;
}
.load-filter-drawer-overlay {
  background: rgba(17, 28, 22, 0.48);
  bottom: 0;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 180ms ease;
  z-index: 70;
  backdrop-filter: blur(5px);
}
.load-filter-drawer-overlay[hidden] {
  display: none;
}
.load-filter-drawer-open .load-filter-drawer-overlay {
  opacity: 1;
}
.load-filter-drawer {
  background: var(--surface);
  border-left: 1px solid rgba(220, 217, 205, 0.9);
  bottom: 0;
  box-shadow: -24px 0 70px rgba(17, 28, 22, 0.26);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 390px;
  overflow-y: auto;
  padding: max(20px, calc(env(safe-area-inset-top) + 14px)) 18px 0;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 180ms ease;
  width: min(92vw, 390px);
  z-index: 80;
}
.load-filter-drawer[hidden] {
  display: none;
}
.load-filter-drawer-open .load-filter-drawer {
  transform: translateX(0);
}
.load-filter-drawer:focus {
  outline: none;
}
.load-filter-drawer-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.load-filter-drawer-header h2 {
  font-size: 1.15rem;
  line-height: 1.1;
  margin: 0;
}
.load-filter-form {
  display: grid;
  gap: 14px;
}
.load-filter-drawer.is-scrollable {
  overflow: hidden;
}
.load-filter-drawer.is-scrollable .load-filter-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.load-filter-drawer-fields {
  display: grid;
  gap: 14px;
}
.load-filter-drawer.is-scrollable .load-filter-drawer-fields {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
}
.load-filter-field {
  margin: 0;
}
.load-filter-range {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.load-filter-drawer-actions {
  background: var(--surface);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 4px -18px 0;
  padding: 0 18px max(22px, env(safe-area-inset-bottom));
  z-index: 2;
}
.load-filter-drawer.is-scrollable .load-filter-drawer-actions {
  flex: 0 0 auto;
  margin-top: 0;
}
.load-list {
  margin-top: 14px;
}
.load-card {
  color: inherit;
  display: block;
  text-decoration: none;
}
.load-card:hover, .load-card:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
  outline: none;
}
.load-card.is-retired {
  background: rgba(255, 253, 248, 0.58);
  box-shadow: 0 5px 14px rgba(26, 37, 31, 0.035);
  color: var(--ink-soft);
}
.load-card-top {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.load-card h2 {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.load-card-note {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}
.load-card-date {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}
.load-card-charge {
  align-items: baseline;
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--green-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 12px;
  padding: 10px 12px;
}
.load-card-charge strong, .load-card-charge span {
  display: block;
}
.load-card-charge strong {
  font-size: 1.05rem;
  white-space: nowrap;
}
.load-card-charge span {
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0;
}
.load-reference-hero {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  position: relative;
}
.load-reference-hero .eyebrow {
  color: var(--gold-soft);
  display: block;
}
.load-reference-hero-top {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.load-reference-hero h1 {
  margin-bottom: 8px;
}
.load-reference-hero p {
  color: #cbd3cf;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}
.load-reference-hero .load-action-menu summary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}
.load-reference-hero .load-action-menu summary:hover, .load-reference-hero .load-action-menu summary:focus, .load-reference-hero .load-action-menu[open] summary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}
.load-critical-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.load-critical-grid div {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 11px 12px;
}
.load-critical-grid span, .load-bto-reference-row span, .load-field-note-heading {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.load-critical-grid span {
  color: #b9c2bd;
  display: block;
  margin-bottom: 4px;
}
.load-critical-grid strong {
  display: block;
  overflow-wrap: anywhere;
}
.load-measurement-card, .load-component-card, .load-field-notes-card, .load-field-note-form {
  margin-top: 14px;
}
.load-measurement-grid {
  margin-top: 0;
}
.load-measurement-card .card-body {
  padding-top: 12px;
}
.load-bto-reference {
  margin-top: 8px;
  padding-top: 0;
}
.load-bto-reference-list {
  display: grid;
  gap: 8px;
}
.load-bto-reference-row {
  align-items: center;
  background: var(--paper);
  border-radius: 8px;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 12px;
}
.load-bto-reference-row span, .load-bto-reference-row small {
  color: var(--ink-soft);
}
.load-bto-reference-row strong {
  overflow-wrap: anywhere;
}
.load-component-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
.load-component-grid > div {
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
}
.load-component-compatibility-start {
  margin-top: 20px;
  position: relative;
}
.load-component-compatibility-start::before {
  border-top: 1px solid var(--line);
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: -14px;
}
.load-component-grid span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}
.load-component-grid strong {
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}
.load-component-grid > .load-component-attribute {
  align-items: start;
  grid-template-areas: "label" "value";
  grid-template-columns: minmax(0, 1fr);
}
.load-component-grid > .load-component-attribute > span {
  grid-area: label;
}
.load-component-attribute strong {
  grid-area: value;
  text-align: left;
}
.load-component-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.load-component-tags span {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 9px;
}
.load-checkbox-list {
  display: grid;
  gap: 8px;
}
.load-multiselect {
  position: relative;
}
.load-multiselect summary {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid #cfcbbf;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  min-height: 46px;
  padding: 10px 42px 10px 12px;
  position: relative;
}
.load-multiselect summary::-webkit-details-marker {
  display: none;
}
.load-multiselect summary::after {
  border-bottom: 2px solid var(--green-dark);
  border-right: 2px solid var(--green-dark);
  content: "";
  height: 8px;
  margin-top: -5px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  width: 8px;
}
.load-multiselect[open] summary {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
}
.load-multiselect[open] summary::after {
  margin-top: -1px;
  transform: rotate(225deg);
}
.load-multiselect summary span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.load-multiselect-menu {
  background: var(--surface-strong);
  border: 1px solid rgba(47, 101, 77, 0.32);
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(26, 37, 31, 0.18);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 85;
}
.load-multiselect-option {
  align-items: center;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 40px;
  padding: 9px 10px;
}
.load-multiselect-option:hover, .load-multiselect-option:focus-within {
  background: rgba(47, 101, 77, 0.1);
}
.load-multiselect-option input {
  accent-color: var(--green);
  height: 18px;
  width: 18px;
}
.load-multiselect-option span {
  overflow-wrap: anywhere;
}
.load-checkbox-card {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 52px;
  padding: 10px 12px;
}
.load-checkbox-card.compact {
  min-height: 44px;
}
.load-checkbox-card:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
}
.load-checkbox-card input {
  accent-color: var(--green);
  height: 18px;
  margin-top: 2px;
  width: 18px;
}
.load-checkbox-card strong, .load-checkbox-card small, .load-checkbox-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.load-checkbox-card small {
  color: var(--ink-soft);
  font-size: 0.74rem;
  margin-top: 2px;
}
.load-compatible-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.load-compatible-grid h3 {
  margin-bottom: 8px;
}
.load-field-note-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}
.load-field-note-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  font-size: 0.82rem;
  gap: 10px;
  grid-template-columns: minmax(96px, 0.75fr) minmax(74px, 0.55fr) minmax(92px, 0.65fr) minmax(92px, 0.65fr) minmax(72px, 0.5fr) minmax(220px, 1.6fr) 36px;
  min-height: 40px;
  min-width: 820px;
  padding: 8px 10px;
}
.load-field-note-row:first-child {
  border-top: 0;
}
.load-field-note-heading {
  background: rgba(223, 233, 223, 0.55);
  color: var(--ink-soft);
}
.load-field-note-actions {
  align-items: center;
  align-self: stretch;
  background: var(--surface);
  display: flex;
  justify-content: end;
  padding-left: 6px;
  position: sticky;
  right: 0;
}
.match-list, .stage-list {
  display: grid;
  gap: 12px;
}
.floating-add-button {
  align-items: center;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 10px 24px rgba(26, 37, 31, 0.2);
  color: white;
  display: flex;
  font-size: 2rem;
  font-weight: 500;
  height: 56px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 18px;
  text-decoration: none;
  width: 56px;
  z-index: 35;
}
.floating-add-button span {
  transform: translateY(-1px);
}
.floating-action-icon {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 25px;
}
.match-card, .stage-card {
  color: inherit;
  display: block;
  text-decoration: none;
}
.match-card .card-body, .stage-card .card-body {
  padding: 16px;
}
.match-card-top, .stage-card-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.stage-card-top {
  display: block;
}
.match-card h2, .stage-card h3 {
  margin-bottom: 5px;
}
.stage-card-primary {
  align-items: baseline;
  column-gap: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-width: 0;
  row-gap: 4px;
}
.stage-card-primary h3 {
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.15;
  margin: 0;
  min-width: 0;
  overflow-wrap: normal;
}
.stage-card-dope {
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
}
.stage-card-support {
  align-items: baseline;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 5px;
  margin: 8px 0 0;
}
.stage-card.is-excluded {
  background: repeating-linear-gradient( 135deg, rgba(63, 111, 134, 0.08) 0, rgba(63, 111, 134, 0.08) 8px, rgba(63, 111, 134, 0.025) 8px, rgba(63, 111, 134, 0.025) 16px ), var(--surface);
  border-color: rgba(63, 111, 134, 0.2);
}
.stage-card.is-excluded:hover, .stage-card.is-excluded:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63, 111, 134, 0.12);
  outline: none;
}
.stage-card.is-excluded .stage-card-support strong {
  color: var(--blue-dark);
}
.stage-card-support strong {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}
.stage-shot-count {
  font-weight: 600;
}
.stage-score-exclusion-field {
  grid-column: 1 / -1;
}
.stage-edit-rare-actions {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 18px;
}
.stage-edit-rare-actions + .destructive-actions {
  border-top: 0;
  margin-top: 6px;
  padding-top: 0;
}
.stage-score-exclusion {
  align-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  min-height: 28px;
}
.stage-score-exclusion input {
  accent-color: var(--green);
  height: 15px;
  margin: 0;
  min-height: 15px;
  width: 15px;
}
.stage-score-exclusion:focus-within span, .stage-score-exclusion:hover span {
  color: var(--green-dark);
}
.stage-card-support span::before {
  content: "· ";
}
@media (max-width: 390px) {
  .stage-card-primary {
    column-gap: 8px;
  }
  .stage-card-primary h3 {
    font-size: 0.9rem;
  }
  .stage-card-dope {
    font-size: 1.02rem;
  }
}
.match-card.is-past {
  background: rgba(255, 253, 248, 0.52);
  border-color: rgba(220, 217, 205, 0.7);
  box-shadow: 0 5px 14px rgba(26, 37, 31, 0.035);
  color: var(--ink-soft);
}
.match-card.is-past .match-card-footer {
  border-top-color: rgba(220, 217, 205, 0.7);
}
.badge {
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  text-transform: uppercase;
}
.badge.gold {
  background: var(--gold-soft);
  color: #6d511c;
}
.badge.red {
  background: var(--red-soft);
  color: var(--red);
}
.match-meta, .stage-meta {
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.score-block {
  min-width: 80px;
  text-align: right;
}
.score-block strong {
  display: block;
  font-size: 1rem;
}
.stage-final-heading {
  align-items: flex-start;
  gap: 12px;
}
.shot-count-meta {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  margin: 4px 0 0;
}
.stage-final-heading > strong {
  line-height: 1.2;
  text-align: right;
}
.match-card-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
}
.match-identity {
  background: var(--surface);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 17px 18px;
}
.match-identity-dark {
  --match-accent: var(--gold);
  background: var(--ink);
  border-left-color: var(--match-accent);
  color: white;
}
.match-identity-dark[data-match-tone="planned"] {
  --match-accent: #8f8978;
}
.match-identity-dark[data-match-tone="active"] {
  --match-accent: var(--gold);
}
.match-identity-dark[data-match-tone="complete"] {
  --match-accent: var(--green);
}
.match-identity-dark[data-match-tone="practice"] {
  --match-accent: var(--blue);
}
.match-identity-dark .eyebrow {
  color: var(--gold-soft);
}
.match-identity-dark[data-match-tone="complete"] .eyebrow {
  color: var(--green-soft);
}
.match-identity-dark[data-match-tone="practice"] .eyebrow {
  color: var(--blue-soft);
}
.match-identity-meta {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 8px 0 0;
}
.match-identity-meta span {
  align-items: center;
  display: inline-flex;
}
.match-identity-meta span + span::before {
  content: "·";
  margin-right: 9px;
}
.match-identity-dark .match-identity-meta {
  color: #cbd3cf;
}
.identity-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}
.identity-item {
  background: var(--paper);
  border-radius: 10px;
  padding: 10px;
}
.match-identity-dark .identity-item {
  background: rgba(255, 255, 255, 0.09);
}
.match-identity-dark .identity-item span {
  color: #b9c2bd;
}
.target-relay-item {
  display: block;
}
.target-relay-item strong {
  font-size: 0.9rem;
  white-space: nowrap;
}
.identity-item span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.68rem;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.match-weather-panel {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-areas: "weather refresh";
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 14px;
  padding: 12px;
}
.match-identity-dark .match-weather-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.match-weather-panel.has-detail {
  grid-template-areas: "weather refresh" "detail detail";
}
.match-weather-main {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-area: weather;
  min-width: 0;
}
.match-weather-icon {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green-dark);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.match-identity-dark .match-weather-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--gold-soft);
}
.match-weather-copy {
  min-width: 0;
}
.match-weather-copy > span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.match-identity-dark .match-weather-copy > span, .match-identity-dark .match-weather-main small, .match-identity-dark .match-weather-panel p {
  color: #cbd3cf;
}
.match-weather-readout {
  align-items: baseline;
  display: flex;
  gap: 7px;
  min-width: 0;
}
.match-weather-main strong {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1.1;
}
.match-weather-panel[data-status="loading"] .match-weather-main strong {
  flex: 1 1 auto;
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-weather-main small {
  color: var(--ink-soft);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-weather-panel p {
  color: var(--ink-soft);
  grid-area: detail;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.match-weather-refresh {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  cursor: pointer;
  display: inline-flex;
  grid-area: refresh;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.match-identity-dark .match-weather-refresh {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
}
.match-weather-refresh:disabled {
  cursor: wait;
  opacity: 0.72;
}
.match-weather-panel[data-status="loading"] .match-weather-refresh-icon {
  animation: icon-spin 0.9s linear infinite;
}
.match-weather-panel[data-status="ok"] .match-weather-icon {
  background: var(--green-soft);
  border-color: transparent;
}
.match-identity-dark .match-weather-panel[data-status="ok"] .match-weather-icon {
  background: rgba(223, 233, 223, 0.14);
  color: #cfe0d7;
}
.match-weather-panel[data-status="loading"] .match-weather-icon {
  animation: pulse 0.9s infinite alternate;
}
.match-weather-panel[data-status="offline"], .match-weather-panel[data-status="unavailable"], .match-weather-panel[data-status^="location"] {
  border-color: rgba(177, 133, 53, 0.55);
}
.match-identity-dark .match-weather-panel[data-status="offline"], .match-identity-dark .match-weather-panel[data-status="unavailable"], .match-identity-dark .match-weather-panel[data-status^="location"] {
  border-color: rgba(240, 226, 189, 0.55);
}
.match-weather-panel[data-status="offline"] .match-weather-icon, .match-weather-panel[data-status="unavailable"] .match-weather-icon, .match-weather-panel[data-status^="location"] .match-weather-icon {
  background: var(--gold-soft);
  border-color: transparent;
  color: #6d511c;
}
.match-identity-dark .match-weather-panel[data-status="offline"] .match-weather-icon, .match-identity-dark .match-weather-panel[data-status="unavailable"] .match-weather-icon, .match-identity-dark .match-weather-panel[data-status^="location"] .match-weather-icon {
  background: rgba(240, 226, 189, 0.16);
  color: var(--gold-soft);
}
.stage-hero {
  background: radial-gradient(circle at 90% 10%, rgba(217, 184, 108, 0.3), transparent 33%), var(--ink);
  border-radius: 22px;
  color: white;
  margin-bottom: 14px;
  padding: 21px;
}
.stage-hero-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 4px;
}
.stage-hero-top .eyebrow {
  margin-bottom: 0;
}
.stage-hero h1 {
  margin-bottom: 5px;
}
.stage-hero .muted {
  color: #bac3be;
}
.dope-display {
  margin-top: 20px;
}
.dope-display > div {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}
.dope-display span {
  color: #b9c2bd;
  display: block;
  font-size: 0.7rem;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.dope-display strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.dope-value-line {
  align-items: baseline;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.dope-delta {
  color: #b9c2bd;
  font-size: 0.75rem;
  font-weight: 600;
}
.quick-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 14px;
}
.quick-actions.is-single {
  grid-template-columns: 1fr;
}
.quick-action {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 72px;
  text-align: center;
  text-decoration: none;
}
.quick-action:disabled {
  cursor: wait;
  opacity: 0.72;
}
.quick-action strong {
  font-size: 1.1rem;
}
.quick-action-icon {
  display: block;
  fill: none;
  flex: 0 0 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}
.stage-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stage-quick-actions .quick-action {
  flex-direction: row;
  min-height: 54px;
}
.stage-rifle-reference {
  margin-top: 8px;
}
.stage-rifle-reference-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 6px;
}
.stage-rifle-reference-top > .small {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-rifle-label {
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
}
.stage-rifle-heading-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.stage-rifle-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
}
.stage-rifle-position {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  padding: 5px 0;
}
.stage-rifle-position:first-child {
  padding-top: 0;
}
.stage-rifle-position:last-child, .stage-rifle-position.is-primary {
  border-bottom: 0;
  padding-bottom: 0;
}
.stage-rifle-position-name {
  min-width: 0;
}
.stage-rifle-position-name strong {
  display: block;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.stage-rifle-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.stage-rifle-settings .setup-value {
  border-radius: 7px;
  font-size: 0.72rem;
  padding: 4px 6px;
}
.stage-rifle-empty {
  align-items: center;
  background: var(--paper);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
}
.stage-rifle-empty h2 {
  font-size: 1rem;
  margin: 0;
}
.stage-ballistic-reference {
  margin-top: 12px;
}
.stage-ballistic-list {
  display: grid;
  gap: 8px;
}
.stage-ballistic-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 12px;
  text-decoration: none;
}
.stage-ballistic-card:hover, .stage-ballistic-card:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
  outline: none;
}
.stage-ballistic-card strong, .stage-ballistic-card span, .stage-ballistic-card em {
  display: block;
}
.stage-ballistic-card strong {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.stage-ballistic-card span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}
.stage-ballistic-card.stage-compact-card {
  grid-template-columns: minmax(0, 1fr);
}
.stage-ballistic-card.stage-compact-card div {
  min-width: 0;
}
.stage-ballistic-match-label {
  color: var(--green-dark) !important;
  font-size: 0.68rem !important;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 2px;
}
.stage-ballistic-match-reason {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.stage-ballistic-more {
  display: grid;
  gap: 8px;
}
.stage-ballistic-more summary {
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  list-style: none;
  padding: 4px 0;
}
.stage-ballistic-more summary::-webkit-details-marker {
  display: none;
}
.stage-ballistic-more summary:hover, .stage-ballistic-more summary:focus {
  text-decoration: underline;
}
.stage-ballistic-more-list {
  display: grid;
  gap: 8px;
}
.stage-ballistic-more:not([open]) .stage-ballistic-more-list {
  display: none;
}
.stage-ballistic-values {
  display: grid;
  gap: 4px;
}
.stage-ballistic-values span {
  color: var(--ink);
  font-weight: 800;
}
.stage-ballistic-values em {
  color: var(--green-dark);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}
.stage-ballistic-empty {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
}
.stage-ballistic-empty h2 {
  font-size: 1rem;
  margin: 0;
}
@media (min-width: 560px) {
  .stage-ballistic-card {
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  }
  .stage-ballistic-values {
    justify-items: end;
    text-align: right;
  }
  .bto-card-top {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  }
  .bto-card-range {
    text-align: right;
  }
  .bto-form-preview {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .firearm-bto-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .firearm-bto-history-row {
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  }
  .firearm-bto-history-values {
    text-align: right;
  }
  .load-critical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .load-component-grid > .load-component-attribute {
    align-items: baseline;
    grid-template-areas: "label value";
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  }
  .load-component-attribute strong {
    text-align: right;
  }
  .load-bto-reference-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto) minmax(120px, auto);
  }
  .load-bto-reference-row strong, .load-bto-reference-row small {
    text-align: right;
  }
}
@media (min-width: 860px) {
  .match-weather-panel.has-detail {
    align-items: center;
    grid-template-areas: "weather detail refresh";
    grid-template-columns: minmax(180px, max-content) minmax(0, 1fr) auto;
  }
  .match-weather-panel.has-detail p {
    text-align: right;
  }
}
.match-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.modal-open {
  overflow: hidden;
}
.stage-finder-overlay {
  align-items: flex-end;
  background: rgba(23, 35, 29, 0.52);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}
.stage-finder-overlay[hidden] {
  display: none;
}
.stage-finder {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(11, 19, 15, 0.3);
  max-height: min(82vh, 720px);
  max-width: 620px;
  overflow: hidden;
  width: 100%;
}
.stage-finder-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 17px;
}
.stage-finder-header .eyebrow {
  margin-bottom: 5px;
}
.stage-finder-header h2 {
  margin: 0;
}
.stage-finder-close {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.stage-finder-body {
  max-height: calc(min(82vh, 720px) - 91px);
  overflow-y: auto;
  padding: 17px;
}
.stage-finder-help {
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 0 0 13px;
}
.stage-finder-choices, .stage-finder-results {
  display: grid;
  gap: 10px;
}
.stage-finder-choice {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 62px;
  padding: 11px 13px;
  position: relative;
  text-align: left;
  width: 100%;
}
.stage-finder-choice.is-current-match-rifle {
  background: linear-gradient(145deg, rgba(223, 233, 223, 0.78), rgba(255, 253, 248, 0.98));
  border-color: rgba(47, 101, 77, 0.55);
  border-left: 4px solid var(--gold);
  box-shadow: 0 8px 18px rgba(23, 35, 29, 0.08);
  padding-left: 12px;
}
.stage-finder-choice:hover, .stage-finder-choice:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.12);
  outline: none;
}
.stage-finder-choice.is-current-match-rifle:hover, .stage-finder-choice.is-current-match-rifle:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14), 0 12px 24px rgba(23, 35, 29, 0.12);
}
.stage-finder-choice strong, .stage-finder-choice small {
  display: block;
}
.stage-finder-choice small {
  color: var(--green);
  font-size: 0.7rem;
  margin-top: 3px;
}
.stage-finder-choice-label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.stage-finder-current-badge {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(33, 74, 57, 0.74);
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 700;
  gap: 4px;
  line-height: 1.15;
  margin-top: 0;
  max-width: 100%;
  padding: 0;
  white-space: nowrap;
}
.stage-finder-current-badge span {
  display: inline;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-finder-current-icon {
  color: currentColor;
  height: 10px;
  opacity: 0.78;
  stroke-width: 3;
  width: 10px;
}
.stage-finder-choice-meta {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  gap: 8px;
}
.stage-finder-choice-meta b {
  color: var(--green);
  font-size: 1.25rem;
}
.stage-finder-back {
  background: transparent;
  border: 0;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  margin: -4px 0 12px;
  padding: 4px 0;
}
.stage-finder-current-weather {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 10px 12px;
}
.stage-finder-current-weather span {
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stage-finder-current-weather strong {
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.stage-finder-current-weather[data-status="ok"] {
  background: var(--green-soft);
  border-color: transparent;
}
.stage-finder-result {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stage-finder-result-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.stage-finder-result h3 {
  margin: 0 0 3px;
}
.stage-finder-result .eyebrow {
  margin-bottom: 4px;
}
.stage-finder-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.92fr);
  margin-top: 12px;
}
.stage-finder-metric {
  background: var(--paper);
  border-radius: 10px;
  min-width: 0;
  padding: 9px 10px;
}
.stage-finder-metric span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.stage-finder-metric strong {
  color: var(--ink);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.stage-finder-adjustment {
  background: linear-gradient(90deg, rgba(177, 133, 53, 0.18), transparent 6px), var(--paper);
  border: 1px solid rgba(177, 133, 53, 0.22);
  padding: 11px 12px;
}
.stage-finder-adjustment strong {
  font-size: 1.16rem;
}
.stage-finder-score {
  background: var(--green-soft);
  padding: 10px 11px;
}
.stage-finder-score strong {
  color: var(--green-dark);
  font-family: inherit;
  font-size: 1.05rem;
}
.stage-finder-secondary {
  margin-top: 10px;
}
.stage-finder-note {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  min-width: 0;
  padding: 10px 11px;
}
.stage-finder-note span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.stage-finder-note p {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
@media (max-width: 420px) {
  .stage-finder-metrics {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 760px) {
  .stage-finder-overlay {
    align-items: center;
    padding: 28px;
  }
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
}
.form-card > .section-heading:first-child, .form-card > .form-section:first-child > .section-heading:first-child {
  margin-top: 0;
}
.form-section + .form-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 2px;
}
.position-editor-list {
  display: grid;
  gap: 12px;
}
.ballistic-distance-editor-list {
  display: grid;
  gap: 12px;
}
.ballistic-add-distance-button {
  margin-top: 12px;
  width: 100%;
}
.position-section-heading {
  align-items: start;
}
.position-section-heading h2 {
  margin-bottom: 4px;
}
.position-editor {
  background: var(--paper);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.ballistic-distance-editor {
  background: var(--paper);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.position-editor-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ballistic-distance-editor-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.position-editor-fields .field:first-child {
  grid-column: 1 / -1;
}
.position-remove-button {
  justify-self: end;
}
.ballistic-distance-remove-button {
  justify-self: end;
}
.full-width {
  grid-column: 1 / -1;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-size: 0.75rem;
  font-weight: 800;
}
.optional-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}
.field[hidden] {
  display: none;
}
.field input, .field select, .field textarea {
  --field-control-horizontal-inset: 26px;
  background: var(--surface-strong);
  border: 1px solid #cfcbbf;
  border-radius: 11px;
  box-sizing: border-box;
  color: var(--ink);
  display: block;
  max-width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}
.bto-method-toggle {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  line-height: 1.25;
  min-height: 30px;
  position: relative;
}
.field .bto-method-toggle input {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.bto-method-toggle-track {
  background: #d8d2c2;
  border: 1px solid #b9b2a0;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 22px;
  position: relative;
  transition: background-color 0.16s ease, border-color 0.16s ease;
  width: 38px;
}
.bto-method-toggle-track::after {
  background: var(--surface-strong);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(26, 37, 31, 0.22);
  content: "";
  height: 16px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.16s ease;
  width: 16px;
}
.field .bto-method-toggle input:checked + .bto-method-toggle-track {
  background: var(--green);
  border-color: var(--green-dark);
}
.field .bto-method-toggle input:checked + .bto-method-toggle-track::after {
  transform: translateX(16px);
}
.field .bto-method-toggle input:focus-visible + .bto-method-toggle-track {
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
}
.bto-label-help-row {
  align-items: center;
  display: flex;
  gap: 6px;
  position: relative;
}
.bto-label-help-row .label-help {
  position: static;
}
.label-help {
  display: inline-flex;
  position: relative;
}
.label-help-button {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid #cfcbbf;
  border-radius: 999px;
  color: var(--green-dark);
  cursor: pointer;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 22px;
}
.label-help-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
  outline: none;
}
.label-help-icon {
  height: 14px;
  width: 14px;
}
.label-help-tooltip {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(26, 37, 31, 0.24);
  color: var(--surface-strong);
  display: none;
  font-size: 0.74rem;
  font-weight: 700;
  left: 0;
  line-height: 1.35;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: auto;
  z-index: 90;
}
.label-help:hover .label-help-tooltip, .label-help:focus-within .label-help-tooltip {
  display: block;
}
@supports (-webkit-touch-callout: none) {
  .field input[type="date"] {
    box-sizing: content-box;
    width: calc(100% - var(--field-control-horizontal-inset));
  }
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-dark) 50%), linear-gradient(135deg, var(--green-dark) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  cursor: pointer;
  padding-right: 44px;
}
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
  outline: none;
}
.custom-select {
  position: relative;
}
.custom-select.is-open, .position-combobox.is-open {
  z-index: 120;
}
.field select.native-select {
  border: 0;
  height: 1px;
  min-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}
.custom-select-button {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid #cfcbbf;
  border-radius: 11px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  min-height: 46px;
  padding: 10px 42px 10px 12px;
  position: relative;
  text-align: left;
  width: 100%;
}
.custom-select-button::after {
  border-bottom: 2px solid var(--green-dark);
  border-right: 2px solid var(--green-dark);
  content: "";
  height: 8px;
  margin-top: -5px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  width: 8px;
}
.custom-select-button:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
  outline: none;
}
.custom-select.is-open .custom-select-button {
  border-color: var(--green);
  border-radius: 11px;
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
}
.custom-select.is-open .custom-select-button::after {
  margin-top: -1px;
  transform: rotate(225deg);
}
.custom-select-value {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.custom-select-primary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-detail {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}
.custom-select-value .custom-select-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-menu {
  background: var(--surface-strong);
  border: 1px solid rgba(47, 101, 77, 0.32);
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(26, 37, 31, 0.18);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: min(320px, calc(100vh - 150px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 130;
}
.custom-select-menu[hidden] {
  display: none;
}
.custom-select-option {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 3px;
  font: inherit;
  line-height: 1.2;
  min-height: 40px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}
.custom-select-option.has-detail {
  min-height: 58px;
}
.custom-select-option:hover, .custom-select-option:focus {
  background: rgba(47, 101, 77, 0.1);
  outline: none;
}
.custom-select-option[aria-selected="true"] {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}
.custom-select-option[aria-selected="true"] .custom-select-detail {
  color: var(--green-dark);
}
.stage-load-field .custom-select-menu {
  max-height: 320px;
}
.custom-select-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 4px;
  min-height: 40px;
  padding: 10px;
  text-align: left;
  width: 100%;
}
.custom-select-action:hover, .custom-select-action:focus {
  background: rgba(47, 101, 77, 0.1);
  outline: none;
}
.inline-cartridge-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
}
.inline-cartridge-panel[hidden] {
  display: none;
}
.inline-cartridge-heading h3 {
  font-size: 0.9rem;
  margin: 0;
}
.inline-cartridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.position-combobox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  position: relative;
}
.field .position-combobox input {
  border-radius: 11px 0 0 11px;
  border-right: 0;
  min-width: 0;
}
.position-combobox-button {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid #cfcbbf;
  border-radius: 0 11px 11px 0;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  justify-content: center;
  margin-left: -1px;
  min-height: 46px;
  position: relative;
}
.position-combobox-button::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 8px;
  margin-top: -5px;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  width: 8px;
}
.position-combobox:focus-within input, .position-combobox:focus-within .position-combobox-button, .position-combobox.is-open input, .position-combobox.is-open .position-combobox-button {
  border-color: var(--green);
}
.position-combobox:focus-within {
  border-radius: 11px;
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.14);
}
.position-combobox input:focus, .position-combobox-button:focus {
  outline: none;
}
.position-combobox.is-open .position-combobox-button::after {
  margin-top: -1px;
  transform: rotate(225deg);
}
.position-combobox-menu {
  background: var(--surface-strong);
  border: 1px solid rgba(47, 101, 77, 0.32);
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(26, 37, 31, 0.18);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: min(320px, calc(100vh - 150px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 130;
}
.position-combobox-menu[hidden] {
  display: none;
}
.position-combobox-option {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  min-height: 40px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}
.position-combobox-option:hover, .position-combobox-option:focus {
  background: rgba(47, 101, 77, 0.1);
  outline: none;
}
.position-combobox-option[aria-selected="true"] {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}
.position-combobox-empty {
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 10px;
}
.bullet-field-combobox-menu[data-empty-only="true"] {
  pointer-events: none;
}
.field textarea {
  min-height: 92px;
  resize: vertical;
}
.number-stepper {
  column-gap: 0;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
}
.field .number-stepper input {
  appearance: textfield;
  border-radius: 11px 0 0 11px;
  border-right: 0;
  min-width: 0;
  text-align: center;
}
.field .number-stepper input::-webkit-inner-spin-button, .field .number-stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.field-presets {
  display: flex;
  gap: 7px;
}
.field-preset {
  background: var(--surface);
  border: 1px solid #cfcbbf;
  border-radius: 9px;
  color: var(--ink);
  flex: 1;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 10px;
}
.field-preset.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.form-error {
  background: var(--red-soft);
  border: 1px solid rgba(166, 73, 63, 0.28);
  border-radius: 10px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  padding: 10px 12px;
}
.form-error[hidden] {
  display: none;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.edit-screen .content {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}
.edit-screen .form-actions {
  display: none;
}
.edit-action-bar {
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  left: 0;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 35;
  backdrop-filter: blur(18px);
}
.edit-action-bar-inner {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin: 0 auto;
  max-width: 560px;
}
.edit-action-bar .button {
  justify-content: center;
  min-height: 48px;
  width: 100%;
}
.destructive-actions {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 18px;
}
.quiet-danger-button {
  background: transparent;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: underline;
  text-decoration-color: rgba(166, 73, 63, 0.35);
  text-underline-offset: 3px;
}
.quiet-danger-button:hover, .quiet-danger-button:focus {
  color: #7f342d;
  outline: none;
  text-decoration-color: currentColor;
}
.autosave-status {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  min-height: 24px;
}
.autosave-status[data-status="saving"] .sync-dot {
  animation: autosave-pulse 0.8s ease-in-out infinite alternate;
  background: var(--gold);
}
.autosave-status[data-status="error"] {
  color: var(--red);
}
.autosave-status[data-status="error"] .sync-dot {
  background: var(--red);
}
@keyframes autosave-pulse {
  to {
    opacity: 0.35;
  }
}
.photo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}
.photo-item {
  position: relative;
}
.photo-view-button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}
.photo-view-button:focus {
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.28);
  outline: none;
}
.photo-thumb {
  aspect-ratio: 1;
  border: 1px solid rgba(23, 35, 29, 0.16);
  border-radius: 12px;
  display: block;
  object-fit: cover;
  width: 100%;
}
.photo-placeholder {
  align-items: center;
  background: var(--green-soft);
  color: var(--muted);
  display: flex;
  font-size: 0.72rem;
  justify-content: center;
  padding: 12px;
  text-align: center;
}
.photo-delete-button {
  align-items: center;
  background: rgba(23, 35, 29, 0.88);
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1.1rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 32px;
}
.photo-delete-button:focus {
  box-shadow: 0 0 0 3px rgba(47, 101, 77, 0.28);
  outline: none;
}
.photo-viewer-overlay {
  align-items: center;
  background: rgba(11, 18, 14, 0.94);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: max(60px, calc(env(safe-area-inset-top) + 48px)) 16px max(24px, env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(10px);
}
.photo-viewer-overlay[hidden] {
  display: none;
}
.photo-viewer {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  max-width: 1200px;
  position: relative;
  width: 100%;
}
.photo-viewer figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
}
.photo-viewer-image {
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  display: block;
  max-height: calc(100vh - 130px);
  max-width: 100%;
  object-fit: contain;
}
.photo-viewer figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  max-width: min(90vw, 720px);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-viewer-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1.5rem;
  height: 44px;
  justify-content: center;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
  width: 44px;
}
.photo-viewer-close:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  outline: none;
}
.nav-drawer-open {
  overflow: hidden;
}
.nav-drawer-overlay {
  background: rgba(17, 28, 22, 0.48);
  bottom: 0;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 180ms ease;
  z-index: 70;
  backdrop-filter: blur(5px);
}
.nav-drawer-overlay[hidden] {
  display: none;
}
.nav-drawer-open .nav-drawer-overlay {
  opacity: 1;
}
.nav-drawer {
  background: var(--surface);
  border-left: 1px solid rgba(220, 217, 205, 0.9);
  bottom: 0;
  box-shadow: -24px 0 70px rgba(17, 28, 22, 0.26);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 380px;
  overflow-y: auto;
  padding: max(20px, calc(env(safe-area-inset-top) + 14px)) 18px max(22px, env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 180ms ease;
  width: min(88vw, 380px);
  z-index: 80;
}
.nav-drawer[hidden] {
  display: none;
}
.nav-drawer-open .nav-drawer {
  transform: translateX(0);
}
.nav-drawer:focus {
  outline: none;
}
.nav-drawer-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.nav-drawer-header > div {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-drawer-header h2 {
  font-size: 1.15rem;
  line-height: 1.1;
  margin: 0;
}
.nav-drawer-title {
  margin-top: 0;
  min-width: 0;
}
.nav-drawer-logo {
  width: min(210px, 100%);
}
.nav-drawer-close {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.3rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}
.drawer-links {
  display: grid;
  gap: 6px;
}
.drawer-links .nav-link {
  align-items: center;
  border-radius: 10px;
  flex-direction: row;
  font-size: 0.95rem;
  gap: 12px;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 12px;
}
.drawer-links .nav-icon {
  height: 20px;
  width: 20px;
}
.nav-icon {
  height: 19px;
  width: 20px;
}
.drawer-sync-button {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}
.drawer-sync-message {
  margin: -10px 2px 0;
}
.drawer-account {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.drawer-account strong {
  overflow-wrap: anywhere;
}
.nav-link {
  align-items: center;
  border-radius: 12px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 4px;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}
.nav-link.active {
  background: var(--green-soft);
  color: var(--green-dark);
}
.empty-state {
  align-items: center;
  display: grid;
  gap: 14px;
  isolation: isolate;
  justify-items: center;
  min-height: 178px;
  overflow: hidden;
  padding: clamp(26px, 7vw, 42px) 20px;
  position: relative;
  text-align: center;
}
.card.empty-state {
  background: linear-gradient(90deg, rgba(177, 133, 53, 0.16), transparent 7px), linear-gradient(155deg, var(--surface) 0%, #f8f5ec 100%);
}
.empty-state::before {
  background: repeating-linear-gradient( 135deg, rgba(47, 101, 77, 0.055) 0, rgba(47, 101, 77, 0.055) 1px, transparent 1px, transparent 14px );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.empty-state > * {
  position: relative;
  z-index: 1;
}
.empty-state-icon-shell {
  align-items: center;
  background: var(--green-soft);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--green-soft) 78%, var(--surface));
  }
  border: 1px solid rgba(47, 101, 77, 0.16);
  border-radius: 16px;
  color: var(--green-dark);
  display: inline-flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}
.empty-state-icon {
  height: 29px;
  stroke-width: 1.9;
  width: 29px;
}
.empty-state-copy {
  display: grid;
  gap: 7px;
  justify-items: center;
  max-width: 34rem;
}
.empty-state h1, .empty-state h2 {
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}
.empty-state h1 {
  font-size: clamp(1.45rem, 7vw, 2.1rem);
}
.empty-state h2 {
  font-size: 1.12rem;
}
.empty-state p {
  line-height: 1.45;
  margin: 0;
  max-width: 30rem;
}
.empty-state-action {
  margin-top: 2px;
}
.empty-state-compact {
  gap: 12px;
  min-height: auto;
  padding: 22px 18px;
}
.empty-state-compact .empty-state-icon-shell {
  border-radius: 14px;
  height: 48px;
  width: 48px;
}
.empty-state-compact .empty-state-icon {
  height: 24px;
  width: 24px;
}
.empty-state-compact p {
  font-size: 0.9rem;
}
.stage-rifle-empty, .stage-ballistic-empty {
  background: linear-gradient(90deg, rgba(177, 133, 53, 0.13), transparent 6px), linear-gradient(155deg, rgba(255, 253, 248, 0.9), rgba(243, 241, 234, 0.72));
  border: 1px dashed rgba(47, 101, 77, 0.24);
  border-radius: 14px;
}
.account-panel {
  display: grid;
  gap: 18px;
}
.account-panel h2 {
  overflow-wrap: anywhere;
}
.auth-screen {
  align-items: center;
  background: radial-gradient(circle at top left, rgba(188, 148, 57, 0.18), transparent 34rem), var(--page);
  display: grid;
  min-height: 100vh;
  padding: 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(23, 35, 29, 0.14);
  margin: auto;
  max-width: 440px;
  padding: clamp(24px, 6vw, 42px);
  width: 100%;
}
.auth-brand-heading {
  margin-bottom: 24px;
}
.auth-logo {
  width: min(250px, 100%);
}
.auth-mode-toggle {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  padding: 4px;
}
.auth-mode-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}
.auth-mode-button.is-active {
  background: var(--green);
  box-shadow: 0 8px 18px rgba(34, 96, 65, 0.16);
  color: #fff;
}
.auth-mode-button:disabled {
  cursor: default;
  opacity: 0.7;
}
.auth-form {
  display: grid;
  gap: 14px;
  margin: 24px 0 18px;
}
.auth-form .button {
  width: 100%;
}
.auth-link-button {
  background: transparent;
  border: 0;
  color: var(--green-dark);
  font: inherit;
  font-weight: 700;
  justify-self: center;
  padding: 4px 8px;
  text-decoration: underline;
}
.auth-link-button:disabled {
  color: var(--muted);
}
.auth-message, .auth-status {
  background: var(--gold-soft);
  border-radius: 12px;
  margin: 18px 0;
  padding: 12px 14px;
}
.auth-message.success {
  background: var(--green-soft);
}
.auth-status {
  align-items: center;
  display: flex;
  gap: 9px;
}
.desktop-account {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 7px;
  margin-top: auto;
  overflow: hidden;
  padding: 16px 10px 0;
}
.desktop-account span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.desktop-account button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #bdc7c1;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  padding: 0;
  text-align: left;
}
.toast {
  background: var(--ink);
  border-radius: 12px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  color: white;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 11px 15px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 50;
}
@media (max-width: 360px) {
  .stage-rifle-position {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-rifle-settings {
    justify-content: flex-start;
  }
  .stage-rifle-empty, .stage-ballistic-empty {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 390px) {
  .sync-pill {
    justify-content: center;
    padding: 0;
    width: 38px;
  }
  .sync-pill [data-sync-label] {
    display: none;
  }
}
@media (min-width: 760px) {
  .welcome-screen {
    gap: 22px;
  }
  .welcome-intro {
    padding: 32px;
  }
  .welcome-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stage-trend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid.two-column {
    grid-template-columns: 1fr 1fr;
  }
  .wind-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .position-editor-fields {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  }
  .position-editor-fields .field:first-child {
    grid-column: auto;
  }
  .ballistic-distance-editor-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inventory-adjustment-current {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .inventory-adjustment-grid {
    grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.8fr);
  }
  .inventory-threshold-row {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.35fr);
  }
  .inventory-new-bullet-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-new-primer-fields {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.55fr) minmax(120px, 0.35fr);
  }
  .inventory-component-field {
    grid-column: 1 / -1;
  }
  .inventory-note-field {
    grid-column: 1 / -1;
  }
  .inventory-post-button {
    justify-self: start;
    width: auto;
  }
  .load-reference-hero {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }
  .load-reference-hero .load-action-menu {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
  }
  .load-compatible-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 980px) {
  .inventory-adjustment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inventory-component-field {
    grid-column: 1 / -1;
  }
  .inventory-note-field {
    grid-column: 1 / -1;
  }
  .inventory-post-button {
    justify-self: start;
    margin-top: 0;
    min-width: 132px;
    width: auto;
  }
  .inventory-brass-adjustment-form .inventory-adjustment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .inventory-brass-adjustment-form .inventory-note-field {
    grid-column: 1 / -1;
  }
  .inventory-brass-adjustment-form .inventory-post-button {
    grid-column: auto;
  }
  .app-shell {
    display: grid;
    grid-template-columns: 230px 1fr;
  }
  .app-shell.compact-shell {
    display: block;
  }
  .desktop-rail {
    background: var(--ink);
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 24px 16px;
    position: sticky;
    top: 0;
  }
  .compact-shell .desktop-rail {
    display: none;
  }
  .desktop-brand {
    display: grid;
    gap: 7px;
    margin: 0 8px 28px;
  }
  .desktop-logo {
    width: 184px;
  }
  .desktop-brand-subtitle {
    color: #bdc7c1;
  }
  .small.desktop-brand-subtitle {
    margin-left: 4px;
    margin-top: -6px;
  }
  .desktop-links {
    display: grid;
    gap: 5px;
  }
  .desktop-links .nav-link {
    align-items: center;
    color: #cad1cd;
    flex-direction: row;
    font-size: 0.86rem;
    gap: 11px;
    justify-content: flex-start;
    padding: 0 12px;
  }
  .desktop-links .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  .desktop-sync {
    color: #bdc7c1;
    font-size: 0.76rem;
    padding: 8px 10px 0;
  }
  .topbar {
    padding-left: 28px;
    padding-right: 28px;
  }
  .topbar .topbar-brand {
    display: none;
  }
  .menu-button, .nav-drawer, .nav-drawer-overlay {
    display: none !important;
  }
  .content {
    padding: 32px 30px 60px;
  }
  .compact-shell .content {
    padding-top: 22px;
  }
  .edit-screen .content {
    padding-bottom: 112px;
  }
  .edit-action-bar {
    left: 230px;
    padding-left: 30px;
    padding-right: 30px;
  }
  .compact-shell .edit-action-bar {
    left: 0;
  }
  .floating-add-button {
    display: none;
  }
  .desktop-header-actions {
    display: flex !important;
  }
  .desktop-header-cta {
    display: inline-flex !important;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
