body {
  background-color: #1d1e1e;
  font-family: "Fira Sans", sans-serif;
}

h1 {
  color: yellow;
  padding: 5px 0 0 15px;
}

i {
  margin-right: 0.5em;
}

.planning-editor {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 0 20px;
}

.editor-header, .panel-heading, .editor-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  color: yellow;
  font-size: .78rem;
  font-weight: bold;
  margin: 18px 0 4px 15px;
}

.subtitle, .panel-heading p {
  color: rgba(255, 255, 255, 0.6);
  margin: 8px 0 0 15px;
}

.connection-state, .row-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: .85rem;
  font-weight: bold;
}

.planning-page .connection-state {
  margin-right: 15px;
}

.planning-panel {
  background: #1e1e1e;
  border: 1px solid #333;
  margin: 20px 15px 0;
  padding: 15px;
}

h2 { 
  color: yellow; 
  margin: 0; 
}

.schedule-head, .planning-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 130px 1fr 42px;
}

.schedule-head {
  color: rgba(255, 255, 255, 0.5);
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .1em;
  margin-top: 34px;
  text-transform: uppercase;
}
.planning-row { 
  margin-top: 8px; 
}

.planning-row input {
  background: #222;
  border: 1px solid #333;
  border-radius: 0.15em;
  box-sizing: border-box;
  color: #eee;
  font: inherit;
  height: 42px;
  margin: 0;
  padding: 0 10px;
  width: 100%;
}

.planning-row input:focus { 
  border-color: #04AA6D; 
  outline: 1px solid #04AA6D; 
}

.planning-row.past-activity input {
  background: #3a2b1f;
  border-color: #8a5a2b;
  color: rgba(255, 255, 255, 0.62);
}

.planning-row.past-activity .remove-row { 
  color: rgba(255, 255, 255, 0.35);
}

.remove-row {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.5rem;
}

.remove-row:hover { 
  color: yellow; 
}

.add-row, .save-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: bold;
  padding: 13px 18px;
}

.add-row { 
  background: #04AA6D; 
  color: white; 
  margin-top: 18px; 
}

.add-row:hover { 
  background: #038a59; 
}

.save-button { 
  background: #04AA6D; 
  color: white; 
}

.save-button:hover { 
  background: #038a59; 
}

.editor-actions { 
  border-top: 1px solid #333; 
  margin-top: 30px; 
  padding-top: 24px; 
}

#save-status { 
  color: rgba(255, 255, 255, 0.6); 
  font-size: .9rem; 
}

footer {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8em;
  margin-top: 2em;
  padding-top: 5px;
  text-align: center;
}

.departure-page footer {
  padding-left: 15px;
  text-align: left;
}

.planning-page footer {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
  padding-left: 15px;
  text-align: left;
}

a {
  color: rgba(255, 255, 255, 0.3);
}

.planning-row input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.departure-board {
  padding: 0.36em;
  display: inline-block;
  line-height: 1.3em;
  background: #1e1e1e;
  border-radius: 0.21em;
  color: #eee;
  font-size: 30px;
  font-family: "Fira Sans", monospace, sans-serif;
  perspective: 300px;
}

.departure-board .character {
  display: inline-block;
  width: 1em;
  height: 1.3em;
  margin: 0 .12em;
  text-align: center;
  font-size: 30px;
  font-family: inherit;
  background: #222;
  color: #eee;
  border-radius: 0.15em;
  border: 1px solid #333;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.7),
    inset 0 -.14em 0 rgba(0,0,0,.7),
    inset .14em 0 .28em rgba(0,0,0,.9),
    inset -.14em 0 .28em rgba(0,0,0,.9);
  position: relative;
  line-height: 1.3em;
  vertical-align: middle;
  transition: transform 0.28s cubic-bezier(.4,2,.6,1), background 0.09s;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
}

.departure-board .character:after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(to right, #444, #222, #444);
  opacity: 0.5;
  z-index: 2;
}

.departure-board .character.flipping {
  transform: rotateX(80deg);
  background: #333;
  color: #ccc;
}

.departure-board .character {
  /* Ensure spaces look like tiles */
  min-width: 1em;
}

@media (max-width: 620px) {
  .planning-editor { padding: 0 0 20px; }
  .editor-header { align-items: flex-start; flex-direction: column; }
  .planning-panel { margin-top: 20px; }
  .schedule-head, .planning-row { grid-template-columns: 92px 1fr 30px; gap: 7px; }
  .planning-row input { padding: 0 9px; }
  .editor-actions { align-items: stretch; flex-direction: column; }
}