:root {
  color-scheme: dark;
  background: #0b1020;
  color: #e6ebf5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #0b1020;
}

body {
  margin: 0;
  background: #0b1020;
  color: #e6ebf5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: #4ade80;
}

:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0 4px;
}

.site-name {
  color: #e6ebf5;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a[aria-current="page"] {
  color: #e6ebf5;
  text-decoration: none;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0.6rem 0;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.4rem 0 0.4rem;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 1rem 0 0.3rem;
}

p {
  margin: 0.5rem 0;
}

ul {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
}

.muted,
.footnote,
caption {
  color: #9aa6bf;
}

.footnote {
  font-size: 0.9rem;
}

.warning {
  color: #f59e0b;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 12px 0;
}

.tool-row > * {
  min-width: 0;
}

.zip-field {
  flex: 1 1 12rem;
  color: #9aa6bf;
  font-size: 0.875rem;
}

input {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: #12182e;
  color: #e6ebf5;
  border: 1px solid #9aa6bf;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 1rem;
}

button {
  font: inherit;
  font-weight: 700;
  background: #4ade80;
  color: #0b1020;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  flex: 1 1 10rem;
  white-space: normal;
}

button.secondary {
  background: transparent;
  color: #e6ebf5;
  border: 1px solid #9aa6bf;
}

.verdict {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.4rem 0;
}

.verdict-go,
.status-likely {
  color: #22c55e;
}

.verdict-maybe,
.status-possible {
  color: #f59e0b;
}

.verdict-no,
.status-unlikely {
  color: #64748b;
}

.status-likely,
.status-possible {
  font-weight: 700;
}

.status-unknown,
.status-not_dark {
  color: #9aa6bf;
}

.kp-now {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 700;
  color: #4ade80;
  margin: 0.2rem 0;
}

.night-card {
  border: 1px solid #243049;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
}

.alert {
  border-top: 1px solid #243049;
  padding: 8px 0;
}

.alert-text {
  white-space: pre-line;
  font-family: inherit;
  overflow-wrap: anywhere;
  margin: 0;
}

summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.kp-chart {
  display: block;
  width: 100%;
  height: auto;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #243049;
  vertical-align: top;
}

th {
  color: #9aa6bf;
  font-weight: 600;
}

caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 8px;
  font-size: 0.9rem;
}

footer {
  margin-top: 2.5rem;
  padding-bottom: 2rem;
  color: #9aa6bf;
  font-size: 0.875rem;
}

footer a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
