/* G174 六族波次玩法简易页样式（静态研究页，无素材依赖；沿用 mode-ui/leisure-ui 视觉基线） */
:root { color-scheme: light; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; margin: 0; background: #f4f5f7; color: #222; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 16px; }
header { background: #1f2937; color: #fff; padding: 14px 20px; }
header h1 { font-size: 18px; margin: 0; }
header .sub { font-size: 12px; color: #d1d5db; margin-top: 4px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; margin-top: 14px; }
.card h2 { font-size: 15px; margin: 0 0 10px; color: #111827; }
.kv { display: grid; grid-template-columns: 150px 1fr; row-gap: 6px; font-size: 14px; }
.kv .k { color: #6b7280; }
.note { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.card .note { margin-top: 10px; }
.row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }
select, input[type=number], input[type=text], textarea { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; max-width: 100%; box-sizing: border-box; }
input[type=number] { width: 130px; }
select { max-width: 320px; }
textarea { width: 100%; min-height: 260px; font-family: Consolas, monospace; font-size: 12px; }
button { padding: 6px 14px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; font-size: 14px; cursor: pointer; }
button:disabled { background: #9ca3af; cursor: not-allowed; }
button.ghost { background: #6b7280; }
button.warnbtn { background: #b45309; }
button.small { padding: 2px 10px; font-size: 12px; }
a { color: #2563eb; font-size: 13px; }
.subhead { font-size: 13px; color: #374151; font-weight: 600; margin-top: 10px; }
.subbox { font-size: 13px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; color: #111827; }
.boxlist { border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px 10px; max-height: 300px; overflow-y: auto; line-height: 1.7; font-size: 13px; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.boxjson { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px 10px; max-height: 260px; overflow-y: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.err-box { color: #b91c1c; border: 1px solid #fca5a5; border-radius: 6px; padding: 8px 10px; background: #fef2f2; font-size: 13px; }
#startResult, #actResult, #setResult { margin-top: 10px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
#startResult.ok, #actResult.ok, #setResult.ok { color: #047857; }
#startResult.err, #actResult.err, #setResult.err { color: #b91c1c; }
#startResult.warn, #actResult.warn, #setResult.warn { color: #b45309; }
#retryBox { display: none; margin-top: 10px; padding: 10px 12px; border: 1px dashed #f59e0b; border-radius: 6px; font-size: 13px; }
#retryDesc { white-space: pre-wrap; word-break: break-word; }
.histItem { padding: 3px 0; border-bottom: 1px dashed #f3f4f6; font-size: 13px; }
.famCard { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.famCard.disabledFam { background: #f9fafb; opacity: 0.85; }
.famTitle { font-weight: 600; font-size: 14px; }
.famMeta { font-size: 12.5px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.actBtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.actBtns button { font-size: 12.5px; padding: 4px 10px; }
.tagOff { color: #6b7280; font-size: 12px; }
.autoRow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border: 1px dashed #93c5fd; border-radius: 6px; background: #eff6ff; font-size: 13px; }
details { margin-top: 6px; font-size: 13px; }
details summary { cursor: pointer; color: #374151; }
label.modeToggle { margin-right: 10px; white-space: nowrap; }
