/* 仅作用于规则走势。深色原版及白天模式分别有清晰的文本对比度 */
.yrt-panel{--yrt-bg:#101d2c;--yrt-surface:#172c3e;--yrt-fg:#f1f7fd;--yrt-muted:#b5cada;--yrt-line:#3d596f;--yrt-green:#41d7c4;background:var(--yrt-bg)!important;color:var(--yrt-fg)!important;border:1px solid var(--yrt-line)!important;border-radius:14px;padding:14px;margin:12px 0 22px;min-width:0;box-sizing:border-box}
html[data-theme="daylight"] .yrt-panel{--yrt-bg:#f3f7fb;--yrt-surface:#fff;--yrt-fg:#182f42;--yrt-muted:#526d80;--yrt-line:#c6d7e3;--yrt-green:#087f7f}
.yrt-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:13px}.yrt-title strong{font-size:18px}.yrt-title small{display:block;font-size:11px;color:var(--yrt-muted)!important;margin-top:4px}.yrt-status{color:var(--yrt-green)!important;font-size:12px}.yrt-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.yrt-fields label,.yrt-custom label{display:flex;flex-direction:column;gap:5px;color:var(--yrt-muted)!important;font-size:12px;font-weight:600}.yrt-fields select,.yrt-custom input{background:var(--yrt-surface)!important;color:var(--yrt-fg)!important;border:1px solid var(--yrt-line)!important;border-radius:9px;padding:10px 8px;min-width:0;width:100%;box-sizing:border-box;font-size:16px!important}.yrt-custom{margin:12px 0 0}.yrt-custom[hidden]{display:none!important}.yrt-custom small{display:block;font-size:11px;color:var(--yrt-muted)!important;margin-top:5px}.yrt-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.yrt-shortcuts button{border:1px solid var(--yrt-line)!important;background:var(--yrt-surface)!important;color:var(--yrt-fg)!important;border-radius:999px;padding:8px 12px;font-size:12px;min-height:34px}.yrt-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.yrt-metrics>div{background:var(--yrt-surface)!important;border:1px solid var(--yrt-line)!important;padding:10px 8px;border-radius:10px;min-width:0}.yrt-metrics small{display:block;font-size:11px;color:var(--yrt-muted)!important}.yrt-metrics strong{display:block;color:var(--yrt-fg)!important;font-size:17px;margin-top:5px;font-variant-numeric:tabular-nums}.yrt-graph{background:#101c2b!important;border:1px solid #39546b!important;border-radius:10px;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;min-height:238px;padding:5px 0;scrollbar-color:#4c7886 #101c2b}.yrt-graph svg{display:block}.yrt-picked{color:var(--yrt-fg)!important;background:var(--yrt-surface)!important;border:1px solid var(--yrt-line)!important;border-radius:9px;padding:10px 12px;font-size:13px;margin-top:10px}.yrt-note{font-size:11px;line-height:1.7;color:var(--yrt-muted)!important;margin:10px 0 0}@media(max-width:650px){.yrt-fields{grid-template-columns:1fr 1fr}.yrt-fields label:first-child{grid-column:1/-1}.yrt-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.yrt-metrics strong{font-size:15px}.yrt-panel{padding:10px}}@media(max-width:350px){.yrt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V4.80.0: make counts directly readable without horizontal graph scrolling */
.yrt-quick-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.yrt-mini{min-width:0;background:var(--yrt-surface)!important;border:1px solid var(--yrt-line);border-radius:10px;padding:10px 6px;text-align:center;color:var(--yrt-fg)}
.yrt-mini small,.yrt-mini span{display:block;color:var(--yrt-muted)!important;font-size:11px;line-height:1.5}
.yrt-mini strong{display:block;color:var(--yrt-green)!important;font-size:21px;font-variant-numeric:tabular-nums;white-space:nowrap;margin:4px 0}
.yrt-group-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 9px;color:var(--yrt-fg)!important}
.yrt-group-head strong{font-size:14px;color:var(--yrt-fg)!important}.yrt-group-head small{font-size:11px;color:var(--yrt-muted)!important}
.yrt-buckets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-width:0}
.yrt-bucket{display:flex;align-items:center;flex-direction:column;gap:3px;min-width:0;background:var(--yrt-surface)!important;color:var(--yrt-fg)!important;border:1px solid var(--yrt-line)!important;border-radius:9px;padding:8px 2px;cursor:pointer;font:inherit}
.yrt-bucket strong{font-size:13px;white-space:nowrap;color:var(--yrt-green)!important}.yrt-bucket small,.yrt-bucket em{color:var(--yrt-muted)!important;font-size:10px;font-style:normal}
.yrt-bucket-track{display:flex;align-items:flex-end;width:70%;height:68px;border-radius:5px;background:rgba(110,151,164,.1);overflow:hidden}
.yrt-bucket-track i{display:block;width:100%;background:linear-gradient(180deg,#35d9c5,#168699);min-height:3px;border-radius:4px 4px 0 0}
.yrt-detail{margin-top:12px;background:var(--yrt-surface)!important;border:1px solid var(--yrt-line);border-radius:10px;overflow:hidden}
.yrt-detail summary{padding:12px;color:var(--yrt-fg)!important;font-weight:600;cursor:pointer;font-size:13px}
.yrt-table-wrap{overflow-x:auto;padding:0 8px 8px}.yrt-table{border-collapse:collapse;width:100%;font-size:12px;color:var(--yrt-fg)!important;white-space:nowrap}
.yrt-table th,.yrt-table td{text-align:center;padding:9px 7px;border-bottom:1px solid var(--yrt-line);color:var(--yrt-fg)!important}
.yrt-table th{color:var(--yrt-muted)!important}.yrt-table .yrt-ok{color:#19bca0!important;font-weight:700}.yrt-table .yrt-no{color:var(--yrt-muted)!important}
.yrt-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:480px){.yrt-quick-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.yrt-buckets{gap:4px}.yrt-bucket{padding:7px 1px}.yrt-bucket-track{height:55px}.yrt-bucket strong{font-size:12px}}

/* V4.80.1 红涨绿跌的真实规则频率线；渐变背景仅供辨识，不替代数据。 */
.yrt-legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:-3px 0 9px;font-size:12px;color:var(--yrt-muted)!important}
.yrt-legend span{display:inline-flex;align-items:center;gap:5px;color:var(--yrt-muted)!important}
.yrt-legend i{width:19px;height:3px;border-radius:4px;display:inline-block}
.yrt-legend-up{background:#f06471}.yrt-legend-down{background:#28c68f}.yrt-legend-flat{background:#8296a8}
.yrt-histogram[hidden],.yrt-legend[hidden]{display:none!important}
.yrt-graph{background:linear-gradient(180deg,#122638 0%,#0b1826 100%)!important;min-height:245px}

/* V4.80.2 market-terminal styled rule chart. Layout remains independent of global themes. */
.yrt-market-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:linear-gradient(95deg,#112e3a,#0a202c);border:1px solid #34586b;padding:10px 12px;border-radius:10px;margin:10px 0;color:#eef9fc!important}
.yrt-market-head>div{display:flex;align-items:baseline;gap:10px;flex:1 1 150px;flex-wrap:wrap}
.yrt-market-head small{font-size:11px;color:#abc5d1!important}.yrt-market-head strong{font-size:25px;color:#f3fafc!important;letter-spacing:.2px;font-variant-numeric:tabular-nums}.yrt-market-head span{font-size:11px;color:#a7bac8!important}.yrt-market-head .yrt-up{color:#f47178!important}.yrt-market-head .yrt-down{color:#27c99c!important}
.yrt-market-head label{font-size:11px;color:#bcd4e1!important;display:flex;align-items:center;gap:7px}.yrt-market-head select{background:#183b47!important;color:#f6fbff!important;border:1px solid #497588!important;border-radius:7px;font-size:14px!important;padding:6px}.yrt-market-head button{background:#246f79!important;color:#fff!important;border:1px solid #399fa4!important;border-radius:7px;padding:9px 11px;font-size:12px;white-space:nowrap}
.yrt-graph{background:#091c29!important;border:1px solid #315266!important;border-radius:9px!important;min-height:294px!important;padding:0!important;touch-action:pan-x pan-y}.yrt-graph svg{max-width:none}.yrt-point:focus{outline:none}.yrt-panel .yrt-picked{border-left:3px solid #4bc8bd!important}
html[data-theme="daylight"] .yrt-market-head{background:#e8f1f7;color:#183348!important;border-color:#b8cfdc}html[data-theme="daylight"] .yrt-market-head strong{color:#183348!important}html[data-theme="daylight"] .yrt-market-head small,html[data-theme="daylight"] .yrt-market-head label{color:#526c7d!important}
@media(max-width:450px){.yrt-market-head{gap:8px}.yrt-market-head>div{flex:1 1 100%;gap:7px}.yrt-market-head strong{font-size:22px}.yrt-market-head label{flex:1 1 auto}.yrt-market-head button{padding:8px}}

/* V4.80.3 可调样本与长周期，兼容手机日夜主题 */
.yrt-window-custom{display:flex;flex-direction:column;gap:4px;flex:1 1 130px!important}.yrt-window-custom[hidden],.yrt-limit-custom[hidden]{display:none!important}
.yrt-window-custom input{background:#183b47!important;color:#fff!important;border:1px solid #497588!important;border-radius:7px;font-size:16px!important;width:100%;max-width:150px;box-sizing:border-box;padding:7px}
html[data-theme="daylight"] .yrt-window-custom input{background:#fff!important;color:#19354c!important;border-color:#b8cedc!important}
@media(max-width:480px){.yrt-market-head>div{flex-basis:100%}.yrt-window-custom{flex-basis:46%!important}}
