/* Only figures use these styles. The article title, copy and TOC use the website's Markdown layout. */
.kq-indicator-figure { margin-block:24px; }
.kq-indicator-figure figure { margin:0; text-align:center; }
.kq-indicator-figure *, .kq-indicator-figure *::before, .kq-indicator-figure *::after { box-sizing:border-box; }
.kq-indicator-figure picture { display:block; }
@media(max-width:768px) { .kq-indicator-figure { margin-block:16px; } }
.kq-indicator-figure .kg-art { container-type: inline-size; }
.kq-indicator-figure :is(.kg-cover-title,.kg-panel-title,.kg-chart-label) {
  font-size:clamp(.875rem,2.3cqi,1rem); line-height:1.4; font-weight:600; color:#49433f;
}
.kq-indicator-figure .kg-art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.kg-cover {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.72;
  overflow: hidden;
  border-radius: 10px;
}
.kg-cover,.kg-transfer { background:#fff; }
.kg-cover-title { position: absolute; top: 7%; left: 6%; }
.kg-laptop { position: absolute; left: 6%; width: 61%; bottom: 10%; filter: drop-shadow(0 7px 5px rgb(57 37 24 / .16)); }
.kg-lid { border: clamp(3px,.85cqi,6px) solid #444649; border-radius: 9px 9px 3px 3px; background: white; overflow: hidden; }
.kg-lid span,.kg-phone-id,.kg-symbol { display: block; text-align: left; line-height: 1.4; color: #272323; }
.kg-lid span { padding: 2% 4%; border-bottom: 1px solid #ecebea; font-size: clamp(10px,1.8cqi,13px); font-weight: 600; }
.kq-indicator-figure .kg-lid img { aspect-ratio: 1.94; object-fit: cover; object-position: top left; }
.kg-laptop i { display: block; height: clamp(4px,1.1cqi,8px); margin-inline: -5%; border-radius: 0 0 40% 40%; background: linear-gradient(#c7c8cb,#7c7e80); }
.kg-phone {
  border: clamp(3px,.73cqi,5px) solid #363636;
  border-radius: clamp(12px,2.6cqi,19px);
  padding: 3% 2% 2%;
  background: #fff;
  box-shadow: 0 7px 14px rgb(49 30 21 / .17);
  overflow: hidden;
}
.kg-cover-phone { position: absolute; width: 24%; right: 8%; bottom: 7%; padding: 1.3% .85% 1%; }
.kg-signal-detail { position: absolute; right: 23%; bottom: 8%; width: 29%; padding: 1% 1.2%; background: #fff; border-radius: 7px; box-shadow: 0 4px 16px rgb(53 32 22 / .2); }
.kg-signal-detail span { display: block; margin-bottom: 2px; text-align: left; color: #64534d; font-size: clamp(10px,1.7cqi,12px); line-height: 1.35; }
.kg-phone-id { font-weight: 650; font-size: clamp(9px,1.8cqi,13px); text-align: center; }
.kg-symbol { padding: 3% 2% 1%; font-size: clamp(9px,1.7cqi,12px); font-weight: 600; }
.kg-symbol small { font-size: .85em; font-weight: 400; color: #666; }
.kg-panel-title { display: block; margin-bottom: 10px; text-align: left; }
.kg-pair,.kg-transfer { display: grid; align-items: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px,3cqi,22px); padding: clamp(14px,4cqi,28px); border-radius: 9px; }
.kg-examples { background: #f4f1ee; }
.kg-code-pair { background: #eff1f4; }
.kg-panel { min-width: 0; }
.kq-indicator-figure .kg-panel img,.kq-indicator-figure .kg-evidence img { border-radius: 5px; box-shadow: 0 3px 13px rgb(46 39 36 / .1); }
.kg-chart-print,.kg-macd-demo,.kg-recheck { background: white; border: 1px solid #e3e5e7; border-radius: 8px; overflow: hidden; text-align: left; }
.kg-chart-label { padding: 14px 16px 10px; }
.kg-chart-label small { margin-left: .5em; color: #655f5b; font-weight: 400; font-size: 12px; }
.kg-macd-demo { position: relative; min-width: 0; margin: 0; padding: 0; }
.kg-reader-only,.kg-macd-demo input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.kg-macd-demo label { display: inline-block; padding: 4px 12px; border-radius: 5px; font-size: 13px; color: #645d5c; cursor: pointer; }
.kg-macd-demo label:first-of-type { margin-left: 15px; }
.kg-macd-demo input:checked + label, .kg-macd-demo:not(:has(input:checked)) label[for="kg-marked"] { background: #f6eae6; color: #8c332d; font-weight: 650; }
.kg-macd-demo input:focus-visible + label { outline: 2px solid #a03931; }
.kg-compare-charts { margin-top: 9px; }
.kg-compare-zoom { display: none; }
.kq-indicator-figure .kg-macd-demo:not(:has(#kg-plain:checked)) .kg-compare-zoom .kg-zoom-plain,.kq-indicator-figure #kg-plain:checked ~ .kg-compare-zoom .kg-zoom-marked { display: none; }
@container (max-width: 430px) {
  .kg-compare-zoom { display:grid; grid-template-columns:minmax(0,1fr); margin:4px 10px 10px; border:1px solid #e6e5e4; border-radius:5px; overflow:hidden; }
  .kg-compare-zoom span { display:block; padding:3px 8px; background:#f6f4f2; color:#4c4543; font-size:12px; }
  .kq-indicator-figure .kg-compare-zoom img { width:min(100%,14rem); margin-inline:auto; }
}
.kq-indicator-figure .kg-macd-demo:not(:has(#kg-plain:checked)) .kg-compare-charts .kg-chart-plain,.kq-indicator-figure #kg-plain:checked ~ .kg-compare-charts .kg-chart-marked { display: none; }
.kg-transfer { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: center; gap:clamp(16px,3.2cqi,24px); padding:clamp(16px,4cqi,30px); }
.kg-transfer-computer,.kg-transfer-result { min-width:0; }
.kg-transfer-result { width:100%; margin:auto; }
.kq-indicator-figure .kg-transfer-result img { border-radius:5px; box-shadow:0 2px 10px #28232110; }
.kg-share-open { display:block; width:100%; padding:3px 0 0; margin:0; border:0; background:transparent; color:#8b382f; font:inherit; text-align:center; border-radius:6px; }
.kg-share-open:focus-visible,.kg-qr-close:focus-visible { outline:2px solid #973b32; outline-offset:3px; }
.kg-share-lid { display:block; position:relative; width:93%; padding:clamp(5px,1cqi,8px) clamp(3px,.6cqi,5px) clamp(6px,1.05cqi,9px); margin:0 auto; border:1px solid #777978; border-radius:clamp(6px,1.25cqi,9px) clamp(6px,1.25cqi,9px) 2px 2px; background:linear-gradient(145deg,#393c3c,#242627); box-shadow:0 3px 8px #27262224; }
.kg-share-lid::before { content:""; position:absolute; width:2px; height:2px; top:2px; left:50%; border-radius:50%; background:#838988; }
.kg-share-screen { display:block; position:relative; overflow:hidden; aspect-ratio:16/10; background:#fff; }
.kq-indicator-figure .kg-share .kg-sharing-editor { width:100%; height:100%; object-fit:cover; object-position:left top; }
.kg-share-deck { display:block; height:clamp(5px,.95cqi,7px); border-radius:2px 2px 10% 10% / 18% 18% 82% 82%; background:linear-gradient(#cdd0cf,#c2c4c4 50%,#888c8d); box-shadow:0 3px 4px #25231e20; }
.kg-share-deck::before { content:""; display:block; width:14%; height:41%; margin:auto; border-radius:0 0 4px 4px; background:#989c9c; }
.kg-zoom-label { display:inline-block; margin-top:9px; padding:5px 15px; border:1px solid #d6aaa5; border-radius:6px; background:white; color:#8b382f; font-size:14px; line-height:1.55; text-decoration:underline; text-underline-offset:3px; }
.kg-share-open:hover .kg-zoom-label { color:#67261d; }
.kg-qr-dialog { height:fit-content; position:fixed; inset:0; box-sizing:border-box; width:min(770px,calc(100vw - 12px),calc(100dvh - 88px)); max-width:calc(100% - 8px); max-height:calc(100dvh - 8px); overflow:auto; margin:auto; border:0; border-radius:12px; background:white; color:#252122; padding:10px 12px; box-shadow:0 14px 54px #1b181a42; text-align:center; font:15px/1.5 "Segoe UI",system-ui,sans-serif; }
.kg-qr-dialog:not(:popover-open) { display:none; }
.kg-qr-dialog::backdrop { background:#201c1c80; }
.kg-qr-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:8px; text-align:left; }
.kg-qr-dialog-head strong { font-size:17px; }
.kg-qr-close { padding:6px 9px; min-height:36px; border:1px solid #d6d2cf; border-radius:6px; background:white; color:#373131; font:inherit; }
.kq-indicator-figure .kg-share .kg-share-qr { width:min(100%,744px,calc(100dvh - 118px)); height:auto; max-width:100%; margin:auto; image-rendering:pixelated; }
#kg-qr-help { display:block; font-size:14px; color:#4d4642; }
#kg-share-figure { scroll-margin-top:16px; }
.kg-draft { padding: clamp(16px,3.5cqi,26px); border-radius: 8px; background: #f6f2ef; text-align: left; }
.kg-draft .kg-request { margin-top: 18px; }
.kq-indicator-figure .kg-draft .kg-check { max-width:25rem; }
.kg-request blockquote { margin: 0; padding: 0 0 0 12px; border-left: 3px solid #c89e90; color: #453532; line-height: 1.6; }
.kg-check img + img { margin-top: 5px; }
.kg-recheck { max-width: 580px; margin: auto; }
.kg-help { padding: clamp(16px,3.4cqi,26px); display: grid; grid-template-columns: 1fr 1.85fr; align-items: center; gap: 5%; background: #f1f2f3; border-radius: 8px; }
.kq-indicator-figure .kg-help-context { border-radius: 7px; }
.kq-indicator-figure .kg-help-detail { border-radius: 6px; box-shadow: 0 3px 10px #20232520; }
@container (max-width: 430px) {
  .kg-cover { aspect-ratio: 1.48; }
  .kg-cover-phone { width: 26%; right: 6%; bottom: 9%; }
  .kg-laptop { bottom: 13%; }
  .kg-pair { grid-template-columns: minmax(0,1fr); }
  .kg-transfer { grid-template-columns: minmax(0,1fr); }
  .kg-transfer-computer,.kg-transfer-result { width:100%; max-width:330px; margin-inline:auto; }
  .kg-help { grid-template-columns: minmax(0,1fr); }
  .kq-indicator-figure .kg-art img.kg-help-context { display: none; }
}
@container (max-width: 300px) {
  .kg-cover { aspect-ratio: 1.27; }
  .kg-transfer { padding:14px; }
}

.kq-indicator-figure .kg-code-pair .kg-check img:last-child { width: min(100%, 230px); margin-top: 6px; }

.kg-pivots { margin: 0; width: 100%; border-collapse: collapse; color: #342d2c; font-size: 14px; font-variant-numeric: tabular-nums; }
.kg-pivots th,.kg-pivots td { text-align: right; padding: 5px 14px; border: 0; border-bottom: 1px solid #ece9e6; background: #fff; white-space: nowrap; }
.kg-pivots th:first-child { text-align: left; }
.kg-pivots tbody th { font-weight: 400; }
.kg-pivots thead th { background: #f8f6f4; font-weight: 600; }
.kq-indicator-figure .kg-chart-print img { max-width: 545px; margin: auto; }
.kq-indicator-figure .kg-art .kg-status-strip { width: min(100%, 230px); margin-top: 6px; }
.kg-examples .kg-panel { background: transparent; }
@container (max-width: 430px) {
  .kg-pivots th,.kg-pivots td { padding-inline: 8px; }
  .kg-macd-demo label { padding: 10px 7px; }
  .kg-macd-demo label:first-of-type { margin-left: 5px; }
}

/* Keep the share code on the laptop, alongside the receiving phone. */
.kg-transfer {
  display:grid; grid-template-columns:minmax(0,1fr); position:relative; isolation:isolate; overflow:hidden;
  align-items:end; gap:0; padding:clamp(16px,5cqi,36px) clamp(12px,3.8cqi,27px) clamp(12px,3cqi,22px);
}
.kg-transfer-computer,.kg-transfer-result { grid-area:1/1; margin:0; max-width:none; }
.kg-transfer-computer { width:74%; justify-self:start; align-self:end; z-index:1; padding-top:40px; }
.kg-transfer .kg-transfer-result {
  position:static; align-self:start; justify-self:end; width:27%; padding:1.3% .85% 1%;
}
.kq-indicator-figure .kg-transfer .kg-transfer-result img { border-radius:0; box-shadow:none; }
.kq-indicator-figure .kg-transfer .kg-window-name img { width:1em; height:1em; margin:0; box-shadow:none; border-radius:2px; }
.kg-share-device { display:block; }
.kg-window-name { display:flex; align-items:center; gap:4px; background:white; padding:4px 8px; color:#292626; font:600 clamp(10px,1.8cqi,13px)/1.45 "Microsoft YaHei UI", sans-serif; border-bottom:1px solid #eee; }
.kg-window-name span { margin-left:auto; font-size:.88em; font-weight:400; color:#695c54; }
.kg-share-screen { display:block; width:100%; aspect-ratio:1.95; min-height:calc(var(--kq-qr-side) + 28px); }
.kg-scan-piece { position:absolute; display:block; top:0; bottom:0; right:3%; margin-block:auto; width:var(--kq-qr-side); height:max-content; background:white; box-shadow:0 1px 5px #30282224; }
.kq-indicator-figure .kg-share img.kg-default-qr { display:block; width:100%; height:auto; margin:0; max-width:none; padding:0; border:none; border-radius:0; box-shadow:none; image-rendering:pixelated; }
.kg-direct-action { display:block; text-align:center; padding-top:6px; }
.kg-direct-action .kg-zoom-label { display:inline-block; margin:0; padding:4px 8px; font-size:13px; border:0; background:transparent; text-underline-offset:3px; }
@container (max-width:540px) {
  .kg-transfer { padding:16px 10px 10px; }
  .kg-transfer .kg-transfer-result { width:clamp(120px,35%,160px); }
  .kg-transfer-computer { width:84%; padding-top:clamp(100px,24cqi,115px); }
}
@container (max-width:360px) {
  .kg-transfer { padding-inline:4px; }
  .kg-transfer-computer { width:93%; padding-top:clamp(161px,50cqi,180px); }
}

.kq-indicator-figure .kg-manual-example picture { display:block; }
.kq-indicator-figure .kg-art.kg-manual-example img { width:100%; max-width:100%; margin:0; border-radius:0; box-shadow:none; }

.kq-indicator-figure .kg-share .kg-scan-caption { display:block; padding:2px 0; margin:0; text-align:center; white-space:nowrap; color:#544c47; background:#fff; font:400 11px/16px "Microsoft YaHei UI","PingFang SC",sans-serif; }

/* The default QR uses the original raster and its four-module quiet zone. */
.kq-indicator-figure .kg-share { --kq-qr-side:204px; }
@media (max-width:380px), (min-resolution:1.2dppx) {
  .kq-indicator-figure .kg-share { --kq-qr-side:186px; }
}
@media (min-resolution:1.74dppx) {
  .kq-indicator-figure .kg-share { --kq-qr-side:159.43px; }
}
@media (min-resolution:2dppx) {
  .kq-indicator-figure .kg-share { --kq-qr-side:160px; }
}

.kq-indicator-download {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-top:2rem; padding:clamp(12px,4vw,28px); border:1px solid #e9e2dd;
  border-radius:12px; background:#fcf9f7; scroll-margin-top:5rem;
}
.kq-indicator-download strong { display:block; color:#221d1b; font-size:1.0625rem; line-height:1.45; }
.prose .kq-indicator-download a {
  display:inline-flex; align-items:center; gap:6px; min-height:44px; margin-top:4px;
  color:#a22e25; font-size:15px; font-weight:600; text-underline-offset:3px;
}
.kq-indicator-download figure { flex:0 0 112px; margin:0; text-align:center; }
.prose .kq-indicator-download img { display:block; width:112px; height:112px; margin:0 auto; border:0; border-radius:0; box-shadow:none; image-rendering:pixelated; }
.kq-indicator-download figcaption { margin:4px 0 0; color:#50463f; font-size:13px; line-height:1.5; }
