:root {
  --cf-luhe-bg: #10151b;
  --cf-luhe-panel: #1a2028;
  --cf-luhe-panel-strong: #151b22;
  --cf-luhe-panel-soft: #222a34;
  --cf-luhe-line: #35404d;
  --cf-luhe-text: #f4f6f8;
  --cf-luhe-muted: #9da8b6;
  --cf-luhe-gold: #d0a74d;
  --cf-luhe-gold-soft: #f0d28c;
  --cf-luhe-red: #c83d42;
  --cf-luhe-blue: #337ccc;
  --cf-luhe-green: #247a4e;
  --cf-luhe-danger: #d94646;
}

body { margin: 0; background: var(--cf-luhe-bg); color: var(--cf-luhe-text); font-family: Arial, "Microsoft YaHei", sans-serif; }
.cf-luhe-b-workbench, .cf-luhe-b-workbench * { box-sizing: border-box; }
.cf-luhe-b-workbench { width: min(1440px, 100%); margin: 0 auto; padding: 14px 16px 92px; }
.cf-luhe-b-topbar, .cf-luhe-b-draw-deck, .cf-luhe-b-panel, .cf-luhe-b-account, .cf-luhe-b-slip, .cf-luhe-b-orders { border: 1px solid var(--cf-luhe-line); background: var(--cf-luhe-panel); }

.cf-luhe-b-topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-radius: 8px 8px 0 0; background: #171c22; }
.cf-luhe-b-brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.cf-luhe-b-brand strong { color: var(--cf-luhe-gold-soft); font-size: 27px; letter-spacing: 0; white-space: nowrap; }
.cf-luhe-b-brand span { color: var(--cf-luhe-muted); font-size: 14px; white-space: nowrap; }
.cf-luhe-b-topbar-actions { display: flex; align-items: center; gap: 8px; }
.cf-luhe-b-topbar-actions p { margin: 0 8px 0 0; color: var(--cf-luhe-muted); font-size: 13px; white-space: nowrap; }
.cf-luhe-b-topbar-actions p strong { margin-left: 6px; color: var(--cf-luhe-gold-soft); font-size: 16px; font-variant-numeric: tabular-nums; }
.cf-luhe-b-top-action, .cf-luhe-b-button { border: 1px solid #475462; border-radius: 5px; background: #252d37; color: var(--cf-luhe-text); cursor: pointer; font-weight: 700; line-height: 1.25; padding: 9px 14px; text-decoration: none; }
.cf-luhe-b-top-action.is-primary, .cf-luhe-b-button.is-primary { border-color: #bb353a; background: var(--cf-luhe-danger); color: #fff; }
.cf-luhe-b-button.is-gold { border-color: #a67f34; background: var(--cf-luhe-gold); color: #19140c; }
.cf-luhe-b-button.is-quiet { background: transparent; color: var(--cf-luhe-text); }
.cf-luhe-b-top-action:hover, .cf-luhe-b-button:hover, .cf-luhe-b-workbench button:hover { filter: brightness(1.1); }
.cf-luhe-b-workbench button:disabled { cursor: not-allowed; opacity: .55; }

.cf-luhe-b-draw-deck { border-top: 0; border-radius: 0 0 8px 8px; padding: 0 14px 14px; }
.cf-luhe-b-lottery-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--cf-luhe-line); }
.cf-luhe-b-lottery-tab { min-height: 70px; border: 0; border-right: 1px solid var(--cf-luhe-line); border-radius: 0; background: transparent; color: var(--cf-luhe-muted); cursor: pointer; padding: 13px 16px; text-align: left; }
.cf-luhe-b-lottery-tab:last-child { border-right: 0; }
.cf-luhe-b-lottery-tab strong, .cf-luhe-b-lottery-tab span { display: block; }
.cf-luhe-b-lottery-tab strong { color: var(--cf-luhe-text); font-size: 18px; }
.cf-luhe-b-lottery-tab span { margin-top: 5px; font-size: 13px; }
.cf-luhe-b-lottery-tab.is-active { background: #49272a; box-shadow: inset 0 -3px 0 var(--cf-luhe-red); }
.cf-luhe-b-lottery-tab.is-active strong { color: #fff; }
.cf-luhe-b-result-stage { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: stretch; gap: 0; }
.cf-luhe-b-results { min-width: 0; }
.cf-luhe-b-result-card { display: none; min-height: 144px; padding: 18px 24px; background: var(--cf-luhe-panel-strong); }
.cf-luhe-b-result-card.is-active { display: block; }
.cf-luhe-b-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cf-luhe-b-eyebrow, .cf-luhe-b-kicker { margin: 0 0 4px; color: var(--cf-luhe-gold-soft); font-size: 12px; font-weight: 700; }
.cf-luhe-b-result-head h2, .cf-luhe-b-panel h2, .cf-luhe-b-account h2, .cf-luhe-b-slip h2, .cf-luhe-b-orders h2 { margin: 0; color: var(--cf-luhe-text); font-size: 20px; letter-spacing: 0; }
.cf-luhe-b-status { color: var(--cf-luhe-gold-soft); font-size: 13px; font-weight: 700; text-align: right; }
.cf-luhe-b-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 17px 0 9px; }
.cf-luhe-ball { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cf-luhe-red); color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.cf-luhe-ball--red { background: var(--cf-luhe-red); }
.cf-luhe-ball--blue { background: var(--cf-luhe-blue); }
.cf-luhe-ball--green { background: var(--cf-luhe-green); }
.cf-luhe-ball.is-empty { background: #3b4654; color: #a9b3be; box-shadow: none; }
.cf-luhe-ball.is-bonus { outline: 2px solid var(--cf-luhe-gold-soft); outline-offset: 2px; }
.cf-luhe-b-separator { color: var(--cf-luhe-gold-soft); font-size: 24px; font-weight: 700; }
.cf-luhe-b-note { margin: 0; color: var(--cf-luhe-muted); font-size: 13px; line-height: 1.55; }
.cf-luhe-b-next-draw { display: grid; align-content: center; gap: 7px; border-left: 1px solid var(--cf-luhe-line); padding: 18px; background: #171d24; }
.cf-luhe-b-next-draw span { color: var(--cf-luhe-muted); font-size: 13px; }
.cf-luhe-b-next-draw strong { color: var(--cf-luhe-gold-soft); font-size: 15px; line-height: 1.5; }
.cf-luhe-b-next-draw p { margin: 0; color: var(--cf-luhe-muted); font-size: 12px; line-height: 1.5; }
.cf-luhe-b-notice { margin-top: 12px; border-left: 3px solid var(--cf-luhe-gold); background: #2a2419; color: #f1d69b; line-height: 1.65; padding: 12px 14px; }
.cf-luhe-b-history { margin-top: 12px; border: 1px solid var(--cf-luhe-line); border-radius: 8px; background: var(--cf-luhe-panel); padding: 16px; }
.cf-luhe-b-history[hidden] { display: none; }
.cf-luhe-b-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-luhe-b-history-head h2 { margin: 0; color: var(--cf-luhe-text); font-size: 20px; }
.cf-luhe-b-history-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cf-luhe-b-history-filters .is-active { border-color: #bb353a; background: #4a292c; color: #fff; }
.cf-luhe-b-history-note { color: var(--cf-luhe-muted); font-size: 13px; line-height: 1.6; margin: 14px 0 10px; }
.cf-luhe-b-history-list { display: grid; gap: 8px; }
.cf-luhe-b-history-row { display: grid; grid-template-columns: minmax(170px, 1fr) auto; gap: 8px 14px; align-items: center; border: 1px solid var(--cf-luhe-line); background: var(--cf-luhe-panel-strong); padding: 10px 12px; }
.cf-luhe-b-history-row strong { color: var(--cf-luhe-text); }
.cf-luhe-b-history-row > span { color: var(--cf-luhe-muted); font-size: 13px; }
.cf-luhe-b-history-numbers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

.cf-luhe-b-live-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 12px; margin-top: 14px; }
.cf-luhe-b-account { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1.25fr); gap: 16px; border-radius: 8px; padding: 16px; }
.cf-luhe-b-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cf-luhe-b-access-note { max-width: 360px; margin: 0; color: var(--cf-luhe-muted); font-size: 13px; line-height: 1.5; text-align: right; }
.cf-luhe-b-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.cf-luhe-b-account-grid p { margin: 0; border: 1px solid var(--cf-luhe-line); border-radius: 5px; color: var(--cf-luhe-muted); font-size: 13px; padding: 10px; }
.cf-luhe-b-account-grid strong { display: block; margin-top: 6px; color: var(--cf-luhe-text); font-size: 18px; font-variant-numeric: tabular-nums; }
.cf-luhe-b-transfer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.cf-luhe-b-field { display: grid; gap: 6px; color: var(--cf-luhe-muted); font-size: 13px; }
.cf-luhe-b-field[hidden] { display: none; }
.cf-luhe-b-field input, .cf-luhe-b-field select { width: 100%; min-width: 0; border: 1px solid var(--cf-luhe-line); border-radius: 5px; background: #121820; color: var(--cf-luhe-text); padding: 10px 11px; font-size: 16px; }
.cf-luhe-b-live-message { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--cf-luhe-gold-soft); font-size: 13px; }
.cf-luhe-b-live-message.is-success { border: 1px solid #2e7d4f; border-radius: 6px; background: #12351f; color: #7ce2a8; font-weight: 700; padding: 9px 12px; }
.cf-luhe-b-live-message.is-error { border: 1px solid #a94444; border-radius: 6px; background: #3d1d1f; color: #ffb3b3; font-weight: 700; padding: 9px 12px; }

.cf-luhe-b-panel, .cf-luhe-b-slip, .cf-luhe-b-orders { border-radius: 8px; padding: 16px; }
.cf-luhe-b-play-nav { grid-column: 1; }
.cf-luhe-b-panel-copy, .cf-luhe-b-slip-note, .cf-luhe-b-round-note, .cf-luhe-live-play-hint, .cf-luhe-b-confirm-text { color: var(--cf-luhe-muted); font-size: 13px; line-height: 1.6; }
.cf-luhe-b-panel-copy, .cf-luhe-b-slip-note { margin: 8px 0 0; }
.cf-luhe-b-play-list { display: grid; gap: 6px; margin-top: 14px; }
.cf-luhe-b-play-shortcut { display: flex; width: 100%; align-items: center; min-height: 42px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--cf-luhe-muted); cursor: pointer; padding: 8px 10px; text-align: left; font-size: 14px; }
.cf-luhe-b-play-shortcut:hover { background: #232c36; }
.cf-luhe-b-play-shortcut.is-active { border-color: #8e4448; background: #49272a; color: #fff; box-shadow: inset 3px 0 0 var(--cf-luhe-red); }
.cf-luhe-b-selection-stage { grid-column: 2; display: grid; gap: 12px; }
.cf-luhe-b-quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cf-luhe-b-selection-input, .cf-luhe-b-option-input, .cf-luhe-b-number-grid, .cf-luhe-live-play-hint, .cf-luhe-b-stake-field, .cf-luhe-b-stake-shortcuts, .cf-luhe-b-quote-form > button { grid-column: 1 / -1; }
.cf-luhe-b-selection-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cf-luhe-b-number-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding: 10px; border: 1px solid var(--cf-luhe-line); background: #121820; }
.cf-luhe-b-number { min-height: 42px; border: 1px solid #3a4654; border-radius: 50%; background: #202934; color: #e8edf2; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-luhe-b-number--red.is-selected { border-color: #e15d63; background: var(--cf-luhe-red); color: #fff; }
.cf-luhe-b-number--blue.is-selected { border-color: #6aa7ea; background: var(--cf-luhe-blue); color: #fff; }
.cf-luhe-b-number--green.is-selected { border-color: #60c98e; background: var(--cf-luhe-green); color: #fff; }
.cf-luhe-b-number-grid[hidden] { display: none; }
.cf-luhe-b-position-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--cf-luhe-line); border-radius: 6px; background: #121820; }
.cf-luhe-b-position-bar[hidden] { display: none; }
.cf-luhe-b-position-bar-label { color: var(--cf-luhe-muted); font-size: 12px; margin-right: 4px; white-space: nowrap; }
.cf-luhe-b-position { min-width: 64px; min-height: 40px; border: 1px solid #47545f; border-radius: 6px; background: #1d2630; color: #cfd8e3; cursor: pointer; font-weight: 700; font-size: 14px; padding: 8px 14px; }
.cf-luhe-b-position:hover { border-color: var(--cf-luhe-gold); color: var(--cf-luhe-gold-soft); }
.cf-luhe-b-position.is-selected { border-color: var(--cf-luhe-gold); background: #2a2419; color: var(--cf-luhe-gold-soft); box-shadow: inset 0 0 0 1px var(--cf-luhe-gold); }
.cf-luhe-b-tail-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border: 1px solid var(--cf-luhe-line); background: #121820; }
.cf-luhe-b-tail-bar[hidden] { display: none; }
.cf-luhe-b-tail { min-width: 40px; min-height: 40px; border: 1px solid #3a4654; border-radius: 50%; background: #202934; color: #e8edf2; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
.cf-luhe-b-tail.is-selected { border-color: #a67f34; background: var(--cf-luhe-gold); color: #19140c; }
.cf-luhe-b-zodiac-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 10px; border: 1px solid var(--cf-luhe-line); background: #121820; }
.cf-luhe-b-zodiac-grid[hidden] { display: none; }
.cf-luhe-b-zodiac { display: grid; gap: 3px; justify-items: center; border: 1px solid #3a4654; border-radius: 6px; background: #202934; color: #e8edf2; cursor: pointer; padding: 8px 4px; }
.cf-luhe-b-zodiac strong { color: var(--cf-luhe-gold-soft); font-size: 15px; }
.cf-luhe-b-zodiac span { color: var(--cf-luhe-muted); font-size: 10px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; word-break: break-word; }
.cf-luhe-b-zodiac.is-selected { border-color: #a67f34; background: #2a2419; }
.cf-luhe-b-zodiac.is-selected strong { color: #fff; }
.cf-luhe-ball-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.cf-luhe-zodiac-label { min-height: 14px; color: #d7dee7; font-size: 12px; font-weight: 700; line-height: 1.1; letter-spacing: 1px; }
.cf-luhe-b-stake-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-luhe-b-stake-shortcuts button { border: 1px solid var(--cf-luhe-line); border-radius: 5px; background: #202934; color: var(--cf-luhe-text); cursor: pointer; padding: 7px 10px; }
.cf-luhe-b-quote-form > button { min-height: 46px; border-color: #bb353a; background: var(--cf-luhe-danger); color: #fff; font-size: 16px; }
.cf-luhe-b-slip { grid-column: 3; position: sticky; top: 14px; align-self: start; }
.cf-luhe-b-quote-result { min-height: 132px; margin: 12px 0 0; border: 1px dashed #586576; border-radius: 5px; color: var(--cf-luhe-muted); line-height: 1.6; padding: 12px; }
.cf-luhe-b-confirm { margin-top: 12px; border: 1px solid #8e6930; border-radius: 5px; background: #2a2419; padding: 12px; }
.cf-luhe-b-confirm[hidden] { display: none; }
.cf-luhe-b-confirm button { width: 100%; border: 0; border-radius: 5px; background: var(--cf-luhe-danger); color: #fff; font-weight: 700; padding: 11px 14px; }
.cf-luhe-b-orders { grid-column: 2 / 4; }
.cf-luhe-b-orders-list { display: grid; gap: 8px; margin-top: 12px; }
.cf-luhe-order { border: 1px solid var(--cf-luhe-line); border-radius: 5px; background: #151b22; padding: 11px; }
.cf-luhe-order p { margin: 4px 0; color: var(--cf-luhe-muted); }
.cf-luhe-order strong { color: var(--cf-luhe-text); }
.cf-luhe-order-items { color: var(--cf-luhe-gold-soft) !important; }
.cf-luhe-b-pagination { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cf-luhe-b-pagination .cf-luhe-b-button { padding: 6px 12px; font-size: 13px; }
.cf-luhe-b-page-info { color: var(--cf-luhe-muted); font-size: 12px; }
.cf-luhe-b-mobile-submit { display: none; }

@media (max-width: 1080px) {
  .cf-luhe-b-live-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .cf-luhe-b-slip { grid-column: 2; position: static; }
  .cf-luhe-b-orders { grid-column: 1 / -1; }
  .cf-luhe-b-account { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cf-luhe-b-workbench { padding: 0 0 92px; }
  .cf-luhe-b-topbar { min-height: 58px; border-right: 0; border-left: 0; border-radius: 0; padding: 11px 12px; }
  .cf-luhe-b-brand { gap: 0; flex-direction: column; }
  .cf-luhe-b-brand strong { font-size: 22px; }
  .cf-luhe-b-brand span { font-size: 11px; }
  .cf-luhe-b-topbar-actions { gap: 5px; }
  .cf-luhe-b-topbar-actions p { display: grid; gap: 2px; margin: 0 4px 0 0; font-size: 10px; }
  .cf-luhe-b-topbar-actions p strong { margin: 0; font-size: 13px; }
  .cf-luhe-b-top-action { padding: 7px 9px; font-size: 12px; }
  .cf-luhe-b-draw-deck { border-right: 0; border-left: 0; border-radius: 0; padding: 0 10px 10px; }
  .cf-luhe-b-lottery-tabs { overflow-x: auto; grid-template-columns: repeat(3, minmax(116px, 1fr)); }
  .cf-luhe-b-lottery-tab { min-height: 62px; padding: 10px; }
  .cf-luhe-b-lottery-tab strong { font-size: 15px; }
  .cf-luhe-b-lottery-tab span { font-size: 11px; }
  .cf-luhe-b-result-stage { grid-template-columns: 1fr; }
  .cf-luhe-b-result-card { min-height: auto; padding: 15px 10px; }
  .cf-luhe-b-numbers { gap: 8px; margin-top: 12px; }
  .cf-luhe-ball { width: 36px; height: 36px; font-size: 15px; }
  .cf-luhe-zodiac-label { font-size: 12px; color: #d7dee7; }
  .cf-luhe-b-next-draw { border-top: 1px solid var(--cf-luhe-line); border-left: 0; grid-template-columns: auto 1fr; align-items: center; padding: 10px; }
  .cf-luhe-b-next-draw p { display: none; }
  .cf-luhe-b-live-shell { display: block; margin-top: 10px; }
  .cf-luhe-b-account, .cf-luhe-b-panel, .cf-luhe-b-orders { margin: 10px; border-radius: 7px; }
	.cf-luhe-b-history { margin: 10px; border-radius: 7px; }
	.cf-luhe-b-history-row { grid-template-columns: 1fr; }
  .cf-luhe-b-account { display: grid; gap: 12px; padding: 14px; }
  .cf-luhe-b-account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-luhe-b-account-grid p { font-size: 11px; padding: 8px; }
  .cf-luhe-b-account-grid strong { font-size: 14px; overflow-wrap: anywhere; }
  .cf-luhe-b-transfer-grid { grid-template-columns: 1fr auto; }
  .cf-luhe-b-transfer-grid .cf-luhe-b-field { grid-column: span 2; }
  .cf-luhe-b-access-note { max-width: none; text-align: left; }
  .cf-luhe-b-play-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-luhe-b-play-shortcut { min-height: 50px; font-size: 13px; }
  .cf-luhe-b-selection-stage { display: grid; }
  .cf-luhe-b-quote-form { grid-template-columns: 1fr; }
  .cf-luhe-b-number-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 7px; }
  .cf-luhe-b-zodiac-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 7px; }
  .cf-luhe-b-zodiac strong { font-size: 14px; }
  .cf-luhe-b-zodiac span { font-size: 9px; }
  .cf-luhe-b-number { min-height: 40px; font-size: 13px; }
  .cf-luhe-b-slip { display: none; }
  .cf-luhe-b-orders { margin-bottom: 0; }
  .cf-luhe-b-mobile-submit { position: fixed; z-index: 30; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #8e6930; border-radius: 7px; background: #171e27; box-shadow: 0 8px 24px rgba(0, 0, 0, .42); padding: 9px; }
  .cf-luhe-b-mobile-submit p { margin: 0; color: var(--cf-luhe-muted); font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cf-luhe-b-mobile-submit button { border: 0; border-radius: 5px; background: var(--cf-luhe-danger); color: #fff; font-weight: 700; padding: 10px 13px; }
  .cf-luhe-b-mobile-submit button.is-confirm { border-color: #a67f34; background: var(--cf-luhe-gold); color: #19140c; }
}
