/* Shared styles for static legal/info pages (privacy, data deletion, etc.) */

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.legal-document {
  background: #ffffff;
  color: #2c3e50;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.legal-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

.legal-meta dt {
  font-weight: 600;
  color: #4b5563;
}

.legal-meta dd {
  margin: 0;
  color: #374151;
}

.legal-document section {
  margin-bottom: 1.75rem;
}

.legal-document h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-document p {
  margin-bottom: 0.85rem;
}

.legal-document ul,
.legal-document ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.legal-document li {
  margin-bottom: 0.4rem;
}

.legal-document a {
  color: #0d6efd;
  text-decoration: none;
  word-break: break-all;
}

.legal-document a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-header h1 {
    font-size: 1.5rem;
  }

  .legal-document h2 {
    font-size: 1.1rem;
  }

  .legal-meta {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }

  .legal-meta dt {
    margin-top: 0.4rem;
  }
}
.live-telemetry-page {
  color: #18202a;
}

.live-telemetry-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.live-telemetry-toolbar h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.live-telemetry-subtitle {
  align-items: center;
  color: #687385;
  display: flex;
  font-size: 13px;
  gap: 8px;
  margin-top: 4px;
}

.live-status-dot {
  background: #adb5bd;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.live-status-dot.is-live {
  background: #18a058;
}

.live-status-dot.is-error {
  background: #dc3545;
}

.live-telemetry-controls {
  align-items: center;
  display: flex;
  gap: 8px;
}

.live-circuit-form .form-select {
  min-width: 220px;
}

.live-telemetry-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.live-map-section {
  min-width: 0;
}

.live-map-frame {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  height: 620px;
  overflow: hidden;
  position: relative;
}

#liveTelemetryMap {
  height: 100%;
  width: 100%;
}

.live-map-canvas {
  background: #fff;
  cursor: pointer;
  display: block;
}

.live-map-overlay {
  display: flex;
  gap: 8px;
  left: 12px;
  position: absolute;
  top: 12px;
  z-index: 2;
}

.live-counter,
.live-time {
  background: rgba(18, 24, 32, 0.82);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
}

.live-counter strong {
  font-size: 18px;
  margin-right: 4px;
}

.live-time {
  display: grid;
  min-width: 150px;
}

.live-timebar {
  margin-top: 10px;
}

.live-timebar-labels {
  color: #687385;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.live-side-panel,
.live-empty-state {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
}

.live-side-panel {
  max-height: 690px;
  overflow: auto;
  padding: 12px;
}

.live-panel-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.live-panel-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.live-panel-header span {
  color: #687385;
  font-size: 12px;
}

.live-vehicle-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.live-vehicle-row {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px;
}

.live-vehicle-row:hover,
.live-vehicle-row.is-selected {
  border-color: #2264d1;
  background: #eef5ff;
}

.live-vehicle-number {
  align-items: center;
  background: #18202a;
  border-radius: 4px;
  color: #fff;
  display: flex;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  overflow: hidden;
}

.live-vehicle-main {
  min-width: 0;
}

.live-vehicle-name {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-vehicle-meta {
  color: #687385;
  font-size: 12px;
}

.live-vehicle-age {
  color: #687385;
  font-size: 12px;
}

.live-dashboard-empty {
  color: #687385;
  font-size: 13px;
  margin-top: 10px;
}

.live-metrics-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.live-metric {
  background: #f7f9fc;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  padding: 10px;
}

.live-metric-label {
  color: #687385;
  font-size: 11px;
  text-transform: uppercase;
}

.live-metric-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
}

.live-restricted {
  background: #fff8e5;
  border: 1px solid #f0d58a;
  border-radius: 6px;
  color: #664d03;
  font-size: 13px;
  margin-top: 10px;
  padding: 10px;
}

.live-channel-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.live-channel-picker label {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  gap: 4px;
  padding: 5px 8px;
}

.live-graphs-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.live-video-panel,
.live-graph {
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 224px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.live-graph-header {
  align-items: center;
  background: #f7f9fc;
  border-bottom: 1px solid #e1e6ef;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 8px;
}

.live-graph-header strong {
  font-size: 13px;
  font-weight: 700;
}

.live-video-placeholder {
  background: #050505;
  flex: 1;
  min-height: 180px;
}

.live-graph canvas {
  display: block;
  flex: 1;
  min-height: 180px;
  width: 100%;
}

.live-graph-empty {
  align-items: center;
  background: #fff;
  color: #687385;
  display: flex;
  font-size: 13px;
  inset: 38px 0 0;
  justify-content: center;
  padding: 12px;
  position: absolute;
  text-align: center;
}

.live-graph.has-data .live-graph-empty {
  display: none;
}

.live-empty-state {
  padding: 32px;
  text-align: center;
}

@media (max-width: 992px) {
  .live-telemetry-toolbar,
  .live-telemetry-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .live-telemetry-shell,
  .live-graphs-grid {
    grid-template-columns: 1fr;
  }

  .live-map-frame {
    height: 480px;
  }

  .live-side-panel {
    max-height: none;
  }
}
.telemetry-review {
  --review-border: #d9dee5;
  --review-muted: #5f6b7a;
  --review-ink: #17202a;
  --review-panel: #ffffff;
  --review-soft: #f6f8fb;
  --review-best-lap: #1d5fd1;
  --review-best-sector: #1d5fd1;
  color: var(--review-ink);
}

.review-topbar {
  align-items: center;
  border-bottom: 1px solid var(--review-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.review-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.review-subtitle {
  color: var(--review-muted);
  font-size: 0.88rem;
}

.review-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.review-status {
  border: 1px solid var(--review-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 9px;
}

.review-status-complete {
  background: #e7f6ee;
  border-color: #9bd1b5;
  color: #12633c;
}

.review-status-failed {
  background: #fdecec;
  border-color: #e9a8a8;
  color: #9b1c1c;
}

.review-workspace {
  display: grid;
  gap: 10px;
  grid-template-columns: 210px minmax(0, 1fr) 245px;
  min-height: 360px;
}

.review-laps,
.review-track,
.review-stats,
.review-graph-panel,
.review-video-panel {
  background: var(--review-panel);
  border: 1px solid var(--review-border);
  border-radius: 8px;
}

.review-laps,
.review-stats {
  overflow: hidden;
}

.review-laps {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.review-panel-title {
  background: var(--review-soft);
  border-bottom: 1px solid var(--review-border);
  color: var(--review-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 8px 10px;
  text-transform: uppercase;
}

.review-lap-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.review-optimal-lap {
  align-items: center;
  border-bottom: 1px solid var(--review-border);
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  padding: 8px 10px;
}

.review-optimal-lap span {
  color: var(--review-muted);
  font-weight: 700;
}

.review-optimal-lap strong {
  color: var(--review-best-sector);
  font-variant-numeric: tabular-nums;
}

.review-lap-button {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--review-border);
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  line-height: 1.15;
  min-height: 58px;
  padding: 9px 10px 10px;
  position: relative;
  text-align: left;
}

.review-lap-button.is-best-lap {
  border-color: #86aef3;
  padding-left: 25px;
}

.review-lap-button.is-active {
  background: #edf5ff;
  border-color: #77aadd;
}

.review-lap-button.is-invalid {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.review-lap-button.is-invalid.is-active {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.review-lap-best-icon {
  color: var(--review-best-lap);
  font-size: 0.86rem;
  left: 8px;
  line-height: 1;
  position: absolute;
  top: 8px;
}

.review-lap-main {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.review-lap-label {
  font-size: 0.84rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-lap-time,
.review-lap-sector-time {
  font-variant-numeric: tabular-nums;
}

.review-lap-time {
  flex: 0 0 auto;
}

.review-lap-time.is-best {
  color: var(--review-best-lap);
  font-weight: 800;
}

.review-lap-sector.is-best {
  color: var(--review-best-sector);
  font-weight: 800;
}

.review-lap-sectors {
  align-items: center;
  color: var(--review-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.69rem;
  gap: 3px 8px;
  justify-content: flex-end;
  line-height: 1.25;
  text-align: right;
}

.review-lap-sector {
  align-items: baseline;
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
}

.review-lap-sector-label {
  font-weight: 700;
}

.review-track {
  aspect-ratio: 4 / 3;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.review-track-mode {
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  display: flex;
  gap: 2px;
  padding: 3px;
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
}

.review-track-mode button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
}

.review-track-mode button.is-active {
  background: #fff;
  color: #111827;
}

.review-track-canvas {
  cursor: grab;
  display: block;
  height: 100%;
  min-height: 0;
  touch-action: none;
  width: 100%;
}

.review-track-canvas:active {
  cursor: grabbing;
}

.review-stats dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  margin: 0;
  padding: 10px;
  row-gap: 8px;
}

.review-stats dt {
  color: var(--review-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.review-stats dd {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-graphs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.review-graph-panel,
.review-video-panel {
  display: flex;
  flex-direction: column;
  min-height: 224px;
  overflow: hidden;
}

.review-video-placeholder {
  background: #050505;
  flex: 1;
  min-height: 180px;
}

.review-graph-header {
  align-items: center;
  background: var(--review-soft);
  border-bottom: 1px solid var(--review-border);
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 8px;
}

.review-graph-header strong {
  font-size: 0.86rem;
}

.review-graph-header details {
  position: relative;
}

.review-graph-header summary {
  cursor: pointer;
  font-size: 0.78rem;
  list-style: none;
}

.review-graph-header summary::-webkit-details-marker {
  display: none;
}

.review-channel-menu {
  background: #fff;
  border: 1px solid var(--review-border);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  display: grid;
  gap: 5px;
  min-width: 170px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 24px;
  z-index: 10;
}

.review-channel-menu label {
  align-items: center;
  display: flex;
  font-size: 0.78rem;
  gap: 6px;
  white-space: nowrap;
}

.review-graph-legend {
  align-items: center;
  border-bottom: 1px solid var(--review-border);
  display: flex;
  gap: 10px;
  min-height: 31px;
  overflow-x: auto;
  padding: 5px 8px;
}

.review-graph-legend-item {
  align-items: center;
  color: #374151;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  gap: 5px;
  line-height: 1;
  white-space: nowrap;
}

.review-graph-legend-item input {
  height: 13px;
  margin: 0;
  width: 13px;
}

.review-graph-legend-swatch {
  border-radius: 2px;
  display: inline-block;
  height: 8px;
  width: 10px;
}

.review-graph-canvas {
  cursor: grab;
  display: block;
  flex: 1;
  min-height: 180px;
  touch-action: none;
  width: 100%;
}

.review-graph-canvas:active {
  cursor: grabbing;
}

.review-timeline-controls {
  align-items: center;
  background: var(--review-panel);
  border: 1px solid var(--review-border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 10px;
  padding: 9px 10px;
}

.review-progress-wrap {
  min-width: 0;
  padding-top: 21px;
  position: relative;
}

.review-progress-markers {
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.review-progress-marker {
  background: #64748b;
  border-radius: 999px;
  display: block;
  font-size: 0;
  height: 12px;
  min-width: 0;
  padding: 0;
  position: absolute;
  top: 34px;
  transform: translate(-50%, -50%);
  width: 1px;
}

.review-progress-marker.is-sector {
  background: #64748b;
  opacity: 0.78;
}

.review-progress-marker.is-lap {
  background: #1f2937;
  height: 20px;
  width: 2px;
}

.review-progress-marker.is-lap::after {
  color: #1f2937;
  content: attr(data-label);
  font-size: 0.62rem;
  font-weight: 800;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: -15px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.review-progress-marker.is-lap.is-start::after {
  left: 0;
  transform: none;
}

.review-progress-marker.is-lap.is-end::after {
  left: auto;
  right: 0;
  transform: none;
}

.review-progress {
  accent-color: #1f6fb2;
  height: 26px;
  min-width: 0;
  width: 100%;
}

.review-progress-buttons {
  align-items: center;
  display: flex;
  gap: 6px;
}

.review-progress-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--review-border);
  border-radius: 999px;
  color: var(--review-ink);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0;
  position: relative;
  touch-action: none;
  width: 32px;
}

.review-progress-button:active {
  background: #edf5ff;
  border-color: #77aadd;
}

.review-progress-button::before {
  content: "";
  display: block;
  height: 0;
  width: 0;
}

.review-progress-button[data-review-progress-step="back"]::before {
  border-bottom: 7px solid transparent;
  border-right: 11px solid #1f2937;
  border-top: 7px solid transparent;
  margin-left: -2px;
}

.review-progress-button[data-review-progress-step="forward"]::before {
  border-bottom: 7px solid transparent;
  border-left: 11px solid #1f2937;
  border-top: 7px solid transparent;
  margin-right: -2px;
}

.review-playback-speed {
  align-items: center;
  color: var(--review-muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 5px;
  margin-left: 4px;
  white-space: nowrap;
}

.review-playback-speed select {
  background: #fff;
  border: 1px solid var(--review-border);
  border-radius: 6px;
  color: var(--review-ink);
  font-size: 0.8rem;
  height: 32px;
  padding: 0 6px;
}

@media (min-width: 901px) {
  .review-laps {
    contain: size;
  }
}

@media (max-width: 900px) {
  .review-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .review-workspace {
    grid-template-columns: 1fr;
  }

  .review-graphs {
    grid-template-columns: 1fr;
  }

  .review-timeline-controls {
    grid-template-columns: 1fr;
  }

  .review-progress-buttons {
    justify-content: flex-end;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* 서킷 번호 배지 스타일 */
.circuit-id-badge {
  background-color: #335577 !important;
  color: white !important;
}

/* 서킷 타입 배지 스타일 */
.circuit-type-closed {
  background-color: #994222 !important;
  color: white !important;
}

.circuit-type-open {
  background-color: #0bbbd0 !important;
  color: white !important;
}

/* 서킷 인증 배지 스타일 */
.circuit-verified-badge {
  background-color: #198754 !important;
  color: white !important;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  transform: translateY(-10%);
}

.circuit-verified-badge i {
  font-size: 0.8em !important;
}
