/* styles/plot.css: Hardware plot, site legend, Mars 6-site spacing, mission-complete panel, right ghost log, and summary strip */
/* SI-assisted code (Claude, Antigravity), reviewed by La Shara Cordero. See AI_DISCLOSURE.md. */
/* Right Half of Main Screen: Hardware Plot */
.hardware-plot {
  position: absolute;
  left: 436px;
  top: 18px;
  width: 250px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  color: #C9DDE0;
  z-index: 5;
}

.plot-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.plot-legend-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.plot-heading {
  margin: 0 0 2px;
  font: 400 25px var(--font-vt);
  line-height: 1;
  color: #E6F2F4;
}

.legend-row {
  width: 100%;
  min-height: 44px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 6px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(201, 221, 224, 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 3px;
}

.legend-row:hover {
  background: rgba(201, 221, 224, 0.1);
}

.legend-row:focus-visible {
  outline: 2px solid #FFE9B0;
  outline-offset: -2px;
  background: rgba(255, 233, 176, 0.12);
}

.legend-code {
  font: 400 22px var(--font-vt);
  min-width: 44px;
  color: #FFE9B0;
  white-space: nowrap;
  flex-shrink: 0;
}

.legend-text {
  font-size: 11.5px;
  line-height: 1.22;
  color: #DCE9EC;
}

/* Compact 6-site legend spacing on Mars so all 6 44px buttons + status box clear the curved bezel */
.hardware-plot--mars {
  top: 14px;
  bottom: 36px;
  gap: 3px;
}

.hardware-plot--mars .plot-heading {
  margin: 0;
  font-size: 22px;
}

.hardware-plot--mars .legend-row {
  min-height: 44px;
  padding: 1px 6px;
  gap: 8px;
}

.hardware-plot--mars .legend-code {
  font-size: 19px;
  min-width: 42px;
}

.hardware-plot--mars .legend-text {
  font-size: 10.5px;
  line-height: 1.15;
}

.plot-selected-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plot-ghost-name {
  margin: 0;
  font: 400 28px var(--font-vt);
  line-height: 1;
  color: #FFFFFF;
  text-transform: uppercase;
}

.plot-ghost-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #C9DDE0;
  padding: 8px 10px;
  background: rgba(5, 6, 5, 0.55);
  border-left: 2px solid #FFE9B0;
}

.plot-takeover-stats {
  padding: 10px 12px;
  background: rgba(5, 6, 5, 0.65);
  border: 1px solid rgba(201, 221, 224, 0.22);
  border-radius: 4px;
}

.plot-takeover-visual {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.plot-takeover-label {
  font: 600 10px var(--font-mono);
  letter-spacing: 0.14em;
  color: #B9C4BD;
}

.plot-takeover-ymd {
  font: 400 23px var(--font-vt);
  line-height: 1.05;
  color: #FFE9B0;
  text-shadow: 0 0 10px rgba(255, 220, 140, 0.45);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plot-takeover-hms {
  font: 400 17px var(--font-vt);
  line-height: 1.05;
  color: #C9DDE0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plot-takeover-status {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(201, 221, 224, 0.18);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.1em;
}

.plot-photo-fig {
  margin: 0;
}

.plot-photo-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.plot-photo-img {
  width: 250px;
  height: 158px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.6) contrast(1.05);
  border: 1px solid rgba(201, 221, 224, 0.3);
}

.plot-photo-cap {
  font-size: 10px;
  color: #A8BEC2;
  padding-top: 3px;
}

.plot-photo-placeholder {
  width: 250px;
  height: 158px;
  border: 1px dashed rgba(201, 221, 224, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #A8BEC2;
  text-align: center;
  padding: 10px;
  white-space: pre-line;
  line-height: 1.4;
}

.plot-signal-box {
  margin-top: auto;
  padding: 6px 10px;
  background: rgba(5, 6, 5, 0.82);
  border: 1px solid rgba(201, 221, 224, 0.28);
  font: 400 18px var(--font-vt);
  line-height: 1.1;
  color: #C9DDE0;
}

/* Mission Complete Panel on Main Screen */
.mission-complete-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(5, 7, 7, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

.mission-complete-card {
  width: min(100%, 540px);
  background: #101513;
  border: 2px solid #C9B871;
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.mission-complete-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-complete-title {
  margin: 0;
  font: 400 23px var(--font-vt);
  line-height: 1.08;
  color: #9BEFB0;
}

.mission-complete-close {
  min-width: 72px;
  min-height: 44px;
  padding: 0 12px;
  background: #2C312E;
  border: 1px solid rgba(237, 243, 238, 0.55);
  color: #EDF3EE;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.08em;
  cursor: pointer;
  flex-shrink: 0;
}

.mission-complete-close:hover {
  background: #3A403C;
  color: #FFFFFF;
}

.badge-canvas {
  width: 100%;
  max-width: 410px;
  height: auto;
  border: 1px solid rgba(201, 184, 113, 0.45);
  border-radius: 4px;
  display: block;
}

.mission-complete-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.save-badge-btn {
  min-height: 44px;
  padding: 0 22px;
  background: #F6F2E2;
  color: #151816;
  border: 2px solid #C9B871;
  border-radius: 3px;
  font: 700 13px var(--font-mono);
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(246, 242, 226, 0.45);
}

.save-badge-btn:hover {
  background: #FFFFFF;
}

.mission-complete-study {
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid rgba(201, 184, 113, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mission-complete-study-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mission-complete-study-label {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.08em;
  color: #FFE9B0;
}

.study-tool-btn {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid rgba(201, 221, 224, 0.55);
  background: #1B2422;
  color: #EDF3EE;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.study-tool-btn:hover {
  background: #2C3835;
  border-color: #FFE9B0;
  color: #FFFFFF;
}

.mission-complete-study-note {
  margin: 0;
  font: 400 10px var(--font-mono);
  color: #B9C4BD;
  text-align: center;
}

/* Right Angled Screen: GHOST LOG */
.side-screen-right {
  position: absolute;
  left: 1020px;
  top: 84px;
  transform: perspective(900px) rotateY(-16deg);
  transform-origin: left center;
  border-radius: 6px;
  width: 220px;
  height: 424px;
  background: #0B0D0C;
  border: 2px solid #050605;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.95;
}

.side-heading--log {
  margin: 0;
  color: #C9D3CC;
}

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.log-lamp {
  width: 24px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 2px;
  border: 1px solid #000;
}

.log-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.log-name {
  font: 700 14px var(--font-sans);
  text-transform: uppercase;
  color: #E8F0EA;
  line-height: 1.1;
}

.log-status {
  font: 400 10px var(--font-mono);
}

.log-count {
  margin: auto 0 0;
  font: 400 24px var(--font-vt);
  color: #FFE9B0;
}

/* Compact Summary Strip (used in Tablet Portrait 820px and Phone 390px) */
.compact-summary-strip {
  display: none;
}
