* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #0b1120;
  color: #edf3ff;
  font:
    16px/1.5 Inter,
    system-ui,
    sans-serif;
}
header,
main {
  max-width: 1280px;
  margin: auto;
  padding: 20px clamp(16px, 4vw, 60px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #293c59;
  gap: 14px;
  flex-wrap: wrap;
}
header strong {
  font:
    700 24px Georgia,
    serif;
  color: #c4dcff;
}
nav,
.row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
button,
select,
input,
textarea,
.link {
  font: inherit;
  color: inherit;
  border: 1px solid #405575;
  background: #1b2b47;
  border-radius: 9px;
  padding: 9px 13px;
}
button,
.link {
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.link:hover {
  border-color: #93bcff;
  background: #253c61;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #9ac7ff;
}
button.primary,
nav .selected {
  background: #a1c6ff;
  color: #101c35;
  border-color: #a1c6ff;
  font-weight: 650;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
main {
  padding-top: 32px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 32px clamp(20px, 4vw, 54px);
  border: 1px solid #415d88;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 86% 130%, #435f97 0, transparent 58%),
    linear-gradient(100deg, #172949, #243b65);
}
.hero:after {
  content: "♠";
  position: absolute;
  right: 5%;
  top: -90px;
  font: 300px Georgia;
  color: #b6cfff21;
  transform: rotate(15deg);
  pointer-events: none;
}
h1,
h2,
h3,
p {
  margin: 0 0 12px;
}
h1 {
  font:
    normal clamp(36px, 6vw, 72px) / 1.07 Georgia,
    serif;
  letter-spacing: -0.045em;
}
h2 {
  font:
    normal 30px Georgia,
    serif;
}
h3 {
  font-size: 18px;
}
.eyebrow,
small,
.muted,
label {
  color: #b3c2d9;
}
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 650;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.panel,
details {
  padding: 20px;
  border: 1px solid #293c59;
  border-radius: 16px;
  background: #141f34;
  margin-bottom: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.card {
  text-align: left;
  display: grid;
  gap: 6px;
  min-height: 120px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tone, #94b8ec);
  color: #15213b;
  font: 25px Georgia;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
label {
  display: grid;
  gap: 4px;
  font-size: 14px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
}
input[type="checkbox"] {
  width: auto;
  justify-self: start;
}
textarea {
  min-height: 85px;
}
.stack > * + * {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.feed {
  max-height: 48vh;
  overflow: auto;
}
.entry {
  padding: 10px 0;
  border-bottom: 1px solid #293c59;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry strong {
  color: #bdd6ff;
}
.private {
  border-left: 3px solid #bd92b0;
  padding-left: 9px;
}
dialog {
  border: 1px solid #5977a4;
  border-radius: 18px;
  background: #14223b;
  color: inherit;
  width: min(640px, 95vw);
  max-height: 88vh;
  padding: 24px;
}
dialog::backdrop {
  background: #040818cf;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #c3d9fc;
  color: #10203f;
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 5;
  max-width: 92vw;
}
#notice:empty {
  display: none;
}
.stat {
  font: 30px Georgia;
  color: #b5d3ff;
}
.space {
  justify-content: space-between;
}
.off {
  opacity: 0.55;
}
@media (max-width: 780px) {
  .layout {
    grid-template-columns: 1fr;
  }
  header {
    padding: 14px;
  }
  nav button {
    padding: 7px;
  }
  .hero {
    padding: 22px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
