/* Baccarat analysis dashboard — mobile-first, reusing Screen Lab's dark instrument-panel palette. */
.odds-card,
.hand-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25,38,47,.97), rgba(20,31,39,.99));
  box-shadow: 0 16px 50px rgba(0,0,0,.14);
}
.odds-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.odds-header .section-index { margin-bottom: 8px; }
.odds-mode { max-width: 640px; margin: 8px 0 0; color: #a6b2b8; font-size: 12px; line-height: 1.65; }
.odds-basis,
.manual-tag {
  flex: 0 0 auto;
  border: 1px solid rgba(242,184,75,.28);
  border-radius: 999px;
  padding: 8px 11px;
  color: #f0cc83;
  background: rgba(242,184,75,.08);
  font: 600 9px 'Space Grotesk', sans-serif;
  letter-spacing: .045em;
  white-space: nowrap;
}
.probability-list { display: grid; gap: 13px; margin: 22px 0 20px; }
.probability-row { display: grid; grid-template-columns: 76px minmax(60px, 1fr) 68px; align-items: center; gap: 12px; }
.outcome-label { color: #d7dfe2; font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .12em; }
.probability-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.probability-fill { width: 0; height: 100%; border-radius: inherit; transition: width .28s ease; }
.probability-row[data-outcome="player"] .probability-fill { background: #65c8ab; }
.probability-row[data-outcome="banker"] .probability-fill { background: var(--amber); }
.probability-row[data-outcome="tie"] .probability-fill { background: #9ca7ee; }
.probability-row > strong { text-align: right; color: #f4f6f6; font: 600 15px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.odds-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 0 9px; }
.odds-subhead h3 { margin: 0; color: #cfd8dc; font: 600 12px 'Space Grotesk', sans-serif; }
.odds-subhead > span { color: #77868e; font-size: 9px; }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.ev-cell { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); }
.ev-cell:last-child { border-right: 0; }
.ev-cell > span { color: #809099; font: 600 8px 'Space Grotesk', sans-serif; letter-spacing: .08em; }
.ev-cell > strong { color: #dce3e5; font: 600 11px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.ev-cell > strong[data-tone="negative"] { color: #ff9b91; }
.ev-cell > strong[data-tone="positive"] { color: var(--green); }
.assumption-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; margin-top: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #9eabb1; font-size: 10px; line-height: 1.4; }
.field select,
.field input,
.tracker-controls select,
.card-inputs select {
  width: 100%; min-width: 0; height: 42px; padding: 0 11px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 9px;
  color: var(--text); background: #111c24; font: 500 14px system-ui, sans-serif;
  color-scheme: dark;
}
.field select:focus-visible,
.field input:focus-visible,
.tracker-controls select:focus-visible,
.card-inputs select:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.input-suffix { display: flex; align-items: center; height: 42px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; overflow: hidden; background: #111c24; }
.input-suffix input { width: 100%; min-width: 0; height: 40px; padding: 0 9px; border: 0; outline: 0; color: var(--text); background: transparent; font: 500 14px system-ui, sans-serif; }
.input-suffix > span { padding-right: 10px; color: #8f9da5; font: 600 12px 'Space Grotesk', sans-serif; }
.assumption-note,
.privacy-note { margin: 12px 0 0; color: #829199; font-size: 9px; line-height: 1.65; }
.calculation-error { margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(255,119,114,.28); border-radius: 9px; color: #ffc1bc; background: rgba(255,119,114,.07); font-size: 11px; line-height: 1.5; }
.tracker { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.tracker summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; color: #c9d2d6; font-size: 11px; font-weight: 600; cursor: pointer; list-style-position: outside; }
.tracker summary::marker { color: var(--amber); }
.tracker-count { color: #8b999f; font: 500 10px 'Space Grotesk', sans-serif; }
.tracker-copy { margin: 8px 0 11px; color: #87969e; font-size: 10px; line-height: 1.6; }
.tracker-controls { display: grid; grid-template-columns: minmax(70px, .6fr) minmax(128px, 1fr) minmax(82px, .7fr); gap: 7px; align-items: center; }
.tracker-controls select { height: 42px; }
.tracker-controls .button { min-height: 42px; padding: 0 9px; font-size: 10px; }
.exposure-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-top: 11px; }
.exposure-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 31px; min-height: 27px; padding: 2px 5px 2px 9px; border: 1px solid rgba(242,184,75,.22); border-radius: 7px; color: #f1d49b; background: rgba(242,184,75,.07); font: 600 10px 'Space Grotesk', sans-serif; }
.exposure-chip button { display: grid; place-items: center; width: 19px; height: 19px; padding: 0; border: 0; border-radius: 5px; color: #acb8be; background: transparent; font-size: 15px; cursor: pointer; }
.exposure-chip button:hover { color: #fff; background: rgba(255,255,255,.09); }
.empty-chip-note { color: #65747c; font-size: 10px; }
.shoe-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); color: #78868e; font-size: 9px; }
.shoe-meta strong { color: #bac5c9; font: 500 10px 'Space Grotesk', sans-serif; }
.hand-card { margin-top: 14px; }
.hand-head { margin-bottom: 7px; }
.hand-intro { margin: 0 0 15px; max-width: 720px; color: #9daab0; font-size: 11px; line-height: 1.65; }
.hand-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hand-side { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.hand-side legend { width: 100%; padding: 0 0 10px; color: #e2e8ea; font: 600 13px 'Space Grotesk', sans-serif; }
.hand-score { float: right; color: #839199; font: 500 9px system-ui, sans-serif; }
.hand-score strong { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 4px; border-radius: 7px; color: #f4d397; background: var(--amber-soft); font: 700 12px 'Space Grotesk', sans-serif; }
.card-inputs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.card-inputs label { min-width: 0; color: #85939a; font-size: 9px; }
.card-inputs select { display: block; height: 43px; margin-top: 5px; padding: 0 7px; font-size: 15px; }
.rule-hint { margin: 9px 0 0; color: #a2afb4; font-size: 9px; line-height: 1.45; }
.hand-status { margin-top: 12px; padding: 12px 13px; border: 1px solid rgba(242,184,75,.17); border-radius: 10px; color: #c7d0d3; background: rgba(242,184,75,.055); font-size: 10px; line-height: 1.6; }
.hand-status[data-state="pending"] { border-color: rgba(242,184,75,.18); }
.hand-status[data-state="invalid"] { border-color: rgba(255,119,114,.3); color: #ffc1bc; background: rgba(255,119,114,.06); }
.hand-status[data-state="complete"] { border-color: rgba(88,215,175,.27); color: #b4e7d8; background: rgba(88,215,175,.06); }
.commit-button { margin-top: 10px; min-height: 42px; font-size: 10px; }
.button-secondary:disabled { opacity: .4; cursor: not-allowed; }
.capture-card { margin-top: 15px; }
.capture-guide { margin: -5px 0 13px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; color: #9ba9af; background: rgba(255,255,255,.025); font-size: 10px; line-height: 1.6; }
.capture-guide[data-state="ready"] { border-color: rgba(88,215,175,.2); color: #b5dacf; background: rgba(88,215,175,.045); }
.capture-guide[data-state="warning"] { border-color: rgba(242,184,75,.22); color: #e6d2a7; background: rgba(242,184,75,.05); }
.capture-guide[data-state="error"] { border-color: rgba(255,119,114,.24); color: #ffc1bc; background: rgba(255,119,114,.05); }
.notice-grid { margin-top: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 900px) {
  .odds-card, .hand-card { padding: 25px 27px; }
  .probability-list { max-width: 790px; }
  .hand-columns { gap: 14px; }
  .hand-side { padding: 15px; }
}
@media (max-width: 700px) {
  .odds-card, .hand-card { padding: 16px 14px 14px; border-radius: 15px; }
  .odds-header { gap: 8px; }
  .odds-header h2, .hand-head h2 { font-size: 18px; }
  .odds-basis, .manual-tag { max-width: 118px; padding: 7px 8px; font-size: 8px; white-space: normal; text-align: center; }
  .odds-mode { max-width: 235px; font-size: 10px; }
  .probability-list { gap: 12px; margin: 18px 0 17px; }
  .probability-row { grid-template-columns: 63px minmax(40px,1fr) 62px; gap: 8px; }
  .outcome-label { font-size: 9px; }
  .probability-track { height: 9px; }
  .probability-row > strong { font-size: 13px; }
  .odds-subhead { align-items: flex-start; }
  .odds-subhead h3 { font-size: 11px; }
  .odds-subhead > span { max-width: 130px; text-align: right; font-size: 8px; }
  .ev-cell { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 8px; }
  .ev-cell > strong { font-size: 12px; }
  .assumption-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
  .field-decks { grid-column: 1 / -1; }
  .field { font-size: 9px; }
  .tracker-controls { grid-template-columns: 72px minmax(118px,1fr); }
  .tracker-controls #clear-exposures { grid-column: 1 / -1; }
  .hand-columns { grid-template-columns: 1fr; gap: 8px; }
  .hand-side { padding: 11px; }
  .card-inputs { gap: 8px; }
  .card-inputs select { height: 45px; }
  .hand-intro { font-size: 10px; }
}
@media (max-width: 370px) {
  .odds-card, .hand-card { padding: 14px 11px 12px; }
  .probability-row { grid-template-columns: 57px minmax(35px,1fr) 57px; gap: 6px; }
  .outcome-label { letter-spacing: .07em; }
  .tracker-controls .button { font-size: 9px; }
  .hand-score { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .probability-fill { transition-duration: .01ms !important; }
}

.distribution-note { margin: 12px 0 0; color: #687780; font-size: 9px; line-height: 1.65; }

.reader-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.reader-actions .button { min-height: 42px; padding: 0 9px; font-size: 10px; justify-content: center; }
.reader-actions .button:disabled { opacity: .4; cursor: not-allowed; }
.reader-privacy { margin: 7px 0 12px; color: #75858d; font-size: 9px; line-height: 1.55; }
.screen-result-panel {
  margin: 10px; padding: 14px; border: 1px solid rgba(242,184,75,.32); border-radius: 11px;
  color: #e5ecee; background: #101920; box-shadow: 0 7px 22px rgba(0,0,0,.24); text-align: left;
}
.screen-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #e8c77f; font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: .1em; }
.screen-result-status { margin: 7px 0 10px; color: #b4c1c5; font-size: 11px; line-height: 1.5; }
.screen-result-status[data-state="ready"] { color: #a9e3d1; }
.screen-result-status[data-state="warning"] { color: #ecd39a; }
.screen-result-status[data-state="error"] { color: #ffc1bc; }
.reader-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.reader-cards > div { min-width: 0; padding: 6px 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.035); }
.reader-cards span { display: block; margin-bottom: 3px; color: #8999a0; font: 700 9px 'Space Grotesk', sans-serif; letter-spacing: .1em; }
.reader-cards strong { display: block; overflow-wrap: anywhere; color: #f0d69e; font: 600 13px 'Space Grotesk', sans-serif; }
.reader-confidence { margin: 7px 0; color: #8e9da3; font-size: 10px; line-height: 1.45; }
.reader-next-odds { padding: 6px 7px; border: 1px solid rgba(88,215,175,.18); border-radius: 7px; background: rgba(88,215,175,.045); }
.reader-next-label { margin-bottom: 5px; color: #84bba9; font: 700 9px 'Space Grotesk', sans-serif; letter-spacing: .08em; }
.reader-next-values { display: flex; justify-content: space-between; gap: 6px; color: #a7b4b8; font: 500 10px 'Space Grotesk', sans-serif; }
.reader-next-values b { color: #eaf0ef; font-variant-numeric: tabular-nums; }
.reader-text-details { margin-top: 7px; color: #9eacb1; font-size: 10px; }
.reader-text-details summary { cursor: pointer; }
.reader-text-details pre { max-height: 90px; overflow: auto; margin: 4px 0 0; color: #bac7cb; font: 10px/1.45 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.reader-panel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.reader-panel-actions .button { min-height: 38px; padding: 0 10px; font-size: 10px; }
.reader-panel-actions .button:disabled { opacity: .42; cursor: not-allowed; }
@media (max-width: 700px) {
  .reader-actions .button { font-size: 9px; }
  .screen-result-panel { margin: 8px; padding: 11px; }
  .reader-cards { gap: 5px; }
}

.reader-current-result { margin: 7px 0; color: #d4e0e2; font-size: 11px; line-height: 1.5; }
