:root {
  --bg: #ffffff;
  --ink: #111;
  --muted: #5d5d5d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink);
  background: var(--bg);
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.page-loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.responsive-guard {
  display: none;
}

.responsive-guard__art {
  width: min(203px, 72vw);
}

.responsive-guard__art svg {
  display: block;
  width: 100%;
  height: auto;
}

.responsive-guard__art img {
  display: block;
  width: 100%;
  height: auto;
}

.responsive-guard__text {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-transform: lowercase;
}

.page-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.24;
  animation: pageLoaderDotPulse 0.9s ease-in-out infinite;
}

.page-loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.page-loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes pageLoaderDotPulse {
  0%, 100% {
    opacity: 0.24;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.top-toast-layer {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.top-toast {
  width: min(360px, calc(100vw - 32px));
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #111111;
  color: #ffffff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.top-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.top-toast.is-hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.shell {
  max-width: 752px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.shell.is-auth-shell {
  padding-top: 0;
}
.panel {
  border: 1px solid var(--ink);
  background: var(--bg);
  padding: 28px 30px;
}
.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.account-head {
  display: grid;
  gap: 4px;
}
.account-title {
  margin: 0;
  color: #000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: lowercase;
}
.account-email {
  color: #000;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  word-break: break-word;
  opacity: 0.5;
}
.account-logout {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.account-logout svg {
  display: block;
  width: 24px;
  height: 24px;
}
.account-logout svg [opacity] {
  transition: opacity 0.15s ease;
}
.account-logout:hover,
.account-logout:focus-visible {
  opacity: 1;
}

@media (max-width: 679px) {
  html,
  body {
    overflow: hidden;
  }

  .shell {
    display: none;
  }

  .responsive-guard {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(72px, 16vh, 140px) 24px 24px;
    background: var(--bg);
  }
}
.account-logout:hover svg [opacity],
.account-logout:focus-visible svg [opacity] {
  opacity: 1;
}
.account-logout:focus-visible {
  outline: none;
}
.auth-input::placeholder,
.auth-input[type="password"]::placeholder {
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
  opacity: 0.5;
}
.top-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.primary-link {
  border: 1px solid var(--ink);
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  text-transform: lowercase;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  appearance: none;
  transition: border-color 0.35s ease;
}

.primary-link.is-copied .icon {
  color: #00c670;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.primary-link.is-copied {
  border-color: #00c670;
}

.primary-link .icon {
  transition: color 0.35s ease, opacity 0.35s ease;
}
.tabs {
  margin-top: 20px;
}
.tab-head {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.tab-btn {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-transform: lowercase;
  opacity: 0.32;
}
.tab-btn.is-active {
  opacity: 1;
}
.cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.card {
  border: 1px solid var(--ink);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.report-score {
  min-width: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
}
.report-card .card-main {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  gap: 16px;
}
.report-card .card-info {
  display: grid;
  gap: 4px;
}
.report-card .title {
  margin-top: 0;
}
.card-info {
  min-width: 0;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.title {
  font-size: 17px;
  line-height: 1;
  text-transform: lowercase;
  margin-top: 5px;
}
.row-actions {
  margin-left: auto;
  margin-right: 4px;
  padding: 0;
  display: flex;
  gap: 6px;
}
.icon-btn,
.action-btn,
.select {
  border: 1px solid var(--ink);
  background: var(--bg);
  height: 50px;
  font: inherit;
}
.action-btn {
  min-width: 145px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-transform: lowercase;
}
.icon-btn {
  width: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn[disabled] {
  cursor: default;
}
.linked-pair .icon-btn[disabled] {
  opacity: 1;
  border-color: #00a82a;
  color: #00a82a;
}
.icon-btn svg,
.action-btn svg,
.primary-link svg {
  width: 20px;
  height: 20px;
  display: block;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.picker-row {
  margin-top: 8px;
}
.select-wrap {
  position: relative;
}
.select {
  min-width: 280px;
  width: 100%;
  padding: 0 44px 0 12px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.select::-ms-expand {
  display: none;
}
.select-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.linked-pair {
  display: grid;
  gap: 0;
}
.linked-pair .card + .card {
  margin-top: -1px;
}
.linked-pair .card:not(.is-linked) {
  border-bottom-color: transparent;
}
.linked-pair .card.is-linked {
  border-top: 1px solid transparent;
  position: relative;
}
.linked-pair .card.is-linked::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: rgba(28, 27, 31, 0.1);
  pointer-events: none;
}
.empty {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
  margin-top: 18px;
  text-transform: lowercase;
}
.auth-panel {
  width: auto;
  margin: 0;
}
.auth-gate-head {
  display: grid;
  gap: 0;
}
.auth-gate-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  text-transform: lowercase;
}
.auth-copy,
.auth-error {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.auth-gate {
  width: min(100%, 480px);
  margin: 118px auto 0;
  justify-self: center;
  gap: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}
.auth-form {
  display: grid;
  gap: 8px;
}
.auth-fields,
.auth-secondary {
  display: grid;
  gap: 8px;
}
.auth-submit,
.auth-input,
.auth-secondary-btn {
  border: 1px solid var(--ink);
  background: var(--bg);
  font: inherit;
}
.auth-submit,
.auth-secondary-btn {
  min-height: 51px;
  padding: 0 12px;
  font-size: 17px;
  font-weight: 500;
  text-transform: lowercase;
  cursor: pointer;
}
.auth-submit {
  background: var(--ink);
  color: var(--bg);
}
.auth-field {
  display: block;
}
.auth-label {
  display: none;
}
.auth-input {
  width: 100%;
  min-height: 51px;
  padding: 0 12px;
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
  border-radius: 0;
}
.auth-error {
  color: #b42318;
}
.auth-secondary-copy {
  margin: 6px 0 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
}
.dots-loader {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.dots-loader span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.3;
  animation: dotPulse 0.9s infinite;
}
.dots-loader span:nth-child(2) { animation-delay: 0.15s; }
.dots-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
@media (max-width: 640px) {
  .top-actions { grid-template-columns: 1fr; }
  .card-main { grid-template-columns: 1fr; }
  .report-score {
    min-width: 0;
    font-size: 36px;
  }
  .row-actions {
    margin-left: 0;
    margin-right: 4px;
    padding: 0;
  }
  .select { min-width: 0; width: 100%; }
  .panel { padding: 16px; }
  .primary-link,
  .tab-btn,
  .title,
  .empty {
    font-size: 16px;
  }
  .icon-btn,
  .action-btn,
  .select {
    height: 46px;
  }
  .icon-btn {
    width: 46px;
  }
  .auth-gate {
    margin-top: 56px;
  }
}

.share-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
