:root {
  color-scheme: dark;
  --background: #111214;
  --background-raised: #17181b;
  --surface: #1d1e22;
  --surface-hover: #23252a;
  --surface-strong: #292b30;
  --text-primary: #f5f5f7;
  --text-secondary: #b7b8bd;
  --text-tertiary: #8d8e94;
  --accent: #64d2ff;
  --accent-strong: #25b8ec;
  --accent-ink: #061318;
  --warning: #ffb340;
  --warning-surface: rgba(255, 179, 64, 0.09);
  --success: #4bd66f;
  --danger: #ff6961;
  --info-surface: rgba(100, 210, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --focus: #9be2ff;
  --shadow-1: 0 10px 36px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --radius-small: 6px;
  --shell: 1040px;
  --header-height: 60px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 20;
  --z-dialog: 40;
  --z-toast: 50;
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
  line-height: 1.5;
  letter-spacing: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

img {
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
  text-wrap: balance;
}

code,
.address-value,
.guide-url-row output {
  font-family: 'SFMono-Regular', 'Cascadia Code', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-trailing {
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: calc(var(--z-toast) + 1);
  transform: translateY(-160%);
  border-radius: var(--radius-small);
  background: var(--text-primary);
  color: var(--background);
  padding: 10px 14px;
  font-weight: 650;
  transition: transform 180ms var(--ease-out);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    opacity 180ms var(--ease-out),
    transform 120ms ease-out;
}

.button {
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: #8bdeff;
}

.button-secondary,
.button-quiet {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: rgba(100, 210, 255, 0.55);
  background: rgba(100, 210, 255, 0.09);
  color: var(--accent);
}

.button:active,
.icon-button:active,
.step-image-button:active,
.path-switcher a:active {
  transform: scale(0.98);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.icon-button {
  width: 44px;
  padding: 0;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 18, 20, 0.78);
  backdrop-filter: blur(22px) saturate(145%);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 680;
  text-decoration: none;
}

.brand-icon,
.guide-mark {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.brand-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.site-header nav {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: var(--radius-small);
  padding-inline: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.site-header nav a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
}

.hero {
  padding-block: 56px 72px;
}

.tutorial-entry {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
}

.tutorial-entry-heading {
  display: grid;
  gap: 5px;
}

.tutorial-entry-heading h2 {
  font-size: 1.5rem;
  font-weight: 710;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 36px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: 3rem;
  font-weight: 720;
  line-height: 1.12;
}

.hero-copy > p:last-child {
  max-width: 620px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.65;
}

.address-console {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background-raised);
  box-shadow: var(--shadow-1);
}

.console-header,
.address-row,
.address-meta,
.notice-stack,
.backup-addresses {
  padding-inline: 24px;
}

.console-header {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.console-title,
.inline-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.console-title > .icon,
.inline-heading > .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.console-title p,
.inline-heading p {
  margin-bottom: 2px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 630;
}

.console-title h2 {
  font-size: 1.25rem;
  font-weight: 680;
}

.status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 680;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.status-badge[data-state='ready'] {
  border-color: rgba(75, 214, 111, 0.32);
  color: var(--success);
}

.status-badge[data-state='ready'] .status-dot {
  background: var(--success);
}

.status-badge[data-state='error'] {
  border-color: rgba(255, 105, 97, 0.35);
  color: var(--danger);
}

.status-badge[data-state='error'] .status-dot {
  background: var(--danger);
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-top: 24px;
}

.address-value {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  overflow-wrap: anywhere;
  border: 1px solid rgba(100, 210, 255, 0.44);
  border-radius: var(--radius);
  background: #0d0e10;
  padding: 12px 16px;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 680;
  line-height: 1.3;
  user-select: all;
}

.address-value.is-loading {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.address-value.is-error {
  border-color: rgba(255, 105, 97, 0.36);
  color: var(--danger);
}

.address-row > .button {
  min-width: 132px;
}

.address-meta {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 16px;
}

.address-meta p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.refresh-button {
  width: 48px;
  min-height: 48px;
  flex: 0 0 auto;
  border-color: rgba(100, 210, 255, 0.48);
  border-radius: 50%;
  background: rgba(100, 210, 255, 0.13);
  color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(100, 210, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.refresh-button .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

.refresh-button:hover {
  border-color: rgba(139, 222, 255, 0.72);
  background: rgba(100, 210, 255, 0.21);
  box-shadow:
    0 0 0 5px rgba(100, 210, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.refresh-button.is-loading .icon {
  animation: spin 800ms linear infinite;
}

.notice-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-block: 4px 24px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.notice > .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.notice strong {
  color: var(--text-primary);
  font-weight: 680;
}

.notice-warning {
  border-color: rgba(255, 179, 64, 0.22);
  background: var(--warning-surface);
}

.notice-warning > .icon {
  color: var(--warning);
}

.notice-info {
  border-color: rgba(100, 210, 255, 0.2);
  background: var(--info-surface);
}

.notice-info > .icon {
  color: var(--accent);
}

.notice-detail {
  border-color: rgba(100, 210, 255, 0.3);
  box-shadow: inset 3px 0 0 rgba(100, 210, 255, 0.56);
  padding: 14px 16px;
}

.notice-detail > .icon {
  width: 19px;
  height: 19px;
}

.notice-detail p {
  display: grid;
  gap: 2px;
}

.notice-detail p > strong {
  color: #b9ecff;
}

.notice-detail p > span {
  color: var(--text-secondary);
}

.notice-priority {
  border-color: rgba(255, 179, 64, 0.4);
  background: rgba(255, 179, 64, 0.13);
  box-shadow: inset 3px 0 0 rgba(255, 179, 64, 0.78);
  padding: 14px 16px;
}

.notice-priority > .icon {
  width: 19px;
  height: 19px;
  color: var(--warning);
}

.notice-priority p {
  display: grid;
  gap: 2px;
}

.notice-priority p > strong {
  color: #ffd28c;
}

.notice-priority p > span {
  color: var(--text-secondary);
}

.backup-addresses {
  border-top: 1px solid var(--border);
  padding-block: 22px 24px;
}

.backup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.backup-heading h3 {
  font-size: 0.9375rem;
  font-weight: 680;
}

.backup-heading p {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.backup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.backup-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.025);
  padding: 10px 10px 10px 14px;
}

.backup-label {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.backup-item code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
}

.backup-item .icon-button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

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

.path-switcher a {
  display: grid;
  min-height: 104px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow:
    inset 0 2px 0 rgba(100, 210, 255, 0.28),
    0 8px 28px rgba(0, 0, 0, 0.14);
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    transform 120ms ease-out;
}

.path-switcher a:hover {
  border-color: rgba(100, 210, 255, 0.44);
  background: var(--surface-hover);
  box-shadow:
    inset 0 2px 0 rgba(100, 210, 255, 0.48),
    0 12px 32px rgba(0, 0, 0, 0.2);
}

.path-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(100, 210, 255, 0.28);
  border-radius: var(--radius-small);
  background: rgba(100, 210, 255, 0.1);
  color: var(--accent);
}

.path-icon > .icon {
  width: 22px;
  height: 22px;
}

.path-copy {
  display: grid;
  gap: 4px;
}

.path-switcher strong {
  font-size: 1.0625rem;
  font-weight: 690;
}

.path-switcher small {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.tutorial-section,
.daily-section {
  padding-block: 72px;
}

.tutorial-section {
  border-top: 1px solid var(--border);
  background: #141517;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 710;
  line-height: 1.2;
}

.section-heading > p:last-child {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-heading a {
  margin-inline: 0.25em;
}

.tutorial-list {
  display: grid;
  gap: 20px;
}

.tutorial-step {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.tutorial-step-highlight {
  border-color: rgba(100, 210, 255, 0.34);
}

.step-header {
  display: flex;
  min-width: 0;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(100, 210, 255, 0.34);
  border-radius: var(--radius-small);
  background: rgba(100, 210, 255, 0.08);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}

.step-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
}

.step-header h3 {
  font-size: 1.0625rem;
  font-weight: 680;
  line-height: 1.35;
}

.step-image-button {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--border);
  background: #090a0b;
  padding: 0;
  color: var(--text-primary);
  cursor: zoom-in;
  transition:
    background-color 180ms var(--ease-out),
    transform 120ms ease-out;
}

.step-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #090a0b;
}

.step-body {
  align-self: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.step-body p + p,
.step-body p + .download-button,
.step-body .notice + p,
.step-body p + .instruction-list {
  margin-top: 12px;
}

.step-body strong,
.daily-section strong {
  color: var(--text-primary);
  font-weight: 680;
}

.step-body code {
  border: 1px solid rgba(100, 210, 255, 0.18);
  border-radius: 4px;
  background: rgba(100, 210, 255, 0.08);
  padding: 2px 6px;
  color: var(--accent);
  font-size: 0.875em;
}

.download-button {
  width: fit-content;
}

.instruction-list {
  display: grid;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: instructions;
}

.instruction-list li {
  position: relative;
  min-height: 28px;
  padding-left: 36px;
  counter-increment: instructions;
}

.instruction-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-primary);
  content: counter(instructions);
  font-size: 0.6875rem;
  font-weight: 700;
}

.step-body > .notice {
  margin-bottom: 14px;
}

.step-address-panel {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(100, 210, 255, 0.28);
  background: #181a1d;
  box-shadow: inset 0 3px 0 rgba(100, 210, 255, 0.13);
  padding: 22px 24px 24px;
}

.step-address-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.address-role {
  flex: 0 0 auto;
  border: 1px solid rgba(100, 210, 255, 0.28);
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.08);
  padding: 5px 9px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 680;
  line-height: 1.3;
}

.inline-heading h4 {
  font-size: 1rem;
  font-weight: 680;
}

.address-row-compact,
.backup-addresses-compact {
  padding-inline: 0;
}

.address-row-compact {
  padding-top: 16px;
}

.step-address-notices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.backup-addresses-compact {
  margin-top: 20px;
  padding-bottom: 0;
}

.daily-section {
  scroll-margin-top: var(--header-height);
}

.daily-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.daily-instructions {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.daily-list {
  display: grid;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.daily-list li {
  display: grid;
  min-height: 72px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-block: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.daily-list li:first-child {
  border-top: 1px solid var(--border);
}

.daily-list li > span,
.daily-figure figcaption > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(100, 210, 255, 0.34);
  border-radius: var(--radius-small);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.notice-prominent {
  margin-top: 18px;
}

.daily-gallery {
  display: grid;
  gap: 16px;
}

.daily-figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.daily-figure .step-image-button {
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.daily-figure figcaption {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-secondary);
}

.image-dialog {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  color: var(--text-primary);
  box-shadow: var(--shadow-2);
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-surface {
  display: grid;
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: rgba(24, 25, 28, 0.96);
}

.dialog-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px 12px 20px;
}

.dialog-header h2 {
  margin-top: 3px;
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.4;
}

.dialog-image-frame {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  background: #070708;
}

.dialog-image-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 220px);
  object-fit: contain;
}

.dialog-description {
  max-height: 160px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding: 16px 20px 18px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  white-space: pre-line;
}

.toast {
  position: fixed;
  z-index: var(--z-toast);
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100% - 32px));
  transform: translateY(16px);
  border: 1px solid rgba(75, 214, 111, 0.34);
  border-radius: var(--radius);
  background: rgba(29, 30, 34, 0.96);
  padding: 12px 16px;
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-1);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.toast[data-tone='warning'] {
  border-color: rgba(255, 179, 64, 0.34);
  color: var(--warning);
}

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

.app-loader {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  color: var(--text-secondary);
}

.load-error,
.noscript-message {
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
}

.app-loader-content {
  display: grid;
  width: min(100%, 300px);
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.loader-mark {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(100, 210, 255, 0.3);
  border-radius: 50%;
  background: var(--background-raised);
  box-shadow:
    0 0 0 8px rgba(100, 210, 255, 0.04),
    var(--shadow-1);
}

.loader-mark::before {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(100, 210, 255, 0.48);
  border-radius: 50%;
  content: '';
  animation: spin 2.8s linear infinite;
}

.loader-mark::after {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(100, 210, 255, 0.08);
  content: '';
  animation: loader-pulse 1.6s ease-in-out infinite;
}

.loader-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  animation: spin 2.2s linear infinite reverse;
}

.loader-copy {
  display: grid;
  gap: 6px;
}

.loader-copy .eyebrow {
  font-size: 0.75rem;
}

.loader-copy strong {
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 680;
}

.loader-copy span {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.loader-progress {
  width: min(160px, 100%);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loader-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0.8;
  transform: translateX(-125%);
  animation: loader-progress 1.45s var(--ease-out) infinite;
}

.load-error {
  flex-direction: column;
  padding: 24px;
  text-align: center;
}

.load-error > .icon {
  width: 28px;
  height: 28px;
  color: var(--warning);
}

.load-error h1 {
  font-size: 1.5rem;
}

.load-error .button {
  margin-top: 8px;
}

.browser-guide {
  display: none;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

html[data-embedded-browser='true'] .browser-guide {
  display: flex;
}

html[data-embedded-browser='true'] .app-mount,
html[data-embedded-browser='true'] .skip-link {
  display: none;
}

.browser-guide-content {
  width: min(100%, 520px);
}

.guide-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
}

.browser-guide h1 {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 710;
  line-height: 1.2;
}

.guide-description {
  margin-top: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.guide-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 26px;
}

.guide-url-row output {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  overflow-wrap: anywhere;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background-raised);
  padding: 10px 12px;
  color: var(--accent);
  font-size: 0.8125rem;
  user-select: all;
}

.guide-steps {
  display: grid;
  list-style: none;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  border-block: 1px solid var(--border);
}

.guide-steps li {
  display: grid;
  min-height: 56px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.guide-steps li:last-child {
  border-bottom: 0;
}

.guide-steps span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.clipboard-fallback {
  position: fixed;
  inset: auto auto 0 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-progress {
  0% {
    opacity: 0.35;
    transform: translateX(-125%);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.35;
    transform: translateX(365%);
  }
}

@media (max-width: 820px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .tutorial-step {
    grid-template-columns: 1fr;
  }

  .step-image-button {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .daily-layout {
    grid-template-columns: 1fr;
  }

  .daily-instructions {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .site-header nav a {
    padding-inline: 8px;
    font-size: 0.875rem;
  }

  .header-inner {
    gap: 10px;
  }

  .site-header nav {
    gap: 0;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding-block: 38px 52px;
  }

  .tutorial-entry {
    gap: 14px;
    margin-bottom: 34px;
  }

  .tutorial-entry-heading h2 {
    font-size: 1.3125rem;
  }

  .hero-copy {
    margin-bottom: 26px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-copy > p:last-child {
    font-size: 1rem;
  }

  .console-header,
  .address-row,
  .address-meta,
  .notice-stack,
  .backup-addresses {
    padding-inline: 16px;
  }

  .console-header {
    min-height: 76px;
  }

  .address-row {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .address-row > .button {
    width: 100%;
    min-width: 0;
  }

  .address-value {
    min-height: 54px;
    font-size: 1.125rem;
  }

  .address-meta {
    min-height: 56px;
    padding-block: 6px;
  }

  .notice-stack,
  .backup-list,
  .path-switcher {
    grid-template-columns: 1fr;
  }

  .notice-stack {
    padding-bottom: 20px;
  }

  .backup-addresses {
    padding-block: 18px 20px;
  }

  .backup-item {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .path-switcher a {
    min-height: 88px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .path-icon {
    width: 44px;
    height: 44px;
  }

  .tutorial-section,
  .daily-section {
    padding-block: 52px;
  }

  .section-heading h2 {
    font-size: 1.625rem;
  }

  .step-body,
  .step-address-panel {
    padding: 18px;
  }

  .step-address-heading {
    align-items: flex-start;
  }

  .address-row-compact,
  .backup-addresses-compact {
    padding-inline: 0;
  }

  .step-address-notices {
    grid-template-columns: 1fr;
  }

  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .image-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-surface {
    max-height: calc(100dvh - 16px);
  }

  .dialog-header {
    padding-left: 14px;
  }

  .dialog-image-frame img {
    max-height: calc(100dvh - 260px);
  }

  .dialog-description {
    max-height: 180px;
    padding-inline: 14px;
  }

  .toast {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

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

  .guide-url-row .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .console-header {
    gap: 8px;
    padding-inline: 14px;
  }

  .console-title {
    gap: 8px;
  }

  .console-title > .icon {
    width: 20px;
    height: 20px;
  }

  .console-title p {
    font-size: 0.75rem;
  }

  .console-title h2 {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .console-actions {
    gap: 6px;
  }

  .status-badge {
    padding-inline: 8px;
  }

  .site-header nav a {
    padding-inline: 6px;
    font-size: 0.8125rem;
  }

  .header-inner {
    gap: 6px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .dialog-header {
    min-height: 60px;
  }

  .dialog-image-frame img {
    max-height: calc(100dvh - 150px);
  }

  .dialog-description {
    max-height: 84px;
    padding-block: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .loader-mark::before,
  .loader-mark::after,
  .loader-icon,
  .loader-progress span {
    animation: none;
  }

  .loader-progress span {
    opacity: 0.7;
    transform: translateX(0);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .dialog-surface,
  .toast {
    background: var(--surface);
    backdrop-filter: none;
  }

  .image-dialog::backdrop {
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --border-strong: rgba(255, 255, 255, 0.48);
    --text-secondary: #dedee2;
    --text-tertiary: #c8c9ce;
  }
}
