:root {
  --cf-orange: #f6821f;
  --cf-ink: #232323;
  --cf-muted: #626970;
  --ok: #1fa855;
  --blue: #1a73e8;
  --ink: #3c4043;
  --muted: #5f6368;
  --line: #dadce0;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--cf-ink);
  background: #fff;
}
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.03em;
  text-align: center;
}
.lead {
  margin: 0 0 32px;
  max-width: 460px;
  text-align: center;
  color: var(--cf-muted);
  font-size: 15px;
}

.cf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  height: 65px;
  padding: 0 10px 0 14px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08);
  user-select: none;
}
.cf-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}
.cf-check input { position: absolute; opacity: 0; pointer-events: none; }
.cf-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}
.cf-spin {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid #e6e6e6;
  border-top-color: var(--cf-orange);
  border-radius: 50%;
  flex-shrink: 0;
  animation: spin .7s linear infinite;
}
.cf.busy .cf-box { display: none; }
.cf.busy .cf-spin { display: block; }
.cf.ok .cf-box {
  border: 0;
  border-radius: 50%;
  background: var(--ok);
  width: 26px;
  height: 26px;
}
.cf.ok .cf-box::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.cf-text {
  font-size: 14px;
  color: var(--cf-ink);
  font-weight: 400;
  white-space: nowrap;
}
.cf-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-left: 8px;
  line-height: 1;
}
.cf-mark { display: block; margin-bottom: 1px; }
.cf-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #2d2d2d;
}
.cf-links {
  margin-top: 2px;
  font-size: 8px;
  color: #8c8c8c;
  letter-spacing: .01em;
}
@keyframes spin { to { transform: rotate(360deg); } }

.shade {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
  animation: fade .18s ease;
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.card {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  animation: pop .24s ease;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hidden { display: none !important; }
.hero {
  background: var(--blue);
  color: #fff;
  padding: 22px 24px 20px;
}
.hero p {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 400;
  opacity: .95;
}
.hero h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.body { padding: 22px 24px 8px; }
.intro {
  margin: 0 0 16px;
  font-size: 16px;
  color: #202124;
}
.steps {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  min-height: 28px;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.35;
}
.steps li::before {
  counter-increment: step;
  content: counter(step) ".";
  flex-shrink: 0;
  min-width: 1.1em;
  height: 24px;
  line-height: 24px;
}
.steps li span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  color: #202124;
  font-weight: 500;
  min-height: 24px;
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  background: linear-gradient(#fbfbfb, #e8e8e8);
  border: 1px solid #b7b7b7;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #9e9e9e;
  color: #1b1b1b;
  font: 700 12px/1 "Segoe UI", system-ui, sans-serif;
  flex: 0 0 auto;
}
.kbd-win {
  width: 24px;
  min-width: 24px;
  height: 22px;
}
.win-logo {
  width: 13px;
  height: 13px;
  display: block;
}
.agree-label {
  margin: 0 0 8px;
  font-size: 16px;
  color: #202124;
}
.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #1e8e3e;
  font-size: 14px;
  line-height: 1.4;
}
.tick {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 2px;
  background: #1e8e3e;
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
}
.bar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.verify {
  flex-shrink: 0;
  min-width: 112px;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}
.verify:hover { filter: brightness(1.06); }
.verify:disabled { opacity: .5; cursor: default; }
.hint {
  margin: 14px 0 0;
  color: var(--cf-muted);
  font-size: 13px;
  text-align: center;
}
.hint:empty { display: none; }
.err { margin: 12px 0 0; color: #c5221f; font-size: 13px; }
.err:empty { display: none; }
.dest,
.copy-help { display: none; }
body.locked { overflow: hidden; }
