:root {
  --nav: #12251f;
  --ink: #192a24;
  --muted: #68766f;
  --paper: #f5f3ec;
  --white: #fff;
  --orange: #e26a32;
  --green: #24664f;
  --line: #dbe0da;
  --blue: #dceae5;
  --danger: #a93f32;
  --shadow: 0 12px 35px rgba(18, 37, 31, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--nav);
  color: white;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.logo {
  color: white;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}
.logo span {
  display: block;
  color: #82c4a8;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
}
aside nav {
  margin-top: 48px;
  display: grid;
  gap: 7px;
}
aside nav a,
aside .link {
  color: #dce8e3;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
}
aside nav a:hover {
  background: #ffffff10;
  text-decoration: none;
}
aside form {
  margin-top: auto;
}
.link {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.shell {
  margin-left: 240px;
  min-height: 100vh;
}
.shell.signed-out {
  margin: 0;
}
header {
  padding: 38px clamp(28px, 5vw, 72px) 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
header h1 {
  margin: 3px 0 0;
  font:
    750 clamp(30px, 4vw, 48px)/1.1 Georgia,
    serif;
}
.overline {
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.user {
  color: var(--muted);
  font-size: 14px;
}
main {
  padding: 36px clamp(28px, 5vw, 72px) 80px;
  max-width: 1500px;
  margin: auto;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h2 {
  font:
    750 30px/1.15 Georgia,
    serif;
}
h3 {
  line-height: 1.25;
}
.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  padding: 12px 19px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
}
.button:hover {
  text-decoration: none;
  background: #174b39;
}
.button.secondary {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.narrow {
  max-width: 600px;
  margin: 40px auto;
}
.toolbar,
.publication-head,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}
.publication-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.publication-card,
.cards article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.publication-card {
  color: var(--ink);
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.publication-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.publication-card footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.status,
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-live {
  background: #d9eddd;
  color: #1d6134;
}
.status-failed {
  background: #f7ded8;
  color: #8b2d22;
}
.empty {
  padding: 70px;
  max-width: 760px;
  text-align: center;
  margin: auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.2fr);
  gap: 48px;
  align-items: start;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr minmax(360px, 0.8fr);
  gap: 8vw;
  align-items: center;
  padding: 8vw;
  background: linear-gradient(135deg, #10251e 0 52%, var(--paper) 52%);
  color: white;
}
.auth > div {
  max-width: 650px;
}
.auth > div h1 {
  font:
    800 clamp(48px, 7vw, 86px)/0.98 Georgia,
    serif;
}
.auth .panel {
  color: var(--ink);
}
label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  margin: 15px 0;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd4cd;
  border-radius: 10px;
  padding: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea {
  resize: vertical;
}
small,
.fine {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.message {
  padding: 16px 20px;
  border-left: 3px solid var(--green);
  margin: 12px 0;
}
.message.user {
  background: #f5f7f4;
  border-radius: 0 12px 12px 0;
}
.message p {
  margin: 5px 0;
}
.processing {
  text-align: center;
  padding: 90px;
}
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.publication-head > div:first-child {
  max-width: 700px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  min-width: 120px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.metric strong {
  font-size: 28px;
}
.notice {
  padding: 14px 18px;
  background: #e7efe9;
  border-radius: 10px;
  margin-bottom: 24px;
}
.notice.danger,
.error {
  background: #f8e3df;
  color: var(--danger);
}
.tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 18px;
  overflow: auto;
  background: rgba(245, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  margin-bottom: 24px;
}
.tabs a {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
section[id] {
  scroll-margin-top: 70px;
  margin: 64px 0;
}
.lead {
  font-size: 20px;
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}
dt {
  font-weight: 750;
}
dd {
  margin: 0;
}
.section-title > p {
  max-width: 480px;
  color: var(--muted);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}
.choice {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  margin: 0;
}
.choice input {
  width: auto;
}
.choice span {
  display: block;
}
.choice small {
  margin-top: 5px;
}
.choice-grid button {
  grid-column: 1/-1;
  justify-self: start;
}
.availability {
  display: inline-block;
  border-radius: 99px;
  padding: 2px 7px;
}
.available {
  background: #daf1df;
  color: #23663a;
}
.registered {
  background: #eee;
  color: #666;
}
.table-wrap {
  overflow: auto;
  background: white;
  border-radius: 15px;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
td small {
  margin-top: 5px;
  max-width: 420px;
}
.risk {
  color: var(--danger);
  margin-top: 8px;
}
.launch {
  background: var(--nav);
  color: white;
  border-radius: 20px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
}
.launch label {
  font-weight: 400;
  display: flex;
  grid-template-columns: auto 1fr;
}
.launch input {
  width: auto;
}
.person {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.person small {
  display: block;
}
.copybox {
  padding: 14px;
  background: #eff1ed;
  border-radius: 10px;
  word-break: break-all;
  margin: 18px 0;
}
details summary {
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 900px) {
  aside {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  aside nav {
    margin: 0;
    display: flex;
    flex: 1;
  }
  aside form {
    margin: 0;
  }
  .shell {
    margin: 0;
  }
  .split,
  .auth,
  .launch {
    grid-template-columns: 1fr;
  }
  .auth {
    background: var(--nav);
  }
  .publication-head {
    align-items: start;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  aside {
    padding: 16px;
    overflow: auto;
  }
  aside nav a {
    display: none;
  }
  main,
  header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .empty {
    padding: 35px 10px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .section-title {
    display: block;
  }
  .auth {
    padding: 28px;
  }
  .auth > div h1 {
    font-size: 48px;
  }
}

@media (min-width: 901px) {
  .auth {
    grid-template-columns: 1.1fr minmax(360px, 0.9fr);
    background: linear-gradient(90deg, #10251e 0 58%, var(--paper) 58%);
  }

  .auth > div {
    max-width: 590px;
  }
  .auth > div h1 {
    font-size: clamp(48px, 6vw, 80px);
  }
}

.article-review {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.article-review .review-sidebar {
  position: sticky;
  top: 20px;
  width: auto;
  display: block;
  background: none;
  color: inherit;
  padding: 0;
  z-index: auto;
}
.article-review .review-sidebar .panel {
  margin-bottom: 16px;
}
.editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
}
.sources {
  padding-left: 20px;
}
.sources li {
  margin-bottom: 12px;
}
.qr {
  width: 220px;
  height: 220px;
  background: white;
  border-radius: 14px;
  padding: 8px;
}
.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}
.recovery-codes code {
  background: #eef1ec;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .article-review {
    grid-template-columns: 1fr;
  }
  .article-review .review-sidebar {
    position: static;
    display: block;
  }
}
