.cs-fixture { margin: 0; background: #f8f5ed; }
.cs-module {
  --ink: #302822;
  --dim: #62594f;
  --border: #ded4bd;
  --paper: #fffdf7;
  --red: #B03A2E;
  --gold: #8A6A1F;
  --gray: #6E6E64;
  --blue: #16525F;
  box-sizing: border-box;
  width: min(100%, 960px);
  margin-inline: auto;
  padding: clamp(13px, 4vw, 36px);
  color: var(--ink);
  font: 16px/1.6 "Noto Sans CJK SC", "Microsoft Yahei", sans-serif;
  overflow-wrap: anywhere;
}
.cs-module *, .cs-module *::before, .cs-module *::after { box-sizing: inherit; }
.cs-module [hidden] { display: none !important; }
.cs-module :is(h1, h2, h3, h4, p) { margin: 0; }
.cs-module h1 { font: 700 clamp(25px, 4vw, 38px)/1.35 "Noto Serif CJK SC", SimSun, serif; margin: 14px 0; }
.cs-module h2 { font-size: 21px; }
.cs-module h3 { font-size: 18px; }
.cs-module h4 { font-size: 15px; }
.cs-module a { color: var(--blue); text-underline-offset: 3px; }
.cs-module :is(.cs-help, .cs-hints, .cs-status, .cs-disclaimer) { color: var(--dim); font-size: 14px; }
.cs-nav { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.cs-basis, .cs-form, .cs-card, .cs-unjudged {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}
.cs-basis { padding: 10px 14px; margin-bottom: 14px; color: var(--dim); background: #eeeae1; font-size: 14px; }
.cs-basis p + p { margin-top: 5px; }
.cs-form { display: grid; gap: 11px; padding: clamp(12px, 3vw, 22px); }
.cs-form label { display: grid; min-width: 0; gap: 4px; font-weight: 600; }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cs-form :is(select, input[type="date"], input[type="time"]) {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 4px 8px;
  border: 1px solid #b7a98f;
  border-radius: 5px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.cs-form fieldset { min-width: 0; margin: 0; padding: 5px 8px 8px; border: 1px solid var(--border); border-radius: 5px; }
.cs-form legend { padding: 0 5px; font-weight: 600; }
.cs-hours, .cs-chips { display: flex; flex-wrap: wrap; gap: 4px 7px; }
.cs-form .cs-hour { display: flex; align-items: center; gap: 3px; min-height: 32px; padding-inline: 3px; }
.cs-hour input { accent-color: var(--red); inline-size: 16px; block-size: 16px; margin: 0; }
.cs-form button {
  justify-self: start;
  min-height: 44px;
  cursor: pointer;
  padding: 6px 20px;
  border: 0;
  border-radius: 5px;
  background: var(--red);
  color: white;
  font: inherit;
  font-weight: 700;
}
.cs-form button:disabled { cursor: wait; opacity: .7; }
.cs-status:empty, .cs-results:empty { display: none; }
.cs-results, .cs-list { display: grid; gap: 9px; }
.cs-results { margin-top: 16px; }
.cs-summary { font-weight: 700; }
.cs-card { padding: 10px 13px; border-inline-start: 4px solid var(--tone); }
.cs-first { --tone: var(--red); }
.cs-second { --tone: var(--gold); }
.cs-review { --tone: var(--gray); }
.cs-excluded { --tone: var(--blue); background: #f2f0e8; }
.cs-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.cs-grade { color: var(--tone); font-weight: 700; }
.cs-chips { margin: 5px 0; }
.cs-chip { padding: 1px 7px; background: #eee9de; border-radius: 4px; font-size: 13px; }
.cs-count { font-size: 14px; }
.cs-alert { color: var(--red); font-weight: 700; }
.cs-expert { margin-top: 6px; }
.cs-module summary { color: var(--blue); cursor: pointer; font-weight: 700; }
.cs-variant { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
.cs-hits, .cs-unjudged ul, .cs-hints { margin: 5px 0; padding-inline-start: 21px; }
.cs-unjudged { margin-top: 16px; padding: 8px 12px; }
.cs-module .cs-disclaimer { margin-top: 8px; }
@media (max-width: 370px) { .cs-grid { grid-template-columns: minmax(0, 1fr); } }

/* s889 s849 合规：整栏嵌入 #csRoot（fl-wrap/tab-pane 供边距与 860 柱宽），外壳归零防双重缩进 */
#csRoot .cs-module { width: 100%; max-width: none; margin: 0; padding: 0; }
