:root {
  color-scheme: light;
  --ink: #152037;
  --muted: #67738a;
  --line: #dde4ef;
  --line-strong: #cfd8e7;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --accent: #2764e7;
  --accent-dark: #164fc6;
  --accent-soft: #edf3ff;
  --success: #16835b;
  --success-soft: #e9f8f1;
  --warning: #c87412;
  --warning-soft: #fff5e5;
  --danger: #c63a4a;
  --shadow: 0 16px 44px rgba(27, 46, 84, 0.09);
  --radius-large: 28px;
  --radius-medium: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.has-open-dialog {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(39, 100, 231, 0.08), transparent 29rem),
    radial-gradient(circle at 90% 32%, rgba(87, 194, 160, 0.08), transparent 24rem),
    var(--surface-soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

svg {
  display: block;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(207, 216, 231, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand strong {
  color: var(--accent);
  font-weight: 800;
}

.setup-guide-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #c7d7f7;
  border-radius: 12px;
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.setup-guide-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.setup-guide-button:hover {
  border-color: #9ab6ee;
  background: #dfeaff;
  box-shadow: 0 8px 18px rgba(39, 100, 231, 0.13);
  transform: translateY(-1px);
}

.setup-guide-button:focus-visible {
  outline: 3px solid rgba(39, 100, 231, 0.24);
  outline-offset: 3px;
}

.setup-guide-button-short {
  display: none;
}

.setup-guide-dialog {
  width: min(880px, calc(100% - 32px));
  max-width: none;
  max-height: min(92dvh, 780px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(12, 25, 51, 0.28);
}

.setup-guide-dialog::backdrop {
  background: rgba(17, 27, 48, 0.62);
  backdrop-filter: blur(5px);
}

.setup-guide-shell {
  display: flex;
  max-height: min(92dvh, 780px);
  flex-direction: column;
}

.setup-guide-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 72%);
}

.setup-guide-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.setup-guide-header h2 {
  margin: 0;
  color: #111b30;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.setup-guide-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #edf1f7;
  color: #45536b;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.setup-guide-close:hover {
  background: #dfe7f3;
  color: var(--ink);
}

.setup-guide-close:focus-visible,
.setup-store-link:focus-visible {
  outline: 3px solid rgba(39, 100, 231, 0.22);
  outline-offset: 2px;
}

.setup-guide-close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.setup-guide-content {
  overflow-y: auto;
  padding: 20px 24px 24px;
  overscroll-behavior: contain;
}

.setup-guide-start {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d8e4fb;
  border-radius: 16px;
  background: var(--accent-soft);
}

.setup-guide-start-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: white;
  color: var(--accent);
}

.setup-guide-start-icon svg,
.setup-guide-warning svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.setup-guide-start h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.setup-guide-start p,
.setup-guide-finish p,
.setup-guide-warning p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.setup-guide-start p {
  color: #53627a;
}

.setup-guide-choice {
  margin: 18px 0 10px;
  color: #394860;
  font-size: 13px;
  font-weight: 750;
}

.setup-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setup-option-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfe;
}

.setup-option-card.featured {
  border-color: #bcd9cd;
  background: linear-gradient(145deg, #f8fffb, #f2fbf6);
}

.setup-option-heading {
  display: flex;
  min-height: 45px;
  align-items: flex-start;
  gap: 10px;
}

.setup-option-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
}

.setup-option-icon.browser {
  background: #eaf1ff;
  color: #2864df;
}

.setup-option-icon.android {
  background: #e9f8f1;
  color: #147c57;
}

.setup-option-icon.ios {
  background: #eef0f4;
  color: #253149;
}

.setup-option-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.setup-option-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.setup-option-heading h3 {
  margin: 0;
  color: #18243a;
  font-size: 14px;
  line-height: 1.25;
}

.setup-option-card ol {
  display: grid;
  gap: 7px;
  margin: 13px 0 16px;
  padding-left: 20px;
  color: #526078;
  font-size: 13px;
  line-height: 1.48;
}

.setup-option-card li::marker {
  color: var(--accent);
  font-weight: 800;
}

.setup-option-card strong {
  color: #27364e;
}

.setup-store-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid #bfd0f3;
  border-radius: 11px;
  background: white;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.setup-store-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.setup-store-links .setup-store-link {
  margin-top: 0;
}

.setup-store-link:hover {
  border-color: #83a6e9;
  background: var(--accent-soft);
}

.setup-store-link svg {
  width: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.setup-guide-finish,
.setup-guide-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 14px;
}

.setup-guide-finish {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--success-soft);
  color: #32634f;
}

.setup-guide-finish-number {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.setup-guide-warning {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #f1d9ae;
  background: var(--warning-soft);
  color: #76501d;
}

.setup-guide-warning svg {
  flex: 0 0 auto;
  color: var(--warning);
}

.brand-mark,
.security-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 9px 24px rgba(39, 100, 231, 0.25);
}

.brand-mark svg {
  width: 23px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 24px 18px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #111b30;
  font-size: clamp(34px, 3.7vw, 46px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero-copy > p {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 50px;
}

.tool-card,
.info-card {
  border: 1px solid rgba(214, 222, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 20px 56px rgba(34, 63, 119, 0.12);
}

.tool-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6e9bf4 68%, #68c7aa);
  content: "";
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.card-heading.compact {
  margin-bottom: 12px;
}

.card-heading h2,
.security-card h2 {
  margin: 0;
  color: #17233a;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.step-badge {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.step-badge svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.step-badge.warm {
  background: var(--warning-soft);
  color: var(--warning);
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  color: #2a3850;
  font-size: 14px;
  font-weight: 720;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-privacy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  color: #277257;
  font-size: 10px;
  font-weight: 720;
}

.field-privacy svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.secret-field {
  position: relative;
}

.secret-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 178px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  background: #fbfcfe;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.025em;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.secret-field input.is-secret-hidden {
  -webkit-text-security: disc;
  text-security: disc;
}

.secret-field input::-webkit-credentials-auto-fill-button,
.secret-field input::-webkit-contacts-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.secret-field input::placeholder {
  color: #647187;
  letter-spacing: 0;
}

.secret-field input:hover {
  border-color: #b9c5d8;
}

.secret-field input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(39, 100, 231, 0.12);
}

.secret-field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(198, 58, 74, 0.1);
}

.field-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: stretch;
  gap: 3px;
  padding-left: 10px;
  background: linear-gradient(90deg, transparent, #fbfcfe 12px);
}

.field-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 9px;
  background: transparent;
  color: #516078;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.field-action svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.paste-action {
  color: var(--accent-dark);
}

.paste-action[data-pasted="true"] {
  background: var(--success-soft);
  color: var(--success);
}

.field-action:hover {
  background: #eef2f8;
  color: var(--ink);
}

.field-action[hidden] {
  display: none;
}

.clear-action {
  width: 42px;
  padding: 0;
  color: #68758a;
}

.field-hint,
.field-notice,
.field-error {
  margin: 6px 2px 0;
  font-size: 12px;
  line-height: 1.5;
}

.field-hint {
  color: #5b687e;
}

.field-notice {
  color: #8a5d1e;
  font-weight: 650;
}

.field-notice:empty {
  display: none;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-weight: 650;
}

.field-error:empty {
  display: none;
}

.code-display:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.result-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f9fc;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.result-panel[data-ready="true"] {
  border-color: #cddaf5;
  background: linear-gradient(145deg, #f8faff, #f2f6ff);
  box-shadow: inset 0 0 0 1px rgba(39, 100, 231, 0.05);
}

.result-panel[data-expiring="true"] {
  border-color: #f0cf9f;
  background: linear-gradient(145deg, #fffaf1, #fff6e8);
}

.result-panel[data-ready="false"] {
  padding: 11px;
}

.result-panel[data-ready="false"] .code-display {
  min-height: 58px;
  gap: 3px;
  margin: 7px 0 0;
  padding: 7px 12px;
}

.result-panel[data-ready="false"] .code-display #codeText {
  font-size: 27px;
}

.result-panel[data-ready="false"] .timer-row,
.result-panel[data-ready="false"] .progress-track,
.result-panel[data-ready="false"] .time-status[data-state="checking"],
.result-panel[data-ready="false"] .time-status[data-state="ok"] {
  display: none;
}

.result-heading,
.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.result-heading {
  color: #56637a;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.result-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667389;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf1f6;
  font-size: 10px;
}

.result-panel[data-ready="true"] .result-state {
  background: var(--success-soft);
  color: var(--success);
}

.result-panel[data-ready="true"] .result-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.code-display {
  display: flex;
  width: 100%;
  min-height: 82px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
  margin: 9px 0 11px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: white;
  color: #b0b7c4;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.result-panel[data-ready="true"] .code-display {
  border-color: #dce4f3;
  color: #14213a;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 56, 105, 0.07);
}

.code-display:not(:disabled):hover {
  border-color: #7ea5f3;
  background: #edf4ff;
  color: #164fc6;
  box-shadow: 0 11px 28px rgba(39, 100, 231, 0.16);
  transform: translateY(-1px);
}

.code-display:not(:disabled):active {
  transform: translateY(0) scale(0.995);
}

.result-panel[data-ready="true"] .code-display[data-copied="true"] {
  border-color: #72c79f;
  background: #e7f8ef;
  color: #0b754d;
  box-shadow: 0 10px 28px rgba(22, 131, 91, 0.18);
  transform: translateY(0);
}

.code-value-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-display #codeText {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1;
}

.code-action-text {
  color: #778398;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
}

.result-panel[data-ready="true"] .code-action-text {
  color: #4a6ca8;
}

.result-panel[data-ready="true"] .code-display[data-copied="true"] .code-action-text {
  color: #0b754d;
}

.code-display svg {
  width: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.timer-row {
  color: #5b6880;
  font-size: 12px;
}

.timer-row strong {
  color: var(--accent);
  font-size: 12px;
}

.result-panel[data-expiring="true"] .timer-row strong {
  color: var(--warning);
}

.progress-track {
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6f1;
}

.progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5e8df0, var(--accent));
  transform-origin: left center;
}

.result-panel[data-expiring="true"] .progress-track span {
  background: linear-gradient(90deg, #efb25e, var(--warning));
}

.time-status {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 31px;
  margin: 7px 0 0;
  padding: 6px 8px;
  border: 1px solid #d8e2f3;
  border-radius: 10px;
  background: #f2f6fd;
  color: #49617f;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.time-status-icon {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.time-status[data-state="ok"] {
  min-height: 25px;
  padding: 3px 1px;
  border-color: transparent;
  background: transparent;
  color: #176846;
}

.time-status[data-state="drift"] {
  border-color: #efd19e;
  background: #fff6e8;
  color: #754b12;
}

.time-status[data-state="unavailable"] {
  border-color: #d7dfe9;
  background: #f3f6fa;
  color: #4e5b70;
}

.time-status-retry {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 11px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}

.time-status-retry:hover {
  background: white;
}

.time-status-retry[hidden] {
  display: none;
}

.side-stack {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 80px;
}

.info-card {
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(27, 46, 84, 0.065);
}

.instruction-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-list li {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 12px;
  align-items: start;
}

.instruction-list li > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #d6e0f4;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.instruction-list p {
  margin: 3px 0 0;
  color: #536078;
  font-size: 13px;
  line-height: 1.48;
}

.instruction-list strong {
  color: #283650;
}

.tip {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  margin-top: 11px;
  padding: 10px;
  border: 1px solid #f2ddb9;
  border-radius: 14px;
  background: var(--warning-soft);
  color: #865a23;
}

.tip svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.inline-guide-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 0 11px;
  border: 1px solid #c7d7f7;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.inline-guide-button:hover {
  border-color: #96b2eb;
  background: #e2ecff;
}

.inline-guide-button svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.inline-guide-button span:last-child {
  margin-left: auto;
  font-size: 16px;
}

.security-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  border-color: #cde6da;
  background: linear-gradient(145deg, #f6fffa, #effaf5);
  box-shadow: 0 18px 50px rgba(34, 109, 79, 0.08);
}

.security-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: white;
  color: var(--success);
  box-shadow: 0 7px 20px rgba(34, 109, 79, 0.1);
}

.security-mark svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.security-card h2 {
  margin-top: 2px;
  font-size: 17px;
}

.security-card p {
  margin: 7px 0 0;
  color: #527064;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #5b687e;
  font-size: 12px;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b4bdca;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid rgba(39, 100, 231, 0.38);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
    padding-block: 22px 16px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .side-stack {
    grid-template-columns: 1fr 1fr;
    position: static;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 620px);
  }

  .header-inner {
    min-height: 56px;
    gap: 10px;
  }

  .setup-guide-button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .setup-guide-button-wide {
    display: none;
  }

  .setup-guide-button-short {
    display: inline;
  }

  .setup-guide-dialog {
    width: calc(100% - 16px);
    max-height: 92dvh;
    border-radius: 18px;
  }

  .setup-guide-shell {
    max-height: 92dvh;
  }

  .setup-guide-header {
    padding: 15px 15px 13px;
  }

  .setup-guide-header h2 {
    font-size: 21px;
  }

  .setup-guide-content {
    padding: 13px 13px 16px;
  }

  .setup-guide-grid {
    grid-template-columns: 1fr;
  }

  .setup-option-card {
    padding: 13px;
  }

  .setup-option-card ol {
    margin-block: 11px 13px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    display: block;
    padding-block: 14px 11px;
  }

  .eyebrow {
    display: none;
  }

  .hero h1 {
    font-size: clamp(26px, 8vw, 31px);
    line-height: 1.04;
  }

  .hero-copy > p {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .content-grid {
    gap: 10px;
    padding-bottom: 24px;
  }

  .tool-card {
    padding: 13px;
    border-radius: 17px;
  }

  .field-label-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 8px;
  }

  .field-label-row label {
    flex: 1 0 100%;
    margin-bottom: 2px;
  }

  .field-privacy {
    margin-bottom: 5px;
  }

  .info-card {
    padding: 15px;
    border-radius: 17px;
  }

  .side-stack {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-panel {
    margin-top: 11px;
    padding: 12px;
  }

  .code-display {
    min-height: 60px;
    margin-block: 8px 10px;
  }

  .code-display #codeText {
    font-size: clamp(28px, 9vw, 36px);
  }

  .instruction-list {
    gap: 10px;
  }

  .tip {
    margin-top: 12px;
    padding: 10px;
  }
}

@media (max-width: 390px) {
  .shell {
    width: calc(100% - 16px);
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .setup-guide-button {
    gap: 6px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .setup-guide-button svg {
    width: 17px;
  }

  .setup-guide-start {
    gap: 9px;
    padding: 11px;
  }

  .setup-guide-start-icon {
    width: 30px;
    height: 30px;
  }

  .setup-guide-choice {
    margin-top: 14px;
  }

  .hero h1 br {
    display: none;
  }

  .tool-card,
  .info-card {
    padding: 12px;
  }

  .card-heading {
    gap: 9px;
  }

  .step-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .card-heading h2 {
    font-size: 18px;
  }

  .card-heading p {
    font-size: 12px;
    line-height: 1.4;
  }

  .secret-field input {
    min-height: 52px;
    padding-left: 12px;
    padding-right: 112px;
  }

  .field-action-label {
    display: none;
  }

  .field-actions {
    top: 4px;
    right: 4px;
    bottom: 4px;
    padding-left: 8px;
  }

  .paste-action {
    width: 40px;
    padding: 0;
  }

  .code-display {
    padding-inline: 12px;
  }

  .code-display #codeText {
    letter-spacing: 0.085em;
  }

  .time-status {
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    padding: 7px 8px;
  }

  .time-status-retry {
    grid-column: 2;
    justify-self: start;
    min-height: 44px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 7px 9px;
    padding-block: 18px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
