[hidden] { display: none !important; }
.sheet { padding-bottom: 48px; }
.sheet > .wrap:first-child { padding-top: 28px; }
.sheet-eyebrow { font-size: 14px; font-weight: 700; color: var(--sub); }
.sheet h1 { font-size: 26px; font-weight: 900; color: var(--navy); margin-top: 4px; }
.sheet-lead { margin-top: 10px; color: var(--sub); font-size: 15px; }
.sheet-lead b { color: var(--ink); }
.sheet-warn { margin-top: 12px; background: #FDEDEC; color: #A3271C; border-radius: 12px; padding: 12px 14px; font-weight: 700; }

.tabs { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); margin-top: 20px; }
.tabs-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-block: 8px; }
.tabs button { font: inherit; font-weight: 900; font-size: 15px; line-height: 1.3; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); cursor: pointer; }
.tabs button small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tabs button[aria-selected="true"] small { color: #E2E2F2; }
.tabs button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.view { padding-block: 24px 0; }
.step-head h2 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.step-head h2::after { display: none; }
.step-head p { color: var(--sub); font-size: 15px; }
.q-legend { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--sub); }
.q-legend b { color: var(--ink); margin-right: 8px; }

.stage { margin-top: 28px; }
.stage-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 3px solid var(--navy); }
.stage-h .no { flex: none; display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white);
  align-items: center; justify-content: center; font-weight: 900; font-size: 16px; align-self: center; }
.stage-h h3 { font-size: 18px; font-weight: 900; }
.stage-h span { font-size: 14px; color: var(--muted); font-weight: 700; }

.item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.item-name { font-weight: 700; }
.item-name small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.q { margin-top: 8px; border: 0; padding: 0; min-width: 0; display: flex; align-items: center; gap: 10px; }
.q legend { float: left; font-size: 14px; font-weight: 700; color: var(--sub); width: 9.5em; flex: none; padding: 0; }
.q .opts { display: flex; gap: 6px; flex: 1; }
.q .opts label { flex: 1; position: relative; }
.q input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.q .opts span { display: flex; align-items: center; justify-content: center; height: 44px; border: 1.5px solid #C9C9D2; border-radius: 12px;
  font-size: 20px; font-weight: 900; color: var(--sub); background: var(--white); }
.q .opts span small { font-size: 11px; font-weight: 700; margin-left: 2px; }
.q input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.q input[value="o"]:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.q input[value="x"]:checked + span { background: var(--sub); border-color: var(--sub); color: var(--white); }
.q input[value="q"]:checked + span { background: var(--orange-soft); border-color: var(--orange-deep); color: var(--orange-deep); }

.sns { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.sns-label { width: 100%; font-size: 14px; color: var(--muted); font-weight: 700; }
.sns label { position: relative; }
.sns input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sns span { display: inline-block; font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1.5px solid #C9C9D2; color: var(--sub); }
.sns input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sns input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }

.empty { margin-top: 20px; background: var(--gray); border-radius: 12px; padding: 16px; color: var(--sub); }

.done-box { margin-top: 28px; background: var(--gray); border-radius: var(--radius); padding: 20px; }
.done-box .left { font-size: 14px; color: var(--sub); }
.done-box .chat { margin-top: 6px; font-weight: 700; }
.done-box .big { display: block; font-size: 40px; font-weight: 900; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.done-box .big small { font-size: 16px; color: var(--sub); margin-left: 4px; }
.done-box .btn { margin-top: 16px; }

.flow { margin-top: 16px; }
.flow h3, .r-h { font-size: 17px; font-weight: 900; }
.r-h { margin-top: 28px; }
.f-lead { margin-top: 6px; font-size: 14px; color: var(--sub); }
.f-key { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.f-key.ok, .f-items li.ok { background: var(--gray); color: var(--ink); }
.f-key.weak, .f-items li.weak { background: var(--orange-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--orange); }
.f-stage { margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.f-name { font-weight: 900; color: var(--navy); }
.f-name b { display: inline-block; min-width: 1.6em; }
.f-name small { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.f-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.f-items li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.f-mark { margin-left: 6px; font-size: 13px; color: #9C5300; }
.f-gap { margin-top: 8px; font-size: 14px; color: #A3271C; font-weight: 700; }
.f-arrow { text-align: center; color: var(--muted); font-size: 20px; line-height: 1; margin-top: 10px; }
.r-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.r-table th, .r-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.r-table th { font-size: 13px; color: var(--muted); font-weight: 700; line-height: 1.4; }
.r-table td:first-child, .r-table th:first-child { text-align: left; }
.r-table td.num { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.r-table td.num small { font-size: 13px; color: var(--muted); font-weight: 700; }
.r-table tr.hit td { background: var(--orange-soft); }
.r-table tr.hit td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.r-pick { margin-top: 16px; background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; }
.r-pick p + p { margin-top: 6px; }
.r-pick .k { font-size: 14px; color: var(--sub); font-weight: 700; }
.r-pick .v { font-size: 20px; font-weight: 900; color: var(--navy); }
.r-pick .m-title { margin-top: 10px; font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.6; }
.r-pick .m-body { font-size: 15px; line-height: 1.8; color: var(--ink); }
.r-pick .m-sub { margin-top: 12px; font-size: 15px; font-weight: 900; color: var(--navy); }
.done-box .mean { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.7; }
.r-note { margin-top: 10px; font-size: 14px; color: var(--sub); }

.advice { margin-top: 28px; background: var(--gray); border-radius: var(--radius); padding: 20px; }
.advice h3 { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.advice li { position: relative; padding-left: 26px; }
.advice li + li { margin-top: 4px; }
.advice li::before { content: "✓"; position: absolute; left: 4px; color: var(--navy); font-weight: 900; }

.save { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.name-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.name-field i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--sub); }
.name-field input { font: inherit; font-weight: 400; font-size: 16px; padding: 14px; border: 1.5px solid #C9C9D2; border-radius: 12px; width: 100%; }
.name-field input:focus { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.save .btn { margin-top: 4px; }
.save-note { font-size: 14px; color: var(--sub); }
.reset { margin-top: 36px; text-align: center; }
.reset button { font: inherit; font-size: 14px; color: var(--sub); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px; }

.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(26,26,46,.72); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 16px; }
.overlay[hidden] { display: none; }
.overlay-in { background: var(--white); border-radius: var(--radius); padding: 16px; width: 100%; max-width: 560px; }
.overlay-title { font-weight: 900; color: var(--navy); text-align: center; }
.overlay-in img { margin-top: 12px; width: 100%; border: 1px solid var(--line); border-radius: 12px; -webkit-touch-callout: default; }
.overlay-actions { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.overlay-actions .btn { margin-top: 0; }
.overlay-dl { font-weight: 700; padding: 8px; }
.overlay-close { font: inherit; font-weight: 700; background: var(--gray); border: 0; border-radius: 999px; padding: 10px 28px; cursor: pointer; }

@media (min-width: 720px) {
  .sheet h1 { font-size: 30px; }
  .item { display: grid; grid-template-columns: 1fr 360px; gap: 4px 20px; align-items: center; }
  .item .sns { grid-column: 1 / -1; }
  .item.multi { grid-template-columns: 1fr; }
  .q { margin-top: 0; }
  .item.multi .q { margin-top: 8px; max-width: 520px; }
  .save { align-items: flex-start; }
  .name-field { width: 100%; max-width: 420px; }
}
