/* Scoped to authenticated app screens so the member login keeps its layout. */
.member-shell {
  --green: #1761d7;
  --soft: #edf4ff;
  --ink: #182b43;
  --line: #dce4ee;
  --gray: #f1f4f8;
  color: var(--ink);
  background: #f5f7fb;
  min-height: calc(100dvh - 70px);
  padding-bottom: env(safe-area-inset-bottom);
}
.member-shell .top { background: #152b49; color: white; padding: 12px 16px; height: 60px; }
.member-shell .top select { font-size: 13px; background: #ffffff18; color: white; max-width: 115px; }
.member-shell .top option { color: #182b43; background: white; }
.member-shell .top .btn { background: #ffffff20; }
.member-top h1 { font-size: 20px; letter-spacing: 1px; }
.member-account { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100px; }
.member-clock { display: flex; gap: 8px; justify-content: space-between; background: white; color: #64758a; padding: 8px 14px; font-size: 11px; font-variant-numeric: tabular-nums; }
.member-games { display: flex; gap: 7px; padding: 10px 12px; overflow-x: auto; background: white; scrollbar-width: thin; }
.member-games button { flex: 0 0 48px; padding: 9px 10px; border-radius: 5px; background: #eef2f7; font-weight: 600; font-size: 13px; }
.member-games .active { background: #1761d7; color: white; }
.member-period { display: flex; align-items: center; gap: 8px; margin: 8px 12px 12px; padding: 11px; border: 1px solid #d1e2fc; border-radius: 6px; background: #eaf3ff; font-size: 12px; }
.member-period > div { flex: 1; min-width: 0; }
.member-period small { color: #637894; display: block; margin-bottom: 3px; }
.member-period b { display: block; overflow-wrap: anywhere; }
.member-period > button { padding: 8px 2px; color: #175ed1; white-space: nowrap; }
.member-status { background: #e1f5eb; color: #08774b; border-radius: 4px; padding: 4px 6px; font-size: 11px; white-space: nowrap; }
.member-status.closed { background: #edf0f4; color: #6c7789; }
.member-order-layout { display: grid; gap: 12px; padding: 0 12px 140px; }
.member-number-panel { min-width: 0; border: 1px solid #dce4ee; background: white; border-radius: 7px; padding: 12px; }
.member-section-title { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 12px; }
.member-section-title h2, .member-manual h2 { font-size: 14px; margin: 0; }
.member-section-title > button { font-size: 12px; color: #1761d7; }
.member-section-title > .btn { color: white; }
.member-number-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.member-number-grid button { min-width: 0; min-height: 35px; border: 1px solid #d9e1ec; border-radius: 4px; background: #f8fafc; font-size: 12px; padding: 5px 0; }
.member-number-grid b { font-weight: 600; }
.member-number-grid small { display: block; font-size: 10px; }
.member-number-grid .selected { border-color: #1761d7; color: #1761d7; background: #eaf2ff; }
.member-manual { border-top: 1px solid #e7ecf3; padding-top: 12px; margin-top: 14px; }
.member-manual .homeinputs { margin-top: 10px; margin-bottom: 8px; }
.member-manual .homeinputs input { border: 1px solid #dce4ee; background: #f8fafc; font-size: 13px; border-radius: 5px; padding: 9px; }
.member-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.member-shell .btn { border-radius: 5px; }
.member-shell .btn.light { background: #eaf2ff; color: #1761d7; }
.member-shell .btn.outline { color: #1761d7; border-color: #b9cdec; }
.member-shell .btn.blue, .member-shell .btn.purple { background: #1761d7; color: white; }
.member-shell .blue, .member-shell .green, .member-shell .ordercard h3 { color: #1761d7; }
.member-shell .content { padding-top: 12px; }
.member-shell .table th { color: #365c8b; }
.member-shell .table td { border-bottom-color: #e6ebf2; }
.member-shell .section { border-left-color: #1761d7; }
.member-shell .table { font-size: 13px; }
.member-buyer { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 13px; }
.member-buyer input { flex: 1; width: 0; border: 1px solid #dce4ee; border-radius: 5px; background: #fafbfd; }
.member-checkout { position: fixed; z-index: 6; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid #dce4ee; padding: 10px 14px; box-shadow: 0 -3px 12px #182b430a; }
.member-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 12px; }
.member-total b { color: #1761d7; font-size: 23px; }
.member-checkout .btn { font-size: 13px; padding: 10px 7px; }
.member-printer { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 12px 0 0; color: #50657d; font-size: 12px; }
.member-printer span { overflow-wrap: anywhere; min-width: 0; }
.member-shell .member-nav { left: 0; right: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #dce4ee; background: white; }
.member-nav button { min-width: 0; font-size: 10px; color: #617086; padding: 5px 2px; }
.member-nav svg, .member-nav .active svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.member-nav .active { background: #edf4ff; color: #1761d7; }
.member-nav span { text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.member-report-menu { display: grid; gap: 12px; padding-top: 12px; }
.member-report-menu button { display: flex; align-items: center; justify-content: space-between; background: white; border: 1px solid #dae3ee; border-radius: 6px; padding: 20px 15px; color: #235caa; font-weight: 600; }
.report-links button { gap: 12px; text-align: left; overflow-wrap: anywhere; }
.report-links button span { flex-shrink: 0; }
.report-links .report-link--summary { color: #48751f; }
.report-links .report-link--daily { color: #126b4c; }
.report-links .report-link--weekly { color: #505968; }
.report-links .report-link--monthly { color: #6f418e; }
.report-links .report-link--sold { color: #14667a; }
.report-links .report-link--records { color: #805e05; }
.report-links .report-link--four-audit { color: #944924; }
.member-result-numbers { font-size: 22px !important; font-weight: 700; color: #1761d7; letter-spacing: 2px; }
.member-shell input:focus, .member-shell select:focus { box-shadow: 0 0 0 2px #aacbff; }

.home-quick-patterns { margin: 10px 0 14px; }
.home-quick-patterns h3 { margin: 0 0 7px; font-size: 13px; color: #182b43; }
.home-quick-patterns .quick-patterns button:not(.active) { color: #1761d7; }
.quick-unit-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; max-height: 248px; overflow: auto; padding: 3px; }
.quick-unit-cell { min-width: 0; display: grid; text-align: center; border: 1px solid #d6e0ee; border-radius: 6px; overflow: hidden; }
.quick-unit-cell b { color: #435b78; padding: 7px 0; background: #f5f7fb; }
.quick-unit-cell.selected b { color: white; background: #1761d7; }
.quick-unit-cell input { width: 100%; padding: 7px 2px; border: 0; border-top: 1px solid #d6e0ee; text-align: center; border-radius: 0; font-size: 14px; }
.quick-patterns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.quick-patterns button { min-height: 40px; min-width: 0; font-size: 12px; line-height: 1.25; padding: 5px 2px; background: #f5f7fb; border: 1px solid #d7dfe9; border-radius: 5px; overflow-wrap: anywhere; }
.home-quick-patterns button.active { background: #1761d7; border-color: #1761d7; color: white; }
.quick-mode { display: flex; gap: 16px; padding: 8px 0; font-size: 12px; }
.quick-mode label { display: flex; align-items: center; gap: 5px; }
.quick-mode input { accent-color: #1761d7; }
.quick-preview { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; max-height: 125px; min-height: 45px; overflow: auto; padding: 10px; border: 1px solid #dae3ef; border-radius: 5px; font-size: 12px; }
.quick-preview button { color: #1761d7; background: #e9f2ff; border-radius: 5px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.quick-actions { display: flex; gap: 8px; align-items: flex-end; }
.quick-actions label { display: grid; gap: 4px; font-size: 11px; width: 80px; flex-shrink: 0; }
.quick-actions input { width: 100%; padding: 10px 7px; border: 1px solid #d6e0ee; border-radius: 5px; background: #f6f8fc; font-size: 14px; }
.quick-actions .btn { flex: 1; min-width: 0; background: #1761d7; color: white; border-radius: 5px; font-size: 12px; }
.quick-clear { min-height: 42px; padding: 5px; font-size: 12px; color: #60728c; }
.quick-compound { border: 1px solid #dce4ee; border-radius: 5px; padding: 8px; margin-top: 8px; }
.quick-digit-row { display: grid; grid-template-columns: 40px repeat(5, minmax(0, 1fr)); gap: 5px; padding: 4px 0; font-size: 11px; }
.quick-digit-row > span { grid-row: span 2; align-self: center; }
.quick-digit-row button { min-height: 30px; border: 1px solid #dce4ee; border-radius: 4px; }

@media (min-width: 760px) {
  .member-order-layout { grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 18px; }
  .member-checkout { position: static; padding: 12px 0 0; box-shadow: none; }
  .member-number-grid button { min-height: 42px; font-size: 14px; }
  .member-nav button { font-size: 12px; }
  .member-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .member-report-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-shell .content { max-width: 1040px; }
}
@media (min-width: 1200px) {
  .member-order-layout, .member-period, .member-games, .member-clock { max-width: 1340px; margin-left: auto; margin-right: auto; }
  .member-shell .member-top { padding-left: max(20px, calc((100vw - 1310px) / 2)); padding-right: max(20px, calc((100vw - 1310px) / 2)); }
  .member-nav { padding-left: max(0px, calc((100vw - 1200px) / 2)); padding-right: max(0px, calc((100vw - 1200px) / 2)); }
  .member-number-panel { padding: 18px; }
}
@media (max-width: 359px) {
  .member-order-layout { padding-bottom: 190px; }
  .member-number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-height: 300px; overflow: auto; }
  .member-period { flex-wrap: wrap; }
  .member-period > div { flex-basis: 100%; }
  .member-checkout .row { flex-wrap: wrap; }
  .member-checkout .btn { flex-basis: 100%; }
  .quick-patterns { gap: 5px; }
  .quick-patterns button { font-size: 11px; }
}
@media print {
  .member-shell { background: white; }
  .member-clock, .member-games, .member-period, .member-printer { display: none; }
}

.member-help { margin-top:20px; padding:16px; border:1px solid #dce4ee; border-radius:10px; background:#fff; }
.member-help-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.member-help-list button { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px; text-align:left; background:#f4f7fc; color:#24374b; border-radius:6px; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.member-help-list button span { flex-shrink:0; color:#5077ab; }
.member-help-answer { white-space:pre-wrap; overflow-wrap:anywhere; font-size:15px; line-height:1.8; }
@media(max-width:480px) { .member-help-list { grid-template-columns:1fr; } }

.member-shell .slotmain.slot-schedule { display:grid; grid-template-columns:17px minmax(64px,1fr) repeat(3,minmax(35px,auto)); gap:7px; align-items:center; padding:10px 8px; }
.slot-identity, .slot-time { display:flex; flex-direction:column; gap:3px; min-width:0; }
.slot-identity b { font-size:13px; }.slot-identity small { font-size:10px; white-space:nowrap; }
.slot-time { text-align:center; }.slot-time small { font-size:10px; color:#5f7189; }.slot-time b { font-size:12px; font-variant-numeric:tabular-nums; }
.member-shell .slot { gap:6px; }.member-shell .slot .circle { width:25px; height:25px; font-size:18px; }
.history-shade { align-items:flex-end; padding:0; }
.history-sheet { width:100%; max-width:760px; height:78dvh; max-height:96dvh; margin:0; border-radius:18px 18px 0 0; padding:20px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; transition:height .18s ease; }
.history-sheet.expanded { height:96dvh; }.history-sheet h2 { margin:12px 0 16px; }
.history-grip { display:flex; justify-content:center; width:100%; min-height:24px; padding:4px; touch-action:pan-x; }.history-grip span { display:block; width:42px; height:5px; border-radius:4px; background:#b7c1d0; }
.history-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; position:sticky; top:-20px; background:white; padding:12px 0; z-index:1; }.history-filters label { display:flex; flex:1 1 115px; flex-direction:column; gap:5px; font-size:12px; }.history-filters input,.history-filters select { width:100%; }
.history-result { border:1px solid #dce4ee; border-radius:8px; padding:14px; margin:12px 0; }.history-result>div { display:flex; gap:8px; justify-content:space-between; flex-wrap:wrap; }.history-result time { font-size:12px; color:#5e7088; }.history-result p { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }.history-result p span { display:flex; flex-direction:column; gap:4px; }.history-result p small { color:#687a90; }.history-result b { font-size:23px; color:#2163b6; }.history-sheet .closebar { position:sticky; bottom:-20px; background:white; padding-top:10px; }
@media(max-width:359px) { .member-shell .slotmain.slot-schedule { grid-template-columns:17px minmax(60px,1fr) repeat(3,minmax(30px,auto)); gap:4px; padding:8px 5px; }.slot-time b { font-size:11px; } }

/* Home batch entry and account / feedback / UTC-5 row. */
.home-two-digit { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e7ecf3; }
.member-manual .home-two-digit { margin-top: 0; padding-top: 0; border-top: 0; }
.home-two-digit .full-entry-form, .home-pa-entry .full-entry-form { margin-top: 10px; }
.home-pa-entry textarea { width: 100%; height: 42px; resize: none; padding: 5px 9px; font-size: 14px; line-height: 16px; }
.home-pa-entry textarea::placeholder { color: #999; }
.member-shell .home-pa-entry textarea:focus { box-shadow: 0 0 0 2px #aacbff; }
.member-home-clock { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; }
.member-clock-account { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1d3552; font-size: 13px; }
.member-feedback { background: #eaf2ff; color: #175ec6; border: 0; border-radius: 5px; padding: 6px 8px; font-size: 11px; line-height: 1.3; }
.member-clock-date { white-space: nowrap; font-size: 10px; }
@media (max-width: 360px) { .member-home-clock { gap: 4px; padding-left: 8px; padding-right: 8px; } .member-feedback { padding: 6px 4px; font-size: 10px; } .member-clock-date { font-size: 9px; } }

.member-login .member-help{margin-top:20px}.help-picture{margin:16px 0}.help-picture img{display:block;width:100%;height:auto;border-radius:8px}.help-picture figcaption{font-size:12px;color:#64758a;margin-top:6px}.member-login .member-help-list button{text-align:left}

/* Sky-blue controls; destructive actions retain readable red/white contrast. */
:root { --sky: #38bdf8; }
.member-shell .btn.red, .member-shell .btn.records-delete, #modal .btn.red { background:#dc2626; color:#fff !important; -webkit-text-fill-color:#fff; opacity:1; }
.member-shell .slot { display:flex; align-items:center; gap:8px; }
.member-shell .slotmain { flex:1; min-width:0; }
.member-shell .slot-edit { flex:0 0 48px; min-width:48px; padding:8px 4px; min-height:38px; font-size:12px; border:1px solid var(--sky); color:#1477a6; background:#e0f5ff; border-radius:7px; }
.member-shell .slot-identity b, .member-shell .slot-time b, .member-shell .member-games button:not(.active), .member-shell .green, .member-shell .blue { color:var(--sky); }
.member-shell .top .back, .member-shell .member-nav svg, .member-shell .member-printer, .member-shell .member-help-list button span, .member-shell .member-report-menu button span { color:var(--sky); }
.member-shell .member-games .active { background:var(--sky); color:#13324b; }
.member-shell select, .member-shell .top select, #modal .dialog select { appearance:none; -webkit-appearance:none; color:var(--sky); padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M2 3l6 6 6-6' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; }
.member-shell select option, #modal .dialog select option { color:#1477a6; background:#fff; }
.member-shell summary::marker, #modal summary::marker { color:var(--sky); }
#modal .dialog .closebar button, .history-grip { color:var(--sky); }
.history-grip span { background:var(--sky); }
@media (max-width:359px) { .member-shell .slot-edit { flex-basis:43px; min-width:43px; font-size:11px; } }

.member-help-list button span, .member-period > button, .sky-symbol { color:var(--sky); }

/* Gold navigation icons; labels and arrows keep their existing colors. */
.member-shell .member-nav button svg, .member-shell .member-nav button.active svg { color:#d4a017; stroke:#d4a017; fill:none; filter:drop-shadow(0 1px 0 #fff3c4); }
.member-shell .member-nav button.active { background:#fff8e5; }
.member-shell .draw-unsettled-entry { margin:14px 0; text-align:center; }
.member-shell .draw-unsettled-entry .btn { min-height:48px; text-align:center; }
.member-shell .draw-instructions-fold { margin:0 0 14px; border:1px solid #d9eaf3; border-radius:10px; background:#f0f9ff; color:#466276; }
.member-shell .draw-instructions-fold > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:11px 13px; list-style:none; cursor:pointer; color:#2868a4; font-weight:600; }
.member-shell .draw-instructions-fold > summary::-webkit-details-marker { display:none; }
.member-shell .draw-instructions-fold > summary::after { content:""; width:9px; height:9px; flex:0 0 9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); }
.member-shell .draw-instructions-fold[open] > summary::after { transform:rotate(225deg); }
.member-shell .draw-instructions-fold > summary:focus-visible { outline:2px solid #1761d7; outline-offset:2px; border-radius:10px; }
.member-shell .draw-instructions { margin:0; padding:0 13px 13px; color:#466276; font-size:13px; line-height:1.8; }
#modal .unsettled-orders-dialog { display:flex; flex-direction:column; overflow:hidden; }
#modal .unsettled-orders-dialog > h2, #modal .unsettled-orders-dialog > .closebar { flex:0 0 auto; }
#modal .unsettled-orders-content { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; }
#modal .unsettled-period-title { margin-bottom:12px; }
#modal .unsettled-settlement-action { flex:0 0 auto; padding-top:14px; text-align:center; }
#modal .unsettled-settlement-action:empty { display:none; }
#modal .unsettled-settlement-action .btn { min-height:50px; font-size:18px; background:#1761d7; color:white; text-align:center; }

.draw-entry-title {
  margin: 18px 0 12px;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
}
.draw-result-reminder {
  margin: 10px 0 12px;
  text-align: center;
  color: #7d4a14;
  font-size: 13px;
  line-height: 1.5;
}

.member-shell .audit-filters { align-items:flex-end; flex-wrap:wrap; }
.member-shell .audit-filters label { flex:1; min-width:120px; color:#466276; font-size:13px; }
.member-shell .audit-filters input,.member-shell .audit-filters select { display:block; width:100%; margin-top:7px; }
.member-shell .audit-repeat { display:flex; align-items:center; gap:8px; margin:14px 0; color:#466276; }
.member-shell .audit-repeat input { width:19px; height:19px; }
.member-shell .audit-heading { display:flex; align-items:center; gap:12px; }
.member-shell .audit-heading strong { color:#1477a6; font-size:25px; letter-spacing:2px; }
.member-shell .audit-totals { line-height:1.8; }
.member-shell .audit-pagination { align-items:center; justify-content:space-between; margin:15px 0; }
.audit-order-link { overflow-wrap:anywhere; text-align:left; }

.member-shell .head-play-note { padding:12px; background:#fff8df; color:#715014; border-radius:9px; line-height:1.8; }
.member-shell .home-pa-entry { border-top:1px solid #e0e8ef; margin-top:9px; padding-top:9px; }

/* Keep each number and quantity together on narrow record cards. */
.bet-pairs { display:flex; flex-wrap:wrap; gap:6px 12px; margin:10px 0; font-variant-numeric:tabular-nums; }
.bet-pairs > span { white-space:nowrap; padding:4px 7px; border-radius:5px; background:#eef6fd; }
.records-page .ordercard h3 button, .records-page .ordercard p { overflow-wrap:anywhere; }
.records-page .record-sale-time { color:#64748b; font-size:12px; }
.receipt .table { table-layout:fixed; font-variant-numeric:tabular-nums; }
.receipt .table td { overflow-wrap:anywhere; }

.license-page .license-payment p,.license-page .ordercard button { overflow-wrap:anywhere; }
.license-page .qrcode { display:block; width:160px; height:160px; margin:15px auto; }
.license-page details.card > input,.license-page details.card > select { margin:8px 0; }

/* Unified records filters: wrap on phones; keep the date input inside its row. */
.record-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.record-filters .field { display:block; min-width:0; }
.record-filters .field span { display:block; font-size:12px; margin-bottom:7px; }
.record-filters .field select { width:100%; text-align:left; font-size:14px; padding:0; }
.record-date-row input { width:0; min-width:0; flex:1; }
.record-status-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 12px; }
.record-status-tabs button { border:1px solid #d6e5ec; background:#fff; border-radius:9px; padding:9px 11px; color:#46627c; font-size:13px; }
.record-status-tabs button.active { background:#e8f2ff; border-color:#2467ba; color:#1f5f9e; font-weight:700; }
.record-status-tabs b { margin-left:4px; }
@media(max-width:360px) { .record-filters { grid-template-columns:minmax(0,1fr); } }

.report-range-label { color:#46627c; margin:8px 0 12px; font-size:14px; }
.redemption-report { margin-top:24px; border-top:1px solid #d6e5ec; padding-top:6px; }
.record-redemption-time { color:#1d6b9a; }

.game-report-scroll { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; margin:12px 0 20px; }
.game-report-table { min-width:680px; font-variant-numeric:tabular-nums; }
.game-report-table th, .game-report-table td { text-align:right; padding:10px 8px; white-space:nowrap; }
.game-report-table th:first-child, .game-report-table td:first-child { text-align:left; }
.game-report-table tbody tr:last-child { background:#e8f2ff; font-weight:700; }
.game-report-link { padding:6px 8px; color:#2467ba; border-radius:6px; font-weight:700; }
.game-report-link.chosen { background:#e8f2ff; }
.game-report-total b, .game-report-total strong { font-size:18px; }
#reportOrders { scroll-margin-top:80px; }

/* Login feedback sits between the title and language selector. */
.top .login-feedback {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: #edf4ff;
  color: #175ec6;
  font-size: 12px;
  line-height: 1.25;
  max-width: 38%;
  padding: 8px;
  overflow-wrap: anywhere;
}
.member-login #authRegister[hidden] { display: none; }
.member-login-note { white-space: pre-wrap; overflow-wrap: anywhere; }


.renewal-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.renewal-plan { min-width: 0; }
.renewal-plan h3 { overflow-wrap: anywhere; }
.renewal-address { overflow-wrap: anywhere; user-select: all; }

.renewal-original-qr { width: min(100%, 330px); height: auto; }

/* My profile shortcuts and account status */
.my-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 10px;
}
.my-grid .my-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 108px;
  padding: 12px 8px;
  border: 1px solid #e1e9f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px #183c6910;
  color: #243955;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.my-tile:focus-visible { outline: 2px solid #235caa; outline-offset: 2px; }
.my-tile:active { background: #f4f8fe; }
.my-tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--tile-light), var(--tile-tint));
  color: var(--tile-ink);
}
.my-tile-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.my-tile--account { --tile-light: #ebfaf4; --tile-tint: #cceedd; --tile-ink: #167554; }
.my-tile--feedback { --tile-light: #edf5ff; --tile-tint: #d4e7ff; --tile-ink: #2062bc; }
.my-tile--help { --tile-light: #f4edff; --tile-tint: #e8d9fc; --tile-ink: #7542b3; }
.my-tile--cache { --tile-light: #fff8e8; --tile-tint: #ffe6b6; --tile-ink: #8c5c12; }
.my-tile--export { --tile-light: #eaf8ff; --tile-tint: #ccecf8; --tile-ink: #156a87; }
.my-tile--restore { --tile-light: #fff0f5; --tile-tint: #f8d9e5; --tile-ink: #9f4368; }
.my-tile--inbox { --tile-light: #edf7ff; --tile-tint: #cbe6fa; --tile-ink: #23678c; }
@media (min-width: 760px) {
  .my-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.order-settings-tier {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.order-settings-tier--trial { color: #175fc1; }
.order-settings-tier--formal { color: #783bb0; }
.order-settings-tier--vip { color: #996912; }
.order-settings-account { margin: -4px 0 16px; color: #1d3552; font-size: 16px; overflow-wrap: anywhere; }
.member-report-menu.order-settings-menu { grid-template-columns: minmax(0, 1fr); }
.order-settings-menu button { gap: 12px; text-align: left; }
.limitrow .limit-max-label { flex: 1; }
.membership-card h2 { margin: 8px 0; overflow-wrap: anywhere; }
.membership-type {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  color: #1e4a82;
  background: #e9f2ff;
  font-weight: 700;
}
.membership-type.membership-vip { background: #fff1cb; color: #795616; }
.membership-page .renewal-plan { min-width: 0; }
.membership-page .renewal-plan .btn { white-space: normal; }

/* Shared order entry for the three-prize and first-prize slips. */
.home-prize-label { min-width: 0; }
.home-prize-label small { color:#62758d; display:block; margin-top:4px; }
.home-unit-toggle { display:flex; align-items:center; gap:5px; font-size:12px; white-space:nowrap; }
.home-unit-toggle input { accent-color:#1761d7; }
.member-number-panel .quick-unit-grid { max-height: 320px; }
.member-number-panel .quick-preview { margin-top: 10px; }
.member-checkout .quick-actions { align-items: end; }
.home-review-lines { max-height: 48dvh; overflow-y:auto; margin:10px 0; }

.renewal-exact-payment { border: 2px solid #d49122; border-radius: 10px; padding: 14px; margin: 16px 0; background: #fff9eb; }
.renewal-exact-payment label { display: block; font-weight: 700; color: #8d3a15; margin-bottom: 8px; }
.renewal-exact-payment input { font-size: clamp(21px, 6vw, 30px); font-weight: 800; text-align: center; background: #fff; color: #98241b; }
.renewal-exact-unit { display: block; text-align: center; margin: 8px 0; }
.renewal-payment-warning { color: #a1251f; font-weight: 700; line-height: 1.65; }

/* Renewal payment page: save the displayed payment details with its original QR. */
.renewal-qr-save { display:block; width:100%; border:0; padding:0; background:transparent; color:var(--primary,#24669b); cursor:pointer; }
.license-page .renewal-qr-save .qrcode { max-width:100%; }
.license-page .renewal-qr-save .renewal-original-qr { width:min(100%,330px); height:auto; }
.renewal-qr-save span { display:block; margin:6px 0 14px; font-size:14px; }

/* External exchange entries at the bottom of account management. */
.membership-exchanges { margin-top:24px; padding:22px 18px; }
.membership-exchanges h2 { margin:0 0 10px; color:#243955; text-align:center; font-size:18px; }
.membership-exchange-list { display:grid; justify-items:center; gap:8px; }
.membership-exchange { display:flex; flex-direction:column; align-items:center; gap:8px; width:min(100%,340px); min-height:84px; box-sizing:border-box; padding:17px 6px 13px; border-bottom:3px solid currentColor; color:#a97c0b; text-decoration:none; overflow-wrap:anywhere; }
.membership-exchange-brand { display:flex; justify-content:center; align-items:center; gap:9px; max-width:100%; }
.membership-exchange svg { width:30px; height:30px; flex-shrink:0; fill:currentColor; }
.membership-exchange strong { font-size:clamp(17px,4.8vw,23px); line-height:1.25; }
.membership-exchange small { max-width:100%; font-size:12px; color:#64748b; text-align:center; }
.membership-exchange--binance { color:#a97c0b; }
.membership-exchange--okx { color:#2865cc; }
.membership-exchange--htx { color:#168879; }
.membership-exchange:focus-visible { outline:2px solid currentColor; outline-offset:4px; border-radius:4px; }
.membership-exchange:active { background:#f2f6fc; }

/* Compact home entry, shared by three-prize and first-prize tickets only. */
.member-home-screen .member-top { height:52px; padding:8px 12px; }
.member-home-screen .member-top h1 { font-size:18px; }
.member-home-screen .member-home-clock { padding:5px 12px; }
.member-home-screen .member-games { gap:5px; padding:7px 10px; }
.member-home-screen .member-games button { flex-basis:43px; min-height:32px; padding:6px 8px; font-size:12px; }
.member-home-screen .member-period { flex-wrap:nowrap; gap:6px; margin:6px 10px; padding:7px 8px; font-size:11px; }
.member-home-screen .member-period > div { flex:1 1 auto; min-width:0; }
.member-home-screen .member-period small { margin-bottom:2px; font-size:10px; }
.member-home-screen .member-period > button { min-height:30px; padding:5px 1px; font-size:11px; }
.member-home-screen .member-status { padding:3px 5px; font-size:10px; }
.member-home-screen .home-period-edit { display:block; width:100%; padding:0; color:inherit; text-align:left; }
.member-home-screen .home-period-edit:focus-visible { outline:2px solid #38bdf8; outline-offset:3px; border-radius:3px; }
.member-home-screen .home-compact { padding:0 10px 104px; gap:8px; }
.member-home-screen .home-compact .member-number-panel { padding:8px; }
.member-home-screen .home-buyer-centered { justify-content:center; gap:8px; margin:0 0 6px; font-size:12px; }
.member-home-screen .home-buyer-centered input { min-height:30px; max-width:420px; padding:5px 8px; font-size:12px; }
.member-home-screen .member-section-title { gap:8px; align-items:flex-start; margin-bottom:5px; }
.member-home-screen .home-unit-toggle { min-height:28px; font-size:11px; }
.member-home-screen .home-prize-details { flex:1; min-width:0; }
.member-home-screen .home-prize-details > summary,
.member-home-screen .home-quick-fold > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-height:28px;
  cursor:pointer;
  list-style:none;
}
.member-home-screen .home-prize-details > summary::-webkit-details-marker,
.member-home-screen .home-quick-fold > summary::-webkit-details-marker { display:none; }
.member-home-screen .home-prize-details > summary::after,
.member-home-screen .home-quick-fold > summary::after {
  content:'';
  width:7px;
  height:7px;
  flex-shrink:0;
  margin:0 3px 3px;
  border-right:2px solid #38bdf8;
  border-bottom:2px solid #38bdf8;
  transform:rotate(45deg);
}
.member-home-screen .home-prize-details[open] > summary::after,
.member-home-screen .home-quick-fold[open] > summary::after { margin-top:5px; transform:rotate(225deg); }
.member-home-screen .home-prize-details > summary h2 { margin:0; font-size:13px; line-height:1.3; }
.member-home-screen .home-odds-content { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px; padding:5px 0; font-size:11px; color:#62758d; }
.member-home-screen .home-odds-content .btn { min-height:28px; padding:4px 7px; font-size:11px; }
.member-home-screen .home-quick-fold { margin:0 0 6px; border:1px solid #dce7f3; border-radius:5px; background:#f4f8fe; }
.member-home-screen .home-quick-fold > summary { padding:4px 8px; font-size:12px; font-weight:600; }
.member-home-screen .home-quick-content { padding:8px; border-top:1px solid #dce7f3; background:#fff; border-radius:0 0 5px 5px; }
.member-home-screen .home-common-quantity { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; }
.member-home-screen .home-common-quantity input { width:110px; min-height:32px; padding:5px 7px; border:1px solid #d6e0ee; border-radius:5px; background:#f6f8fc; font-size:13px; text-align:center; }
.member-home-screen .home-quick-content .home-quick-patterns { margin:7px 0; }
.member-home-screen .home-quick-content .home-quick-patterns h3 { display:none; }
.member-home-screen .home-quick-content .quick-patterns { gap:5px; }
.member-home-screen .home-quick-content .quick-patterns button { min-height:34px; font-size:11px; }
.member-home-screen .home-quick-content .quick-mode { gap:12px; padding:7px 0 0; font-size:11px; }
.member-home-screen .home-quick-content .home-two-digit { min-height:0; margin:8px 0 0; padding:8px 0 0; }
.member-home-screen .home-quick-content .home-two-digit h2 { margin:0; font-size:12px; }
.member-home-screen .home-quick-content .full-entry-form { margin-top:7px; grid-template-columns:minmax(0,1fr) 60px 48px; gap:5px; }
.member-home-screen .home-quick-content .full-entry-form input,
.member-home-screen .home-quick-content .full-entry-form .btn { height:34px; min-height:34px; padding:5px; font-size:12px; }

/* Both input modes keep all 100 cells in one ten-column page grid. */
.member-home-screen .member-number-grid,
.member-home-screen .member-number-panel .quick-unit-grid {
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:3px;
  max-height:none;
  overflow:visible;
  padding:0;
  font-variant-numeric:tabular-nums;
}
.member-home-screen .member-number-grid button { min-height:31px; padding:2px 0; font-size:12px; line-height:1.1; }
.member-home-screen .member-number-grid small { margin-top:1px; font-size:10px; line-height:1.1; }
.member-home-screen .quick-unit-cell { grid-template-rows:15px 24px; border-radius:4px; }
.member-home-screen .quick-unit-cell b { padding:0; font-size:11px; line-height:15px; }
.member-home-screen .quick-unit-cell input { min-width:0; width:100%; height:24px; padding:1px; font-size:11px; line-height:20px; }
.member-home-screen .quick-unit-cell input::placeholder { font-size:9px; }
.member-home-screen .member-manual { margin-top:8px; padding-top:8px; }
.member-home-screen .member-manual:empty { display:none; }
.member-home-screen .home-pa-entry { min-height:0; }
.member-home-screen .home-pa-entry h2 { margin:0; font-size:13px; }
.member-home-screen .home-pa-entry .full-entry-form { margin-top:7px; }
.member-home-screen .member-tools { gap:6px; margin-top:8px; }
.member-home-screen .member-tools .btn { min-height:30px; padding:5px; font-size:11px; }
.member-home-screen .member-checkout { padding:7px 12px; }
.member-home-screen .member-total { gap:7px; margin-bottom:5px; font-size:11px; }
.member-home-screen .member-total b { font-size:21px; }
.member-home-screen .home-selected-review { flex:1; min-width:0; }
.member-home-screen .home-selected-review > summary { display:flex; align-items:center; gap:6px; min-height:27px; cursor:pointer; list-style:none; }
.member-home-screen .home-selected-review > summary::-webkit-details-marker { display:none; }
.member-home-screen .home-selected-review > summary::after { content:''; width:6px; height:6px; flex-shrink:0; border-right:2px solid #38bdf8; border-bottom:2px solid #38bdf8; transform:rotate(45deg); }
.member-home-screen .home-selected-review[open] > summary::after { margin-top:4px; transform:rotate(225deg); }
.member-home-screen .home-selected-review[open] + #homeOrderAmount { align-self:flex-start; }
.member-home-screen .home-selected-lines { display:flex; flex-wrap:wrap; align-content:flex-start; gap:4px; max-height:126px; overflow:auto; padding:4px 1px 2px; font-size:11px; }
.member-home-screen .home-selected-lines > * { max-width:100%; padding:3px 5px; border-radius:4px; background:#edf4ff; color:#245d9d; overflow-wrap:anywhere; }
.member-home-screen .member-checkout .quick-actions { align-items:center; }
.member-home-screen .member-checkout .btn { min-height:36px; flex-basis:auto; padding:7px; font-size:12px; }
.member-home-screen .quick-clear { min-height:36px; font-size:11px; }

@media (max-width:359px) {
  .member-home-screen .member-top { padding-left:10px; padding-right:10px; }
  .member-home-screen .member-period { gap:4px; margin-left:7px; margin-right:7px; padding-left:6px; padding-right:6px; }
  .member-home-screen .member-period > div { flex-basis:auto; }
  .member-home-screen .member-period b { font-size:10px; }
  .member-home-screen .member-period > button { font-size:10px; }
  .member-home-screen .home-compact { padding-left:7px; padding-right:7px; padding-bottom:104px; }
  .member-home-screen .home-compact .member-number-panel { padding:6px; }
  .member-home-screen .member-number-grid,
  .member-home-screen .member-number-panel .quick-unit-grid { grid-template-columns:repeat(10,minmax(0,1fr)); gap:2px; max-height:none; overflow:visible; }
  .member-home-screen .member-number-grid button { min-height:30px; font-size:11px; }
  .member-home-screen .home-prize-details > summary h2 { font-size:12px; }
  .member-home-screen .home-unit-toggle { gap:4px; font-size:10px; }
}
@media (min-width:760px) {
  .member-home-screen .member-top { height:60px; }
  .member-home-screen .member-top h1 { font-size:20px; }
  .member-home-screen .home-compact { padding-bottom:18px; }
  .member-home-screen .home-compact .member-number-panel { padding:14px; }
  .member-home-screen .member-period { padding:10px; font-size:13px; }
  .member-home-screen .member-number-grid,
  .member-home-screen .member-number-panel .quick-unit-grid { gap:5px; }
  .member-home-screen .member-number-grid button { min-height:38px; font-size:14px; }
  .member-home-screen .quick-unit-cell { grid-template-rows:20px 30px; }
  .member-home-screen .quick-unit-cell b { font-size:13px; line-height:20px; }
  .member-home-screen .quick-unit-cell input { height:30px; font-size:14px; line-height:25px; }
  .member-home-screen .home-prize-details > summary h2 { font-size:15px; }
  .member-home-screen .home-unit-toggle { font-size:12px; }
  .member-home-screen .member-checkout { padding:12px 0 0; }
  .member-home-screen .member-total { font-size:13px; }
  .member-home-screen .member-total b { font-size:25px; }
}

/* 939: scoped to the three-prize mixed-entry shortcut window only. */
#modal .mixed-window-dialog{max-width:620px;width:100%;height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);padding:12px;border-radius:14px;display:flex;flex-direction:column;position:relative;overflow:hidden}
#modal .mixed-window-dialog>h2{font-size:17px;margin:0 0 8px;color:#1c2939;flex:none}
#modal .mixed-window-dialog>.closebar{margin-top:3px;flex:none}
#modal .mixed-window{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;color:#161616}
#modal .mixed-window-board{position:relative;flex:1;min-height:140px;display:flex;flex-direction:column;overflow:hidden;background:#e2e2e2;border-radius:5px;padding:10px}
#modal .mixed-window-date{text-align:center;color:#d85e52;font-size:22px;font-weight:750;z-index:1;line-height:1.2}
#modal .mixed-window-date small{font-size:12px;font-weight:500}
#modal .mixed-window-countdown{text-align:center;font-weight:750;font-size:18px;z-index:1;margin-top:4px}
#modal .mixed-window-draw{text-align:center;font-size:12px;color:#666;padding:4px 0 10px;border-bottom:1px solid #cfcfcf;z-index:1}
#modal .mixed-window-watermark{position:absolute;inset:40% 8px auto;text-align:center;color:#b5b5b5;font-size:clamp(38px,12vw,76px);font-weight:800;line-height:1;overflow-wrap:anywhere;pointer-events:none}
#modal .mixed-window-numbers{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-content:start;overflow:auto;flex:1;padding:12px 0 4px;z-index:1}
#modal .mixed-window-number{position:relative;display:flex;justify-content:center;align-items:center;min-height:54px;background:white;border:1px solid #d6d6d6;border-radius:7px;box-shadow:0 2px 2px #0001;padding:15px 6px 10px}
#modal .mixed-window-number b{font-size:clamp(17px,5.2vw,28px);font-weight:800;line-height:1.1;overflow-wrap:anywhere;text-align:center}
#modal .mixed-window-number button{position:absolute;right:0;top:0;color:#d65d50;background:transparent;border:0;padding:0 5px;min-width:28px;min-height:28px;font-size:25px;line-height:1}
#modal .mixed-window-name{display:flex;gap:8px;align-items:center;font-size:15px;flex:none}
#modal .mixed-window-name>span{white-space:nowrap}
#modal .mixed-window-name input{min-width:0;flex:1;width:100%;height:46px;background:white;border:1px solid #aaa;border-radius:12px;padding:9px 12px;font-size:18px}
#modal .mixed-window-controls{display:grid;grid-template-columns:88px 1fr 1fr 64px;grid-template-rows:48px 96px;gap:7px;flex:none}
#modal .mixed-window-controls button{border:1px solid #bfbfbf;border-radius:12px;padding:4px;color:#222;font-size:16px;font-weight:650;background:#eee;min-width:0}
#modal .mixed-window-total{grid-column:1;grid-row:1;align-self:center;color:#cd3833;font-size:19px;line-height:1.1;overflow-wrap:anywhere}
#modal .mixed-window-controls .mixed-window-print{grid-column:2;grid-row:1;color:white;background:#d72d2b;border-color:#d72d2b}
#modal .mixed-window-clear{grid-column:3;grid-row:1}
#modal .mixed-window-modes{grid-column:1;grid-row:2;display:flex;flex-direction:column;border:1px solid #bbb;border-radius:12px;overflow:hidden}
#modal .mixed-window-modes button{flex:1;border:0;border-radius:0;background:white;font-size:17px;font-weight:500}
#modal .mixed-window-modes button.active{background:#229ced;color:white;font-weight:750}
#modal .mixed-window-input{grid-column:2 / 4;grid-row:2;width:100%;min-height:96px;background:white;border:2px solid #2e9ed4;border-radius:7px;font-size:29px;font-weight:750;text-align:center;padding:10px 4px}
#modal .mixed-window-input::placeholder{font-size:16px;font-weight:500;color:#888}
#modal .mixed-window-controls .mixed-window-next{grid-column:4;grid-row:1 / 3;background:#229ced;color:white;border-color:#229ced;font-size:34px}
#modal .mixed-window button:disabled{opacity:.45}
#modal .mixed-window-error{color:#b42318;min-height:0;margin:0;font-size:13px;flex:none}
#modal .mixed-window-error:empty{display:none}
#modal .mixed-window-help{font-size:12px;color:#666;margin:0;flex:none}
#modal .mixed-window-unit-shade{position:absolute;inset:0;background:#0006;z-index:5;display:flex;align-items:center;justify-content:center;padding:18px;border-radius:14px}
#modal .mixed-window-units{background:white;border-radius:16px;padding:20px;width:100%;max-width:360px;box-shadow:0 8px 32px #0003;color:#222}
#modal .mixed-window-units h3{font-size:20px;margin:0;text-align:center}
#modal .mixed-window-unit-number{display:block;text-align:center;font-size:42px;line-height:1.4;margin:10px 0}
#modal .mixed-window-units label{display:block;font-size:16px;margin-bottom:6px}
#modal .mixed-window-units input{display:block;width:100%;min-height:64px;text-align:center;font-size:30px;border:2px solid #229ced;border-radius:8px;background:#fff}
#modal #mixedWindowUnitsError{font-size:14px;color:#b42318;min-height:18px;margin:8px 0}
#modal .mixed-window-unit-actions{display:flex;gap:10px}
#modal .mixed-window-unit-actions button{flex:1;min-height:44px;border:0;background:#eee;border-radius:8px;font-size:17px}
#modal .mixed-window-unit-actions button[type=submit]{background:#229ced;color:white}
@media(max-width:380px){#modal .mixed-window-dialog{padding:10px}#modal .mixed-window-controls{grid-template-columns:70px 1fr 1fr 54px;gap:5px}#modal .mixed-window-number b{font-size:18px}#modal .mixed-window-total{font-size:16px}#modal .mixed-window-modes button{font-size:15px}}
@media(max-height:650px){#modal .mixed-window-dialog{overflow:auto}#modal .mixed-window-board{min-height:170px}#modal .mixed-window{flex:none;min-height:430px}}
@supports not (height:100dvh){#modal .mixed-window-dialog{height:calc(100vh - 20px);max-height:calc(100vh - 20px)}}

/* Shared two-digit entry accepts one number/unit pair or multiple lines. */
.full-entry-form .two-digit-batch-input { box-sizing:border-box; width:100%; min-width:0; min-height:64px; max-height:180px; padding:8px 9px; border:1px solid #d6e0ee; border-radius:6px; font:inherit; font-size:14px; line-height:1.45; resize:vertical; }
.member-home-screen .home-quick-content .two-digit-batch-input { min-height:64px; padding:7px; font-size:12px; }
.member-home-screen .home-selected-lines > .home-selection-pending { background:#fff4db; color:#865700; }

.home-category-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.home-category-line button{margin-left:auto;border:0;background:transparent;color:#c52c3b;font-size:22px}.category-estimates{padding:8px 0;overflow-wrap:anywhere}.category-estimates p{margin:5px 0}#categoryError{color:#b42318}

/* 942: one PA entry panel, with digit choices above its shared units. */
.member-home-screen .home-pa-mixed-entry { border-top:0; margin-top:0; padding-top:0; }
.member-home-screen .home-pa-mixed-entry .full-entry-form { display:grid; grid-template-columns:minmax(0,1fr) 112px; align-items:stretch; gap:8px; }
.member-home-screen .home-pa-mixed-entry textarea { width:100%; min-width:0; height:auto; min-height:136px; resize:vertical; padding:10px; font-size:15px; line-height:1.5; }
.home-pa-controls { display:flex; flex-direction:column; gap:6px; min-width:0; }
.home-pa-controls > input, .home-pa-controls > button { width:100%; min-height:36px; margin:0; }
.home-pa-types { display:flex; flex-wrap:wrap; gap:6px; border:0; padding:0; margin:0; min-width:0; }
.home-pa-types legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.home-pa-types label { display:flex; align-items:center; gap:3px; font-size:12px; white-space:nowrap; }
.member-shell .home-pa-types input[type=checkbox] { appearance:auto; width:16px; height:16px; min-height:0; margin:0; padding:0; accent-color:#1b64d8; }
.home-pa-help { margin:7px 0 0; color:#697685; font-size:12px; line-height:1.5; }
.home-pa-error { margin:4px 0; color:#ad3a29; font-size:12px; }
.home-pa-error:empty { display:none; }
.home-pa-mixed-entry :disabled { opacity:.5; }

/* 943: compact, collapsible three-prize entry leaves more room for the number grid. */
.member-home-screen .home-batch-fold { min-height:0; border:1px solid #dce7f3; border-radius:5px; margin:0 0 6px; padding:0; background:#f4f8fe; }
.member-home-screen .home-batch-fold > summary { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:34px; padding:6px 9px; list-style:none; cursor:pointer; font-size:13px; font-weight:600; }
.home-batch-fold > summary::-webkit-details-marker { display:none; }
.home-batch-fold > summary::after { content:''; width:7px; height:7px; flex-shrink:0; border-right:2px solid #38bdf8; border-bottom:2px solid #38bdf8; transform:rotate(45deg); margin-right:3px; }
.home-batch-fold[open] > summary::after { transform:rotate(225deg); }
.home-batch-content { padding:8px; border-top:1px solid #dce7f3; background:white; }
.home-batch-content .full-entry-form { margin:0; }
.home-batch-fold[open] .home-batch-content { animation:home-entry-open .16s ease-out; }
@keyframes home-entry-open { from { opacity:.4; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .home-batch-fold[open] .home-batch-content { animation:none; } }
.home-unsettled-entry { margin:0 0 6px; }
.home-unsettled-entry button { display:flex; align-items:center; gap:7px; width:100%; min-height:30px; padding:4px 8px; border:1px solid #dce7f3; border-radius:5px; background:white; color:#315f90; font-size:12px; text-align:left; }
.home-unsettled-entry b { padding:1px 6px; border-radius:9px; background:#eaf3ff; font-weight:600; }
.home-unsettled-entry span { margin-left:auto; color:#38bdf8; }

/* Full-width compact pending selection, shared by head and three-prize entry. */
.member-home-screen .member-checkout .member-total {display:block;}
.member-home-screen .home-selected-review {width:100%;}
.member-home-screen .home-selected-review > summary {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;min-height:32px;}
.member-home-screen .home-selected-review > summary::after {display:none;}
.member-home-screen .home-selection-count {display:flex;align-items:center;gap:5px;font-size:11px;}
.member-home-screen .home-selection-count::after {content:'';width:6px;height:6px;flex-shrink:0;border-right:2px solid #38bdf8;border-bottom:2px solid #38bdf8;transform:rotate(45deg);}
.member-home-screen .home-selected-review[open] .home-selection-count::after {transform:rotate(225deg);margin-top:4px;}
.member-home-screen .home-selection-title {font-size:12px;font-weight:600;text-align:center;color:#245d9d;}
.member-home-screen #homeOrderAmount {font-size:18px;line-height:1.2;justify-self:end;text-align:right;overflow-wrap:anywhere;}
.member-home-screen .home-selected-lines {width:100%;box-sizing:border-box;gap:4px;font-size:11px;max-height:126px;}
.member-home-screen .home-selected-lines > * {font-size:11px;line-height:1.4;padding:3px 5px;}
.member-home-screen .home-selected-lines b {font-size:13px;line-height:1.4;}
.member-home-screen .home-selected-lines small {font-size:10px;}
@media(max-width:350px){.member-home-screen .home-selection-title{font-size:11px;}.member-home-screen #homeOrderAmount{font-size:16px;}.member-home-screen .home-selection-count{font-size:10px;}}
.draw-market-controls {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 16px;padding:12px;background:#edf4ff;border:1px solid #d5e2f1;border-radius:10px;}
.draw-market-controls .market-range {display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1;}
.draw-market-controls input[type=time] {width:94px;min-height:38px;font-size:14px;}
.draw-market-controls label {display:flex;align-items:center;gap:5px;font-size:13px;}
.draw-market-controls button {font-size:13px;min-height:38px;}
.draw-market-controls .market-control-status {flex-basis:100%;font-size:12px;color:#47617b;}

.draw-market-controls .market-control-row {display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;}

/* Read-only order summary; no home entry selectors changed. */
.sold-report .sold-section{margin:14px 0;border:1px solid var(--border,#dbe0e8);border-radius:12px;overflow:hidden;background:var(--card,#fff)}
.sold-report .sold-section>summary{cursor:pointer;padding:14px 12px;color:var(--blue,#2460b7);font-size:16px}
.sold-report .sold-section>summary span{display:block;font-size:13px;margin:6px 0 0 18px;color:var(--text,#263648)}
.sold-report .sold-section-body{padding:10px}.sold-report .sold-total{margin:16px 0 24px}.sold-report .sold-mode button,.sold-report .sold-scope button{font-size:14px}.sold-report .soldpair{font-size:16px}

.sold-report .sold-board{scroll-margin-top:90px}.sold-report .sold-board>h2{font-size:18px;color:var(--blue,#2460b7);padding:12px 0;border-top:2px solid #d5e2f1}.sold-report .sold-board-links{display:flex;flex-wrap:wrap;gap:8px}.sold-report .sold-finance,.sold-report .sold-order-list{margin:12px 0;padding:12px;background:#f0f6ff;border-radius:10px}.sold-report .sold-finance>summary,.sold-report .sold-order-list>summary{cursor:pointer;font-size:15px;font-weight:600}.sold-report .sold-order-list .detail-order-id{overflow-wrap:anywhere}.sold-report .sold-finance-rows{font-size:14px}
