/* Shared fly-pressure drawer/sheet used by the dashboard and horse detail. */
body.fly-pressure-dialog-open { overflow: hidden; }

.fly-pressure-dialog {
  width: min(490px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(255, 235, 214, .14);
  background: #12100f;
  color: var(--rw-text);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .48);
}
.fly-pressure-dialog[open] { display: block; animation: fly-pressure-drawer-in 180ms ease-out both; }
.fly-pressure-dialog::backdrop { background: rgba(4, 3, 3, .72); backdrop-filter: blur(3px); }
.fly-pressure-dialog-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 90% 0%, rgba(121, 76, 42, .2), transparent 35%), linear-gradient(180deg, #151210 0%, #0e0d0c 100%);
}
.fly-pressure-dialog-header {
  position: relative;
  min-height: 82px;
  padding: max(1rem, env(safe-area-inset-top)) 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 235, 214, .1);
}
.fly-pressure-dialog-heading { min-width: 0; display: flex; align-items: center; gap: .78rem; }
.fly-pressure-dialog-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 170, 105, .22);
  border-radius: 13px;
  background: rgba(117, 77, 47, .2);
  font-size: 1.28rem;
}
.fly-pressure-dialog-heading h2,
.fly-pressure-dialog-heading p { margin: 0; }
.fly-pressure-dialog-heading h2 { color: var(--rw-text-strong); font-size: 1.12rem; line-height: 1.15; letter-spacing: -.025em; }
.fly-pressure-dialog-heading p { margin-top: .2rem; color: var(--rw-muted); font-size: .72rem; font-weight: 700; }
.fly-pressure-dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #3b3b3a;
  border-radius: 50%;
  background: #1a1a19;
  color: #c7c4c0;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}
.fly-pressure-dialog-close:hover,
.fly-pressure-dialog-close:focus-visible { border-color: #565654; background: #242423; color: #f4f1ed; outline: none; }
.fly-pressure-dialog-body { min-height: 0; padding: 1.15rem 1.1rem calc(1.3rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }

.fly-pressure-hero { padding: 1.05rem; border: 1px solid var(--rw-border-soft); border-radius: 15px; background: rgba(20, 16, 13, .92); box-shadow: 0 18px 42px rgba(0, 0, 0, .2); }
.fly-pressure-level { display: inline-flex; align-items: center; margin-bottom: .65rem; color: #f2c278; font-size: .72rem; font-weight: 850; }
.fly-pressure-level--low { color: #81dc91; }
.fly-pressure-level--medium { color: #efc15e; }
.fly-pressure-level--high,
.fly-pressure-level--very_high { color: #f08b72; }
.fly-pressure-hero h3 { margin: 0; color: var(--rw-text-strong); font-size: clamp(1.12rem, 4vw, 1.42rem); line-height: 1.28; letter-spacing: -.025em; }
.fly-pressure-hero p { margin: .72rem 0 0; color: var(--rw-muted); font-size: .8rem; }
.fly-pressure-hero p strong { color: var(--rw-text); }
.fly-pressure-section { margin-top: 1.2rem; }
.fly-pressure-section-title { margin-bottom: .7rem; display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.fly-pressure-section-title h3 { margin: 0; color: var(--rw-text-strong); font-size: .86rem; }
.fly-pressure-section-title span { color: var(--rw-muted-2); font-size: .62rem; }
.fly-pressure-timeline { --fly-pressure-gap: clamp(.12rem, 1vw, .38rem); min-height: 174px; padding: .8rem .45rem .65rem; display: grid; grid-template-columns: repeat(var(--fly-pressure-columns, 6), minmax(0, 1fr)); gap: var(--fly-pressure-gap); border: 1px solid rgba(255, 235, 214, .1); border-radius: 14px; background: rgba(255, 255, 255, .022); }
.fly-pressure-point { position: relative; min-width: 0; display: grid; grid-template-rows: 30px 88px auto; justify-items: center; gap: .38rem; }
.fly-pressure-point--new-day::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--fly-pressure-gap) / -2); border-left: 1px solid rgba(255, 235, 214, .18); }
.fly-pressure-next-day-marker { position: absolute; z-index: 1; top: 50%; left: 50%; padding: .16rem .2rem; transform: translate(-50%, -50%); border: 1px solid rgba(255, 235, 214, .14); border-radius: 999px; background: #151413; color: #aaa39b; font-size: .43rem; font-weight: 800; line-height: 1; letter-spacing: .06em; }
.fly-pressure-point-time { color: var(--rw-muted); font-size: .64rem; font-weight: 800; text-align: center; }
.fly-pressure-bar-track { width: 18px; height: 88px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .045); }
.fly-pressure-bar { width: 100%; height: var(--fly-pressure-height); min-height: 10px; border-radius: 99px; background: #67d17b; }
.fly-pressure-bar--medium { background: #e2ad45; }
.fly-pressure-bar--high { background: #dd784f; }
.fly-pressure-bar--very_high { background: #d95645; }
.fly-pressure-point-label { color: var(--rw-muted); font-size: .52rem; font-weight: 800; line-height: 1.12; text-align: center; }
.fly-pressure-best-window { margin-top: .9rem; padding: .85rem; display: flex; align-items: flex-start; gap: .68rem; border: 1px solid rgba(103, 209, 123, .18); border-radius: 13px; background: rgba(103, 209, 123, .065); }
.fly-pressure-best-window > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(103, 209, 123, .13); color: #81dc91; font-weight: 900; }
.fly-pressure-best-window strong { color: var(--rw-text-strong); font-size: .7rem; }
.fly-pressure-best-window p { margin: .18rem 0 0; color: #aaddb3; font-size: .82rem; font-weight: 850; }
.fly-pressure-explanation { color: var(--rw-muted); line-height: 1.55; margin: 1rem 0 0; font-size: .76rem; }
.fly-pressure-current { padding: 1rem; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid rgba(180, 112, 67, .22); border-radius: 15px; background: linear-gradient(135deg, rgba(87, 53, 33, .38), rgba(16, 14, 13, .8)); }
.fly-pressure-current > span,
.fly-pressure-current small { color: var(--rw-muted); font-size: .68rem; font-weight: 750; }
.fly-pressure-current strong { margin: .32rem 0 .38rem; color: #f2c278; font-size: 1.65rem; letter-spacing: -.04em; }
.fly-pressure-current--low strong { color: #81dc91; }
.fly-pressure-current--high strong,
.fly-pressure-current--very_high strong { color: #f08b72; }
.fly-pressure-locked { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(255, 235, 214, .1); border-radius: 14px; background: rgba(255, 255, 255, .022); }
.fly-pressure-locked-heading { display: flex; align-items: flex-start; gap: .72rem; }
.fly-pressure-lock { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: rgba(240, 178, 83, .09); font-size: .88rem; }
.fly-pressure-locked h3,
.fly-pressure-locked p { margin: 0; }
.fly-pressure-locked h3 { color: var(--rw-text-strong); font-size: .88rem; }
.fly-pressure-locked p { margin-top: .3rem; color: var(--rw-muted); font-size: .72rem; line-height: 1.48; }
.fly-pressure-locked-chart { height: 86px; margin-top: 1rem; display: flex; align-items: flex-end; justify-content: space-around; gap: .65rem; filter: blur(2px); opacity: .55; mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.fly-pressure-locked-chart span { width: 20px; border-radius: 99px; background: linear-gradient(#d18b52, #785039); }
.fly-pressure-upgrade { min-height: 48px; margin-top: 1rem; padding: .75rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgba(111, 78, 55, .18); border-radius: 22px; background: rgba(255, 255, 255, .92); color: #3f2d22; font-size: .78rem; font-weight: 950; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.fly-pressure-upgrade:hover,
.fly-pressure-upgrade:focus-visible { background: #fff; filter: none; outline: 2px solid rgba(255, 255, 255, .38); outline-offset: 2px; }

@keyframes fly-pressure-drawer-in { from { transform: translateX(24px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }
@keyframes fly-pressure-sheet-in { from { transform: translateY(30px); opacity: .75; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 680px) {
  .fly-pressure-dialog { width: 100vw; height: min(82dvh, 720px); margin: auto 0 0; border: 0; border-top: 1px solid rgba(255, 235, 214, .15); border-radius: 22px 22px 0 0; box-shadow: 0 -24px 70px rgba(0, 0, 0, .5); }
  .fly-pressure-dialog[open] { animation-name: fly-pressure-sheet-in; }
  .fly-pressure-dialog-header { min-height: 75px; padding-top: .9rem; }
  .fly-pressure-dialog-body { padding-left: .9rem; padding-right: .9rem; }
  .fly-pressure-timeline { --fly-pressure-gap: .08rem; padding-right: .3rem; padding-left: .3rem; }
  .fly-pressure-point-time { font-size: .56rem; }
  .fly-pressure-point-label { font-size: .46rem; }
  .fly-pressure-bar-track { width: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .fly-pressure-dialog[open] { animation: none; }
}
