* { 
    margin: 0;
    padding: 0;
}

body {
    background-color: #012;
    font-family: "Lekton", monospace;
    line-height: 1.15;
}

#app {
    margin: 1em auto;
    width: 80%;
}

h1, h2 {
    color: #369;

    font-family: "Share Tech Mono", monospace;
    font-weight: normal;
    text-transform: uppercase;
}

.panel {
    border: 1px solid #135;
    border-radius: 5px;
    margin-bottom: 1em;
}

div#slider {
    padding: 1em 0;
}

div#status {
    padding: 1em;
    color: #fff;
}

div#contacts {
    padding: 1em;
    color: #fff;

    height: 600px;
    overflow-y: auto;
}

div#contacts h2 {
    margin-bottom: 0.5em;
}

div.contact-entry, 
div.contact-meta, 
div.contact-basic, 
div.contact-extras {
    display: flex;
}

span.contact-metric {
    display: inline-flex;
    max-width: 250px;
}

span.contact-metric {
    gap: 0;
}

div.contact-entry {
    flex-direction: column;
    margin-bottom: 1em;
    border-radius: 5px;
}

div.contact-meta, 
div.contact-notes, 
div.contact-extras,
div.contact-srs {
    padding: 1em 1em 0.5em 1em;
    gap: 2em;
}

span.contact-metric {
    flex-direction: column;
}

span.metric-label, button.srs {
    text-transform: uppercase;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8em;
    color: #aaa;
}

button.srs {
    background-color: #024;
    border: 1px solid #135;
    border-radius: 5px;
    padding: 0.5em;
    align-self: center;
    color: #369;
    margin-right: 5em;
}

.contact-class, .contact-name {
    font-size: 1.25em;
    font-weight: 700;
}

.contact-name {
    padding-right: 2em;
}

div.contact-basic { 
    align-items: baseline;
    flex-grow: 2; 
}

.contact-type {
    padding: 0.25em 0.5em;
    border-radius: 5px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8em;
    text-transform: uppercase;
}

.contact-notes, .contact-srs {
    border-top: 1px solid #123;
    margin-bottom: 1em;
}

.contact-extras {
    flex-wrap: wrap;
    gap: 1em;
    border-top: 1px solid #123;
}

.band-active {
    border: 1px solid #135;
    border-radius: 15px;
    background-color: #33669920;
}

button.srs.contact-expanded, 
div.contact-expanded { display: none; }

.band-active button.srs.contact-expanded, 
.band-active div.contact-expanded {
    display: flex;
}

canvas {
    display: block;
    margin: 0 auto;
}

#contacts-header { display: flex; margin-bottom: 1.5em; }
#contacts-header h2 { flex-grow: 2; }

#discourse-export { align-self: center; }
button#discourse-export {
    border: 1px solid #135;
    border-radius: 5px;
    padding: 0.25em 0.5em;
    background-color: #33669944;
    color: #fff;
    font-size: 1.25em;
}

.srs-dot {
  color: #00ffff;
  margin-right: 0.5em;
}

.srs-bar {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  margin-left: 0.5em;
}

.srs-segment {
  width: 5px;
  height: 10px;
  background: #013;
  border-radius: 2px;
  transition: background 0.1s ease;
}

.srs-segment.lit {
  background: #00ffff;
  box-shadow: 0 0 4px #00ffffaa;
}

.unscanned {
  display: none !important;
}

button:hover { cursor: pointer; }
a { color: #239edd; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#close-modal {
    padding: 0.25em 0.5em;
}

.hidden {
  display: none;
}

.modal-content {
  background: #111;
  color: #eee;
  padding: 16px;
  border-radius: 8px;
  width: 80%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#export-textbox {
  width: 90%;
  height: 300px;
  background: #000;
  color: #0f0;
  font-family: monospace;
  padding: 10px;
  resize: vertical;
}