
/* Guest Comparison R05: isolated, public-safe chart experience */
.container{max-width:1630px}
.compare-demo{margin:22px 0 40px;color:#edf4fb;font-family:system-ui,-apple-system,"Microsoft JhengHei","Noto Sans TC",sans-serif}
.compare-hero{display:flex;justify-content:space-between;align-items:end;gap:28px;margin:2px 0 22px}
.compare-kicker{color:#e2ba69;text-transform:uppercase;font-size:11px;font-weight:750;letter-spacing:.2em}
.compare-hero h2{font-size:clamp(27px,3vw,46px);max-width:770px;letter-spacing:-.047em;margin:8px 0 6px;line-height:1.22}
.compare-hero p{font-size:13px;max-width:735px;margin:7px 0;color:#a9b7c6;line-height:1.8}
.compare-chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #775e37;border-radius:99px;color:#e3c381;background:#282219;padding:9px 13px;font-size:12px;font-weight:700}
.compare-chip .dot{width:7px;height:7px;background:#d1a653;border-radius:50%}
.compare-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:13px;min-height:46px}
.compare-source{color:#d4e3f2;border:1px solid #3b4d5d;background:#13212d;border-radius:8px;padding:10px 12px;font-size:12px;letter-spacing:.02em}
.compare-toolbar button,.compare-file-label{border:1px solid #354659;background:#142331;border-radius:9px;padding:10px 14px;color:#e0eaf4;font-size:12px;font-weight:700;cursor:pointer;transition:.16s ease}
.compare-toolbar button:hover,.compare-file-label:hover{background:#243448;border-color:#6584a0;transform:translateY(-1px)}
.compare-toolbar button:focus-visible,.compare-file-label:focus-visible{outline:2px solid #e4b763;outline-offset:2px}
.compare-toolbar button.primary{background:#e3ba72;color:#15140f;border:1px solid #e3ba72}
.compare-toolbar button.primary:hover{background:#f5d090}
.compare-toolbar button[aria-pressed="true"]{border-color:#caa25e;color:#ffe2a9}
.compare-file-label input{display:none}
.compare-live{font-size:12px;color:#8e9dad;margin-left:auto;display:flex;align-items:center;gap:6px}
.compare-live:before{content:"";width:7px;height:7px;background:#748392;border-radius:50%}
.compare-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}
.compare-pane{position:relative;min-width:0;background:linear-gradient(145deg,#121d28,#0d151e 78%);border:1px solid #324454;border-radius:16px;overflow:hidden;box-shadow:0 17px 42px #02070c60}
.compare-pane.integrated{border-color:#b38c4e;box-shadow:0 0 0 1px #8b693345,0 18px 60px #050d17c8}
.compare-pane-head{padding:16px 17px 13px;border-bottom:1px solid #273a49;min-height:94px}
.compare-pane-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.compare-pane-head h3{font-size:18px;font-weight:800;margin:0;color:#eaf4ff;letter-spacing:.01em}
.compare-tag{display:inline-block;border:1px solid #435668;border-radius:6px;padding:3px 6px;color:#a9bbcb;font-size:10px;font-weight:700}
.compare-pane.integrated .compare-tag{background:#493920;color:#f4d597;border-color:#816137}
.compare-pane-head p{font-size:11px;margin:7px 0 0;color:#8fa4b7;line-height:1.6}
.compare-chart-main{padding:9px 9px 3px;position:relative}
.compare-chart-main canvas{display:block;width:100%;height:340px;cursor:crosshair;border-radius:6px}
.compare-subcharts{padding:0 9px 14px}
.compare-mini{position:relative;margin-top:5px;border-top:1px solid #203240}
.compare-mini canvas{display:block;width:100%;height:90px;cursor:crosshair}
.compare-mini-title{position:absolute;z-index:1;top:6px;left:12px;font-size:10px;pointer-events:none;color:#bbcbd9;font-weight:800;letter-spacing:.04em}
.compare-mini-title span{color:#75899a;font-weight:400;margin-left:5px}
.compare-integrated-chart{position:relative;padding:8px 9px 4px}
.compare-integrated-chart canvas{width:100%;height:660px;display:block;cursor:crosshair}
.compare-indicator-note{font-size:10px;color:#7d92a4;margin:2px 13px 13px}
.compare-lamps{display:flex;align-items:center;gap:15px}
.compare-lamp{display:flex;align-items:center;gap:7px}
.compare-lamp-ring{width:27px;height:27px;border-radius:50%;border:4px solid #4e4a3b;background:#32333a;box-shadow:inset 0 0 0 2px #171d25;flex-shrink:0}
.compare-lamp-ring.d1.on{border-color:#efc64c;background:#f3d66d;box-shadow:0 0 15px #f3be3b77,inset 0 0 0 2px #b88124}
.compare-lamp-ring.count.on{border-color:#f4d359;background:#fc524b;box-shadow:0 0 18px #fb645c85,inset 0 0 0 2px #c82f37;animation:countBlink 3.5s infinite}
@keyframes countBlink{0%,85%{opacity:1}86%,100%{opacity:.32}}
.compare-lamp-label{font-size:9px;color:#a7b5c3;line-height:1.22;white-space:nowrap}
.compare-lamp-label strong{display:block;font-size:10px;color:#f0f4f8}
.compare-event-inspector{margin:2px 12px 13px;border-radius:12px;border:1px solid #405267;background:#111e2b;padding:13px;min-height:105px}
.compare-inspector-header{display:flex;align-items:center;justify-content:space-between;gap:9px}
.compare-inspector-header strong{font-size:12px;color:#f4f6fa}
.compare-time{font-size:11px;color:#9baabb;font-variant-numeric:tabular-nums}
.compare-event-pills{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:10px}
.compare-evt{display:inline-flex;align-items:center;gap:6px;border:1px solid #46576a;padding:6px 9px;border-radius:7px;background:#203141;font-size:11px;font-weight:750;letter-spacing:.01em}
.compare-evt.bull{border-color:#996358;background:#3e2b30;color:#ffa49a}
.compare-evt.bear{border-color:#477c9f;background:#193748;color:#85d2f6}
.compare-empty{font-size:12px;color:#8c9cb0}
.compare-legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:0 13px 13px;font-size:11px;color:#8ca2b5}
.compare-legend b{color:#ccd8e2}
.compare-legend .accent{color:#e3ba72}
.compare-instructions{background:linear-gradient(90deg,#1e2932,#182028);border:1px solid #384b59;border-radius:12px;padding:12px 16px;margin-top:14px;display:flex;justify-content:space-between;gap:20px;align-items:center}
.compare-instructions p{margin:0;color:#bccbd6;font-size:12px;line-height:1.7}
.compare-instructions strong{color:#f5d69a}
.compare-footer{font-size:11px;color:#8296a8;line-height:1.85;margin:12px 0 0}
.compare-footer strong{color:#c6d4df}
.compare-status{font-size:12px;color:#d1ae65;margin:0 0 12px}
@media(min-width:1510px){.compare-chart-main canvas{height:390px}.compare-mini canvas{height:95px}.compare-integrated-chart canvas{height:735px}}
@media(max-width:1100px){.compare-grid{grid-template-columns:1fr}.compare-integrated-chart canvas{height:510px}.compare-hero{align-items:start}.compare-pane-head{min-height:auto}.compare-chart-main canvas{height:350px}.compare-mini canvas{height:95px}}
@media(max-width:620px){.compare-hero{display:block}.compare-chip{margin-top:10px}.compare-toolbar{gap:7px}.compare-toolbar button,.compare-file-label{padding:9px 10px}.compare-live{width:100%;margin:0}.compare-lamps{gap:8px}.compare-lamp-ring{width:22px;height:22px;border-width:3px}.compare-lamp-label{font-size:8px}.compare-pane-head{padding:14px 12px}.compare-chart-main canvas{height:300px}.compare-mini canvas{height:82px}.compare-integrated-chart canvas{height:440px}.compare-instructions{display:block}.compare-instructions p+p{margin-top:6px}}

/* Interactive event labels: number + text by default, click to keep number. */
.compare-event-overlay{position:absolute;inset:8px 9px 4px;overflow:hidden;pointer-events:none;z-index:3}
.compare-chart-evt{position:absolute;display:flex;align-items:center;justify-content:flex-start;gap:5px;min-height:22px;height:23px;line-height:1;border-radius:6px;padding:2px 5px;border:1px solid transparent;font:650 10px/1.12 system-ui,-apple-system,"Microsoft JhengHei",sans-serif;white-space:nowrap;pointer-events:auto;cursor:pointer;box-shadow:0 2px 8px #000b;opacity:.97}
.compare-chart-evt.bull{background:#351f23e8;color:#ffaea0;border-color:#a3514f}
.compare-chart-evt.bear{background:#12344be8;color:#8fd8ff;border-color:#397db0}
.compare-chart-evt.collapsed{justify-content:center;width:25px;padding:2px}
.compare-chart-evt-number{font-weight:900;font-size:12px;line-height:1}
.compare-chart-evt-label{font-size:10px;font-weight:650;max-width:148px;text-overflow:ellipsis;overflow:hidden}
.compare-chart-evt.crowded{outline:1px dashed #d6ba71;opacity:.83}
.compare-chart-evt:hover,.compare-chart-evt:focus-visible{z-index:5;outline:2px solid #f5d797;outline-offset:1px;filter:brightness(1.15)}
.compare-event-button{cursor:pointer}
.compare-event-button:focus-visible{outline:2px solid #f1ca78;outline-offset:2px}
.compare-event-number{font-size:12px;min-width:13px;text-align:center}
.compare-event-full{font-size:11px}
.compare-toolbar button[aria-pressed=true]{background:#293d51;border-color:#d0ad71;color:#ffe0a5}
@media(max-width:650px){.compare-chart-evt-label{font-size:9px;max-width:105px}.compare-chart-evt{gap:3px;padding:2px 4px}}

.pro-entry-link{display:inline-flex;margin:12px 0 0;padding:9px 16px;border:1px solid #cda35e;background:linear-gradient(100deg,#49361e,#241e16);border-radius:10px;color:#ffe1a0;text-decoration:none;font:800 12px system-ui,-apple-system,"Noto Sans TC",sans-serif;letter-spacing:.03em;box-shadow:0 3px 18px #0004}
.pro-entry-link:hover{background:#5b421f;color:#fff0c8}
.pro-entry-link:focus-visible{outline:2px solid #eacc81;outline-offset:3px}
