/* src/styles/burn-history.scss */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}
#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 1000;
  pointer-events: none;
}
.map-area {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}
#burn-history-map {
  position: absolute;
  inset: 0;
}
button {
  padding: 8px 12px;
  min-height: 40px;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #80caff;
  outline-offset: 3px;
}
.button-close {
  background-image: url("./assets/close.EXPVR75W.svg");
  background-size: contain;
  background-color: transparent;
  background-repeat: no-repeat;
  font-size: 0;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  position: relative;
}
.button-close::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 150, 150, 0.6) 0%,
      transparent 65%);
  opacity: 0;
  transition: opacity 150ms ease;
}
.button-close:hover::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .button-close::before {
    transition: none;
  }
}
.controls-drawer-shell {
  grid-row: 1/2;
  grid-column: 1;
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: min(320px, 100% - 104px);
  z-index: 1000;
  transform: translateX(100%);
  pointer-events: none;
}
.controls-drawer-shell.is-ready {
  transition: transform 240ms ease-in-out;
}
.controls-drawer-shell[data-open=true] {
  transform: translateX(0);
}
#controlsToggle {
  position: absolute;
  top: 16px;
  left: -44px;
  width: 44px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 8px;
  pointer-events: auto;
  background: #222;
  color: white;
  border: 1px solid #777;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  box-shadow: -3px 2px 8px rgba(0, 0, 0, 0.2);
}
#controlsToggle:hover {
  background: #333;
}
#controlsToggle:focus-visible {
  outline-offset: -5px;
}
#controlsToggle .drawer-tab-label {
  writing-mode: vertical-rl;
  font-size: 0.9rem;
}
#controlsToggle .drawer-chevron {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(225deg);
}
#controlsToggle[aria-expanded=true] .drawer-chevron {
  transform: rotate(45deg);
}
#controlsDrawer {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: #222;
  color: white;
  border-radius: 8px 0 0 8px;
  box-shadow: -3px 2px 12px rgba(0, 0, 0, 0.25);
  visibility: hidden;
  transition: visibility 0s 240ms;
}
#controlsDrawer .drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
#controlsDrawer h1 {
  font-size: 1.15rem;
  margin: 0;
}
#controlsDrawer .sim-controls,
#controlsDrawer .filter-controls,
#controlsDrawer .burn-chart,
#controlsDrawer .legend {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
}
#controlsDrawer label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
#controlsDrawer input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
}
#controlsDrawer .legend {
  margin-bottom: 0;
}
#controlsDrawer .burn-chart {
  gap: 6px;
}
#controlsDrawer .burn-chart h2 {
  font-size: 0.9rem;
  margin: 0;
}
#controlsDrawer .burn-chart p {
  margin: 0;
  color: #b9c0cb;
  font-size: 0.8rem;
}
#controlsDrawer .burn-chart figure {
  margin: 0;
}
#controlsDrawer .burn-chart figure[title] {
  cursor: help;
}
#controlsDrawer .burn-chart .chart-plot {
  position: relative;
  height: 120px;
}
#controlsDrawer .burn-chart .chart-total {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
#controlsDrawer .burn-chart figcaption {
  margin-top: 4px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.controls-drawer-shell[data-open=true] #controlsDrawer {
  visibility: visible;
  transition-delay: 0s;
  pointer-events: auto;
}
#cancelDrawBtn {
  position: absolute;
  top: 12px;
  left: 56px;
  z-index: 1000;
  background: #222;
  color: white;
  border: 1px solid #777;
  border-radius: 4px;
}
.controls-drawer-shell[data-open=true] ~ #cancelDrawBtn {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .controls-drawer-shell.is-ready,
  #controlsDrawer {
    transition: none;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.controls {
  --timeline-accent: #a52e19;
  grid-row: 2;
  grid-column: 1;
  position: relative;
  z-index: 1000;
  margin: 0 16px max(28px, env(safe-area-inset-bottom));
  color: #233047;
  pointer-events: none;
}
.controls > * {
  pointer-events: auto;
}
.timeline-card {
  background: white;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(35, 48, 71, 0.06);
}
#timelineHint {
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(35, 48, 71, 0.06);
  color: #46546a;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}
.day-controls {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
}
.day-controls:disabled > * {
  opacity: 0.62;
}
.day-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid #dce2ec;
  border-radius: 7px;
  background: white;
  color: #425575;
  font-size: 1.35rem;
  line-height: 1;
}
.day-controls button:enabled:hover {
  background: #f1f4f8;
}
.day-controls button:disabled {
  cursor: default;
}
.day-controls button[aria-pressed=true] {
  color: white;
  background: var(--timeline-accent);
  border-color: var(--timeline-accent);
}
.day-controls button[aria-pressed=true]:enabled:hover {
  background: #842312;
}
.day-controls :focus-visible {
  outline-color: var(--timeline-accent);
}
.playback-buttons,
.playback-options {
  display: flex;
  align-items: center;
  gap: 6px;
}
.day-controls .timeline-play {
  width: 44px;
  height: 44px;
  background: var(--timeline-accent);
  border-color: var(--timeline-accent);
  color: white;
}
.day-controls .timeline-play:enabled:hover {
  background: #842312;
}
.day-controls .timeline-play .play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  margin-left: 3px;
}
.day-controls .timeline-play[aria-pressed=true] .play-icon {
  width: 13px;
  height: 16px;
  margin-left: 0;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.timeline-scrubber {
  min-width: 0;
}
.timeline-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.timeline-date {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.timeline-date #dayLabel {
  font-weight: 700;
}
.timeline-date #dayNumber {
  color: #66758c;
  font-size: 0.75rem;
}
.timeline-burned {
  margin: 0 0 2px;
  color: #66758c;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.timeline-burned[title] {
  cursor: help;
}
.timeline-burned.is-empty {
  visibility: hidden;
}
.year-controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.year-controls label {
  position: relative;
  cursor: pointer;
}
.year-controls input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.year-controls span {
  display: block;
  padding: 3px 7px;
  border-radius: 4px;
  color: #64758e;
  font-size: 0.8rem;
}
.year-controls input:checked + span {
  background: #f7e9e5;
  color: #8c2817;
  font-weight: 700;
}
.year-controls input:focus-visible + span {
  outline: 2px solid var(--timeline-accent);
  outline-offset: 2px;
}
.timeline-track {
  padding-top: 2px;
}
.has-cutoff {
  --cutoff-pos: calc(10px + (100% - 20px) * var(--cutoff-fraction));
}
#daySlider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  cursor: pointer;
  background: transparent;
  --progress: 49.2%;
}
#daySlider::-webkit-slider-runnable-track {
  height: 5px;
  border: 1px solid #8d97a8;
  border-radius: 3px;
  background:
    linear-gradient(
      to right,
      var(--timeline-accent) var(--progress),
      #e2e6ed var(--progress));
}
.has-cutoff #daySlider::-webkit-slider-runnable-track {
  background:
    linear-gradient(
      to right,
      var(--timeline-accent) var(--progress),
      #e2e6ed var(--progress),
      #e2e6ed var(--cutoff-pos),
      #66758c var(--cutoff-pos),
      #66758c calc(var(--cutoff-pos) + 2px),
      transparent calc(var(--cutoff-pos) + 2px)) left top/100% 100% no-repeat,
    repeating-linear-gradient(
      45deg,
      #c3cad6,
      #c3cad6 2px,
      #eef1f6 2px,
      #eef1f6 5px) right top/calc(100% - var(--cutoff-pos)) 100% no-repeat;
}
#daySlider::-moz-range-track {
  height: 4px;
  border: 1px solid #8d97a8;
  border-radius: 3px;
  background:
    linear-gradient(
      to right,
      var(--timeline-accent) var(--progress),
      #e2e6ed var(--progress));
}
.has-cutoff #daySlider::-moz-range-track {
  background:
    linear-gradient(
      to right,
      var(--timeline-accent) var(--progress),
      #e2e6ed var(--progress),
      #e2e6ed var(--cutoff-pos),
      #66758c var(--cutoff-pos),
      #66758c calc(var(--cutoff-pos) + 2px),
      transparent calc(var(--cutoff-pos) + 2px)) left top/100% 100% no-repeat,
    repeating-linear-gradient(
      45deg,
      #c3cad6,
      #c3cad6 2px,
      #eef1f6 2px,
      #eef1f6 5px) right top/calc(100% - var(--cutoff-pos)) 100% no-repeat;
}
#daySlider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 3px solid white;
  border-radius: 50%;
  background: #656971;
  box-shadow: 0 0 0 1px #dce2ec;
}
#daySlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid white;
  border-radius: 50%;
  background: #656971;
  box-shadow: 0 0 0 1px #dce2ec;
}
#daySlider:disabled {
  cursor: default;
}
.month-scale {
  position: relative;
  height: 17px;
  margin: 0 10px;
  color: #71829b;
  font-size: 0.65rem;
}
.month-scale[title] {
  cursor: help;
}
.month-scale span {
  position: absolute;
  padding-top: 7px;
}
.month-scale span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  border-left: 1px solid #a6b1c3;
}
.month-scale .current-month {
  color: #8c2817;
  font-weight: 700;
}
.speed-controls {
  display: flex;
}
.speed-controls button {
  min-width: 32px;
  min-height: 36px;
  border-radius: 0;
  border-right-width: 0;
  font-size: 0.72rem;
  padding: 4px 6px;
}
.speed-controls button:first-child {
  border-radius: 6px 0 0 6px;
}
.speed-controls button:last-child {
  border-radius: 0 6px 6px 0;
  border-right-width: 1px;
}
.day-controls #repeatBtn {
  min-width: 36px;
  min-height: 36px;
  margin-left: 4px;
  border-color: #bf6f5f;
  color: #9c301c;
  background: #fcf0ed;
}
.day-controls #repeatBtn[aria-pressed=true] {
  background: var(--timeline-accent);
  color: white;
}
@media (max-width: 767px) {
  .controls {
    margin-inline: 8px;
  }
  .day-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 12px;
  }
  .timeline-scrubber {
    order: -1;
    flex: 0 0 100%;
  }
  .playback-buttons {
    gap: 4px;
  }
  .day-controls button {
    min-width: 36px;
  }
  .day-controls .timeline-play {
    min-width: 40px;
    width: 40px;
    height: 40px;
  }
  .speed-controls button {
    min-width: 29px;
    padding: 4px;
  }
  .playback-options {
    gap: 4px;
  }
  .month-scale {
    font-size: 0.6rem;
  }
  #timelineHint {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
.hidden,
[hidden] {
  display: none !important;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
}
.swatch {
  width: 16px;
  height: 16px;
  border: 1px solid #888;
  flex-shrink: 0;
}
/*# sourceMappingURL=burn-history-styles.NCJKVL6G.css.map */
