/* Batch45: scoped to the two desktop KL8 panels; no duplicate number grid. */
/* BUG-20260909-017: tabs and hit verification must not consume the old grid's flexible result row. */
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool.is-calculator-workbench.is-official-lottery-workspace #desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="kl8"] .desktop-kl8-rotation-host .kl8-rotation-results {
  display:flex!important;flex-direction:column!important;gap:5px!important;
}
html body #desktopUnifiedLotteryCalculator .desktop-kl8-rotation-host .kl8-rotation-results > :is(header,nav,.desktop-kl8-hit-verifier) {
  flex:0 0 auto!important;
}
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool.is-calculator-workbench.is-official-lottery-workspace #desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="kl8"] .desktop-kl8-rotation-host #kl8RotationOutput {
  flex:1 1 0!important;min-height:0!important;height:auto!important;
}
html body #desktopUnifiedLotteryCalculator .kl8-group-tools {box-sizing:border-box;min-width:0;min-height:0;padding:7px;background:#3b4e60;color:#f0f6fc;border:1px solid #7990a4;border-radius:5px;font-size:12px;display:flex;flex-direction:column;gap:6px;}
html body #desktopUnifiedLotteryCalculator .kl8-group-tools[hidden] {display:none!important;}
html body #desktopUnifiedLotteryCalculator .kl8-group-tools :is(button,input,select),html body .kl8-group-result-tabs button {box-sizing:border-box;min-width:0;height:32px!important;min-height:32px!important;max-height:32px!important;border:1px solid #a5b8c9;border-radius:5px;padding:3px 7px;font:700 12px Microsoft YaHei;color:#fff;background:linear-gradient(#8aa2b9,#536b82);}
html body #desktopUnifiedLotteryCalculator .kl8-group-tools :is(input,select) {background:#2c3d50;width:64px;}
html body #desktopUnifiedLotteryCalculator .kl8-group-tools button:disabled {opacity:.45;}
.kl8-group-fields,.kl8-group-heading,.kl8-group-actions,.kl8-group-result-tabs {display:flex;align-items:center;gap:5px;flex-wrap:wrap;}
.kl8-group-fields label {display:flex;align-items:center;gap:4px;white-space:nowrap;}
.kl8-group-heading {justify-content:space-between;}
.kl8-group-actions button {flex:1 1 auto;white-space:nowrap;}
.kl8-group-result-tabs {margin:5px 0;flex:none;}
.kl8-group-result-tabs button {flex:1;}
html body .kl8-group-result-tabs button[aria-pressed=true],html body #desktopUnifiedLotteryCalculator .kl8-group-tools [data-kl8-tool-action=generate] {background:linear-gradient(#62d4ff,#149be7);}
html body #desktopUnifiedLotteryCalculator .has-kl8-joint-tools #kl8RotationOutput {display:none!important;}
html body #desktopUnifiedLotteryCalculator .kl8-joint-tools {flex:1 1 auto!important;overflow:auto;}
.kl8-joint-groups {display:flex;flex-direction:column;gap:6px;}
.kl8-joint-groups>section {padding:5px;border:1px solid #7b8fa4;border-radius:4px;}
.kl8-joint-groups>section.is-editing {border:2px solid #41c8ff;background:#314d65;}
.kl8-joint-groups p,.kl8-balanced-pool {margin:4px 0;overflow-wrap:anywhere;}
/* Batch48: independent matrices and final per-group support remain compact and inspectable. */
.kl8-group-tools details pre {max-height:160px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;padding:5px;background:#2c3d50;font:12px/1.6 Consolas,monospace;}
.kl8-group-tools details summary {cursor:pointer;color:#c6ecff;}
html body #desktopUnifiedLotteryCalculator .kl8-group-tools textarea {box-sizing:border-box;width:100%!important;min-height:140px;height:200px;flex:1 0 140px;resize:vertical;overflow:auto;background:#a6b8c8;color:#061f34;border:1px solid #c3d2df;border-radius:4px;padding:8px;font:700 14px/1.8 Consolas,monospace;}
html body #desktopUnifiedLotteryCalculator .kl8-balanced-tools textarea {min-height:260px;}
.kl8-group-tools output {display:block;overflow-wrap:anywhere;color:#ffe58d;}
.kl8-group-tools small,.kl8-group-result-meta {color:#c6dce9;font-size:11px;}
[data-kl8-picker-owner] {font-size:12px;color:#8de0ff;padding:4px;}

/* Batch46: direct copy commands share the compact settings row. */
html body #desktopUnifiedLotteryCalculator .kl8-balanced-tools [data-kl8-balanced-toolbar] {
  flex-wrap:nowrap;overflow-x:auto;gap:4px;flex:none;padding-bottom:2px;
}
html body #desktopUnifiedLotteryCalculator .kl8-balanced-tools [data-kl8-balanced-toolbar] > * {
  flex:0 0 auto;white-space:nowrap;
}
html body #desktopUnifiedLotteryCalculator .kl8-balanced-tools [data-kl8-balanced-toolbar] input {
  width:54px!important;
}

/* Batch45 screenshot follow-up: four actions per row, preserving shared button height. */
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool.is-calculator-workbench.is-official-lottery-workspace #desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="kl8"] .desktop-kl8-rotation-host .kl8-rotation-actions {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;
}
html body #indicatorDrawer#indicatorDrawer.is-realtime-number-tool.is-calculator-workbench.is-official-lottery-workspace #desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="kl8"] .desktop-kl8-rotation-host .kl8-rotation-actions > button {
  padding-inline:1px!important;white-space:nowrap!important;font-size:11px!important;
}
html body #desktopUnifiedLotteryCalculator .kl8-joint-tools .kl8-group-actions {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;
}
html body #desktopUnifiedLotteryCalculator .kl8-joint-tools .kl8-group-actions button {
  padding-inline:1px!important;font-size:11px!important;
}
