.exam-guide {
  --eg-ink: var(--br-ink, var(--dc-ink, #242722)); --eg-muted: var(--br-muted, var(--dc-muted, #60675e));
  --eg-line: var(--br-line, var(--dc-line, #d5d9ce)); --eg-surface: var(--br-surface, var(--dc-surface, #fffdfa));
  --eg-soft: var(--br-surface-2, var(--dc-surface-2, #f3f3ed)); --eg-accent: var(--br-action, var(--dc-tide, #23675f));
  container-type: inline-size; margin: 28px 0 36px; border: 1px solid var(--eg-line);
  border-radius: 16px; background: var(--eg-surface); color: var(--eg-ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px; line-height: 1.75; scroll-margin-top: 100px;
}
.exam-guide [hidden] { display: none !important; }
.exam-guide summary { cursor: pointer; }
.exam-guide__summary { display: flex; align-items: center; gap: 18px; padding: 25px 28px; list-style: none; }
.exam-guide__summary::-webkit-details-marker { display: none; }
.exam-guide__mark { flex: 0 0 48px; width: 48px; height: 56px; padding: 11px; box-sizing: border-box; border-radius: 12px; color: var(--eg-accent); background: var(--eg-soft); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.exam-guide__intro { display: grid; gap: 4px; flex: 1; min-width: 0; }
.exam-guide__title { color: var(--eg-ink); font-size: 22px; font-weight: 700; line-height: 1.4; }
.exam-guide__description { font-size: 14px; color: var(--eg-muted); }
.exam-guide__privacy, .exam-guide__resume { color: var(--eg-muted); font-size: 13px; line-height: 1.6; }
.exam-guide__resume { color: var(--eg-accent); font-weight: 600; }
.exam-guide__toggle { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 42px; padding: 0 14px; border-radius: 8px; color: var(--eg-accent); background: var(--eg-soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
.exam-guide__toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; transition: transform 180ms ease-out; }
.exam-guide[open] > .exam-guide__summary .exam-guide__toggle svg { transform: rotate(180deg); }
.exam-guide__summary:hover .exam-guide__toggle { background: color-mix(in srgb, var(--eg-accent) 12%, var(--eg-surface)); }
.exam-guide[open] > .exam-guide__summary .exam-guide__description { display: none; }
.exam-guide__panel { padding: 0 28px 22px; }
.exam-guide[open] > .exam-guide__panel { animation: exam-guide-reveal 180ms ease-out; }
.exam-guide__sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--eg-line); }
.exam-guide .exam-guide__sections button { position: relative; justify-content: center; gap: 7px; min-height: 50px; padding: 10px 0 13px; border: 0; border-radius: 0; color: var(--eg-muted); background: transparent; white-space: nowrap; }
.exam-guide .exam-guide__sections button[aria-selected="true"] { color: var(--eg-accent); font-weight: 700; }
.exam-guide .exam-guide__sections button[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--eg-accent); border-radius: 2px; }
.exam-guide .exam-guide__sections button:hover { color: var(--eg-accent); background: var(--eg-soft); }
.exam-guide__tab-count { color: var(--eg-muted); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.exam-guide [data-exam-pane] { min-width: 0; outline-offset: 8px; }
.exam-guide h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; color: var(--eg-ink); }
.exam-guide p { margin: 0 0 16px; }
.exam-guide .exam-guide__small { color: var(--eg-muted); font-size: 13px; line-height: 1.75; }
.exam-guide__path, .exam-guide__tasks, .exam-guide__notes { scroll-margin-top: 100px; min-width: 0; }
.exam-guide__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 16px; }
.exam-guide__choices label, .exam-guide__notes label { display: grid; gap: 7px; color: var(--eg-ink); font-size: 14px; font-weight: 600; }
.exam-guide :is(select, textarea, input[type="date"], input[type="text"]) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--eg-line); border-radius: 8px; padding: 11px 12px; background: var(--eg-surface); color: var(--eg-ink); font: inherit; font-size: 15px; font-weight: 400; line-height: 1.6; }
.exam-guide :is(select, textarea, input[type="date"], input[type="text"]):hover { border-color: var(--eg-muted); }
.exam-guide :is(select, textarea, input[type="date"], input[type="text"]):focus { border-color: var(--eg-accent); }
.exam-guide textarea { resize: vertical; min-height: 150px; font-weight: 400; }
.exam-guide :is(textarea, input)::placeholder { color: var(--eg-muted); opacity: 1; }
.exam-guide :is(input, textarea) { caret-color: var(--eg-accent); }
.exam-guide ::selection { background: var(--eg-accent); color: var(--eg-surface); }
.exam-guide :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--eg-accent); outline-offset: 4px; }
.exam-guide__summary:focus-visible { border-radius: 16px; outline-offset: 3px; }
.exam-guide__hint { color: var(--eg-muted); font-size: 13px; }
.exam-guide__routes { padding: 20px 22px; border-radius: 12px; background: var(--eg-soft); }
.exam-guide__routes h3 { font-size: 16px; }
.exam-guide__routes p { font-size: 14px; line-height: 1.85; }
.exam-guide__routes section + section { margin-top: 22px; }
.exam-guide__routes p:last-child { margin-bottom: 0; }
.exam-guide__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 24px; font-size: 13px; }
.exam-guide a { color: var(--eg-accent); text-underline-offset: 4px; text-decoration: underline; }
.exam-guide a:hover { text-decoration-thickness: 2px; }
.exam-guide__pane-end { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.exam-guide__pane-end > span { color: var(--eg-muted); font-size: 13px; }
.exam-guide .exam-guide__pane-end button { flex-shrink: 0; color: var(--eg-accent); background: var(--eg-soft); border-color: transparent; font-weight: 600; }
.exam-guide__route-caption { width: fit-content; max-width: 100%; color: var(--eg-accent); font-size: 13px; }
.exam-guide__check-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 14px; margin-bottom: 12px; }
.exam-guide__check-head h3 { margin: 0; }
.exam-guide__check-head output { color: var(--eg-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.exam-guide__progress { display: block; width: 100%; height: 4px; margin: 0 0 16px; border: 0; border-radius: 8px; overflow: hidden; accent-color: var(--eg-accent); background: var(--eg-soft); }
.exam-guide__progress::-webkit-progress-bar { background: var(--eg-soft); }
.exam-guide__progress::-webkit-progress-value { background: var(--eg-accent); }
.exam-guide__progress::-moz-progress-bar { background: var(--eg-accent); }
.exam-guide__checklist { border-top: 1px solid var(--eg-line); }
.exam-guide__checklist details { border-bottom: 1px solid var(--eg-line); }
.exam-guide__checklist summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 16px 0; font-size: 15px; font-weight: 600; list-style: none; }
.exam-guide__checklist summary::-webkit-details-marker { display: none; }
.exam-guide__checklist summary::after { position: absolute; right: 2px; content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 180ms ease-out; }
.exam-guide__checklist details[open] > summary::after { transform: rotate(225deg); }
.exam-guide__checklist summary:hover { color: var(--eg-accent); }
.exam-guide [data-exam-group-progress] { color: var(--eg-muted); font-size: 12px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exam-guide__checklist ul { margin: 0 0 14px; padding: 0; list-style: none; }
.exam-guide__checklist li { margin: 0; }
.exam-guide__checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; border-radius: 8px; font-size: 14px; line-height: 1.8; cursor: pointer; transition: color 160ms ease-out, background 160ms ease-out; }
.exam-guide__checklist label:hover { background: var(--eg-soft); }
.exam-guide__checklist input { flex: 0 0 19px; width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--eg-accent); cursor: pointer; }
.exam-guide__checklist label:has(input:checked) { color: var(--eg-muted); background: color-mix(in srgb, var(--eg-accent) 5%, var(--eg-surface)); text-decoration: line-through; text-decoration-color: var(--eg-muted); }
.exam-guide__notes { display: grid; align-content: start; gap: 14px; }
.exam-guide__notes h3, .exam-guide__notes p { margin: 0; }
.exam-guide__next-fields { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; margin: 8px 0 6px; }
.exam-guide__notes textarea { min-height: 180px; line-height: 1.9; scrollbar-width: thin; scrollbar-color: var(--eg-line) var(--eg-surface); }
.exam-guide__footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--eg-line); }
.exam-guide__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.exam-guide button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--eg-line); border-radius: 8px; background: var(--eg-surface); color: var(--eg-ink); font: inherit; font-size: 14px; cursor: pointer; transition: background 160ms ease-out, transform 120ms ease-out; }
.exam-guide button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.exam-guide button[data-exam-download] { background: var(--eg-accent); color: #fff; border-color: var(--eg-accent); }
.exam-guide button:hover { background: var(--eg-soft); }
.exam-guide button[data-exam-download]:hover { filter: brightness(.92); background: var(--eg-accent); }
.exam-guide button:active { transform: translateY(1px); }
.exam-guide .exam-guide__collapse { margin-left: auto; border-color: transparent; color: var(--eg-muted); }
.exam-guide .exam-guide__reset { padding: 4px 0; min-height: 36px; border-color: transparent; color: var(--eg-muted); text-decoration: underline; text-underline-offset: 4px; }
.exam-guide__storage { margin-top: 8px; color: var(--eg-muted); font-size: 12px; }
.exam-guide__storage summary { width: fit-content; min-height: 32px; align-content: center; text-underline-offset: 4px; }
.exam-guide__storage summary:hover { color: var(--eg-ink); }
.exam-guide__storage p { margin: 10px 0 4px; max-width: 70ch; }
.exam-guide [data-exam-save-status] { margin-bottom: 0; color: var(--eg-accent); }
html[data-theme="dark"] .exam-guide { --eg-ink: var(--br-ink, var(--dc-ink, #eceeea)); --eg-muted: var(--br-muted, var(--dc-muted, #b8beb8)); --eg-line: var(--br-line, var(--dc-line, #464d49)); --eg-surface: var(--br-surface, var(--dc-surface, #252a28)); --eg-soft: var(--br-surface-2, var(--dc-surface-2, #303733)); --eg-accent: var(--br-action, var(--dc-tide, #a1d6c5)); color-scheme: dark; }
html[data-theme="dark"] .exam-guide button[data-exam-download] { color: var(--dc-on-tide, #15271f); }
.br-detail:has([data-exam-guide]) [data-brief-cover] img { max-height: 420px; object-fit: cover; }
@media (max-width: 600px) {
  .exam-guide { margin-block: 24px 30px; font-size: 15px; }
  .exam-guide__summary { flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 20px 16px; }
  .exam-guide__mark { flex-basis: 38px; width: 38px; height: 38px; padding: 7px; border-radius: 10px; }
  .exam-guide__intro { flex-basis: calc(100% - 50px); }
  .exam-guide__title { font-size: 20px; }
  .exam-guide__description { font-size: 14px; }
  .exam-guide__toggle { margin-left: 50px; min-height: 38px; padding-inline: 12px; }
  .exam-guide__panel { padding: 0 16px 20px; }
  .exam-guide__sections { gap: 6px; margin-bottom: 22px; }
  .exam-guide .exam-guide__sections button { font-size: 13px; gap: 4px; }
  .exam-guide__tab-count { display: none; }
  .exam-guide__choices { grid-template-columns: 1fr; }
  .exam-guide__routes { padding: 16px; }
  .exam-guide__links { display: grid; gap: 12px; }
  .exam-guide__checklist label { padding-block: 12px; }
  .exam-guide__next-fields { grid-template-columns: 1fr; gap: 14px; }
  .exam-guide__pane-end { align-items: flex-start; flex-direction: column; gap: 10px; }
  .exam-guide :is(select, textarea, input[type="date"], input[type="text"]) { font-size: 16px; }
}
@keyframes exam-guide-reveal { from { opacity: .65; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .exam-guide *, .exam-guide__panel { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .exam-guide { border: 0; color: #000; }
  .exam-guide > .exam-guide__panel, .exam-guide__checklist details > ul { display: block !important; }
  .exam-guide [data-exam-pane][hidden] { display: block !important; margin-top: 24px; }
  .exam-guide [data-exam-controls], .exam-guide__toggle, .exam-guide__sections, .exam-guide__links { display: none !important; }
  .exam-guide__notes { margin-top: 24px; }
}
