:root {
  --ink: #0f1b30;
  --ink-2: #33435c;
  --muted: #5d6b80;
  --blue: #2758dd;
  --blue-deep: #1d46bf;
  --line: #e3e9f2;
  --bg: #f4f6fb;
  --paper: #fff;
  --pale: #eef3ff;
  --navy: #0b1530;
  --shadow-sm: 0 1px 2px rgba(15, 27, 48, 0.05);
  --shadow: 0 1px 2px rgba(15, 27, 48, 0.04), 0 10px 28px -18px rgba(15, 27, 48, 0.2);
  --shadow-lift: 0 2px 4px rgba(15, 27, 48, 0.05), 0 18px 40px -22px rgba(15, 27, 48, 0.3);
  color-scheme: light;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #507cf0;
  outline-offset: 3px;
}
h1,
h2,
p,
dl,
dd,
ol {
  margin: 0;
}
.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  padding: 8px;
  z-index: 2;
  background: white;
}
.skip:focus {
  top: 0.5rem;
}
.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  max-width: 1400px;
  margin: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(19px, 4vw, 62px);
}
.brand {
  flex: none;
}
.brand-logo {
  display: block;
  width: 136px;
  height: auto;
}
.mast-divider {
  height: 18px;
  width: 1px;
  background: var(--line);
}
.context {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 650;
}
.mast-meta {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 550;
}
.mast-meta a:hover,
.mast-meta button:hover,
.text-button:hover {
  color: var(--blue);
}
.mast-meta button,
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}
#logout {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
#logout:hover {
  border-color: #c9d6ef;
}
main {
  position: relative;
}
main:focus {
  outline: none;
}
.workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  margin: auto;
  min-height: calc(100vh - 65px);
  max-width: 1400px;
  padding: 0 clamp(19px, 4vw, 62px);
}
.rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  position: sticky;
  top: 65px;
  min-height: calc(100vh - 65px);
  padding: 32px 22px 28px 0;
}
.rail-nav {
  display: grid;
  gap: 4px;
}
.rail-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 560;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.rail-nav a .icon {
  color: #7d8ba1;
}
.rail-nav a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
.rail-nav [aria-current] {
  color: var(--blue);
  background: var(--paper);
  font-weight: 680;
  box-shadow: var(--shadow);
}
.rail-nav [aria-current] .icon {
  color: var(--blue);
}
.rail-nav [aria-current]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}
.icon {
  flex: 0 0 16px;
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}
.icon.grid::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 1px 0 0 1px;
  border-radius: 1.5px;
  background: currentColor;
  box-shadow:
    8px 0,
    0 8px,
    8px 8px;
}
.card-icon {
  height: 12px;
  border: 1.5px solid;
  border-radius: 3px;
}
.card-icon::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  height: 2px;
  background: currentColor;
}
.receipt {
  border: 1.5px solid;
  border-radius: 2px;
}
.receipt::before {
  content: "";
  width: 8px;
  height: 1.5px;
  position: absolute;
  top: 4px;
  left: 2.5px;
  background: currentColor;
  box-shadow: 0 4px;
}
.key-icon::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 0;
  right: 0;
  border: 1.6px solid;
  border-radius: 50%;
}
.key-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 1px;
  width: 10px;
  height: 4px;
  border-left: 2px solid;
  border-top: 2px solid;
  transform: rotate(-45deg);
}
.clock-icon {
  border: 1.5px solid;
  border-radius: 50%;
}
.clock-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 5px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
}
.lock-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 8px;
  height: 8px;
  border: 1.6px solid;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.lock-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}
.rail-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4d7cff, var(--blue));
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.rail-foot > div {
  min-width: 0;
}
.rail-foot small,
.col small,
.field-label,
#issued-code small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
#account-email {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content {
  width: 100%;
  max-width: 1080px;
  align-self: start;
  padding: 32px 0 64px clamp(20px, 3vw, 44px);
}
#crumb {
  margin: 0 0 18px;
  color: #68778a;
  font-size: 12px;
}
#crumb a {
  color: var(--muted);
}
#crumb a:hover {
  color: var(--blue);
}
#crumb span {
  color: var(--ink);
}
.page-heading,
.panel-head,
.reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-heading {
  margin: 0 0 24px;
}
h1 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 740;
}
h2 {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 680;
}
.page-heading p,
.muted,
.auth-intro p {
  color: var(--muted);
  font-size: 14px;
}
.page-heading p {
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.primary {
  color: white;
  background: linear-gradient(180deg, #3468ec, var(--blue));
  box-shadow: 0 8px 18px -10px rgba(39, 88, 221, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.primary:hover:enabled,
a.primary:hover {
  background: linear-gradient(180deg, #2b5ee6, var(--blue-deep));
  transform: translateY(-1px);
}
.secondary {
  color: var(--ink);
  border-color: #d3dcea;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.secondary:hover:enabled,
a.secondary:hover {
  border-color: #b9c9ea;
  background: #f7f9ff;
}
.button:disabled {
  color: #7a879b;
  background: #edf0f5;
  border-color: #e1e6ee;
  box-shadow: none;
}
.full {
  width: 100%;
}
.text-link,
.row-link,
.text-button {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
a.text-link:hover,
a.row-link:hover,
.record-id:hover {
  text-decoration: underline;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metrics a {
  --accent: var(--blue);
  --accent-soft: var(--pale);
  display: grid;
  position: relative;
  overflow: hidden;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.metrics a:nth-child(2) {
  --accent: #c27a0e;
  --accent-soft: #fff4dc;
}
.metrics a:nth-child(3) {
  --accent: #7a4fd6;
  --accent-soft: #f2ecff;
}
.metrics a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.metrics a:hover {
  border-color: #cdd9f3;
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.metrics span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 560;
}
.metrics strong {
  font-size: 36px;
  letter-spacing: -0.035em;
  font-weight: 720;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.metrics i {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
}
.reminder,
.callout {
  background: #fff8eb;
  border: 1px solid #f0dcb4;
  border-radius: 12px;
  padding: 14px 18px;
  color: #715022;
  font-size: 14px;
}
.reminder {
  margin: 18px 0;
}
.reminder p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.reminder.green {
  background: #eff8f4;
  border-color: #c9e5d9;
  color: #215842;
}
.reminder.red {
  background: #fff4f2;
  border-color: #eed4cc;
  color: #8b362e;
}
.callout {
  margin-top: 15px;
}
.panel,
.plan {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.panel {
  padding: 22px 26px;
  margin: 18px 0 0;
  min-width: 0;
}
.panel-head {
  margin-bottom: 14px;
}
/* The trial offer is an invitation, not a record. */
.panel:has([data-action="claim-trial"]) {
  border-color: #cfdcf7;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(77, 124, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #f7f9ff, #fff);
}
.panel-head h2 {
  min-width: 0;
}
#reminder-sync-message:not(:empty) {
  margin-top: 12px;
}
#renewal-history {
  scroll-margin-top: 20px;
}
#mail-settings,
#mail-settings-history {
  scroll-margin-top: 20px;
}
.settings-change {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.settings-change header,
#mail-history-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.settings-change-times {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 8px 0 10px;
  font-size: 13px;
}
.settings-change-times > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}
.settings-change-times dt,
.settings-mail-count {
  color: var(--muted);
}
.settings-mail-count {
  margin-inline-start: auto;
  font-size: 13px;
}
.settings-stage-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 8px 16px;
  margin: 6px 0 12px;
  font-size: 13px;
}
.settings-stage-counts > div {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 6px;
  align-items: baseline;
}
.settings-stage-counts dt,
.stage-last-sent {
  color: var(--muted);
}
.stage-last-sent {
  grid-column: 1 / -1;
  margin: 0;
}
.mail-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
#mail-neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mail-open-detail {
  display: inline-block;
  margin-top: 8px;
}
.settings-mail-count a,
.settings-stage-counts a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
#mail-history-pages {
  margin-top: 10px;
}
.license-actions, .mail-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.license-actions {
  justify-content: flex-end;
}
#mail-settings-form {
  margin-top: 16px;
}
.mail-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  cursor: pointer;
}
.mail-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}
#mail-stages {
  margin: 10px 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#mail-stages:disabled {
  color: var(--muted);
}
#mail-settings-status:not(:empty) {
  margin-top: 12px;
}
#mock-inbox {
  scroll-margin-top: 20px;
}
#mail-status:not(:empty),
#mock-mail-list {
  margin-top: 12px;
}
.mail-message {
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.mail-message summary {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 3px;
  cursor: pointer;
  list-style: none;
}
.mail-message summary::-webkit-details-marker {
  display: none;
}
.mail-message summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border: solid var(--muted);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.mail-message[open] summary::before {
  transform: rotate(135deg);
}
.mail-message summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.mail-message time,
#mail-range {
  font-size: 13px;
  color: var(--muted);
}
.mail-body {
  margin: 8px 0 18px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 8px;
  white-space: pre-wrap;
}
#mail-pages {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
#mail-range {
  margin-right: auto;
}
.renewal-record {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.renewal-record:last-child {
  padding-bottom: 0;
}
.renewal-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.renewal-record .facts {
  margin: 12px 0;
}
.renewal-record .muted {
  margin-bottom: 8px;
}
.data-row {
  display: grid;
  grid-template-columns: minmax(95px, 1.3fr) minmax(115px, 1fr) minmax(
      67px,
      auto
    ) auto;
  gap: 12px;
  align-items: center;
  margin: 0 -12px;
  padding: 14px 12px;
  border-top: 1px solid #edf1f6;
  border-radius: 10px;
  transition: background 0.15s;
}
.data-row:hover {
  background: #f7f9fd;
}
.data-row:last-child {
  padding-bottom: 2px;
}
.row-main,
.col {
  min-width: 0;
}
.row-main strong {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
}
.record-id {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f1f4f9;
  color: var(--muted);
  font:
    12px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
time {
  color: #516177;
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(15, 27, 48, 0.05);
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  color: #186146;
  background: #e7f5ec;
}
.badge.amber {
  color: #815412;
  background: #fff1d6;
}
.badge.red {
  color: #9b4738;
  background: #fceae5;
}
.badge.neutral {
  color: var(--muted);
  background: #eef1f5;
}
.empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.empty p {
  margin-bottom: 4px;
}
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 4px 0 16px;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f8;
}
.tabs a,
.tabs button {
  padding: 6px 14px;
  color: var(--ink-2);
  border: 0;
  background: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 560;
}
.tabs a:hover,
.tabs button:hover {
  color: var(--ink);
}
.tabs [aria-current],
.tabs [aria-pressed="true"] {
  background: var(--paper);
  color: var(--blue);
  font-weight: 680;
  box-shadow: 0 1px 3px rgba(15, 27, 48, 0.12);
}
#order-search {
  margin-bottom: 16px;
}
#order-search label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}
.order-search-controls,
.order-sync {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
#order-query {
  flex: 1 1 170px;
  max-width: 360px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #d3dcea;
  border-radius: 10px;
}
#order-query:focus,
.auth-form input:focus,
.stack-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(39, 88, 221, 0.14);
}
.order-sync {
  margin-top: 14px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.receipt-tx {
  font-family: ui-monospace, Consolas, monospace;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(225px, 1fr);
  gap: 16px;
}
.split > .panel,
.split .panel {
  margin-top: 0;
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(78px, 0.75fr) minmax(0, 1.75fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf1f6;
}
.facts dt {
  color: var(--muted);
  font-size: 13px;
}
.facts dd {
  font-size: 14px;
  font-weight: 530;
  overflow-wrap: anywhere;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 13px 0;
}
.steps li {
  padding: 6px 0 12px 25px;
  font-size: 14px;
  color: var(--muted);
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 3px;
  top: 11px;
  border-radius: 50%;
  border: 1.5px solid #a7b3c4;
  background: white;
  z-index: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 7px;
  bottom: -10px;
  width: 1px;
  background: var(--line);
}
.steps li.done::before {
  background: #3e66d8;
  border-color: #3e66d8;
}
.steps li.done {
  color: var(--ink);
}
.plan {
  overflow: hidden;
}
.plan-band {
  min-height: 88px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(77, 124, 255, 0.22), transparent 60%),
    linear-gradient(112deg, #e8efff, #f7f9ff);
  border-bottom: 1px solid var(--line);
}
.plan-body {
  padding: 20px 24px;
}
.plan-body h2 {
  margin: 0 0 14px;
}
.plan .muted {
  margin-top: 12px;
}
.price {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 760;
  letter-spacing: -0.035em;
  margin: 3px 0 8px;
  color: var(--ink);
}
.purchase .full {
  margin-top: 20px;
}
.panel .muted + .button {
  margin-top: 12px;
}
#issued-code,
#unbind-confirm {
  border: 1px solid var(--line);
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
}
#unbind-confirm p {
  margin: 0 0 12px;
}
.reset-send {
  margin: 4px 0 6px;
}
.pay-box {
  position: relative;
  overflow: hidden;
  border-color: #c9d6f5;
  margin-bottom: 18px;
  box-shadow: var(--shadow-lift);
}
.pay-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #6f9bff);
}
.pay-box > p {
  margin: 4px 0 14px;
  font-size: 15px;
}
.pay-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 12px 14px;
  margin-top: 10px;
  background: var(--pale);
  border-radius: 9px;
}
.pay-field small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}
.pay-field output {
  font: 600 17px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.pay-rules {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.pay-rules li + li {
  margin-top: 4px;
}
#unbind-confirm .text-button {
  margin-left: 14px;
}
#issued-code output {
  display: block;
  margin: 6px 0;
  overflow-wrap: anywhere;
  user-select: all;
  font-family: ui-monospace, monospace;
}
.loading,
#notice {
  max-width: 880px;
  margin: 18px auto;
  padding: 12px 18px;
}
#notice {
  /* Stays in sight under the header: what it answers may be far down the page. */
  position: sticky;
  top: 76px;
  z-index: 5;
  border: 1px solid #c8d6f1;
  background: var(--pale);
  color: #244db8;
  border-radius: 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-sm);
}
#notice.error {
  background: #fff3ef;
  border-color: #eccdc1;
  color: #8c352b;
}
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.95fr);
  width: min(1000px, calc(100% - 32px));
  margin: clamp(32px, 8vh, 88px) auto 60px;
  padding: 0;
  align-items: stretch;
  gap: 0;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 30px 70px -40px rgba(11, 21, 48, 0.5);
  border: 1px solid var(--line);
  overflow: hidden;
}
.auth-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    linear-gradient(0deg, rgba(8, 15, 32, 0.92), rgba(8, 15, 32, 0.35) 60%, rgba(8, 15, 32, 0.2)),
    var(--navy) url("/assets/film-landscape.webp") 62% center / cover no-repeat;
}
.auth-icon {
  display: block;
  margin-bottom: auto;
  padding: 8px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}
.auth-intro h1 {
  font-size: clamp(34px, 4vw, 48px);
}
.auth-intro p {
  margin-top: 12px;
  max-width: 320px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #d4deee;
}
.auth-form {
  background: white;
  padding: clamp(26px, 4vw, 44px);
}
.auth-form h2 {
  font-size: 24px;
  margin: 8px 0 18px;
}
.auth-form label,
.stack-form label {
  display: block;
  margin: 13px 0 5px;
  font-size: 13px;
  font-weight: 600;
}
.auth-form input,
.stack-form input {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #d3dcea;
  border-radius: 10px;
  background: var(--paper);
  padding: 9px 12px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-form small,
.stack-form small {
  color: var(--muted);
  font-size: 12px;
}
.auth-form .full {
  margin-top: 20px;
}
.auth-foot {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
}
.stack-form {
  max-width: 360px;
}
.stack-form .button {
  margin-top: 18px;
}
.stack-form + p {
  margin-top: 16px;
}
@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 163px minmax(0, 1fr);
  }
  .rail {
    padding-right: 16px;
  }
  .content {
    padding-left: 23px;
  }
  .split {
    grid-template-columns: minmax(0, 1.32fr) minmax(180px, 1fr);
  }
  .panel,
  .plan-body {
    padding: 17px;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
    padding: 0 17px;
  }
  .rail {
    position: static;
    padding: 13px 0;
    border: none;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }
  .rail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  .rail-nav a {
    gap: 5px;
    padding: 5px 8px;
    font-size: 13px;
    min-height: 34px;
  }
  .rail-nav .icon {
    display: none;
  }
  .rail-nav [aria-current]::before {
    display: none;
  }
  .rail-foot {
    display: none;
  }
  .content {
    padding: 24px 0 40px;
  }
  .metrics {
    gap: 8px;
  }
  .metrics a {
    padding: 13px;
  }
  .metrics strong {
    font-size: 26px;
  }
  .metrics i {
    display: none;
  }
  .auth-wrap {
    grid-template-columns: 1fr 1.1fr;
  }
  .mast-inner {
    min-height: 60px;
    gap: 10px;
  }
  .mast .brand-logo {
    width: 122px;
  }
  .mast-meta {
    gap: 10px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .page-heading p {
    font-size: 13px;
  }
}
@media (max-width: 570px) {
  .mail-message summary {
    grid-template-columns: 12px minmax(0, 1fr);
    row-gap: 3px;
  }
  .mail-message time {
    grid-column: 2;
  }
  .auth-wrap,
  .split {
    grid-template-columns: 1fr;
  }
  .auth-wrap {
    margin: 20px auto 36px;
    border-radius: 18px;
  }
  .auth-intro {
    min-height: 0;
    padding: 28px 22px 22px;
  }
  .auth-intro p {
    max-width: none;
    font-size: 14px;
    margin-top: 6px;
  }
  .auth-icon {
    display: none;
  }
  .mast-divider,
  .context {
    display: none;
  }
  .mast-meta {
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-heading .button {
    padding: 6px 10px;
    min-height: 34px;
  }
  .data-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
  }
  .data-row .badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .data-row time,
  .data-row .col {
    grid-column: 1;
    grid-row: 2;
  }
  .data-row .col small {
    display: inline;
    margin-right: 5px;
  }
  .row-link {
    text-align: right;
  }
  .reminder {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .facts > div {
    grid-template-columns: minmax(65px, 0.65fr) minmax(0, 1.5fr);
  }
  #notice {
    margin: 12px 17px;
  }
  .metrics span {
    font-size: 12px;
  }
  .metrics a {
    gap: 6px;
  }
  .panel {
    margin-top: 12px;
  }
}

.support-line {
  margin: 22px 2px 0;
  font-size: 13px;
}
.guide-steps {
  margin: 16px 0 0;
  padding: 14px 0 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.guide-steps li + li {
  margin-top: 4px;
}
.guide-steps code {
  display: block;
  margin: 4px 0 2px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--pale);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
}

/* Email verification: the box a mailed link opens, and the code entry on
   the overview. */
.verify-link {
  max-width: 880px;
  margin: 18px auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.verify-link h2 {
  margin: 0 0 6px;
  font-size: 17px;
}
.verify-link p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.verify-entry {
  margin: 14px 0;
}
.verify-entry label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}
.verify-entry div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.verify-entry input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 13px ui-monospace, monospace;
}
.callout a {
  margin-left: 6px;
  font-weight: 600;
}
