:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #112e32;
  background: #f6f7f3;
  font-size: 15px;
  --ink: #112e32;
  --muted: #52696a;
  --line: #d8dfd8;
  --paper: #fff;
  --mint: #91eed1;
  --deep: #082e32;
  --teal: #006954;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #267d9d;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px;
  background: #fff;
}
.skip:focus {
  top: 8px;
}
.loading {
  margin: 10vh auto;
  width: fit-content;
}
h1,
h2,
h3,
p,
dl,
fieldset,
ol,
ul {
  margin: 0;
}
h1 {
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.052em;
  font-weight: 580;
}
h2 {
  font-size: clamp(1.24rem, 2.5vw, 1.52rem);
  letter-spacing: -0.037em;
  font-weight: 610;
  line-height: 1.23;
}
h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  letter-spacing: -0.022em;
}
p,
li,
dt,
dd {
  line-height: 1.6;
}
main,
article,
section,
form,
.card,
.item-body {
  min-width: 0;
}
h1,
h2,
h3,
p,
dd,
code,
.item-body,
button,
a {
  overflow-wrap: anywhere;
}
button,
.button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  color: #fff;
  background: var(--deep);
}
button:hover,
.button:hover {
  background: #15484b;
}
button:disabled {
  cursor: progress;
  opacity: 0.7;
}
.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: #edf4ee;
}
.subtle {
  color: var(--muted);
  font-size: 0.91rem;
}
label:not(.check):not(.choice) {
  display: grid;
  gap: 7px;
  font-size: 0.91rem;
  font-weight: 620;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  border: 1px solid #bfcac3;
  border-radius: 8px;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  flex: none;
  margin: 2px 0 0;
}
.check,
.choice {
  display: flex;
  align-items: start;
  gap: 11px;
  line-height: 1.5;
}
.check {
  font-size: 0.94rem;
}
.choice {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}
.choice:has(:checked) {
  border-color: var(--teal);
  background: #edf8f1;
}
.choice strong,
.choice small {
  display: block;
}
.choice small {
  font-size: 0.91rem;
  color: var(--muted);
  white-space: pre-line;
}
fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 9px;
  font-weight: 620;
  font-size: 0.96rem;
}
.stack {
  display: grid;
  gap: 17px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.buttons {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.form-error {
  padding: 11px 13px;
  border-left: 3px solid #a24331;
  color: #843829;
  background: #fff2ec;
}
#notice {
  position: fixed;
  z-index: 5;
  bottom: 20px;
  right: 20px;
  padding: 14px 18px;
  max-width: min(510px, calc(100% - 40px));
  border: 1px solid #43736a;
  background: var(--deep);
  color: white;
  border-radius: 10px;
  box-shadow: 0 12px 25px #002d2a24;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
}
.login-art {
  background: var(--deep);
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 71px, #c6ffeb11 71px 72px),
    repeating-linear-gradient(90deg, transparent 0 71px, #c6ffeb11 71px 72px);
}
.orbit {
  height: clamp(270px, 42vw, 600px);
  aspect-ratio: 1;
  border: 1px solid #76a39a80;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px solid #76a39a50;
  border-radius: 50%;
}
.orbit::before {
  inset: 11%;
}
.orbit::after {
  inset: 25%;
}
.orbit img {
  width: 29%;
  z-index: 1;
}
.login-main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 25px;
  padding: clamp(30px, 7vw, 110px);
}
.login-main > * {
  width: 100%;
  max-width: 375px;
}
.login-main .wordmark {
  width: 123px;
  margin-bottom: 22px;
}
.login-main h1 {
  font-size: clamp(2.15rem, 4vw, 3.2rem);
}
.login-main form {
  display: grid;
  gap: 18px;
}
.login-main button {
  margin-top: 5px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.rail {
  background: var(--deep);
  color: white;
  padding: 36px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
}
.rail .brand {
  margin: 0 13px 10px;
  display: inline-flex;
  align-self: start;
}
.rail .wordmark {
  width: 120px;
  display: block;
}
.space-name {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 10px;
  border-block: 1px solid #346064;
  font-size: 0.89rem;
  color: #d0e8df;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 2px;
  flex: none;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a,
.rail button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  color: #d8ede6;
  border-radius: 8px;
  font-weight: 510;
  font-size: 0.94rem;
}
.nav a:hover,
.rail button:hover {
  background: #164549;
}
.nav a[aria-current="page"] {
  color: #123b35;
  background: var(--mint);
  font-weight: 660;
}
.ico {
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  width: 18px;
  text-align: center;
  flex: none;
}
.identity {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #346064;
}
.person {
  display: flex;
  gap: 10px;
  margin: 0 10px 7px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 650;
  color: #163d36;
  background: #bfe8cf;
}
.identity small {
  color: #bad6cb;
  display: block;
  font-size: 0.76rem;
  margin-top: 2px;
}
.rail button {
  background: none;
  min-height: 36px;
  border: 0;
  padding: 7px 12px;
}
.area {
  width: 100%;
  max-width: 1340px;
  padding: clamp(28px, 6vw, 84px) clamp(22px, 5vw, 68px);
  margin-inline: auto;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 34px;
}
.back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.87rem;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.85fr);
  gap: 20px;
  align-items: start;
}
.group {
  display: grid;
  gap: 20px;
}
.card {
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}
.card header a {
  font-size: 0.85rem;
  font-weight: 600;
}
.callout {
  border-color: #b8d7c4;
  background: #edf6ee;
}
.empty {
  color: var(--muted);
  font-size: 0.94rem;
}
.list {
  list-style: none;
  display: grid;
  padding: 0;
}
.list > li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.list > li:first-child {
  padding-top: 0;
  border-top: 0;
}
.list > li:last-child {
  padding-bottom: 0;
}
.item-title {
  font-weight: 620;
  color: var(--ink);
}
.item-title:hover {
  color: var(--teal);
}
.item-meta {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}
.action-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 5px;
  background: #edf2eb;
  color: #3d6250;
  font-weight: 600;
  font-size: 0.76rem;
  line-height: 1.5;
}
.banner {
  background: var(--deep);
  border-radius: var(--radius);
  color: #f5f8ef;
  padding: clamp(20px, 3.5vw, 38px);
  margin-bottom: 22px;
}
.banner .subtle {
  color: #bdd8ce;
}
.banner h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-block: 4px 10px;
}
.fact {
  border-top: 1px solid var(--line);
  padding-block: 10px;
}
.fact:first-child {
  padding-top: 0;
  border-top: 0;
}
.fact:last-child {
  padding-bottom: 0;
}
.fact dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.fact dd {
  margin: 0;
  font-weight: 560;
}
.layout-form {
  max-width: 800px;
}
.formset {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfa;
}
.option-caption {
  font-weight: 680;
  color: var(--teal);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.body-text {
  white-space: pre-line;
}
.receipt-id {
  font-family: ui-monospace, monospace;
  color: var(--muted);
  font-size: 0.79rem;
}
.summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
}
details[open] .summary {
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 192px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 12px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .area {
    padding: 32px 22px;
  }
}
@media (max-width: 650px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-main {
    padding: 35px 24px;
    align-content: center;
    justify-content: center;
    min-height: 100svh;
  }
  .login-main .wordmark {
    margin-bottom: 12px;
  }
  .shell {
    display: block;
  }
  .rail {
    min-height: auto;
    padding: 13px 15px 11px;
    gap: 12px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
  }
  .rail .brand {
    margin: 0;
    align-self: center;
  }
  .rail .wordmark {
    width: 83px;
  }
  .space-name {
    padding: 0;
    border: 0;
    font-size: 0.77rem;
    grid-row: 2;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    grid-column: 1/-1;
    grid-row: 3;
  }
  .nav a {
    min-height: 37px;
    padding: 6px 9px;
    font-size: 0.79rem;
    gap: 5px;
  }
  .identity {
    margin: 0;
    padding: 0;
    border: 0;
    grid-column: 2;
    grid-row: 1/3;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .person {
    margin: 0;
    font-size: 0.8rem;
  }
  .identity small,
  .person .avatar {
    display: none;
  }
  .rail button {
    font-size: 0.78rem;
    padding: 5px;
    min-height: 36px;
  }
  .rail button .ico {
    display: none;
  }
  .area {
    padding: 26px 16px;
  }
  .pagehead {
    margin-bottom: 22px;
    gap: 12px;
  }
  .grid,
  .group {
    gap: 14px;
  }
  .cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    padding: 18px;
  }
  .pagehead .button {
    font-size: 0.88rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s,
      color 0.15s;
  }
}
.area:focus,
.login-main:focus {
  outline: none;
}
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  top: -20%;
  right: 0;
  height: 150%;
  aspect-ratio: 1;
  background: url("/static/symbol.svg") center/contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: -1;
}
