/* Loss desk. Page styles only. */

.loss-limit {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--text);
  font-weight: 600;
}

.loss-tool.section { padding-top: 1.6rem; }

.loss-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.loss-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.loss-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.loss-choice input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  accent-color: var(--brand);
}

.loss-choice span { display: block; overflow-wrap: anywhere; }

.loss-result h2,
.loss-tech { overflow-wrap: anywhere; }

.loss-choice:hover { border-color: rgba(124, 76, 249, 0.55); }

.loss-choice:has(input:checked) {
  border-color: var(--brand);
  background: rgba(124, 76, 249, 0.14);
  box-shadow: inset 3px 0 0 var(--brand);
}

.loss-choice:has(input:focus-visible) {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--brand);
}

.loss-choice input:focus-visible { outline: none; }

html.theme-light .loss-choice:has(input:focus-visible) { outline-color: var(--ink); }

.loss-result { scroll-margin-top: 12rem; }

.loss-result h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.loss-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loss-tech {
  font-family: var(--font-data);
  color: var(--text);
}

.loss-route-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.loss-route-list li {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 800;
}

.loss-route-list li.is-bookable {
  border-color: rgba(124, 76, 249, 0.7);
  background: rgba(124, 76, 249, 0.14);
}

.loss-route-when {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-dim);
  font-weight: 500;
}

.loss-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.loss-actions .btn {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  max-width: 100%;
  height: auto;
  text-align: left;
}

.loss-btn-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.92;
}

@media (max-width: 800px) {
  .loss-layout { grid-template-columns: 1fr; }
  .loss-result {
    position: static;
    scroll-margin-top: 13rem;
  }
}
