.lab-page { width: min(1440px, 100%); margin: 0 auto; padding: 28px 28px 64px; color: #18274a; }
.lab-hero { min-height: 184px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 34px; color: #fff; background: linear-gradient(118deg, #0b2465 0%, #174e98 55%, #176f92 100%); border-radius: 10px; box-shadow: 0 17px 42px rgba(17, 46, 111, .2); overflow: hidden; }
.lab-hero .trend-back-link { color: rgba(255,255,255,.75); }
.lab-hero .trend-back-link:hover { color: #fff; }
.lab-hero .trend-back-link svg { transform: rotate(180deg); }
.lab-eyebrow { margin: 18px 0 7px; color: #8dd9e8; font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
.lab-hero h1 { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.lab-hero p:last-child { max-width: 620px; margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.lab-hero-mark { width: 142px; height: 142px; display: grid; align-content: center; justify-items: center; flex: 0 0 auto; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: inset 0 0 0 13px rgba(255,255,255,.035); }
.lab-hero-mark span, .lab-hero-mark small { font-size: 9px; font-weight: 900; letter-spacing: 1.8px; }
.lab-hero-mark strong { margin: 2px 0 0; color: #fff; font-size: 45px; line-height: 1; }
.lab-account-bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0; padding: 13px 18px; background: #fff; border: 1px solid #dfe6f2; border-radius: 8px; box-shadow: 0 8px 25px rgba(25, 54, 106, .06); }
.lab-account-main, .lab-account-metrics, .lab-account-metrics > span { display: flex; align-items: center; }
.lab-account-main { min-width: 0; gap: 10px; }
.lab-status-dot { width: 9px; height: 9px; flex: 0 0 auto; background: #f0a53c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(240,165,60,.12); }
.lab-account-main strong, .lab-account-main small { display: block; }
.lab-account-main strong { font-size: 13px; }
.lab-account-main small { margin-top: 3px; color: #8190a8; font-size: 11px; }
.lab-account-metrics { gap: 24px; }
.lab-account-metrics > span { gap: 8px; padding-right: 24px; border-right: 1px solid #e5eaf2; }
.lab-account-metrics small, .lab-account-metrics strong { display: block; }
.lab-account-metrics small { color: #8692a7; font-size: 10px; }
.lab-account-metrics strong { color: #b36e12; font-size: 18px; }
.lab-account-link { color: #2565ce; font-size: 12px; font-weight: 800; white-space: nowrap; }
.lab-workbench { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 18px; align-items: start; }
.lab-sidebar, .lab-main-panel { background: #fff; border: 1px solid #dfe6f2; border-radius: 8px; box-shadow: 0 8px 25px rgba(25, 54, 106, .06); }
.lab-sidebar { overflow: hidden; }
.lab-control-block { padding: 21px; border-bottom: 1px solid #e9edf4; }
.lab-control-block:last-child { border-bottom: 0; }
.lab-section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.lab-section-label > span { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 900; background: #2769d2; border-radius: 5px; }
.lab-section-label b, .lab-section-label small { display: block; }
.lab-section-label b { font-size: 14px; }
.lab-section-label small { margin-top: 3px; color: #8a97aa; font-size: 10px; }
.lab-select-wrap { display: grid; gap: 7px; }
.lab-select-wrap > span { color: #697993; font-size: 11px; font-weight: 800; }
.lab-select-wrap select { width: 100%; height: 43px; padding: 0 12px; color: #24385e; font: inherit; font-size: 13px; font-weight: 800; background: #f7f9fc; border: 1px solid #d9e1ed; border-radius: 5px; }
.lab-lottery-meta { min-height: 38px; margin-top: 13px; padding: 10px 11px; color: #78869b; font-size: 11px; line-height: 1.6; background: #f8fafc; border-left: 2px solid #83b4e8; }
.lab-algorithm-list { display: grid; gap: 9px; }
.lab-algorithm-card { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; width: 100%; padding: 12px; color: #354866; text-align: left; background: #fff; border: 1px solid #e0e6f0; border-radius: 6px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.lab-algorithm-card:hover { background: #f8fbff; border-color: #9fbce6; transform: translateY(-1px); }
.lab-algorithm-card:disabled { opacity: .62; cursor: wait; transform: none; }
.lab-algorithm-card.active { color: #164d9d; background: #f0f6ff; border-color: #4f8ce0; box-shadow: inset 3px 0 #2769d2; }
.lab-algorithm-card > i { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; font-size: 11px; font-style: normal; font-weight: 900; background: #397ad6; border-radius: 5px; }
.lab-algorithm-card[data-tone="violet"] > i { background: #795cd3; }
.lab-algorithm-card[data-tone="orange"] > i { background: #d88937; }
.lab-algorithm-card[data-tone="teal"] > i { background: #168f91; }
.lab-algorithm-card[data-tone="cyan"] > i { background: #2583b8; }
.lab-algorithm-card[data-tone="red"] > i { background: #c34e5f; }
.lab-algorithm-card[data-tone="indigo"] > i { background: #5366b9; }
.lab-algorithm-card[data-tone="gold"] > i { color: #4a3100; background: #e2b64c; }
.lab-algorithm-card strong, .lab-algorithm-card small, .lab-algorithm-card em { display: block; }
.lab-algorithm-card strong { font-size: 13px; }
.lab-algorithm-card small { margin-top: 4px; color: #8290a4; font-size: 10px; line-height: 1.45; }
.lab-algorithm-card em { margin-top: 6px; color: #bd791b; font-size: 10px; font-style: normal; font-weight: 800; }
.lab-main-panel { min-width: 0; padding: 24px; }
.lab-panel-heading { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 19px; border-bottom: 1px solid #e7ecf3; }
.lab-panel-heading p { margin: 0 0 6px; color: #7d8ca3; font-size: 10px; font-weight: 900; letter-spacing: .8px; }
.lab-panel-heading h2 { margin: 0; color: #172a50; font-size: 23px; }
.lab-panel-heading span { display: block; max-width: 620px; margin-top: 8px; color: #7d8ba0; font-size: 12px; line-height: 1.6; }
.lab-cost-chip { min-width: 92px; height: 34px; display: grid; place-items: center; align-self: flex-start; padding: 0 10px; color: #a36614; font-size: 11px; font-weight: 900; background: #fff7e8; border: 1px solid #f0d69d; border-radius: 5px; white-space: nowrap; }
.lab-parameter-form { padding: 20px 0 0; }
.lab-parameter-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.lab-parameter-field { display: grid; gap: 7px; }
.lab-parameter-field > span { color: #65758e; font-size: 11px; font-weight: 800; }
.lab-parameter-field select { height: 42px; padding: 0 10px; color: #263b61; font: inherit; font-size: 13px; font-weight: 800; background: #f8fafc; border: 1px solid #d9e1ed; border-radius: 5px; }
.lab-parameter-field input[type="number"] { width: 100%; height: 42px; padding: 0 10px; color: #263b61; font: inherit; font-size: 13px; font-weight: 800; background: #f8fafc; border: 1px solid #d9e1ed; border-radius: 5px; }
.lab-parameter-field select:focus, .lab-parameter-field input[type="number"]:focus { outline: 0; border-color: #4f8ce0; box-shadow: 0 0 0 3px rgba(79,140,224,.12); }
.lab-parameter-field small { color: #7f8da2; font-size: 10px; line-height: 1.45; }
.lab-miracle-lock-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(210px, .7fr) minmax(320px, 1.3fr); gap: 18px; align-items: center; padding: 18px; background: #fffaf0; border: 1px solid #ead4a1; border-left: 4px solid #c99424; border-radius: 6px; }
.lab-miracle-lock-panel strong, .lab-miracle-lock-panel small { display: block; }
.lab-miracle-lock-panel strong { color: #725018; font-size: 15px; }
.lab-miracle-lock-panel small { margin-top: 6px; color: #9a7b47; font-size: 10px; line-height: 1.5; }
.lab-miracle-lock-panel p { margin: 0; color: #6f624c; font-size: 12px; line-height: 1.8; }
.lab-miracle-output-grid { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 320px); padding: 14px; background: #f8fafc; border: 1px solid #e0e6ef; border-radius: 6px; }
.lab-compound-panel { grid-column: 1 / -1; display: grid; gap: 12px; margin: 2px 0 0; padding: 14px; background: #fbfaff; border: 1px solid #ddd8f0; border-radius: 6px; }
.lab-compound-panel legend { padding: 0 7px; color: #6353a2; font-size: 11px; font-weight: 900; }
.lab-compound-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.lab-compound-toggle input { width: 16px; height: 16px; accent-color: #6f59bd; }
.lab-compound-toggle strong, .lab-compound-toggle small { display: block; }
.lab-compound-toggle strong { color: #443779; font-size: 12px; }
.lab-compound-toggle small { margin-top: 3px; color: #8b83a5; font-size: 10px; }
.lab-compound-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding-top: 11px; border-top: 1px solid #ebe7f5; }
.lab-run-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 19px; padding-top: 16px; border-top: 1px solid #edf0f5; }
.lab-run-row p { margin: 0; color: #8895a8; font-size: 11px; line-height: 1.5; }
.lab-run-row p.warning { color: #b34e28; font-weight: 800; }
.lab-run-button { min-width: 146px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font: inherit; font-size: 13px; font-weight: 900; background: #286dce; border: 0; border-radius: 5px; cursor: pointer; box-shadow: 0 7px 14px rgba(40,109,206,.2); }
.lab-run-button:hover:not(:disabled) { background: #1f5fb9; }
.lab-run-button:disabled { opacity: .55; cursor: wait; }
.lab-run-icon { font-size: 18px; line-height: 1; }
.lab-message { margin-top: 15px; padding: 11px 13px; color: #9b6418; font-size: 12px; line-height: 1.5; background: #fff9ed; border: 1px solid #f0ddb3; border-radius: 5px; }
.lab-message.error { color: #b43d48; background: #fff3f4; border-color: #efc5c9; }
.lab-message.success { color: #187258; background: #eefaf5; border-color: #c9e8dd; }
.lab-progress { margin-top: 16px; padding: 18px 19px; background: #f7faff; border: 1px solid #c8d9ef; border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.lab-progress-heading, .lab-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lab-progress-heading > div > span, .lab-progress-heading > div > strong { display: block; }
.lab-progress-heading > div > span { color: #5280b9; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.lab-progress-heading > div > strong { margin-top: 5px; color: #1d3e70; font-size: 14px; }
.lab-progress-heading > b { color: #286dce; font: 900 21px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.lab-progress-track { height: 10px; margin-top: 16px; overflow: hidden; background: #dfe9f6; border-radius: 5px; }
.lab-progress-track i { display: block; width: 0; height: 100%; background: #2d75d0; border-radius: inherit; box-shadow: 0 0 12px rgba(45,117,208,.25); transition: width .18s ease-out; }
.lab-progress-meta { margin-top: 10px; color: #788aa4; font-size: 10px; line-height: 1.5; }
.lab-progress-meta span:last-child { color: #4f719c; font-weight: 800; text-align: right; }
.lab-result { margin-top: 20px; min-height: 310px; padding-top: 20px; border-top: 1px solid #e7ecf3; }
.lab-empty-state { min-height: 270px; display: grid; align-content: center; justify-items: center; gap: 10px; color: #75839a; text-align: center; background: linear-gradient(135deg, #fbfcfe, #f6f9fd); border: 1px dashed #ccd8e9; border-radius: 6px; }
.lab-empty-state strong { color: #405372; font-size: 14px; }
.lab-empty-state p { margin: 0; font-size: 11px; }
.lab-empty-grid { color: #c1d1e7; font: 900 15px/2.1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 5px; }
.lab-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.lab-result-heading h3 { margin: 0; color: #20365d; font-size: 16px; }
.lab-result-heading p { margin: 5px 0 0; color: #8a97aa; font-size: 11px; }
.lab-billing-result { padding: 7px 10px; color: #1b765c; font-size: 10px; font-weight: 900; background: #eefaf5; border: 1px solid #c9e8dd; border-radius: 4px; white-space: nowrap; }
.lab-candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.lab-candidate { padding: 14px; background: #fbfcfe; border: 1px solid #dfe7f2; border-radius: 6px; }
.lab-candidate-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: #8592a6; font-size: 10px; }
.lab-candidate-head strong { color: #3872c3; font-size: 11px; }
.lab-ball-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lab-ball-group + .lab-ball-group { margin-top: 9px; }
.lab-ball-label { width: 38px; color: #8793a7; font-size: 10px; font-weight: 800; }
.lab-ball { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; font: 900 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; background: #397bd4; border-radius: 50%; box-shadow: inset 0 1px 2px rgba(255,255,255,.3), 0 2px 5px rgba(39,91,164,.18); }
.lab-ball.back { background: #e18a3c; }
.lab-ball.digital { background: #6475ba; }
.lab-diagnostic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.lab-diagnostic { min-height: 58px; padding: 10px; background: #f7f9fc; border: 1px solid #e6ebf2; border-radius: 5px; }
.lab-diagnostic small, .lab-diagnostic strong { display: block; }
.lab-diagnostic small { color: #8d99ab; font-size: 10px; }
.lab-diagnostic strong { margin-top: 6px; color: #334c76; font-size: 13px; overflow-wrap: anywhere; }
.lab-notice { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 17px; color: #718096; background: #f8fafc; border: 1px solid #e1e7f0; border-radius: 7px; }
.lab-notice > span { flex: 0 0 auto; color: #b06e18; font-size: 11px; font-weight: 900; }
.lab-notice p { flex: 1; margin: 0; font-size: 11px; line-height: 1.6; }
.lab-notice a { flex: 0 0 auto; color: #2d6bcc; font-size: 11px; font-weight: 800; }
.lab-loading { pointer-events: none; }
@media (max-width: 1020px) { .lab-workbench { grid-template-columns: 1fr; } .lab-sidebar { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(300px, 1.2fr); } .lab-control-block { border-bottom: 0; } .lab-control-block + .lab-control-block { border-left: 1px solid #e9edf4; } }
@media (max-width: 720px) { .lab-page { padding: 14px 12px 36px; } .lab-hero { min-height: 0; padding: 22px 20px; } .lab-hero-mark { display: none; } .lab-account-bar { display: grid; gap: 13px; padding: 13px; } .lab-account-metrics { justify-content: space-between; gap: 10px; } .lab-account-metrics > span { padding-right: 10px; } .lab-workbench { gap: 12px; } .lab-sidebar { display: block; } .lab-control-block + .lab-control-block { border-left: 0; border-top: 1px solid #e9edf4; } .lab-main-panel { padding: 17px 13px; } .lab-panel-heading { display: block; } .lab-cost-chip { width: fit-content; margin-top: 12px; } .lab-parameter-grid, .lab-candidate-grid, .lab-diagnostic-grid { grid-template-columns: 1fr; } .lab-miracle-lock-panel { grid-template-columns: 1fr; gap: 10px; } .lab-miracle-output-grid { grid-template-columns: 1fr; } .lab-run-row, .lab-notice { align-items: stretch; flex-direction: column; } .lab-run-button { width: 100%; } .lab-progress-meta { align-items: flex-start; flex-direction: column; gap: 4px; } .lab-progress-meta span:last-child { white-space: normal; } }
@media (max-width: 720px) { .lab-compound-fields { grid-template-columns: 1fr; } }
