/* The Eclipse App Admin. The catalog admin's look, as the tiler's console has it,
   so moving between the three is not a context switch: dark, dense, monospace. */
:root {
  --bg: #0b0b0c;
  --panel: #141417;
  --panel-2: #1c1c21;
  --line: #2a2a31;
  --text: #e6e6e8;
  --dim: #8b8b96;
  --accent: #6ee7a8;
  --accent-dim: #2f5f48;
  --warn: #f0a868;
  --danger: #ef6b6b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    monospace;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}
header.bar {
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
header.bar h1 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
header.bar .sub {
  color: var(--dim);
  font-size: 12px;
}
h1.title {
  font-size: 18px;
  margin: 8px 0 16px;
}
h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin: 28px 0 10px;
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-weight: 600;
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--panel-2);
  vertical-align: middle;
}
tr:hover td {
  background: var(--panel);
}
th.num,
td.num {
  text-align: right;
}
.dim {
  color: var(--dim);
}
.mono-sm {
  font-size: 12px;
  color: var(--dim);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 22px;
}
.k {
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.url {
  word-break: break-all;
}
.btn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 11px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.btn:hover:not([disabled]) {
  border-color: var(--accent-dim);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: default;
}
.btn.primary {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.btn.primary:hover:not([disabled]) {
  background: var(--accent-dim);
  color: var(--text);
}
.btn.danger {
  color: var(--danger);
  border-color: #5c2b2b;
}
.link {
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
}
.link:hover {
  color: var(--accent);
}
.pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
}
.pill.stale {
  color: var(--warn);
  border-color: #4a3a26;
}
.pill.current {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.state {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.state.queued {
  color: var(--dim);
}
.state.running {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.state.stalled {
  color: var(--warn);
  border-color: #4a3a26;
}
.state.succeeded {
  color: var(--accent);
}
.state.failed {
  color: var(--danger);
  border-color: #5c2b2b;
}
.err {
  color: var(--danger);
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 6px;
}
.problems {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--warn);
  font-size: 12px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  flex: 1;
}
input.in,
select.in,
textarea.in {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
  font: inherit;
  font-size: 13px;
}
input.in:focus,
textarea.in:focus {
  outline: none;
  border-color: var(--accent-dim);
}
textarea.in {
  width: 100%;
  min-height: 240px;
  font-size: 12px;
}
.split {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.6fr);
  gap: 20px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#map {
  height: 620px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
pre.log {
  white-space: pre-wrap;
  font-size: 11px;
  color: var(--dim);
  max-height: 320px;
  overflow: auto;
  margin: 0;
}
tr.shown td {
  background: var(--panel);
}
table.props td {
  padding: 3px 6px;
  font-size: 12px;
  word-break: break-all;
}
/* The overview: the catalog's eclipse list, with a row under each for every
   tileset type it can have. */
.tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 14px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 7px 14px;
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  margin-bottom: -1px;
}
.tab:hover {
  color: var(--text);
  text-decoration: none;
}
.tab.on {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
  border-bottom-color: var(--panel);
}
.tab .dim {
  font-weight: 400;
  margin-left: 4px;
}
.pill.solar {
  color: var(--warn);
  border-color: #4a3a26;
}
.pill.lunar {
  color: #9db8f0;
  border-color: #2b3a57;
}
.stars {
  letter-spacing: 0.12em;
}
table.eclipses tbody {
  border-bottom: 1px solid var(--line);
}
table.eclipses tr:hover td {
  background: none;
}
table.eclipses tbody:hover td {
  background: var(--panel);
}
table.eclipses tr.eclipse td {
  padding-top: 12px;
  font-weight: 600;
  border-bottom: 0;
}
table.eclipses tr.eclipse .mono-sm {
  font-weight: 400;
}
table.eclipses tr.sub td {
  padding: 3px 10px;
  border-bottom: 0;
}
table.eclipses tr.sub td:nth-child(3) {
  padding-left: 26px;
}
table.eclipses tr.sub:last-child td {
  padding-bottom: 12px;
}
table.eclipses tr.sub.none td {
  color: var(--dim);
}
a.btn {
  display: inline-block;
}
a.btn:hover {
  text-decoration: none;
}
.badge {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  white-space: nowrap;
}
.badge.built {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.badge.ready,
.badge.queued,
.badge.unbuilt,
.badge.missing {
  color: var(--dim);
}
.badge.missing {
  background: none;
  border-style: dashed;
}
.badge.running {
  color: var(--accent);
}
.badge.stale,
.badge.stalled,
.badge.blocked {
  color: var(--warn);
  border-color: #4a3a26;
}
.badge.failed {
  color: var(--danger);
  border-color: #5c2b2b;
}
/* Which database the page writes to, always in view: a local stack and
   production must never look alike. */
.target {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.target.local {
  color: var(--dim);
}
.target.prod {
  color: var(--warn);
  border-color: #4a3a26;
}
.badge.hero {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.badge.next {
  color: #9db8f0;
  border-color: #2b3a57;
}
.badge.shown {
  color: var(--accent);
}
.badge.hidden,
.badge.none {
  color: var(--dim);
  background: none;
  border-style: dashed;
}
.toggle {
  min-width: 64px;
}
td.areas {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.locales {
  display: grid;
  grid-template-columns: 42px 1fr 40px;
  gap: 6px 10px;
  align-items: center;
  max-width: 720px;
}
.locales label {
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
}
.locales .count {
  font-size: 11px;
  color: var(--dim);
  text-align: right;
}
.locales .count.over {
  color: var(--danger);
}
.note {
  color: var(--dim);
  font-size: 12px;
  margin: 8px 0 0;
}
.flash {
  font-size: 12px;
  margin-left: 8px;
}
.flash.ok {
  color: var(--accent);
}
.flash.bad {
  color: var(--danger);
}
.section-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.section-row > .panel {
  flex: 1;
  min-width: 300px;
}
tr.off td {
  color: var(--dim);
}
/* The list: date, event and slug read on one line; the areas line gives way. */
table.list td:nth-child(-n + 3) {
  white-space: nowrap;
}
table.list td.areas {
  max-width: 0;
  width: 100%;
}
