@charset "UTF-8";

:root {
  color-scheme: light;
  --ice: #f2f7fc;
  --paper: #ffffff;
  --ink: #182f4c;
  --muted: #526780;
  --blue: #2454cb;
  --blue-hover: #1943ac;
  --blue-light: #eaf0ff;
  --teal: #136f63;
  --teal-light: #e9f5ef;
  --amber: #8a570b;
  --amber-light: #fff5df;
  --line: #d7e2ee;
  --shadow: 0 10px 30px rgb(24 47 76 / 5%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--ice); color: var(--ink); line-height: 1.85; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #bb6d00;
  outline-offset: 4px;
}
button:disabled { opacity: .48; }
::selection { background: #cedcff; color: var(--ink); }
h1, h2, h3, h4, p, ol, ul { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.5; overflow-wrap: anywhere; }
p { margin-bottom: 1.1em; }
code, output { overflow-wrap: anywhere; word-break: break-word; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
svg { display: block; flex-shrink: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 99; padding: 12px 20px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 48px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 18px; font-weight: 750; text-decoration: none; text-align: left; line-height: 1.4; letter-spacing: .035em; }
.inline-feedback { margin: 12px 0 0; padding: 12px; border-left: 3px solid var(--teal); background: var(--teal-light); font-size: 13px; line-height: 1.8; }
.inline-feedback[data-kind="warning"] { border-color: var(--amber); background: var(--amber-light); color: var(--amber); }
.inline-feedback[data-kind="info"] { border-color: var(--blue); background: var(--blue-light); }
.error-page { margin: 10vh auto; padding: 24px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .025em; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 42px; border: 1px solid var(--ink); border-radius: 13px 13px 16px 16px; background: var(--ink); color: white; font-size: 20px; font-weight: 600; line-height: 1; }
.brand-icon svg { width: 22px; height: 22px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.training-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 2px 9px; border: 1px solid #c8dfd8; border-radius: 5px; color: var(--teal); background: #edf6f1; font-size: 10px; font-weight: 650; }
.header-actions .quiet-button { font-size: 13px; }
.layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); align-items: start; gap: 54px; max-width: 1560px; padding: 42px 48px 64px; margin: 0 auto; }
.journey { position: sticky; top: 32px; padding-top: 5px; }
.journey-label { display: inline-block; margin-bottom: 11px; color: var(--teal); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.journey h1 { max-width: 13em; margin-bottom: 14px; font-size: 25px; font-weight: 750; letter-spacing: .025em; }
.journey-copy { max-width: 19em; margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.step-list { position: relative; list-style: none; margin: 0; padding: 0; }
.step-list::before { content: ""; position: absolute; top: 28px; bottom: 32px; left: 26px; width: 1px; background: #cbd9e8; }
.step-list li { position: relative; margin: 0 0 5px; }
.step-link { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 73px; padding: 10px 11px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); text-align: left; transition: background .15s ease, border-color .15s ease; }
.step-link:hover { background: #e8f0f9; }
.step-num { position: relative; display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 1px solid #c4d2e2; border-radius: 50%; background: var(--ice); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1; }
.step-text { display: block; font-size: 13px; font-weight: 700; line-height: 1.6; }
.step-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.step-link[aria-current="step"] { border-color: #cbd8f8; background: white; color: var(--blue); box-shadow: 0 3px 12px rgb(24 47 76 / 3%); }
.step-link[aria-current="step"] .step-num { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 0 0 4px #eaf0ff; }
.step-link.is-done .step-num, .is-done > .step-link .step-num { border-color: var(--teal); background: var(--teal); color: white; }
.journey-note { margin: 27px 0 0; padding: 15px 0 0 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.9; }
main { min-width: 0; max-width: 1160px; }
.lesson-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.step-kicker { color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .035em; }
.lesson-meta { color: var(--muted); font-size: 12px; }
.lesson-heading { max-width: 760px; margin-bottom: 27px; }
.lesson-heading h2 { margin-bottom: 11px; font-size: clamp(25px, 2.35vw, 34px); font-weight: 750; letter-spacing: .025em; line-height: 1.55; }
.lesson-heading > p { max-width: 55em; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.95; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(230px, 1fr); align-items: start; gap: 23px; }
.exercise, .explainer { min-width: 0; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 17px 23px; border-bottom: 1px solid #e4ebf3; }
.panel-head h3 { flex: 1; margin: 0; font-size: 15px; font-weight: 750; }
.icon-chip { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; background: var(--blue-light); color: var(--blue); font-size: 15px; line-height: 1; }
.icon-chip svg { width: 17px; height: 17px; }
.pill { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 24px; padding: 2px 8px; border: 1px solid #dce5ed; border-radius: 5px; color: var(--muted); background: #f7f9fc; font-size: 10px; font-weight: 650; line-height: 1.6; }
.panel-body { padding: 25px; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-body > p { font-size: 14px; }
.hero-panel { position: relative; min-height: 182px; margin-bottom: 23px; padding: 27px 34% 26px 27px; overflow: hidden; border: 1px solid #cbd8f5; border-radius: 16px; background: #eaf0ff; }
.hero-panel::after { content: ""; position: absolute; width: 188px; height: 188px; top: -20px; right: -39px; border: 1px solid #c4d3f5; border-radius: 50%; pointer-events: none; }
.hero-panel h3 { position: relative; z-index: 1; margin-bottom: 9px; font-size: 20px; font-weight: 750; }
.hero-copy .pill { position: relative; z-index: 1; margin-bottom: 12px; border-color: #c6d4f3; background: #f8faff; color: #49648c; }
.hero-panel p { position: relative; z-index: 1; max-width: 37em; margin: 0; color: #405b84; font-size: 13px; line-height: 1.9; }
.key-art { position: absolute; top: 47%; right: 34px; width: 140px; height: 80px; transform: translateY(-50%) rotate(-34deg); pointer-events: none; }
.key-ring { position: absolute; left: 0; top: 5px; width: 70px; height: 70px; border: 15px solid var(--blue); border-radius: 50%; background: transparent; box-shadow: inset 2px 2px 0 #d6e2ff, 3px 4px 0 #b8caf1; }
.key-shaft { position: absolute; top: 31px; left: 60px; width: 83px; height: 19px; border-radius: 2px 5px 5px 2px; background: var(--blue); box-shadow: 1px 4px 0 #b8caf1; }
.key-tooth { position: absolute; top: 43px; right: 7px; width: 17px; height: 23px; border-radius: 0 0 3px 3px; background: var(--blue); box-shadow: 1px 3px 0 #b8caf1; }
.key-tooth::before { content: ""; position: absolute; left: -29px; width: 15px; height: 17px; border-radius: 0 0 3px 3px; background: var(--blue); }
.password-box { padding: 19px; border: 1px solid #cbd8ee; border-radius: 10px; background: #f7faff; }
.password-box > label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.field-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.password-value { display: block; min-height: 36px; color: var(--ink); font-size: clamp(18px, 1.8vw, 23px); font-weight: 650; line-height: 1.7; letter-spacing: .06em; }
.password-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding-top: 11px; border-top: 1px solid #dce6f5; color: var(--muted); font-size: 11px; }
.password-foot strong { color: var(--teal); font-weight: 650; }
.segmented { display: inline-flex; gap: 3px; max-width: 100%; padding: 4px; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 9px; background: #f0f4f9; }
.panel-body > .segmented:first-child { margin: 0 0 17px; }
.segmented button { min-height: 44px; padding: 7px 15px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.segmented button[aria-pressed="true"] { border-color: #ced9e9; background: white; color: var(--ink); box-shadow: 0 1px 4px rgb(24 47 76 / 5%); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.primary-button, .secondary-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.65; text-align: center; text-decoration: none; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.primary-button { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 3px 0 #1a3f9c; }
.primary-button:not(:disabled):hover { border-color: var(--blue-hover); background: var(--blue-hover); box-shadow: 0 3px 0 #102e7c; }
.primary-button:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #1a3f9c; }
.secondary-button { border-color: #bdccdf; background: white; color: var(--ink); }
.secondary-button:not(:disabled):hover { border-color: #91a8c6; background: #f0f5fb; }
.quiet-button { background: transparent; color: var(--muted); }
.quiet-button:not(:disabled):hover { background: #e7eef7; color: var(--ink); }
.next-row { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.next-row > p, .next-row > small { max-width: 32em; margin: 0 auto 0 0; color: var(--muted); font-size: 12px; }
.notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 16px; border: 1px solid #cbdaf1; border-radius: 9px; background: #edf4ff; color: #244e88; font-size: 13px; line-height: 1.8; }
.notice:empty { display: none; }
.notice p { margin: 0; }
.notice[data-kind="success"] { border-color: #bedecd; background: var(--teal-light); color: #145c4d; }
.notice[data-kind="warning"] { border-color: #ecd29d; background: var(--amber-light); color: #754a0b; }
.notice strong { font-weight: 750; }
.explainer { padding: 17px 0 10px 20px; border-left: 2px solid #d4e0ef; }
.explainer > .icon-chip { margin-bottom: 11px; background: #e3ecf8; }
.explainer h3 { margin-bottom: 13px; font-size: 15px; font-weight: 750; }
.explainer h4 { margin: 22px 0 8px; font-size: 13px; }
.explainer p, .explainer li { color: var(--muted); font-size: 12px; line-height: 2; }
.explainer p:last-child { margin-bottom: 0; }
.explainer strong { color: var(--ink); font-weight: 750; }
.explainer ol, .explainer ul { padding-left: 1.4em; margin-bottom: 0; }
.explainer li + li { margin-top: 8px; }
.explainer a { display: inline-block; min-height: 44px; padding: 9px 0; font-size: 12px; }
.mini-shop { border: 1px solid #d7e0e9; border-radius: 10px; overflow: hidden; background: white; }
.shop-brand { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #e2e9e9; background: #f0f6f3; color: #285749; font-size: 14px; font-weight: 750; letter-spacing: .035em; }
.shop-brand .pill { margin-left: auto; border-color: #cdded5; background: #f8fbf9; color: #476d60; }
.shop-address { margin: 0; padding: 8px 18px; border-bottom: 1px solid #e7edf2; background: #f9fafc; color: #6a7b8c; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.exercise > .mini-shop { border: 0; border-radius: 0; }
.mini-shop > .readonly-field { margin-right: 20px; margin-left: 20px; }
.mini-shop > .actions { margin: 18px 20px; }
.mini-shop > .login-state { margin: 0 20px 18px; }
.mini-shop > .panel-body, .shop-body { padding: 20px; }
.readonly-field { min-width: 0; margin: 16px 0; }
.readonly-field label, .readonly-field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
.readonly-field output { display: block; min-height: 44px; padding: 10px 12px; border: 1px solid #d6e0eb; border-radius: 6px; background: #f7f9fc; color: var(--ink); font-size: 13px; line-height: 1.8; }
.readonly-field output:empty::before { content: "未入力"; color: #667a92; }
.readonly-field output code { font-size: 12px; }
.login-state { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.login-state[data-kind="success"], .login-state.is-success { color: var(--teal); }
.login-state[data-success="true"] { color: var(--teal); font-weight: 650; }
.login-state[data-kind="warning"], .login-state.is-warning { color: var(--amber); }
.compare-section { margin-top: 29px; }
.compare-section > h3 { margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.compare-header { margin-bottom: 12px; }
.compare-header h2 { margin: 0 0 4px; color: var(--ink); font-size: 14px; font-weight: 750; }
.compare-header p { margin: 0; color: var(--muted); font-size: 11px; }
.comparison { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); align-items: stretch; padding: 19px 23px; border: 1px solid #cfdfeb; border-radius: 12px; background: #eaf1f8; }
.destination { min-width: 0; padding: 2px 0; }
.destination-title { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #405871; font-size: 12px; font-weight: 750; }
.destination code { display: block; min-height: 25px; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.8; letter-spacing: .025em; }
.state-label { display: inline-flex; align-items: center; min-height: 24px; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.link-mark { display: grid; align-content: center; justify-content: center; min-width: 0; color: #7088a2; font-size: 24px; line-height: 1; }
.comparison[data-sync="same"] { border-color: #c2dbd2; background: #edf6f1; }
.comparison[data-sync="same"] .link-mark, .comparison[data-sync="same"] .state-label { color: var(--teal); }
.comparison[data-sync="different"] { border-color: #ead19e; background: #fff5e2; }
.comparison[data-sync="different"] .link-mark, .comparison[data-sync="different"] .state-label { color: var(--amber); }
.comparison[data-sync="empty"] .link-mark { opacity: .6; }
.comparison-status { margin: 8px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.comparison-status[data-sync="same"] { color: var(--teal); font-weight: 650; }
.comparison-status[data-sync="different"] { color: var(--amber); font-weight: 650; }
.teaching-note { margin: 12px 0 0; padding-left: 2px; color: var(--muted); font-size: 12px; line-height: 1.95; }
.teaching-note strong { color: var(--ink); }
#lesson > .teaching-note { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid #bb811d; border-radius: 0 8px 8px 0; background: var(--amber-light); }
.teaching-note p { margin: 4px 0 0; }
.helper-text { margin: 15px 0 0; color: var(--muted); font-size: 11px !important; line-height: 1.9; }
.item-details { margin: 0 0 22px; font-size: 12px; }
.item-details > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #e6edf4; }
.item-details dt { color: var(--muted); }
.item-details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.checklist { margin: 0 0 20px; padding-left: 1.6em; color: var(--muted); font-size: 12px; line-height: 1.85; }
.checklist li + li { margin-top: 7px; }
.checklist li::marker { color: var(--blue); font-weight: 700; }
.vault-update { margin-top: 20px; padding-top: 21px; border-top: 1px solid var(--line); }
.failure-demo { margin-top: 22px; padding: 0 18px; border: 1px dashed #c0cfe0; border-radius: 10px; background: #edf3fa; }
.failure-demo summary { display: flex; align-items: center; gap: 10px; min-height: 56px; color: #415b79; font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.failure-demo summary::-webkit-details-marker { display: none; }
.failure-demo summary::before { content: "+"; font-size: 20px; font-weight: 400; }
.failure-demo[open] summary::before { content: "−"; }
.failure-demo > p { color: var(--muted); font-size: 12px; }
.failure-demo > :last-child { margin-bottom: 18px; }
.completion-panel { padding: 33px; }
.completion-panel > h3 { margin-bottom: 8px; font-size: 22px; }
.completion-panel > p { color: var(--muted); font-size: 13px; }
.completion-panel .teaching-note { margin-top: 16px; padding: 16px 19px; border-radius: 9px; background: #edf6f1; }
.instructor-panel { margin-top: 29px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.instructor-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; padding: 14px 4px; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.instructor-panel summary::-webkit-details-marker { display: none; }
.instructor-panel summary::after { content: "+"; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #c7d5e4; border-radius: 50%; font-size: 17px; font-weight: 400; line-height: 1; }
.instructor-panel[open] summary::after { content: "−"; }
.instructor-content { padding: 0 4px 18px; color: var(--muted); font-size: 12px; line-height: 2; }
.instructor-panel > .instructor-content { padding-top: 18px; }
.instructor-content h2 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.instructor-content h3 { margin: 15px 0 7px; color: var(--ink); font-size: 13px; }
.instructor-content ul, .instructor-content ol { padding-left: 1.5em; }
.instructor-content > :last-child { margin-bottom: 0; }
.instructor-content .actions { margin-top: 13px; }
.recap-list { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: recap; }
.recap-list li { position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--line); counter-increment: recap; font-size: 14px; }
.recap-list li::before { content: counter(recap); position: absolute; top: 19px; left: 0; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #bbd9cd; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-size: 12px; font-weight: 700; line-height: 1; }
.recap-list strong { display: block; margin-bottom: 4px; font-size: 14px; }
.recap-list p, .recap-list small { margin: 0; color: var(--muted); font-size: 12px; }
.recap-list span { display: block; color: var(--muted); font-size: 12px; }
.completion-mark { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 18px; border: 1px solid #bcdccc; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-size: 29px; line-height: 1; box-shadow: 0 0 0 7px #f3faf6; }
.completion-mark svg { width: 29px; height: 29px; }
.site-footer { max-width: 1560px; margin: 0 auto; padding: 27px 48px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.9; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 13px; }
.footer-top p { max-width: 60em; margin: 0; }
.footer-top strong { color: var(--ink); font-weight: 650; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer > p { margin-bottom: 0; }
.site-footer details { max-width: 1000px; }
.site-footer summary { min-height: 44px; padding: 10px 0; color: var(--ink); cursor: pointer; }
.site-footer details > p { max-width: 78em; }
.site-footer ul { padding-left: 1.5em; }
dialog { width: min(460px, calc(100% - 36px)); max-height: calc(100% - 48px); padding: 29px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); box-shadow: 0 25px 100px rgb(24 47 76 / 22%); }
dialog::backdrop { background: rgb(24 47 76 / 45%); backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 12px; font-size: 21px; }
dialog p { color: var(--muted); font-size: 13px; line-height: 1.9; }
dialog .actions { justify-content: flex-end; margin-top: 24px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1600px) {
  .layout { gap: 60px; }
  .site-header, .site-footer { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 1180px) {
  .site-header { padding-left: 30px; padding-right: 30px; }
  .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; padding: 34px 30px 50px; }
  .journey h1 { font-size: 22px; }
  .step-link { gap: 10px; padding-left: 8px; padding-right: 8px; }
  .step-list::before { left: 23px; }
  .workspace { grid-template-columns: minmax(0, 1.7fr) minmax(190px, 1fr); gap: 20px; }
  .panel-body { padding: 21px; }
  .panel-head { padding-left: 20px; padding-right: 20px; }
  .hero-panel { padding-right: 30%; }
  .key-art { right: 18px; transform: translateY(-50%) rotate(-34deg) scale(.85); transform-origin: right center; }
  .site-footer { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 1000px) and (min-width: 781px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .explainer { padding: 15px 0 0; border-left: 0; border-top: 2px solid #d4e0ef; }
  .explainer h3 { margin-bottom: 8px; }
  .explainer p { max-width: 60em; }
  .explainer a { padding-bottom: 0; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 20px; }
  .site-header { min-height: 75px; padding: 15px 22px; gap: 12px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-icon { width: 32px; height: 36px; border-radius: 11px 11px 13px 13px; font-size: 17px; }
  .header-actions { gap: 4px; }
  .header-actions .quiet-button { min-height: 44px; padding: 8px; font-size: 11px; }
  .training-badge { display: none; }
  .layout { display: block; padding: 24px 22px 39px; }
  .journey { position: static; margin-bottom: 29px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
  .journey-label { margin-bottom: 6px; font-size: 11px; }
  .journey h1 { max-width: none; margin-bottom: 7px; font-size: 23px; }
  .journey-copy { max-width: 56em; margin-bottom: 19px; font-size: 12px; }
  .step-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .step-list::before { display: none; }
  .step-list li { margin: 0; }
  .step-link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; min-height: 97px; padding: 9px 3px; border-radius: 8px; text-align: center; }
  .step-num { flex: 0 0 28px; width: 28px; height: 28px; font-size: 12px; }
  .step-text { font-size: 10px; line-height: 1.65; }
  .step-text small { display: none; }
  .journey-note { margin-top: 14px; padding: 0; border: 0; font-size: 10px; }
  .lesson-top { margin-bottom: 18px; padding-bottom: 13px; }
  .step-kicker, .lesson-meta { font-size: 11px; }
  .lesson-heading { margin-bottom: 23px; }
  .lesson-heading h2 { margin-bottom: 10px; font-size: 27px; line-height: 1.6; }
  .lesson-heading > p { font-size: 13px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-panel { min-height: 163px; padding: 24px 33% 24px 23px; margin-bottom: 21px; }
  .hero-panel h3 { font-size: 18px; }
  .hero-panel p { font-size: 12px; }
  .key-art { right: 22px; transform: translateY(-50%) rotate(-34deg) scale(.85); }
  .panel-body { padding: 22px; }
  .panel-head { padding: 15px 21px; }
  .panel-head h3 { font-size: 14px; }
  .password-value { font-size: 21px; }
  .explainer { padding: 17px 20px; border: 0; border-radius: 3px; background: #e7eff8; }
  .explainer h3 { margin-bottom: 8px; }
  .explainer p, .explainer li { font-size: 12px; }
  .compare-section { margin-top: 25px; }
  .comparison { padding: 18px 20px; }
  .next-row { margin-top: 24px; padding-top: 21px; }
  .next-row .primary-button { min-width: 190px; }
  .site-footer { padding: 22px 22px 26px; }
  .footer-top { display: block; margin-bottom: 8px; }
  .footer-links { margin-top: 7px; }
}
@media (max-width: 480px) {
  .site-header { padding-left: 16px; padding-right: 12px; }
  .brand { font-size: 14px; letter-spacing: 0; }
  .brand-icon { width: 29px; height: 33px; }
  .brand small { font-size: 8px; }
  .layout { padding: 22px 16px 32px; }
  .journey h1 { font-size: 21px; }
  .journey-copy { font-size: 11px; }
  .step-list { gap: 2px; }
  .step-link { min-height: 94px; padding-left: 1px; padding-right: 1px; }
  .step-text { font-size: 9px; letter-spacing: -.025em; }
  .step-num { flex-basis: 26px; width: 26px; height: 26px; font-size: 11px; }
  .lesson-heading h2 { font-size: 24px; }
  .lesson-meta { max-width: 14em; text-align: right; }
  .panel { border-radius: 13px; }
  .panel-head { padding: 14px 17px; gap: 8px; }
  .panel-body { padding: 19px 17px; }
  .completion-panel { padding: 25px 20px; }
  .completion-panel > h3 { font-size: 19px; }
  .pill { padding: 2px 6px; font-size: 9px; }
  .hero-panel { min-height: 168px; padding: 22px 28% 23px 20px; border-radius: 13px; }
  .hero-panel h3 { font-size: 17px; }
  .hero-panel p { font-size: 11px; }
  .hero-panel::after { width: 160px; height: 160px; right: -73px; top: 5px; }
  .key-art { top: 52%; right: 12px; transform: translateY(-50%) rotate(-34deg) scale(.59); }
  .password-box { padding: 15px; }
  .password-value { font-size: 19px; letter-spacing: .035em; }
  .password-foot { display: block; font-size: 10px; }
  .password-foot > * + * { margin-left: 9px; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; min-width: 0; padding: 7px 9px; font-size: 11px; }
  .actions { align-items: stretch; gap: 10px; margin-top: 19px; }
  .actions > .primary-button, .actions > .secondary-button { width: 100%; }
  .actions > .quiet-button { flex: 1; }
  .primary-button, .secondary-button { min-height: 49px; }
  .notice { padding: 12px 13px; font-size: 12px; }
  .next-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .next-row .primary-button { width: 100%; }
  .next-row > p, .next-row > small { margin: 0; }
  .comparison { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); padding: 16px 13px; }
  .destination-title { align-items: flex-start; gap: 5px; min-height: 35px; font-size: 10px; line-height: 1.65; }
  .destination code { font-size: 10px; }
  .state-label { font-size: 10px; }
  .link-mark { font-size: 20px; }
  .teaching-note { font-size: 11px; }
  .mini-shop > .panel-body, .shop-body { padding: 17px; }
  .site-footer { padding-left: 16px; padding-right: 16px; font-size: 10px; }
  dialog { padding: 23px; }
  dialog .actions { flex-direction: column-reverse; }
  dialog .actions > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .primary-button, .step-link[aria-current="step"] { border: 2px solid ButtonText; }
  .step-link[aria-current="step"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .key-art { display: none; }
  .notice, .comparison { border: 1px solid CanvasText; }
}

.illustrated-guides { margin: 22px 0 28px; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.illustrated-guides > summary { min-height: 52px; padding: 14px 19px; color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; }
.guide-source-note { margin: 0; padding: 0 19px 17px; color: var(--muted); font-size: 12px; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 0 19px 20px; }
.instruction-card { min-width: 0; margin: 0; }
.instruction-card h3 { font-size: 15px; margin-bottom: 12px; }
.instruction-image-button { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #c7d5e8; border-radius: 8px; background: #f2f7fc; color: var(--blue); }
.instruction-image-button img { display: block; width: 100%; height: auto; }
.instruction-image-button span { display: block; padding: 9px; font-size: 12px; font-weight: 700; }
.instruction-card figcaption { padding: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.9; }
.guide-dialog { width: min(1300px,calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 18px; }
.guide-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.guide-dialog-head h2 { margin: 0; font-size: 18px; }
.guide-dialog > p { margin-bottom: 12px; font-size: 12px; }
.guide-zoom-viewport { max-height: 68vh; overflow: auto; border: 1px solid var(--line); background: white; overscroll-behavior: contain; }
.guide-zoom-viewport img { display: block; width: max(100%,960px); max-width: none; height: auto; }
@media(max-width:780px) { .guide-grid { grid-template-columns: minmax(0,1fr); } .guide-dialog { padding: 13px; } .guide-dialog-head h2 { font-size: 15px; } .illustrated-guides > summary { font-size: 13px; } }
@media print {
  body { background: white; }
  .site-header, .journey, .header-actions, .actions, .next-row, .instructor-panel, .key-art { display: none !important; }
  .layout { display: block; padding: 0; }
  .workspace { display: block; }
  .explainer { margin-top: 20px; }
  .panel { box-shadow: none; break-inside: avoid; }
  .site-footer { padding-left: 0; padding-right: 0; }
}

/* Real 1Password practice: stable forms and a seven-step learning path. */
.safety-banner {
  width: calc(100% - 96px);
  max-width: 1464px;
  margin: 20px auto 0;
  padding: 15px 19px;
  border-left: 4px solid var(--amber);
  border-radius: 0 9px 9px 0;
  background: var(--amber-light);
  color: #754a0b;
}
.safety-banner strong { display: block; font-size: 14px; font-weight: 750; line-height: 1.7; }
.safety-banner p { max-width: 78em; margin: 4px 0 0; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
#mode-controls { min-width: 0; margin-bottom: 27px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
#mode-controls > h2 { margin-bottom: 12px; font-size: 17px; }
#mode-controls .mode-options {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid #cbd9e9;
  border-radius: 11px;
  background: #e7eff8;
}
#mode-controls .mode-options button {
  min-width: 0;
  min-height: 58px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: anywhere;
}
#mode-controls .mode-options button:not(:disabled):hover { background: #f5f8fd; color: var(--ink); }
#mode-controls .mode-options button[aria-pressed="true"] { border-color: #b9cbf4; background: white; color: var(--blue); box-shadow: 0 2px 7px rgb(24 47 76 / 6%); }
#mode-controls .mode-options button:first-child[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: white; }
#mode-controls .mode-options button strong { display: block; font-weight: 750; }
#mode-controls .mode-options button small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; }
.mode-help { max-width: 65em; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
#real-lesson, #real-lesson .real-step { min-width: 0; }
#real-lesson .lesson-top { flex-wrap: wrap; }
#real-lesson .panel-head { flex-wrap: wrap; }
#real-lesson .panel-head h3 { min-width: 0; }
.practice-form { min-width: 0; margin: 0; }
.practice-form .form-field { min-width: 0; margin-bottom: 21px; }
.practice-form .form-field > label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.75; }
.practice-form input[type="email"], .practice-form input[type="password"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #aebfd4;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  appearance: none;
}
.practice-form input[type="password"] { letter-spacing: .1em; }
.practice-form input::placeholder { color: #6b7e94; opacity: 1; font-weight: 400; letter-spacing: normal; }
.practice-form input:focus-visible, .check-row input:focus-visible {
  border-color: var(--blue);
  outline: 3px solid #bb6d00;
  outline-offset: 3px;
}
.practice-form input[aria-invalid="true"] { border-color: var(--amber); background: #fffdf8; }
.practice-form input:disabled { border-color: #d2dce9; background: #edf2f7; color: #607189; cursor: not-allowed; opacity: 1; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.check-row { margin: 15px 0; }
.check-row label, label.check-row { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; padding: 10px 0; color: var(--ink); font-size: 13px; line-height: 1.8; cursor: pointer; }
.check-row label > span, label.check-row > span { min-width: 0; overflow-wrap: anywhere; }
.check-row input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.check-row label:has(input:disabled), label.check-row:has(input:disabled) { color: #607189; cursor: not-allowed; }
.check-row input:disabled { cursor: not-allowed; }
.form-feedback { margin: 18px 0 0; padding: 13px 15px; border-left: 3px solid var(--blue); border-radius: 0 7px 7px 0; background: var(--blue-light); color: #244e88; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.form-feedback:empty { display: none; }
.form-feedback[data-kind="info"] { border-color: var(--blue); background: var(--blue-light); color: #244e88; }
.form-feedback[data-kind="warning"] { border-color: var(--amber); background: var(--amber-light); color: #754a0b; }
.form-feedback[data-kind="success"] { border-color: var(--teal); background: var(--teal-light); color: #145c4d; }
.form-feedback > :last-child { margin-bottom: 0; }
.form-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.form-controls > button, .form-controls > a { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
#real-lesson button:disabled, #mode-controls button:disabled { border-color: #d2dce9; background: #e6ecf3; color: #607189; box-shadow: none; transform: none; opacity: 1; }
.identity-sheet { min-width: 0; margin: 22px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.identity-sheet h3, .identity-sheet h4 { margin-bottom: 8px; font-size: 14px; }
.identity-sheet > p { color: var(--muted); font-size: 12px; }
.identity-sheet dl { margin: 0; font-size: 13px; }
.identity-sheet dl > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 9px 0; }
.identity-sheet dl > div + div { border-top: 1px solid #e6edf4; }
.identity-sheet dt { color: var(--muted); font-size: 12px; }
.identity-sheet dd { min-width: 0; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.identity-sheet output { display: block; min-width: 0; line-height: 1.85; overflow-wrap: anywhere; word-break: break-word; }
.real-checklist { margin: 18px 0 22px; padding-left: 1.65em; color: var(--ink); font-size: 13px; line-height: 1.95; }
.real-checklist > li { padding-left: 4px; }
.real-checklist > li + li { margin-top: 11px; }
.real-checklist > li::marker { color: var(--blue); font-weight: 750; }
.real-checklist p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.platform-guides { min-width: 0; margin: 23px 0; border-top: 1px solid var(--line); }
.platform-guides details { min-width: 0; border-bottom: 1px solid var(--line); }
.platform-guides summary { min-height: 49px; padding: 12px 3px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.8; cursor: pointer; overflow-wrap: anywhere; }
.platform-guides details > p, .platform-guides details > ul, .platform-guides details > ol { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.platform-guides a { display: inline-block; max-width: 100%; min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; }
.recovery-note { margin: 20px 0; padding: 13px 16px; border-left: 3px solid var(--amber); background: var(--amber-light); color: #754a0b; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.recovery-note > :last-child { margin-bottom: 0; }
.manual-confirmation { margin-top: 22px; padding: 18px 19px; border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; background: var(--teal-light); }
.manual-confirmation h3, .manual-confirmation h4 { margin-bottom: 8px; color: #145c4d; font-size: 14px; }
.manual-confirmation > p { color: #2d6357; font-size: 12px; line-height: 1.9; }
.manual-confirmation > :last-child { margin-bottom: 0; }
.manual-confirmation .check-row { margin-top: 10px; }
.real-completion { min-width: 0; padding: 30px; }
.real-completion h3 { margin-bottom: 10px; font-size: 22px; }
.real-completion > p { color: var(--muted); font-size: 13px; }
dialog { overflow-wrap: anywhere; }
dialog .actions > button { min-width: 0; white-space: normal; }

@media (max-width: 1180px) {
  .safety-banner { width: calc(100% - 60px); }
}
@media (max-width: 780px) {
  .safety-banner { width: calc(100% - 44px); margin-top: 17px; padding: 13px 15px; }
  .safety-banner strong { font-size: 13px; }
  .safety-banner p { font-size: 11px; }
  .step-list.real-steps { grid-template-columns: repeat(7, minmax(44px, 1fr)); width: 100%; max-width: 100%; gap: 4px; padding: 7px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 7px; scrollbar-width: thin; }
  .step-list.real-steps li { min-width: 44px; }
  .real-steps .step-link { min-width: 44px; min-height: 104px; padding: 9px 2px; }
  .real-steps .step-text { overflow-wrap: anywhere; }
  #mode-controls { margin-bottom: 23px; padding-bottom: 22px; }
  #mode-controls .mode-options button { padding: 10px 12px; font-size: 12px; }
  .mode-help { font-size: 11px; }
  .real-completion { padding: 25px 22px; }
}
@media (max-width: 480px) {
  .safety-banner { width: calc(100% - 32px); margin-top: 15px; padding: 12px 13px; }
  #mode-controls .mode-options { grid-template-columns: minmax(0, 1fr); }
  #mode-controls .mode-options button { min-height: 52px; padding: 10px 12px; }
  .practice-form .form-field { margin-bottom: 19px; }
  .practice-form .form-field > label { font-size: 13px; }
  .practice-form input[type="email"], .practice-form input[type="password"] { font-size: 16px; }
  .form-controls { align-items: stretch; gap: 10px; margin-top: 21px; }
  .form-controls > button, .form-controls > a { width: 100%; }
  .identity-sheet dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .manual-confirmation { padding: 15px; }
  .real-completion { padding: 24px 18px; }
  .real-completion h3 { font-size: 19px; }
}
@media (forced-colors: active) {
  #mode-controls .mode-options button[aria-pressed="true"] { border: 2px solid Highlight; }
  .practice-form input[type="email"], .practice-form input[type="password"] { border-color: CanvasText; }
  .form-feedback, .manual-confirmation, .recovery-note, .safety-banner { border: 1px solid CanvasText; border-left-width: 4px; }
}
