/* R5 and C14: what the server recorded at each visit (attempt-details.js),
   on Reliant Track and in a Reliant Pro assignment. */

.attempt-visit {
  border-top: 1px solid var(--line, #e5e7eb);
  padding: 14px 0;
}

.attempt-visit:first-child {
  border-top: 0;
}

.attempt-visit-title {
  font-size: 1rem;
  margin: 0 0 4px;
}

.attempt-outcome {
  margin: 0 0 8px;
}

.attempt-pin {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.attempt-pin svg {
  color: var(--blue-700, #1a30d9);
  flex: none;
}

.attempt-photos-label,
.attempt-note-label {
  margin: 0 0 6px;
}

.attempt-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.attempt-photo-button {
  background: var(--canvas, #f8f8f8);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  height: 96px;
  min-width: 96px;
  overflow: hidden;
  padding: 0;
  width: 96px;
}

.attempt-photo-button:focus-visible {
  outline: 3px solid var(--blue-600, #4169f5);
  outline-offset: 2px;
}

.attempt-photo-button:disabled {
  cursor: progress;
}

.attempt-photo-thumb {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.attempt-note-text {
  background: var(--canvas, #f8f8f8);
  border-left: 3px solid var(--line, #e5e7eb);
  margin: 0;
  padding: 8px 12px;
  white-space: pre-wrap;
}

.attempt-photo-dialog {
  border: 0;
  border-radius: var(--radius-lg, 14px);
  max-height: 90vh;
  max-width: min(92vw, 960px);
  padding: 12px;
}

.attempt-photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.attempt-photo-large {
  display: block;
  height: auto;
  max-height: calc(90vh - 80px);
  max-width: 100%;
  margin: 0 auto 12px;
}

.attempt-photo-close {
  display: block;
  margin: 0 auto;
}

.firm-settings-block + .firm-settings-block {
  border-top: 1px solid var(--line, #e5e7eb);
  margin-top: 16px;
  padding-top: 16px;
}

.firm-settings-row {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.firm-key-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.firm-key-item {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  margin: 0 0 8px;
  padding: 10px 12px;
}

.firm-key-secret {
  background: var(--canvas, #f8f8f8);
  display: block;
  margin: 6px 0;
  overflow-wrap: anywhere;
  padding: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .attempt-photo-dialog {
    transition: none;
  }
}
