* { box-sizing: border-box; }
body { margin: 0; background: #f4f8fb; color: #1c3447; font: 16px/1.65 system-ui, "Microsoft YaHei", sans-serif; }
header { display: flex; align-items: center; gap: 28px; padding: 14px max(5vw, calc((100vw - 940px) / 2)); border-bottom: 1px solid #dce5eb; background: #fff; }
a { color: #006e88; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .scroll:focus-visible { outline: 3px solid #92c9d8; outline-offset: 3px; }
.brand { color: #163e58; font-size: 22px; font-weight: 800; text-decoration: none; }
main { max-width: 988px; margin: auto; padding: 38px 24px; }
.method { margin: 0; color: #087e83; font-weight: 700; letter-spacing: .025em; }
h1 { margin: 8px 0; font-size: clamp(27px, 4vw, 43px); line-height: 1.25; }
h2 { margin: 0 0 15px; font-size: 22px; }
h3 { margin: 12px 0 4px; font-size: 18px; }
p { margin: 9px 0 14px; }
.intro { margin: 10px 0 23px; color: #405d6d; }
section { margin: 18px 0; padding: clamp(18px, 3vw, 32px); border: 1px solid #d5e2eb; border-radius: 14px; background: #fff; min-width: 0; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid #d9e6e8; }
.tabs button { padding: 9px 15px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: #465d68; }
.tabs button[aria-pressed="true"] { border-color: #057e83; color: #075e67; font-weight: 700; }
.sample-box { padding: 16px 20px; border-radius: 10px; background: #f0f8f8; }
.sample-box h3, .sample-box p { margin: 0 0 6px; }
.root-choice { margin-top: 20px; padding: 1px 16px 6px; border-left: 4px solid #087e83; background: #f0f8f8; }
.warning { padding: 12px 15px; border-left: 4px solid #bd7b16; background: #fff7e6; color: #714b0e; font-weight: 600; }
.primary { display: block; margin: 19px 0 7px; padding: 10px 22px; border: 0; border-radius: 7px; background: #046e79; color: #fff; font-weight: 700; }
.note, small, footer, figcaption { color: #526674; font-size: 14px; }
.note { margin: 8px 0; }
label { display: block; margin: .9em 0 .3em; font-weight: 600; }
small { display: block; font-weight: 400; }
input, select { display: block; width: 100%; min-width: 0; margin: .3em 0; padding: 9px; border: 1px solid #9cb3c1; border-radius: 6px; background: #fff; color: #183c51; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23183c51' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input[type="file"] { font-size: 14px; }
input:disabled, select:disabled { opacity: .7; }
details { margin-top: 18px; }
summary { cursor: pointer; font-weight: 600; }
.params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#status { margin: 0; overflow-wrap: anywhere; }
#status:not(:empty) { margin-top: 16px; padding: 12px; border-radius: 6px; background: #eff7fa; }
#status.error { color: #8d241f; background: #fff2ef; }
.result-counts { font-weight: 700; color: #155775; overflow-wrap: anywhere; }
#run-details { overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 15px 0; }
.analysis-figure { margin: 20px 0; }
.analysis-figure img { display: block; width: auto; max-width: 100%; max-height: 720px; margin: 0 auto 8px; }
.scroll { max-width: 100%; overflow: auto; }
table { width: 100%; margin: 8px 0; border-collapse: collapse; font: 14px/1.5 system-ui, sans-serif; }
th, td { padding: 9px 12px; border-bottom: 1px solid #dce6eb; text-align: right; white-space: nowrap; }
th { background: #f3f7f9; }
th:first-child, td:first-child { text-align: left; }
.guide { background: #f8fbfd; }
footer { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  main { padding: 24px 12px; }
  header { padding: 10px 16px; }
  .params { grid-template-columns: 1fr; gap: 0; }
  .tabs button { padding: 9px 11px; }
  .sample-box { padding: 14px; }
}
