:root {
  --paper: #ffffff; --well: #f5f7fa; --rule: #e6e8ec; --ink: #111418; --ink2: #4a5462; --blue: #0b5294; --tint: #f0f5fb;
  --sans: "Instrument Sans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Inconsolata", ui-monospace, Menlo, Consolas, monospace;
}
:root[data-font="public"] { --sans: "Public Sans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif; }
:root[data-font="plex"] { --sans: "IBM Plex Sans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 64px; }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.page { padding: 0 clamp(16px, 2.6vw, 56px) 96px; }
.shell { display: grid; grid-template-columns: 1fr; gap: 0; }
.main { container-type: inline-size; min-width: 0; }
@media (min-width: 1200px) {
  .shell { grid-template-columns: clamp(290px, 21vw, 380px) minmax(0, 1fr); gap: clamp(36px, 3vw, 64px); align-items: start; }
  .side { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; overflow-x: hidden; padding: 0 6px 24px 0; scrollbar-width: thin; }
  .side .opt { margin-left: 0; width: 100%; padding-left: 12px; }
  .side .pick h2 { padding-left: 12px; }
  .side .sub { margin-left: 12px; }
  .side .line { padding-left: 12px; }
  .side .pick { grid-template-columns: minmax(0, 1fr); }
  .side .line select, .side .line input { width: 0; }
  .side details.fold + details.fold { margin-top: 26px; }
  .main .bar { margin-top: 0; }
  .main .cov { margin-top: 0; border-top: 1.5px solid var(--ink); }
  .main .cov + .bar { margin-top: 18px; }
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.top { display: flex; justify-content: flex-start; gap: 24px; padding: 20px 0 0; font-size: 14px; color: var(--ink2); }
.top a[aria-current] { color: var(--ink); font-weight: 600; }
.mast { padding: 28px 0 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 40px; }
.mast h1 { flex-basis: 100%; }
.mast p { flex: 1 1 32em; }
.mast p.n { flex: 0 0 auto; margin-top: 0; }
.mast h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.mast p { font-size: 18px; line-height: 1.45; color: var(--ink2); margin: 0; max-width: 52em; }
.mast p.n { font-size: 14px; margin-top: 10px; }

.pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.pick h2 { font-size: 14px; font-weight: 400; color: var(--ink2); margin: 0 0 6px; }
.pick h2.gap { margin-top: 22px; }
.opt { display: flex; align-items: baseline; width: calc(100% + 12px); padding: 5px 10px 5px 12px; margin-left: -12px; font-size: 16px; line-height: 1.4; transition: background-color .12s, box-shadow .12s; }
.opt i { font-style: normal; margin-left: auto; padding-left: 16px; color: var(--ink2); font-size: 14px; }
.opt small { font-size: 14px; color: var(--ink2); margin-left: 8px; }
.opt:hover { background: var(--well); }
.opt[aria-pressed="true"] { background: var(--tint); box-shadow: inset 3px 0 0 0 var(--blue); color: var(--blue); font-weight: 600; }
.opt[aria-pressed="true"] i, .opt[aria-pressed="true"] small { color: var(--blue); font-weight: 400; }
.sub { padding: 8px 12px; margin: 2px 0 8px; background: var(--well); display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 14px; }
.sub button { color: var(--ink2); padding: 2px 0; }
.sub button i { font-style: normal; margin-left: 4px; color: var(--ink2); font-weight: 400; }
.sub button:hover, .sub button[aria-pressed="true"] { color: var(--blue); }
.sub button[aria-pressed="true"] { font-weight: 600; }
.line { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; font-size: 16px; }
.line label { color: var(--ink2); font-size: 14px; min-width: 104px; }
.line select, .line input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 4px 0; outline: 0; border-radius: 0; font-size: 16px; }
.line select:focus, .line input:focus { border-bottom-color: var(--blue); }
.line .on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
details.fold > summary { display: none; }
@media (min-width: 768px) and (max-width: 1199px) {
  .pick { gap: 0 32px; padding-top: 0; }
  details.fold { border-bottom: 1px solid var(--rule); }
  details.fold > summary { display: flex; align-items: baseline; gap: 12px; list-style: none; padding: 13px 0; font-size: 16px; cursor: pointer; }
  details.fold > summary::-webkit-details-marker { display: none; }
  details.fold > summary span { color: var(--ink2); font-size: 14px; }
  details.fold > summary b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  details.fold > summary::after { content: "Change"; margin-left: auto; color: var(--blue); font-size: 14px; }
  details.fold[open] > summary::after { content: "Close"; }
  details.fold > div { padding-bottom: 14px; }
  .pick h2:first-child { display: none; }
}

.cov { margin-top: 26px; border-top: 1px solid var(--rule); }
.cov > summary { list-style: none; cursor: pointer; padding: 12px 0; font-size: 14px; color: var(--blue); }
.cov > summary::-webkit-details-marker { display: none; }
.mx { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; margin-bottom: 6px; }
.mx th, .mx td { padding: 0; font-weight: 400; text-align: right; border: 1px solid var(--paper); }
.mx thead th { vertical-align: bottom; padding: 0 8px 6px; color: var(--ink2); font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.mx tbody th { text-align: left; }
.mx thead th:first-child { width: 240px; }
.mx button { display: block; width: 100%; padding: 6px 8px; text-align: inherit; }
.mx tbody th button { padding-left: 0; }
.mx td.l1 { background: #f3f6fa; } .mx td.l2 { background: #e3ebf4; } .mx td.l3 { background: #cfdcec; }
.mx td button:hover, .mx th button:hover { color: var(--blue); }
.mx td.sel { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); font-weight: 600; }
.mx th.sel button { color: var(--blue); font-weight: 600; }
.covnote { font-size: 13px; color: var(--ink2); margin: 0 0 14px; }

.bar { position: sticky; top: 0; z-index: 2; background: var(--paper); display: flex; align-items: baseline; gap: 18px; padding: 14px 0 12px; margin-top: 30px; border-bottom: 1.5px solid var(--ink); font-size: 14px; }
.bar .what { font-size: 16px; font-weight: 600; }
.bar .what span { font-weight: 400; color: var(--ink2); }
.bar .clear { color: var(--blue); }
.bar .sort { margin-left: auto; color: var(--ink2); white-space: nowrap; }
.bar .sort button { margin-left: 14px; color: var(--ink2); }
.bar .sort button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }

.sec { font-size: 18px; line-height: 1.4; font-weight: 600; margin: 36px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); display: flex; align-items: baseline; }
.sec span { font-size: 14px; font-weight: 400; color: var(--ink2); margin-left: auto; }
.list > .sec:first-child { margin-top: 26px; }
.it { display: grid; grid-template-columns: 1fr auto; gap: 4px 32px; padding: 15px 12px 15px 14px; border-bottom: 1px solid var(--rule); transition: background-color .12s, box-shadow .12s; cursor: pointer; }
.it:hover { background: var(--well); box-shadow: inset 3px 0 0 0 var(--blue); }
.it.open { background: var(--well); box-shadow: inset 3px 0 0 0 var(--blue); border-bottom-color: transparent; }
.it .a { font-size: 16px; min-width: 0; }
.it .a b { font-weight: 600; }
.it .a .hw { font-weight: 600; }
.it .a .hw::after { content: "\2014"; font-weight: 400; color: var(--ink2); margin: 0 8px; }
.it .a span { color: var(--ink2); }
.it .a em { font-style: normal; font-size: 14px; color: var(--blue); margin-left: 10px; white-space: nowrap; }
.it .s { text-align: right; white-space: nowrap; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.it .s small { font-size: 14px; }
.it .s b { font-size: 19px; line-height: 1.25; font-weight: 600; color: var(--ink); margin-right: 4px; }
.it .s.bare b { font-weight: 400; font-style: italic; color: var(--ink2); }
.it .b { font-size: 14px; color: var(--ink); min-width: 0; }
.it .b span { display: block; color: var(--ink2); font-size: 13px; }
.it .b a { color: var(--ink); }
.it .b a:hover { color: var(--blue); }
.it .b .n { color: var(--blue); white-space: nowrap; }
.it .c { text-align: right; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.it .diff, .it .a .diff { color: var(--blue); }
.near { margin: 28px 0 0; font-size: 16px; }
.near b { font-weight: 600; }
.near span { color: var(--ink2); }
.dr { background: var(--well); padding: 2px 12px 8px 14px; box-shadow: inset 3px 0 0 0 var(--blue); border-bottom: 1px solid var(--rule); }
.rc { padding: 14px 0 16px; border-top: 1px solid var(--rule); font-size: 15px; }
.rc h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.rc .by { color: var(--ink2); font-size: 14px; margin-bottom: 8px; }
.rc .by a { color: var(--blue); }
.rc .lb { margin: 0 0 8px; }
.rc pre { margin: 8px 0; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); font: 14px/1.55 var(--mono); white-space: pre-wrap; word-break: break-all; position: relative; }
.rc pre button { position: absolute; top: 8px; right: 12px; background: var(--paper); padding-left: 10px; color: var(--blue); font: 13px var(--sans); }
.rc dl { margin: 10px 0 0; display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; }
.rc dt { color: var(--ink2); font-size: 14px; }
.rc dd { margin: 0; }
.rc dd ul { margin: 0; padding-left: 18px; }
.rc :lang(zh) { line-height: 1.7; }
mark { background: none; color: inherit; box-shadow: 0 0 0 1px var(--blue); }
.more { padding: 22px 0 0; font-size: 16px; }
.more button { color: var(--blue); }
.foot { margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--ink); color: var(--ink2); font-size: 14px; line-height: 1.6; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 56px; }
.foot b { color: var(--ink); font-weight: 600; }
.foot p { margin: 0 0 10px; }
.foot a { color: var(--blue); }

@media (max-width: 767px) {
  .page { padding: 0 18px 64px; }
  .top { justify-content: flex-start; flex-wrap: wrap; gap: 4px 18px; padding-top: 14px; }
  .mast { padding: 18px 0 22px; } .mast h1 { font-size: 26px; } .mast p { font-size: 16px; }
  .pick { grid-template-columns: 1fr; padding-top: 0; }
  details.fold { border-bottom: 1px solid var(--rule); }
  details.fold > summary { display: flex; align-items: baseline; list-style: none; padding: 13px 0; font-size: 16px; cursor: pointer; }
  details.fold > summary::-webkit-details-marker { display: none; }
  details.fold > summary span { color: var(--ink2); font-size: 14px; min-width: 84px; }
  details.fold > summary b { font-weight: 600; }
  details.fold > summary::after { content: "Change"; margin-left: auto; color: var(--blue); font-size: 14px; }
  details.fold[open] > summary::after { content: "Close"; }
  details.fold > div { padding-bottom: 12px; }
  .pick h2 { display: none; } .pick h2.gap { display: block; margin-top: 12px; }
  .cov { display: none; }
  .bar { flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
  .bar .sort { margin-left: 0; flex-basis: 100%; white-space: normal; } .bar .sort button:first-child { margin-left: 10px; }
  .it { grid-template-columns: 1fr; gap: 2px; padding: 14px 10px 14px 12px; }
  .it .s, .it .c { text-align: left; white-space: normal; }
  .it .s { order: 2; margin: 2px 0 6px; } .it .s b { font-size: 20px; } .it .s br { display: none; } .it .s small { margin-right: 8px; } .it .b { order: 3; } .it .c { order: 4; } .it .en { display: none; }
  .it .a .hw { display: block; } .it .a .hw::after { content: none; }
  .dr { padding: 2px 10px 8px 12px; }
  .rc dl { grid-template-columns: 1fr; gap: 2px; } .rc dd { margin-bottom: 8px; }
  .foot { grid-template-columns: 1fr; margin-top: 48px; }
}

.colh { display: none; }
@container (min-width: 760px) {
  .colh, .it { grid-template-columns: minmax(0, 1.25fr) 190px minmax(0, 1fr) minmax(0, .8fr); gap: 0 24px; }
  .colh { display: grid; padding: 10px 12px 6px 14px; font-size: 13px; color: var(--ink2); border-bottom: 1px solid var(--rule); }
  .colh span.sp { text-align: right; } .colh span.en { display: none; }
  .it { align-items: baseline; }
  .it .a { grid-column: 1; grid-row: 1; } .it .s { grid-column: 2; grid-row: 1; }
  .it .b { grid-column: 3; grid-row: 1; } .it .c { grid-column: 4; grid-row: 1; text-align: left; white-space: normal; }
  .it .a .e { display: inline; } .it .en { display: none; }
}
@container (min-width: 1250px) {
  .colh, .it { grid-template-columns: minmax(240px, 1fr) minmax(120px, .5fr) 190px minmax(0, 1fr) minmax(0, .75fr); gap: 0 32px; }
  .colh span.en { display: block; }
  .it .a .e { display: none; }
  .it .en { display: block; grid-column: 2; grid-row: 1; font-size: 15px; color: var(--ink2); }
  .it .s { grid-column: 3; } .it .b { grid-column: 4; } .it .c { grid-column: 5; }
}

/* Ask panel */
.top .askbtn { margin-left: auto; color: var(--blue); font-size: 14px; }
.top .askbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.ask { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--paper); border-left: 1.5px solid var(--ink);
  display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(17, 20, 24, 0.08); }
.ask[hidden] { display: none; }
.ask-head { display: flex; align-items: baseline; padding: 18px 24px 12px; border-bottom: 1px solid var(--rule); }
.ask-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.ask-head button { margin-left: auto; color: var(--blue); font-size: 14px; }
.ask-setup { padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.ask-setup[hidden], .ask-cfg[hidden] { display: none; }
.ask-why { margin: 0 0 12px; font-size: 14px; color: var(--ink2); }
.ask-setup .line { display: flex; align-items: baseline; gap: 12px; margin: 6px 0; }
.ask-setup .line[hidden] { display: none; }
.ask-setup .line label { min-width: 84px; }
.ask-keep { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink2); margin: 10px 0 0; }
.ask-go { display: flex; align-items: baseline; gap: 16px; margin-top: 12px; }
.ask-go button, .ask-in button { background: var(--ink); color: var(--paper); padding: 6px 16px; font-size: 14px; font-weight: 600; }
.ask-err { color: #a3261b; font-size: 14px; }
.ask-cfg { display: flex; gap: 16px; align-items: baseline; padding: 10px 24px; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink2); }
.ask-cfg span { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-cfg button { color: var(--blue); }
.ask-log { flex: 1; overflow-y: auto; padding: 8px 24px 16px; }
.ask-q { margin: 18px 0 6px; font-weight: 600; white-space: pre-wrap; }
.ask-t { margin: 4px 0; font-size: 13px; color: var(--ink2); }
.ask-warn { color: #a3261b; }
.ask-a { margin: 6px 0 4px; overflow-wrap: anywhere; }
.ask-a p { margin: 0 0 8px; }
.ask-a ul { margin: 0 0 8px; padding-left: 20px; }
.ask-a li { margin: 2px 0; }
.ask-a a { color: var(--blue); }
.ask-a code { font-family: var(--mono); font-size: 15px; }
.ask-a pre { background: var(--well); padding: 10px 12px; overflow-x: auto; margin: 0 0 8px; }
.ask-a pre code { font-size: 14px; white-space: pre-wrap; }
.ask-in { display: flex; gap: 10px; align-items: flex-end; padding: 12px 24px 16px; border-top: 1px solid var(--rule); }
.ask-in textarea { flex: 1; font: inherit; border: 1px solid var(--rule); padding: 8px 10px; resize: none; min-height: 44px; border-radius: 0; }
.ask-in textarea:focus { outline: 0; border-color: var(--blue); }
.ask-in.busy button { opacity: 0.4; pointer-events: none; }
@media (min-width: 1500px) { body.asking .page { margin-right: 500px; } }
@media (max-width: 767px) { .ask { border-left: 0; } .ask-head, .ask-setup, .ask-cfg, .ask-log, .ask-in { padding-left: 16px; padding-right: 16px; } }
.top .home { color: var(--ink2); padding-right: 24px; border-right: 1px solid var(--rule); }
@media (max-width: 767px) { .top { flex-wrap: wrap; gap: 6px 20px; } .top .home { flex-basis: 100%; border-right: 0; padding-right: 0; } }
