/* Size the Bet The shared look lives in /common/common.css. */
.status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status .tiles { margin: 0; min-width: 320px; }
.prompt { margin: 0; font-size: 15px; line-height: 1.6; }
.prompt b { font-family: var(--mono); }
.size-bet .board { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.size-bet .side { gap: 12px; }
.controls { display: grid; gap: 12px; }
.limit-out { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -.02em;
             color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.preview { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); min-height: 3.2em; }
.preview b { color: var(--ink); font-weight: 600; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.mini { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
        display: grid; gap: 4px; }
.mini span { font-size: 11.5px; letter-spacing: .08em; font-weight: 600; color: var(--dim); }
.mini strong { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.reveal { display: grid; gap: 12px; }
.reveal:empty { display: none; }
.big-row { display: flex; align-items: baseline; gap: 10px; }
.big-number { font-family: var(--mono); font-size: 46px; font-weight: 700; line-height: 1;
              font-variant-numeric: tabular-nums; }
.big-unit { font-size: 12px; color: var(--muted); }
.reveal-line, .reveal-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.reveal-note b, .reveal-line b { color: var(--ink); }
.reveal-line b.up-text { color: var(--up); } .reveal-line b.down-text { color: var(--down); }
.reveal-line b.warn-text { color: var(--warn); }
.dot.cautious { background: rgba(255,180,67,.16); border-color: rgba(255,180,67,.55); color: var(--warn); }
.summary { margin-top: 16px; padding: 4px 12px 8px; }
.summary td.up { color: var(--up); } .summary td.down { color: var(--down); }
.summary td.warn { color: var(--warn); }
/* the method, as in Real or Random? */
.method { padding: 12px 16px; }
.method summary { cursor: pointer; font-size: 11.5px; letter-spacing: .08em; font-weight: 600;
                  color: var(--dim); }
.method-body { font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 90ch; }
.method-body p { margin: 10px 0 0; }
.method-body strong { color: var(--ink); }
/* Dash 4 slider: full width, the house accent, no number box (the big label shows it) */
.size-bet .dash-slider-container { display: block; width: 100%; }
.size-bet .dash-range-slider-input { display: none; }
.size-bet .dash-slider-wrapper { width: 100%; padding: 8px 0; }
.size-bet .dash-slider-root { position: relative; display: flex; align-items: center; width: 100%;
                             height: 20px; touch-action: none; user-select: none; }
.size-bet .dash-slider-track { position: relative; flex: 1; height: 4px; border-radius: 999px;
                              background: var(--raise); }
.size-bet .dash-slider-range { position: absolute; height: 100%; border-radius: 999px;
                              background: linear-gradient(90deg, var(--accent), var(--link)); }
.size-bet .dash-slider-thumb { display: block; width: 18px; height: 18px; border-radius: 50%;
                              background: var(--bg); border: 2px solid var(--accent); cursor: grab;
                              box-shadow: 0 0 0 4px rgba(75,123,255,.16); }
.size-bet .dash-slider-thumb:focus-visible, .size-bet .dash-slider-thumb:hover {
  outline: none; box-shadow: 0 0 0 7px rgba(75,123,255,.26); }
.size-bet .dash-slider-root[data-disabled] { opacity: .45; }
@media (max-width: 900px) { .size-bet .board { grid-template-columns: minmax(0, 1fr); } }
/* Size the Bet */
.size-bet .board { grid-template-columns: minmax(0, 1fr) 330px; }
.stake-out { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -.02em;
             color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.stake-dollars { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: 8px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { flex: 1; min-width: 48px; padding: 7px 0; font-family: var(--mono); font-size: 12px; }
.trade-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trade-buttons .primary { grid-column: 1 / -1; }
.what-if { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.what-if b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.what-if .down-text { color: var(--down); } .what-if .up-text { color: var(--up); }
.strip { display: flex; gap: 3px; flex-wrap: wrap; min-height: 14px; }
.strip span { width: 10px; height: 14px; border-radius: 3px; }
.strip .w { background: rgba(34,211,154,.75); } .strip .l { background: rgba(255,86,112,.75); }
.flash { font-family: var(--mono); font-size: 13px; font-weight: 700; min-height: 1.4em; }
.flash.up-text::before { content: '▲ '; } .flash.down-text::before { content: '▼ '; }
.bust-note { margin: 0; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(255,86,112,.5);
             background: rgba(255,86,112,.08); color: var(--down); font-size: 13px; line-height: 1.55; }
.luck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
             margin-top: 16px; }
@media (max-width: 900px) { .size-bet .board { grid-template-columns: minmax(0, 1fr); } }
/* Kelly picks, your own stake, and the results table */
.stake-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.custom { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px;
          color: var(--muted); }
/* beats the shared ".side label { display: block }" so the box sits on one line */
.size-bet .side label.custom.custom { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.custom .dash-input-container { width: 64px; flex: none; }
.custom .dash-input-container input[type="number"] { width: 100%; min-width: 0; padding: 6px 8px;
                                                     text-align: right; }
.custom button.dash-input-stepper { display: none; }
.custom input { width: 62px; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line);
                background: var(--raise); color: var(--ink); font-family: var(--mono); font-size: 13px;
                text-align: right; }
.custom input:focus { outline: none; border-color: var(--accent); }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.picks button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
                font-family: var(--mono); line-height: 1.15; }
.picks button small { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.picks button b { font-size: 14px; }
.picks button.running b { color: var(--accent); }
.picks button.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(75,123,255,.22) inset; }
.pick-note { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.pick-note b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.metrics-wrap { overflow-x: auto; margin-top: 14px; max-width: 760px; }
.metrics { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.metrics th { text-align: right; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
              color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.metrics td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--line);
              font-family: var(--mono); white-space: nowrap; }
.metrics th:first-child, .metrics td:first-child { text-align: left; font-family: inherit; }
.metrics tr.you td { color: var(--accent); font-weight: 700; }
.metrics td.down-text { color: var(--down); }
/* The bankroll chart takes its height from here, so a phone can show it smaller */
.size-bet .bank-graph { height: 360px !important; }   /* beats the inline 100% Dash sets */
/* Phone: the chart stays in view and the stake controls dock at the bottom, under the thumb */
@media (max-width: 760px) {
  .size-bet .bank-graph { height: 270px !important; }
  .size-bet .prompt { font-size: 13.5px; }
  .size-bet .board .side { position: sticky; bottom: 0; z-index: 20; max-height: 36vh; overflow-y: auto;
                           margin: 0 -14px; border-radius: 18px 18px 0 0; padding: 12px 14px 16px;
                           box-shadow: 0 -14px 30px rgba(0, 0, 0, .45); }
  .size-bet .controls > * { order: 10; }
  .size-bet .controls > .cap:first-child { display: none; }
  .size-bet .stake-head { order: 1; } .size-bet .dash-slider-container { order: 2; }
  .size-bet .picks { order: 3; } .size-bet .trade-buttons { order: 4; } .size-bet .flash { order: 5; }
  .size-bet .choice-legend { display: none; }
  .size-bet .stake-out { font-size: 26px; }
  .size-bet .controls { gap: 8px; }
  .size-bet .picks button { padding: 4px 2px; }
  .size-bet .trade-buttons { grid-template-columns: 2fr 1fr 1fr; }
  .size-bet .trade-buttons .primary { grid-column: auto; }
}
