:root {
  color-scheme: dark;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #e9edef;
  background: #101214;
  font-synthesis: none;
  --muted: #abb4bb;
  --line: #394047;
  --ice: #b8d2df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
header {
  border-bottom: 1px solid var(--line);
  background: #0e1012;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.wordmark {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.065em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}
.header-info,
footer {
  font-size: 0.82rem;
  color: var(--muted);
}
main {
  flex: 1;
  padding: clamp(36px, 7vw, 92px) 0 36px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  letter-spacing: -0.07em;
  line-height: 1.01;
  font-weight: 660;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}
p {
  line-height: 1.55;
}
p.sub,
.muted {
  color: var(--muted);
}
p.sub {
  margin: 18px 0;
  max-width: 52ch;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: start;
  gap: clamp(30px, 7vw, 110px);
}
.identity {
  height: 125px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}
.identity img {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 0 24px #53667560);
}
.panel {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  background: #191c1f;
  border-radius: 11px;
}
.panel + .panel,
.section {
  margin-top: 24px;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  color: #dae1e6;
  font-size: 0.9rem;
}
input,
select,
button,
.button {
  font: inherit;
  border-radius: 5px;
}
input,
select {
  width: 100%;
  background: #101315;
  color: #f7f8f9;
  border: 1px solid #53606b;
  padding: 12px 13px;
  min-height: 44px;
}
input[readonly] {
  color: var(--ice);
}
button,
.button {
  border: 1px solid transparent;
  background: #e2e7e9;
  color: #15191b;
  font-weight: 650;
  padding: 11px 17px;
  min-height: 42px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
button:hover,
.button:hover {
  background: #fff;
}
button.secondary,
.button.secondary {
  color: #d2dce2;
  border-color: #505a63;
  background: transparent;
}
button.secondary:hover,
.button.secondary:hover {
  background: #292f34;
}
button:disabled {
  opacity: 0.54;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 3px;
}
.actions,
.headline,
.tabs,
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.headline {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.tabs {
  border-bottom: 1px solid var(--line);
  margin: 30px 0 18px;
}
.tabs button {
  background: none;
  color: var(--muted);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
}
.tabs button[aria-pressed='true'] {
  color: white;
  border-bottom-color: var(--ice);
}
.empty {
  padding: 22px 0;
  color: var(--muted);
}
.lead {
  color: var(--ice);
  font-weight: 600;
  margin-bottom: 8px;
}
.panel h2 {
  margin-bottom: 16px;
}
.panel .sub {
  margin-top: 2px;
}
.panel .actions {
  margin-top: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.grid > .panel {
  margin: 0;
}
.status {
  display: inline-block;
  padding: 4px 9px;
  background: #283037;
  border: 1px solid #4b555e;
  color: #dce6ec;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.status.paid,
.status.active {
  color: #bfe6d8;
  background: #20382f;
  border-color: #436853;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #1b2024;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
td code {
  display: block;
  overflow-wrap: anywhere;
  min-width: 110px;
  max-width: 250px;
  color: #d1dce3;
}
.pagination {
  margin-top: 12px;
}
details {
  border: 1px solid var(--line);
  background: #191d20;
  border-radius: 7px;
  padding: 15px 18px;
  margin-top: 12px;
}
details > form {
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
#notice:empty {
  display: none;
}
#notice {
  border-left: 3px solid var(--ice);
  padding: 12px 16px;
  background: #20262c;
  margin-bottom: 18px;
  color: #eef4f6;
}
#notice.error {
  border-color: #d99c8e;
  color: #ffd3c8;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
footer span {
  margin-left: 16px;
}
.confirm {
  margin-top: 15px;
  background: #202a30;
  padding: 14px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.confirm label {
  margin-top: 10px;
}
.help {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.tab-form {
  display: grid;
  gap: 20px;
}
@media (max-width: 740px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .identity {
    display: none;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .bar {
    min-height: 60px;
  }
  .headline h1 {
    font-size: 2.7rem;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    padding-inline: 10px;
  }
  .panel {
    padding: 20px;
  }
  .header-info {
    max-width: 60%;
    text-align: right;
    overflow-wrap: anywhere;
  }
  td,
  th {
    padding: 10px;
  }
  .auth-grid .sub {
    margin: 12px 0 0;
  }
}
