:root {
  --ink: #15192e;
  --ink-2: #222844;
  --paper: #fbf6ef;
  --muted: rgba(251, 246, 239, 0.6);
  --faint: rgba(251, 246, 239, 0.38);
  --line: rgba(251, 246, 239, 0.09);
  --hover: rgba(251, 246, 239, 0.05);
  --fill: rgba(251, 246, 239, 0.12);
  --indigo: #5050c8;
  --indigo-2: #6262dc;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 15px/1.4 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px 40px;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: 600 44px/1 Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
}
/* The ParallelOS mark; its navy tile blends into the page. */
.mark { width: 1.1em; height: 1.1em; margin-left: -0.12em; flex: none; }

#status {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
#status.bad { color: #ff9c8f; }

button { font: inherit; color: inherit; cursor: pointer; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--indigo);
  color: var(--paper);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.btn:hover { background: var(--indigo-2); }

/* Filters */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pills { display: flex; gap: 6px; flex-wrap: wrap; }

.pill {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.pill span { opacity: 0.6; margin-left: 2px; font-variant-numeric: tabular-nums; }
.pill:hover { color: var(--paper); background: var(--hover); }
.pill[aria-pressed="true"] { background: var(--fill); color: var(--paper); }
#open { margin-right: auto; }

#search {
  width: 240px;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--hover);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  outline: none;
}
#search::placeholder { color: var(--faint); }
#search:focus { background: var(--fill); }

/* Table */

.wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

tbody tr:hover { background: rgba(251, 246, 239, 0.025); }

/* Keep the pod name in view when the table scrolls sideways. */
th:first-child, td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--ink);
}

input, select {
  display: block;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 11px 10px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  outline: none;
  border-radius: 6px;
  text-overflow: ellipsis;
}
input:hover, select:hover { background: var(--hover); }
input:focus, select:focus {
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--indigo-2);
  text-overflow: clip;
}
td input[data-key="pod"] { font-weight: 500; }
input.faint { color: var(--faint); }
input.error, select.error { box-shadow: inset 0 0 0 1px #ff9c8f; }
input::-webkit-calendar-picker-indicator { display: none !important; }

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
select[data-v=""], select[data-v="Not needed"] { color: var(--faint); }
select[data-v="No"] { color: #c9c9ff; }
select option { background: var(--ink-2); color: var(--paper); }

/* "No" reads as a small indigo marker so gaps stand out. */
td:has(select[data-v="No"]) { position: relative; }
td:has(select[data-v="No"])::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 14px;
  margin-top: -7px;
  border-radius: 2px;
  background: var(--indigo-2);
  pointer-events: none;
}

.end { width: 40px; text-align: center; }

.remove {
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
tr:hover .remove, .remove:focus-visible { opacity: 1; }
.remove:hover { color: var(--paper); background: var(--hover); }
@media (hover: none) { .remove { opacity: 1; } }

.empty {
  padding: 40px 10px;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  font-size: 13px;
}
footer form { margin: 0; }
footer .who { margin-left: auto; color: var(--faint); }
footer a, .link {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
}
footer a:hover, .link:hover { color: var(--paper); }

:focus-visible { outline: 2px solid var(--indigo-2); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline: none; }

/* Sign-in page */

body.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.login > div {
  display: grid;
  gap: 14px;
  width: 280px;
  max-width: 100%;
}
.login h1 { margin-bottom: 12px; }
.error { margin: 0; color: #ff9c8f; font-size: 14px; }

@media (max-width: 640px) {
  main { padding: 28px 16px 32px; }
  h1 { font-size: 34px; }
  #search { width: 100%; }
  #open { margin-right: 0; }
}
