/* Weekend Preview — matches RaceLogger V5 desktop tab */

.weekend-panel {
  overflow: visible;
  gap: 10px;
}
.wk-settings {
  padding: 12px;
  margin-bottom: 4px;
}

.wk-row0,
.wk-row1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 0 4px;
}

.wk-row0 { margin-bottom: 6px; }

.wk-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wk-field > span {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.wk-field input,
.wk-field select {
  min-height: 30px;
}

.wk-field input { width: auto; }
.wk-field input#wk-team { width: 130px; }
.wk-field input#wk-series { width: 130px; }
.wk-field input#wk-event { width: 180px; }
.wk-field select#wk-circuit { min-width: 220px; }
.wk-field input#wk-race-start { width: 72px; font-family: var(--mono); }

.wk-muted {
  font-size: 12px;
  color: var(--subtext);
  margin-right: 2px;
}

.wk-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  margin-right: 14px;
  cursor: pointer;
}

.wk-check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--cyan); }

#wk-running-cars {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}

.wk-row1 .wk-field select#wk-active-car { min-width: 200px; }

.wk-row1-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.wk-main {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 360px;
  margin-bottom: 0;
}
.wk-labelframe {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: visible;
}

.wk-labelframe > .wk-lf-title {
  display: block;
  padding: 6px 10px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: none;
}

.wk-map-frame {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  height: auto;
}

.wk-map-host {
  flex: 0 0 auto;
  min-height: 360px;
  background: var(--panel-alt);
  margin: 4px;
  border-radius: 2px;
  position: relative;
}

#weekend-map {
  display: block;
  width: 100%;
  height: 360px;
  min-height: 360px;
  background: var(--panel-alt);
  border: none;
  border-radius: 0;
}
.wk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
}

.wk-timing-link-body,
.wk-circuit-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 12px 10px;
}

.wk-timing-link-body a,
.wk-circuit-links a {
  display: inline-block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cyan);
  word-break: break-word;
  text-decoration: none;
}

.wk-timing-link-body a:hover,
.wk-circuit-links a:hover {
  text-decoration: underline;
}

.wk-sidebar .wk-labelframe {
  padding: 0 0 10px;
}

.wk-sidebar .wk-lf-body {
  padding: 4px 12px 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
}

.wk-sidebar .wk-lf-body.muted {
  color: var(--subtext);
  font-size: 12px;
}

.wk-role .wk-lf-body {
  font-size: 13px;
}

.wk-workflow {
  padding-bottom: 12px;
}

.wk-workflow-intro {
  padding: 0 12px 10px;
  font-size: 12px;
  color: var(--subtext);
  line-height: 1.45;
}

.wk-workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 0 12px 4px;
}

.wk-workflow-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-dim, #0a9e8e);
  margin-bottom: 4px;
}

.wk-workflow-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wk-workflow-block li {
  font-size: 13px;
  color: var(--text);
  padding: 2px 0 2px 0;
  line-height: 1.4;
}

.wk-workflow-block li::before {
  content: "• ";
  color: var(--text-dim);
}

@media (max-width: 1000px) {
  .wk-main { grid-template-columns: 1fr; }
  .wk-workflow-grid { grid-template-columns: 1fr; }
}
