:root {
  --coyote: #5f6240;
  --olive: #4f5e3a;
  --bone: #fff8ed;
  --ink: #211b16;
  --site-muted: #514437;
  --paper: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #d0d5dd;
  --accent: #0b5cab;
  --accent-2: #13b5d1;
  --accent-soft: #eaf4ff;
  --warn: #d92d20;
  --warn-bg: #fff4ed;
  --dark: #071b33;
  --code-bg: #f2f4f7;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: #020711;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 135, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 12% 12%, rgba(0, 168, 255, 0.1), transparent 24rem),
    radial-gradient(circle at 42% 86%, rgba(0, 80, 160, 0.14), transparent 28rem),
    linear-gradient(180deg, #020711 0%, #020916 46%, #00050d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(0, 135, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 135, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.instruction-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.instruction-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.instruction-nav--bottom {
  margin: 8px 0 0;
}

.instruction-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(0, 135, 255, 0.64);
  border-radius: 999px;
  color: #f7fbff;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(1, 9, 23, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.instruction-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 184, 255, 0.95);
  background: rgba(0, 61, 128, 0.76);
}

.instruction-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(26px, 4vw, 34px);
  border: 2px solid rgba(19, 181, 209, 0.5);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(19, 181, 209, 0.34), transparent 32%),
    linear-gradient(135deg, #071b33 0%, #0b3564 58%, #0b5cab 100%);
  box-shadow: 0 24px 60px rgba(7, 27, 51, 0.34);
}

.instruction-hero::after {
  position: absolute;
  right: -90px;
  top: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.04), 0 0 0 92px rgba(255, 255, 255, 0.03);
  content: "";
  pointer-events: none;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-bottom: 18px;
}

.instruction-section,
.instruction-card {
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 24px);
  border: 1px solid var(--line);
  border-left: 7px solid var(--accent);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(234, 244, 255, 0.72) 0, rgba(234, 244, 255, 0.22) 34px, #fff 160px),
    var(--paper);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.14);
}

.quick-grid .instruction-section {
  border-top: 6px solid var(--accent-2);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #f6fbff 0%, #fff 52%);
}

.instruction-section h2::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  content: "";
  vertical-align: 0.08em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.16;
}

.instruction-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.35rem);
  letter-spacing: 0.02em;
}

.instruction-hero p {
  max-width: 780px;
  margin: 0;
  color: #d9e1d8;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
}

h2 {
  margin-bottom: 14px;
  color: var(--dark);
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
}

h3 {
  margin: 22px 0 10px;
  color: var(--dark);
  font-size: clamp(1.15rem, 1.8vw, 1.28rem);
}

h3:first-child {
  margin-top: 0;
}

h4 {
  margin: 16px 0 8px;
  color: var(--dark);
  font-size: 1.06rem;
}

p {
  margin: 0 0 12px;
  line-height: 1.58;
}

ul,
ol {
  margin: 8px 0 0 22px;
  padding: 0;
  line-height: 1.56;
}

li {
  margin: 6px 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.warning {
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 24px);
  position: relative;
  overflow: hidden;
  border: 4px solid var(--warn);
  border-radius: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(217, 45, 32, 0.17), transparent 18rem),
    linear-gradient(180deg, #fff7f4 0%, var(--warn-bg) 100%);
  box-shadow: 0 18px 42px rgba(120, 42, 24, 0.28);
}

.warning::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: repeating-linear-gradient(
    45deg,
    var(--warn) 0,
    var(--warn) 10px,
    #ffb4a8 10px,
    #ffb4a8 20px
  );
  content: "";
}

.warning h2 {
  margin-bottom: 12px;
  padding-left: 10px;
  color: var(--warn);
  font-size: clamp(1.65rem, 3vw, 1.95rem);
}

.warning .big {
  margin-bottom: 14px;
  padding-left: 10px;
  color: var(--warn);
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.warning p {
  margin-bottom: 10px;
  padding-left: 10px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.warning strong {
  font-weight: 900;
}

table {
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 12px;
  background: #fff;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark), var(--accent));
}

tr:last-child td {
  border-bottom: 0;
}

code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--code-bg);
}

.screen {
  margin: 10px 0 12px;
  padding: 16px;
  overflow-x: auto;
  border: 3px solid var(--accent-2);
  border-radius: 12px;
  color: #bff3ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2.4vw, 1.38rem);
  line-height: 1.45;
  white-space: pre;
  background:
    radial-gradient(circle at 100% 0, rgba(19, 181, 209, 0.2), transparent 12rem),
    var(--dark);
  box-shadow: inset 0 0 0 1px rgba(191, 243, 255, 0.15), 0 14px 30px rgba(7, 27, 51, 0.22);
}

.menu-tree {
  margin-top: 12px;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #b8cce3;
  border-left: 6px solid var(--accent);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.tree {
  min-width: 680px;
  margin: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94rem;
  line-height: 1.45;
  list-style: none;
}

.tree li {
  margin: 0;
  padding: 2px 0;
  white-space: nowrap;
}

.tree .name {
  color: var(--dark);
  font-weight: 800;
}

.tree .desc,
.muted {
  color: var(--muted);
}

.tree .branch {
  color: #6b756d;
}

.tips,
.two-col,
.flow {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.tips,
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.tip,
.step {
  padding: 14px;
  border: 1px solid #b8cce3;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.07);
}

.tip {
  border-left: 5px solid var(--accent);
}

.step {
  border-top: 5px solid var(--accent-2);
}

.tip strong {
  color: var(--accent);
}

.ok {
  color: var(--accent);
  font-weight: 900;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.footer-note {
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
}

@media (max-width: 780px) {
  .instruction-shell {
    width: min(100% - 24px, 1080px);
    padding: 16px 0 36px;
  }

  .quick-grid,
  .two-col,
  .tips,
  .flow {
    grid-template-columns: 1fr;
  }

  .instruction-hero,
  .instruction-section,
  .instruction-card,
  .warning {
    border-radius: 16px;
  }

  .instruction-nav a {
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .instruction-nav {
    display: none;
  }

  .instruction-shell {
    width: auto;
    padding: 0;
  }

  .instruction-hero,
  .instruction-section,
  .instruction-card,
  .warning {
    box-shadow: none;
    break-inside: avoid;
  }

  .instruction-hero {
    background: #172018 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
