.orloj-history-launch,
.orloj-history-timeline {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.9rem;
  border: 1px solid rgba(198, 157, 78, 0.34);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(50, 38, 24, 0.8), rgba(8, 18, 25, 0.94)),
    rgba(7, 16, 23, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 204, 0.06),
    0 20px 52px -38px rgba(0, 0, 0, 0.96);
}

.orloj-history-launch {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 66px;
  padding: 0.78rem 0.86rem;
  color: #f4e3b3;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.orloj-history-launch:hover,
.orloj-history-launch:focus-visible {
  border-color: rgba(248, 208, 111, 0.72);
  background:
    linear-gradient(145deg, rgba(75, 54, 27, 0.86), rgba(10, 23, 31, 0.96)),
    rgba(8, 18, 26, 0.96);
  outline: none;
}

.orloj-history-launch:active {
  transform: translateY(1px);
}

.orloj-history-launch span {
  min-width: 0;
}

.orloj-history-launch strong,
.orloj-history-launch small {
  display: block;
}

.orloj-history-launch strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
}

.orloj-history-launch small {
  margin-top: 0.22rem;
  color: rgba(233, 220, 186, 0.62);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.68rem;
  line-height: 1.28;
}

.orloj-history-timeline {
  padding: 0.92rem;
}

.orloj-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.orloj-history-heading > div > span {
  display: block;
  color: #d0a657;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orloj-history-heading h3 {
  margin: 0.18rem 0 0;
  color: #ffe8a8;
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.08;
}

.orloj-history-heading > button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(219, 174, 82, 0.28);
  border-radius: 999px;
  background: rgba(4, 12, 18, 0.74);
  color: rgba(242, 228, 190, 0.72);
  cursor: pointer;
}

.orloj-history-heading > button:hover,
.orloj-history-heading > button:focus-visible {
  border-color: rgba(255, 216, 116, 0.72);
  color: #fff0bd;
  outline: none;
}

.orloj-history-intro,
.orloj-history-method {
  color: rgba(232, 223, 199, 0.72);
  font-family: "Cormorant Garamond", ui-serif, serif;
  line-height: 1.4;
}

.orloj-history-intro {
  margin: 0.75rem 0 0;
  font-size: 0.94rem;
}

.orloj-history-filters {
  display: flex;
  gap: 0.38rem;
  margin-top: 0.72rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.orloj-history-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(208, 165, 78, 0.24);
  border-radius: 999px;
  background: rgba(6, 17, 24, 0.74);
  padding: 0.35rem 0.62rem;
  color: rgba(238, 225, 192, 0.7);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.64rem;
  white-space: nowrap;
}

.orloj-history-filters button:hover,
.orloj-history-filters button:focus-visible,
.orloj-history-filters button.is-active {
  border-color: rgba(246, 202, 102, 0.72);
  background: rgba(91, 62, 25, 0.74);
  color: #fff0bc;
  outline: none;
}

.orloj-history-years {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.72rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.42rem;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(211, 165, 73, 0.44) rgba(3, 12, 18, 0.35);
  scrollbar-width: thin;
}

.orloj-history-years button {
  display: grid;
  width: min(190px, 72vw);
  flex: 0 0 min(190px, 72vw);
  min-height: 82px;
  align-content: start;
  gap: 0.28rem;
  scroll-snap-align: start;
  border: 1px solid rgba(202, 159, 73, 0.22);
  border-radius: 0.78rem;
  background: rgba(5, 15, 22, 0.7);
  padding: 0.62rem;
  color: rgba(236, 224, 191, 0.72);
  cursor: pointer;
  text-align: left;
}

.orloj-history-years button:hover,
.orloj-history-years button:focus-visible,
.orloj-history-years button.is-active {
  border-color: rgba(245, 201, 101, 0.72);
  background:
    linear-gradient(145deg, rgba(78, 54, 25, 0.72), rgba(7, 20, 28, 0.84));
  color: #fff0bc;
  outline: none;
}

.orloj-history-years button > span {
  color: #e9bd62;
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1;
}

.orloj-history-years button > small {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.65rem;
  line-height: 1.3;
}

.orloj-history-detail {
  margin-top: 0.7rem;
  border: 1px solid rgba(217, 171, 78, 0.22);
  border-radius: 0.9rem;
  background: rgba(3, 12, 18, 0.66);
  padding: 0.8rem;
}

.orloj-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.orloj-history-meta > strong {
  color: #f2c76e;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.orloj-history-meta > span {
  border: 1px solid rgba(207, 166, 84, 0.24);
  border-radius: 999px;
  background: rgba(25, 34, 37, 0.62);
  padding: 0.2rem 0.44rem;
  color: rgba(230, 217, 183, 0.68);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.58rem;
  line-height: 1;
}

.orloj-history-certainty.is-documented {
  border-color: rgba(105, 187, 145, 0.45);
  color: #bfe8cf;
}

.orloj-history-certainty.is-probable {
  border-color: rgba(225, 181, 82, 0.48);
  color: #f0d391;
}

.orloj-history-certainty.is-legend {
  border-color: rgba(168, 128, 207, 0.48);
  color: #d9bdea;
}

.orloj-history-detail h4 {
  margin: 0.6rem 0 0;
  color: #ffe8ac;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
}

.orloj-history-detail > p {
  margin: 0.55rem 0 0;
  color: rgba(236, 227, 203, 0.74);
  font-family: "Cormorant Garamond", ui-serif, serif;
  font-size: 0.95rem;
  line-height: 1.42;
}

.orloj-history-detail > .orloj-history-summary {
  color: rgba(255, 238, 193, 0.9);
  font-size: 1rem;
}

.orloj-history-consequence {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  margin-top: 0.72rem;
  border-left: 3px solid rgba(224, 178, 80, 0.66);
  background: rgba(79, 54, 24, 0.28);
  padding: 0.62rem 0.66rem;
  color: #eddcae;
}

.orloj-history-consequence strong {
  display: block;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orloj-history-consequence p {
  margin: 0.25rem 0 0;
  color: rgba(235, 223, 192, 0.76);
  font-family: "Cormorant Garamond", ui-serif, serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

.orloj-history-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  color: #dfbd70;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.64rem;
  text-decoration: none;
}

.orloj-history-source:hover,
.orloj-history-source:focus-visible {
  color: #ffe8a6;
  text-decoration: underline;
  outline: none;
}

.orloj-history-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.orloj-history-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  border: 1px solid rgba(211, 165, 76, 0.28);
  border-radius: 0.7rem;
  background: rgba(15, 29, 38, 0.78);
  color: #eadbb1;
  cursor: pointer;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.68rem;
}

.orloj-history-actions button:hover:not(:disabled),
.orloj-history-actions button:focus-visible:not(:disabled) {
  border-color: rgba(244, 199, 97, 0.72);
  color: #fff0bd;
  outline: none;
}

.orloj-history-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.orloj-history-actions > span {
  color: rgba(226, 210, 174, 0.62);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.62rem;
}

.orloj-history-method {
  margin: 0.7rem 0 0;
  border-top: 1px solid rgba(209, 165, 77, 0.16);
  padding-top: 0.62rem;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .orloj-history-launch,
  .orloj-history-timeline {
    margin-top: 0.75rem;
  }

  .orloj-history-actions {
    grid-template-columns: 1fr 1fr;
  }

  .orloj-history-actions > span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orloj-history-launch {
    transition: none;
  }

  .orloj-history-years {
    scroll-behavior: auto;
  }
}
