
:root{font-family:system-ui,-apple-system,sans-serif;color:#18332e;background:#f6f5f0}*{box-sizing:border-box}body{margin:0}header{background:#113b36;color:white;padding:18px max(16px,env(safe-area-inset-left));}header h1{font-size:22px;margin:0}header p{margin:5px 0 0;color:#c5ded6;font-size:13px}.wrap{max-width:900px;margin:auto;padding:14px 14px 65px}.panel{background:white;border:1px solid #e2e7e1;border-radius:15px;padding:15px;margin-bottom:14px;box-shadow:0 2px 9px #1234 0}h2{font-size:17px;margin:0 0 10px}.muted{font-size:12px;color:#62746e}.controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}button,.filebtn{border:1px solid #b9cec4;border-radius:10px;padding:10px 13px;background:white;color:#17463b;font-weight:650;cursor:pointer;font-size:14px}button.primary,.filebtn.primary{background:#176a55;color:white;border-color:#176a55}button:disabled{opacity:.45}.rack{display:flex;flex-wrap:wrap;gap:5px;min-height:70px;background:#eff3ef;padding:9px;border-radius:11px;align-items:center}.tile{height:54px;min-width:38px;padding:3px 5px;border:1px solid #c7c9bf;border-bottom:4px solid #b1b7ac;border-radius:6px;background:#fffdf6;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;font-size:20px;font-weight:750;line-height:1.1;box-shadow:0 1px 2px #0002}.tile small{font-size:9px;font-weight:500}.tile.bam{color:#167447}.tile.dot{color:#2266b4}.tile.crak,.tile.dragon{color:#ad3030}.tile.wind{color:#222}.tile.special{color:#8a5e1c}.tile.dragon-red{color:#b82929}.tile.dragon-green{color:#18734c}.tile.dragon-white{color:#176ba0}.tile .dragon-svg{display:block;width:29px;height:33px;flex:none}.tile.mini .dragon-svg{width:24px;height:26px}.keyboard .tile .dragon-svg{max-width:100%;height:30px}.tile.dragon small{font-size:8px;white-space:nowrap}.tile.joker{background:#fff2ca;color:#9c5600}.rack .tile{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.rack .tile.drag-source{opacity:.3}.rack .tile.drop-target{box-shadow:inset 4px 0 #176a55}.drag-ghost{position:fixed;z-index:9999;pointer-events:none;opacity:.9;transform:scale(1.1);box-shadow:0 10px 24px #0005!important}.rack-tools{justify-content:space-between}.rack .tile.reordering{outline:3px solid #2563eb;outline-offset:1px;background:#e6f0ff}.rack-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px}.rack-tools button{padding:6px 10px;font-size:12px}.natural-inline{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 9px}.natural-inline .tile{flex:none}.keyboard{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px}.keyboard .tile{min-width:0;width:100%;height:51px;cursor:pointer}.tabs{display:flex;gap:8px;margin-bottom:12px}.tabs button.active{background:#176a55;color:white}.sectionlabel{font-size:12px;color:#587168;font-weight:700;margin:12px 0 6px}.result{cursor:pointer}.result.selected{border:2px solid #176a55;background:#f0f8f2}.result:focus-visible{outline:3px solid #176a55}.rack .tile.matched{outline:3px solid #238d62;outline-offset:1px;background:#e1f6e7}.rack .tile.joker-selected{outline:3px dashed #bb8615;outline-offset:1px}.tile.mini{height:43px;min-width:31px;font-size:16px;padding:2px 4px}.tile.mini small{font-size:8px}.tile-row{display:flex;flex-wrap:wrap;gap:4px;margin:9px 0}.selection{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px}.selection>div{background:#f4f7f3;border-radius:10px;padding:10px;min-width:0}.selection>.strategy-card{margin-top:0;border-top:0;padding-top:10px}.selection>.strategy-card h3{font-size:13px;margin:0 0 7px}.selection>.strategy-card .advicebox{padding:7px}.selection h3{font-size:13px;margin:0 0 6px}.strategy{margin-top:10px;border-top:1px solid #dbe5dc;padding-top:9px}.strategy .tile-row{margin:5px 0}.advicebox{background:#eef6ef;padding:10px;border-radius:10px;margin-top:8px}.advicebox .tile-row{margin:5px 0}.strategyhint{font-size:12px;color:#526760;margin-top:5px}.needitem{display:flex;gap:6px;align-items:center;margin:5px 0;font-size:12px}.result{border:1px solid #dfe7e0;border-radius:12px;padding:12px;margin:9px 0}.resulttop{display:flex;justify-content:space-between;gap:10px}.distance{font-size:26px;font-weight:800;color:#176a55;white-space:nowrap}.result .pattern{font-size:14px;letter-spacing:.3px;font-weight:700;margin:7px 0}.suit-notation{display:flex;flex-wrap:wrap;gap:9px;align-items:baseline;font-size:17px;font-weight:800;letter-spacing:.5px;margin:7px 0 5px}.suit-notation span{white-space:nowrap}.potential-wrap{margin:9px 0 7px}.potential-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;font-weight:650;color:#40594f}.potential-track{height:9px;border-radius:999px;background:#e5eae5;overflow:hidden;margin-top:5px}.potential-fill{height:100%;border-radius:999px;transition:width .2s ease}.potential-fill.high{background:#23845b}.potential-fill.medium{background:#d4a037}.potential-fill.low{background:#bf7250}.potential-head .high{color:#21724f}.potential-head .medium{color:#966917}.potential-head .low{color:#a35332}.details{font-size:12px;color:#526760}.tag{font-size:11px;border-radius:7px;background:#e9f2ed;padding:3px 6px;display:inline-block}.warning{padding:10px;background:#fff3d6;border-radius:9px;font-size:12px;color:#65480b}.photo{max-width:100%;max-height:210px;border-radius:9px;display:none;margin:9px 0}.hidden{display:none!important}.tile-modal{position:fixed;inset:0;z-index:10000;background:rgba(10,29,25,.65);display:flex;align-items:center;justify-content:center;padding:12px}.tile-modal-card{background:#fff;border-radius:16px;width:min(850px,100%);max-height:90dvh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 18px 60px #0005}.tile-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e0e7e2}.tile-modal-head h2{margin:0}.tile-modal-content{padding:12px 16px 22px;overflow:auto;overscroll-behavior:contain}.tile-modal-content .keyboard{grid-template-columns:repeat(9,minmax(0,1fr))}.tile-modal-content .tile{min-width:0}body.modal-open{overflow:hidden}select{padding:9px;border-radius:8px;border:1px solid #c4d2c8;background:white}input[type=file]{display:none}@media(max-width:430px){.selection{grid-template-columns:1fr}}@media(min-width:650px){.keyboard{grid-template-columns:repeat(13,minmax(0,1fr))}.tile{height:58px}.keyboard .tile{height:58px}} .rack-settings{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 11px}.rack-settings label{font-size:12px;font-weight:700;color:#47645b;display:flex;gap:6px;align-items:center}.rack-settings select{font-size:13px;padding:7px}.rack-tools{justify-content:flex-start}.rack-tools button,.rack-tools .filebtn{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;font-size:12px;line-height:1.25;min-height:34px;white-space:nowrap}.rack .tile.discard-pick{outline:3px solid #cf6a1a;outline-offset:2px;background:#ffebd4}.hint-toggle{margin-left:auto}.hint-message{background:#f3f5ed;border-left:3px solid #7a9a7b;border-radius:5px;padding:7px 9px;margin-top:8px;font-size:12px;color:#456051}.discard-explain{font-size:12px;color:#79511c;margin:5px 0 8px}@media(max-width:460px){.rack-settings .hint-toggle{margin-left:0}} 
/* V14 full target tile rows with matched naturals highlighted */
.tile-modal-card{max-height:calc(100dvh - 18px)}
.tile-modal-head{padding:10px 14px;flex-shrink:0}
.modal-rack-area{padding:9px 14px 10px;background:#f1f7f1;border-bottom:1px solid #d9e5da;flex-shrink:0}
.modal-rack-label{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;margin-bottom:6px}
.modal-rack-area .rack{min-height:55px;padding:6px;gap:4px}
.modal-rack-area .tile{height:44px;min-width:31px;font-size:16px;padding:2px 4px;cursor:pointer}
.modal-rack-area .tile small{font-size:8px}
.modal-rack-area .tile .dragon-svg{width:24px;height:25px}
.tile-modal-content{padding:7px 12px 15px}
.tile-modal-content>p{margin:4px 0 7px}
.result{padding:9px 11px;margin:7px 0}
.resulttop{align-items:center}
.result-label strong{font-size:13px}
.result-distance{display:flex;gap:5px;align-items:baseline;white-space:nowrap;color:#176a55}
.result-distance strong{font-size:20px}
.result-distance span{font-size:11px;color:#62746e}
.result .suit-notation{font-size:16px;margin:5px 0;gap:7px}
.result-matches{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:2px 0}
.result-matches .tile-row{margin:1px 0;gap:3px}
.result-match-tile{outline:2px solid #238d62;outline-offset:0;background:#e1f6e7!important}
.result-target{gap:3px;margin:5px 0 7px}.result-target .tile{min-width:28px}.result .potential-wrap{margin:6px 0 2px}
#resultsHelp{margin:5px 0 8px}
@media(max-width:430px){.modal-rack-area .rack{gap:3px}.modal-rack-area .tile{min-width:29px;height:42px}.resulttop{gap:4px}.result-label strong{font-size:12px}}

/* V14.5 target modal and clear selection state */
.target-modal-card{background:#fff;border-radius:16px;width:min(820px,100%);max-height:calc(100dvh - 22px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 18px 60px #0005}
.target-modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid #dce7dd;flex-shrink:0}
.target-modal-head h2{margin:0}
.target-modal-content{overflow-y:auto;overscroll-behavior:contain;padding:10px 14px 20px}
.target-modal-content .training-panel{margin:0;background:transparent;border:0;padding:0}
.card-tab.active{background:#146046!important;color:#fff!important;border-color:#146046!important;box-shadow:inset 0 0 0 2px #fff5}
.card-line.chosen{background:#c9edce!important;box-shadow:inset 5px 0 #146046}

/* Card-style target chooser: explicit columns and generous spacing */
.card-section-tabs{display:flex;gap:7px;overflow-x:auto;padding:8px 0 14px;scrollbar-width:thin}
.card-tab{flex:0 0 auto;padding:9px 12px;border:1px solid #cfc7aa;border-radius:8px;background:#f7f4e9;font-size:13px;font-weight:700}
.card-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 12px}
.card-section-heading .card-line{width:auto;display:inline-flex;padding:9px 12px;border:1px solid #b9cec4;border-radius:8px}
.card-lines{border:2px solid #176349;border-radius:9px;background:#fffdf2;overflow:hidden}
.card-lines .card-line{box-sizing:border-box;display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;column-gap:16px;width:100%;padding:13px 14px;text-align:left;border:0;border-bottom:1px solid #d7d4c1;border-radius:0;background:#fffdf2;color:#172e25}
.card-lines .card-line:last-child{border-bottom:0}
.card-line-num{display:block;font-size:11px;font-weight:750;color:#315b46;background:#e9f2e8;border-right:2px solid #aec6b4;border-radius:5px;padding:7px 5px;text-align:center;white-space:nowrap}
.card-line-pattern{min-width:0;font-size:15px;font-weight:750;letter-spacing:.4px;overflow-wrap:anywhere}
.card-line-points{justify-self:end;min-width:62px;text-align:right;font-size:12px;font-weight:700;color:#4c6557;white-space:nowrap;border-left:1px solid #d7d4c1;padding-left:14px}
.card-line:focus-visible,.card-tab:focus-visible{outline:3px solid #c7961e;outline-offset:-3px}
@media(max-width:440px){.card-lines .card-line{grid-template-columns:55px minmax(0,1fr) auto;column-gap:9px;padding:12px 9px}.card-line-points{min-width:52px;padding-left:9px;font-size:11px}.card-line-pattern{font-size:14px}.card-line-num{font-size:10px;padding:6px 3px}}

/* V14.6: readable colored card-pattern alternatives */
.card-line-pattern{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.card-pattern-variant{display:flex;flex-wrap:wrap;column-gap:8px;row-gap:2px;font-weight:800;letter-spacing:.3px;line-height:1.35}
.card-pattern-variant span{white-space:nowrap}
.card-pattern-token{display:inline-flex;gap:0;white-space:nowrap}
#trainingResult{border-left:4px solid #176a55}
#trainingResult .tile-row{margin-bottom:12px}

.selection{border-top:2px solid #ccdcd4;padding-top:20px;margin-top:22px;grid-template-columns:minmax(0,1fr)}
.selection:before{content:'Your hand plan';font-size:19px;font-weight:750;color:#17463b}
.selection>.selected-target{padding:0;background:transparent}.selected-target .result{margin:0;border:2px solid #23715d;background:#eff8f2;cursor:default}
.selection>.still-needed{background:#fff6df;border:1px solid #e3c375;padding:16px}.still-needed h3{margin:0 0 8px;font-size:18px;display:flex;align-items:center;justify-content:space-between}.need-count{font-size:32px;color:#855b10}.still-needed h4{margin:10px 0 4px;font-size:13px}.still-needed .tile{opacity:1}
.hint-message{position:relative;padding:12px 14px 12px 42px;border:1px solid #dce8df;border-radius:12px;background:#f5f8f3;line-height:1.5}.hint-message:before{content:'💡';position:absolute;left:12px;top:11px;font-size:19px}
.terminology{margin:14px 0;background:white;border:1px solid #dce8df;border-radius:12px;padding:12px 16px}.terminology summary{cursor:pointer;font-weight:700;color:#176a55}.terminology dl{line-height:1.5;font-size:14px}.terminology dt{font-weight:700;margin-top:10px}.terminology dd{margin:2px 0 8px}
@media(min-width:760px){.selection{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.selection:before,.selected-target{grid-column:1/-1}.selection>.strategy-card{grid-column:1/-1}}
.still-needed{border-radius:12px;background:#fff6df;border:1px solid #e3c375;padding:16px;margin:10px 0}.selection>.needed-wrapper{padding:0;background:transparent}.needed-wrapper>.still-needed{margin:0;height:100%}
#trainingFeedback>.still-needed{margin:0 0 20px}#trainingFeedback>.result{margin-bottom:8px}#trainingFeedback>strong{display:block;margin:16px 0 6px}
.coach-encouragement{padding:16px;background:#e7f6eb;border:1px solid #9ecbb0;border-radius:12px;color:#185338;font-weight:650;line-height:1.5}.coach-reasons{padding-left:22px;line-height:1.6}.coach-reasons li{margin:8px 0}
.joker-credit{margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff0bd;border:1px solid #d6b661}.joker-credit p{margin:6px 0;font-size:13px;line-height:1.5}.joker-credit .tile-row{margin:0}
.comparison-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}.comparison-table caption{text-align:left;font-weight:750;margin:14px 0 10px}.comparison-table th,.comparison-table td{padding:12px 8px;border-bottom:1px solid #dce6df;text-align:left;overflow-wrap:anywhere}.comparison-table thead{background:#edf3ef}.comparison-table .comparison-advantage{background:#e2f3e8;color:#14583e;font-weight:750}.coach-takeaway{line-height:1.5;padding:12px;background:#f3f6f2;border-radius:10px}
.char-field{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-weight:650}.char-field select{width:100%;max-width:100%}.char-pass .tile{cursor:pointer;touch-action:manipulation}.char-pass .char-picked{outline:3px solid #176a55;background:#d9f2e2}.char-pass .tile:disabled{cursor:not-allowed}#charFeedback{border-top:2px solid #d5e3da;margin-top:18px;padding-top:12px}#charFeedback li{margin:8px 0}
 #simComparison{overflow-x:auto;margin:16px 0 22px;border:1px solid #dce5de;border-radius:12px}.sim-comparison{width:100%;min-width:800px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}.sim-comparison caption{text-align:left;font-size:17px;font-weight:700;padding:12px;background:#f3f7f4}.sim-comparison th,.sim-comparison td{text-align:left;vertical-align:top;padding:9px 10px;border-top:1px solid #dce5de;overflow-wrap:anywhere;background:white}.sim-comparison thead th{background:#edf4ef;font-size:14px}.sim-comparison tr>:first-child{position:sticky;left:0;z-index:1;width:160px;background:#f3f7f4;font-weight:600;border-right:1px solid #dce5de}.sim-comparison .sim-winner{background:#e3f3df;border-left:2px solid #63944b;border-right:2px solid #63944b}.sim-comparison thead .sim-winner{background:#245b35;color:white}.sim-comparison .tile-row{flex-wrap:wrap;gap:2px}.sim-comparison .tile{min-width:23px!important;width:23px!important;font-size:12px!important} #simPlayers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sim-player{border:1px solid #dce5de;border-radius:12px;padding:12px;min-width:0}.sim-player h3{margin:0 0 10px}.sim-active{border:2px solid #176a55;background:#f3f9f5}#simPlayers .tile-row{flex-wrap:wrap}#simPlayers .rack{min-height:54px}@media(max-width:650px){#simPlayers{grid-template-columns:1fr}} .batch-scroll{overflow-x:auto;margin:12px 0}.batch-lines{width:100%;border-collapse:collapse;font-size:12px}.batch-lines td,.batch-lines th{text-align:left;padding:8px;border-bottom:1px solid #dce5de} #batchPanel{margin-top:16px} 
#appNav{display:flex;align-items:center;gap:14px;margin-bottom:18px}#appNav.hidden{display:none}#appNav h2{margin:0}.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:24px;min-height:150px;background:white;border:1px solid #cddbd3;border-radius:16px}.home-card strong{font-size:21px}.home-card span{font-size:14px;line-height:1.5;font-weight:400}.home-card small{font-size:12px;color:#62746e}.home-card:hover{border-color:#176a55;background:#f0f7f2}.home-card:focus-visible{outline:3px solid #176a55;outline-offset:3px}.screen-options{margin:12px 0;padding:10px;background:#f3f7f4;border-radius:10px}.screen-options summary{cursor:pointer;font-size:13px;font-weight:600}#homeScreen{padding:14px 0}#homeScreen h2{font-size:24px;margin-bottom:20px}#simulateBtn,#simClose{display:none!important}
body[data-screen="home"] #appNav,body:not([data-screen="home"]) #homeScreen{display:none!important}
body:not([data-screen="training"]) #trainingMenu{display:none!important}
body:not([data-screen="target"]):not([data-screen="charleston"]) #practiceHelp{display:none!important}
body:not([data-screen="analysis"]):not([data-screen="target"]):not([data-screen="charleston"]) #rackPanel,body:not([data-screen="analysis"]):not([data-screen="target"]):not([data-screen="charleston"]) #analysisPanel,body:not([data-screen="target"]) #trainingResult,body:not([data-screen="charleston"]) #charlestonPanel{display:none!important}
body:not([data-screen="gameplay"]) #simulationPanel,body:not([data-screen="simulation"]) #batchPanel{display:none!important}
body:not([data-screen="analysis"]) .analysis-only,body:not([data-screen="analysis"]) #analyzeBtn,body:not([data-screen="target"]) #chooseTargetBtn,body:not([data-screen="charleston"]) #charlestonBtn{display:none!important}
body[data-screen="home"] .terminology,body[data-screen="training"] .terminology,body[data-screen="gameplay"] .terminology,body[data-screen="simulation"] .terminology,body[data-screen="home"] #rackPrivacy,body[data-screen="training"] #rackPrivacy,body[data-screen="gameplay"] #rackPrivacy,body[data-screen="simulation"] #rackPrivacy{display:none!important}
@media(max-width:540px){.home-grid{grid-template-columns:1fr}.home-card{min-height:110px;padding:20px}}
#simulationPanel.hide-targets .sim-target{display:none!important}#simulationPanel.compact-game .tile{height:34px!important;min-width:25px!important;width:25px!important;padding:1px!important;font-size:12px!important;border-bottom-width:2px}#simulationPanel.compact-game .tile small{font-size:7px}#simulationPanel.compact-game .tile svg{max-height:20px}#simulationPanel.compact-game .rack,#simulationPanel.compact-game .tile-row{gap:2px;padding:4px;min-height:0}#simulationPanel.compact-game .sim-player{padding:8px} body:not([data-screen="terminology"]) #terminologyPanel{display:none!important}body[data-screen="terminology"] #terminologyPanel{display:block!important}body:not([data-screen="home"]) #homeLinks,body[data-screen="terminology"] #rackPrivacy{display:none!important}.info-help{display:inline-block;margin:6px 0}.info-help summary{cursor:pointer;font-weight:600;color:#176a55}.info-help p{max-width:650px;font-size:13px;line-height:1.5}.win-pie{width:160px;height:160px;border-radius:50%;margin:14px auto}.batch-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.batch-rack-box{margin:12px 0;padding:12px;background:#f3f7f4;border-radius:12px} .help-icon{border:0;background:transparent;color:#176a55;min-width:44px;min-height:44px;padding:8px;font-size:20px;vertical-align:middle}.coach-help{border:0;border-radius:18px;padding:22px;max-width:360px;box-shadow:0 10px 50px #0003;position:fixed;margin:0}.coach-help p{font-size:15px;line-height:1.6}.coach-help::backdrop{background:#0003}@media(max-width:699px){.coach-help{left:0!important;top:auto!important;bottom:0;width:100%;max-width:none;max-height:75vh;border-radius:20px 20px 0 0;padding-bottom:max(22px,env(safe-area-inset-bottom))}} body:not([data-screen="live"]) #liveGamePanel,body:not([data-screen="gameplay"]) #gamePlayMenu{display:none!important}body[data-screen="gameplay"] #simulationPanel{display:none!important}body[data-screen="watch"] #simulationPanel{display:block!important}body[data-screen="live"] #rackPrivacy,body[data-screen="watch"] #rackPrivacy{display:none!important}
#liveGamePanel button{min-height:44px}#liveGamePanel .tile:disabled{opacity:1}#liveGamePanel .live-target{border:1px solid #dce5de;border-radius:12px;padding:12px;margin:12px 0}#liveGamePanel .live-target h3{margin:0 0 8px}.live-picked{outline:3px solid #176a55;background:#dcf3e3}.live-log{max-height:280px;overflow:auto;white-space:pre-wrap;font-size:13px;line-height:1.5}.live-picker{border:0;border-radius:16px;width:min(820px,calc(100% - 16px));max-height:90dvh;padding:16px}.live-picker::backdrop{background:#102c23aa}.live-picker .keyboard{grid-template-columns:repeat(9,minmax(0,1fr))}.live-picker .rack{margin:12px 0}.live-picker button{min-height:44px}.live-picker h2{margin:0}.live-message{padding:12px;background:#edf5ee;border-radius:10px}.live-error{color:#7b201b;background:#fff0ed;border:2px solid #ad382f;border-radius:10px;padding:12px;font-weight:700}.live-error[hidden]{display:none}.live-discards{display:flex;flex-wrap:wrap;gap:12px;padding:14px 7px 6px 0}.live-discard-item{position:relative;display:inline-flex}.live-discard-item .tile{margin:0}.live-discard-badge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;display:flex;align-items:center;justify-content:center;padding:0 5px;background:#d92f3d;color:#fff;border:2px solid #fff;border-radius:999px;font-size:11px;line-height:1;font-weight:800;box-shadow:0 1px 3px #0002;pointer-events:none}#liveDiscardCounts{margin:16px 0}.live-seat{display:flex;gap:8px;align-items:center;flex-wrap:wrap}


/* Analysis exchanges keep pass controls beside the tiles and wrap on phones. */
.analysis-pass-row,.analysis-pass-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.analysis-pass-row{gap:12px}.analysis-pass-actions button{min-height:44px}
.analysis-pass-picker{border:0;border-radius:16px;width:min(850px,calc(100% - 16px));padding:0;max-height:calc(100dvh - 24px);box-shadow:0 18px 60px #0005}
.analysis-pass-picker::backdrop{background:rgba(10,29,25,.65)}
.analysis-pass-card{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}
.analysis-pass-card .tile-modal-head{gap:12px}.analysis-pass-card .tile-modal-content{min-height:0}
.analysis-pass-picker .rack{margin:8px 0}.analysis-pass-picker .rack .tile{cursor:pointer;touch-action:manipulation}
.analysis-pass-footer{display:flex;justify-content:flex-end;padding:10px 14px;flex-shrink:0;border-top:1px solid #e0e7e2}
@media(max-width:430px){.analysis-pass-actions{width:100%}.analysis-pass-actions button{flex:1 1 140px}}
/* Shared controls and responsive task layout. */
:root{--accent:#176a55;--line:#dce5de;--quiet:#f3f7f4}
body{line-height:1.45}header h1{font-size:clamp(19px,3vw,24px)}
.panel{box-shadow:0 2px 9px #12340008}
button,.filebtn,select,input[type=number],summary{min-height:44px}
button,.filebtn{touch-action:manipulation}
button:not(:disabled):focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #b47c18;outline-offset:3px}
button:disabled{cursor:default}.tile:disabled{opacity:1}.keyboard .tile:disabled{opacity:.35}
input[type=number]{border:1px solid #c4d2c8;border-radius:8px;padding:8px;font:inherit;max-width:100%}
select{font:inherit;max-width:100%}.controls label{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
summary{display:list-item;align-content:center;cursor:pointer;padding:7px 0}
#appNav{flex-wrap:wrap;gap:10px}#screenTitle{flex:1;min-width:130px;outline:none}
.route-select{max-width:220px;font-size:14px}
.rack-tools button,.rack-tools .filebtn{min-height:44px;font-size:13px}
.rack-settings{padding-bottom:10px;border-bottom:1px solid var(--line)}
.rack-settings select{min-height:44px}
#rackPanel>.controls{padding-top:4px}.rack-tools{gap:8px}
.skip-link{position:fixed;left:12px;top:-100px;z-index:20000;background:white;padding:12px;border-radius:8px}
.skip-link:focus{top:12px}
#mainContent:focus{outline:none}
.result-section{border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:14px 0}
.result-section>summary{font-weight:700;color:#17463b}
.batch-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.batch-summary>div{background:var(--quiet);border-radius:10px;padding:12px}
.batch-summary strong{display:block;font-size:24px;color:var(--accent)}
.batch-summary span{font-size:12px;color:#526760}
.batch-scroll{max-width:100%}.batch-lines{min-width:340px}
.live-target .tile-row .tile{opacity:1}.live-target{margin-top:12px}
@media(max-width:540px){
 header{padding-top:14px;padding-bottom:14px}.wrap{padding:12px 12px 40px}
 #appNav .route-select{flex-basis:100%;max-width:100%;width:100%}
 .rack-settings label{flex:1 1 130px}.rack-settings .hint-toggle{flex-basis:100%}
 .rack-tools button,.rack-tools .filebtn{flex:1 1 43%}.rack-tools #clear{flex-basis:100%}
 input[type=number],select{font-size:16px}
 .batch-summary>div{padding:10px}.batch-summary strong{font-size:21px}
 #batchPanel .controls>label{flex:1 1 140px;align-items:flex-start;flex-direction:column}
 #batchPanel .controls>label select{width:100%}
 .batch-actions button{flex:1 1 120px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

body[data-screen=charleston] #analysisPanel,body[data-screen=charleston] #selectedNeed{display:none!important}
@media(max-width:540px){
 .rack-settings label{min-width:0;flex-direction:column;align-items:flex-start}
 .rack-settings label.analysis-only{flex-basis:100%}
 .rack-settings select{width:100%;min-width:0}
 .rack-settings .hint-toggle{flex-direction:row;align-items:center}
}
.help-icon{position:relative;display:inline-grid;place-items:center;font-family:Georgia,serif;font-style:italic;font-size:16px;padding:0}
.help-icon::before{content:'';position:absolute;width:20px;height:20px;border:1.5px solid currentColor;border-radius:50%}
@media(max-width:540px){
 #batchPanel .controls>label:has(>.help-icon){display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 4px;align-items:center}
 #batchPanel .controls>label:has(>.help-icon)>select{grid-area:2/1/3/3}
 #batchPanel .controls>label>.help-icon{grid-area:1/2}
}
@media(max-width:540px){
 #screenTitle{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #appNav .route-select{flex:1 1 0;min-width:0;width:auto}
 .rack-settings{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:8px}
 .rack-settings .hint-toggle{grid-column:1/-1}
}
/* Short summary tables fit the phone; detailed tables scroll inside their region. */
.result-section .batch-lines{min-width:0;width:100%;table-layout:fixed}
.result-section .batch-lines td,.result-section .batch-lines th{overflow-wrap:anywhere}
/* Keep prior analysis from revealing the answer before target practice is rated. */
body[data-screen=target] #trainingResult.hidden ~ #analysisPanel,
body[data-screen=target] #trainingResult.hidden + #selectedNeed{display:none!important}


/* Game Situations uses its own rack and never changes a live session. */
body:not([data-screen="situations"]) #situationsPanel{display:none!important}
body[data-screen="situations"] #rackPrivacy{display:none!important}
.situation-rack .tile{cursor:pointer;touch-action:manipulation}
.situation-rack{flex-wrap:wrap}
.situation-count{position:relative;display:inline-flex;margin:4px 3px 0 0}
.situation-badge{position:absolute;right:-5px;top:-6px;border-radius:12px;background:#176a55;color:white;font-size:11px;font-weight:700;min-width:18px;text-align:center;padding:2px}
#situationsPanel button:not(.tile){min-height:44px}
#situationsPanel h4{margin-bottom:4px}
#situationFeedback:focus{outline:2px solid #176a55;outline-offset:4px}
/* V15 shared navigation and branding. */
body:not([data-screen="settings"]) #settingsPanel{display:none!important}
body[data-screen="settings"] #rackPrivacy{display:none!important}
header>div{position:relative;padding-right:108px}
header h1{display:flex;align-items:center;gap:12px}
.brand-mark{width:56px;height:56px;flex:none}
.settings-link{position:absolute;right:0;top:8px;display:flex;align-items:center;gap:7px;color:#fff;text-decoration:none;padding:9px;border:1px solid #ffffff50;border-radius:12px;min-height:44px}
.settings-link img{filter:brightness(0) invert(1)}
.menu-icon{width:62px;height:62px;margin-bottom:8px;display:block}
.inline-icon{width:23px;height:23px;vertical-align:middle;margin-right:4px}
#settingsPanel>div{padding:12px 0 22px;border-bottom:1px solid var(--line)}
#settingsPanel .hint-toggle{display:flex;gap:8px;align-items:center;min-height:44px}
@media(max-width:480px){header>div{padding-right:49px}.settings-link{width:44px;padding:9px;font-size:0}.settings-link img{width:24px;flex:none}.brand-mark{width:45px;height:45px}header h1{font-size:22px;gap:9px}.menu-icon{width:54px;height:54px}}

.game-style-dialog{width:min(560px,94vw);max-height:88vh;overflow:auto;border:1px solid #b9cec7;border-radius:16px;padding:24px;color:#173d35;background:#fbfcf9}
.game-style-dialog::backdrop{background:#082d2677}
.game-style-fields{display:grid;gap:14px;margin-top:18px}
.game-style-fields label{display:grid;gap:6px;font-weight:600}
.game-style-fields input,.game-style-fields select{width:100%;box-sizing:border-box;min-height:44px}
.game-style-picker{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;padding:12px;background:#f2f6f3;border:1px solid #d4e0d9;border-radius:10px}
.game-style-picker small,.game-style-picker p{flex-basis:100%;margin:0}.game-style-picker select{max-width:100%}.game-style-picker label{max-width:100%}
.tile.blank{color:#635d84;background:#faf8ff;border:2px dashed #9187a8}.tile.blank small{font-weight:800}.blank-exchanges{margin:12px 0}

.tile[hidden],.game-style-fields [hidden]{display:none}

.game-style-picker [hidden]{display:none}
.game-style-picker{min-width:0;max-width:100%;box-sizing:border-box;flex:1 1 100%}
.game-style-picker label{display:grid;gap:4px;min-width:0;flex:1 1 220px}
.game-style-picker select{min-width:0;width:100%;box-sizing:border-box}
.game-style-picker small{min-width:0;overflow-wrap:anywhere}

/* Shared tile appearance. Artwork does not intercept selection or discard badges. */
body[data-tile-size="compact"]{--tile-w:32px;--tile-h:44px}
body[data-tile-size="standard"]{--tile-w:48px;--tile-h:66px}
body[data-tile-size="large"]{--tile-w:64px;--tile-h:88px}
body[data-tile-size] .tile.tile{width:var(--tile-w);min-width:var(--tile-w);height:var(--tile-h);flex-shrink:0}
body[data-tile-size] .keyboard{grid-template-columns:repeat(auto-fit,var(--tile-w));justify-content:start}
.tile-art-face{display:none;pointer-events:none;user-select:none}
body[data-tile-style="traditional"] .tile-has-art{padding:0!important;border:0!important;background:transparent;box-shadow:none}
body[data-tile-style="traditional"] .tile-has-art>.tile-text-part{display:none}
body[data-tile-style="traditional"] .tile-has-art>.tile-art-face{display:block;width:100%;height:100%;object-fit:contain}
#tileAppearanceSettings select{font:inherit;min-height:44px;padding:6px;margin:4px 8px 4px 0;max-width:100%}
#tileAppearancePreview .tile{opacity:1}
body[data-tile-style="traditional"] .tile.mini.tile-has-art:disabled{opacity:1}

/* Account access sits at the top right of Home; cloud transfers stay in Settings. */
#homeAccount{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px;margin:0 0 16px;min-height:44px;font-size:14px}
body:not([data-screen="home"]) #homeAccount{display:none}
.home-account-actions{display:flex;gap:8px;flex:none}
#homeAccount button{min-height:44px;border:1px solid #ffffff70;background:transparent;color:#fff;padding:8px 14px}
#homeAccount button:hover{background:#ffffff18}
#homeAccount [hidden]{display:none}
#cloudIdentity{margin:0;min-width:0;flex:1 1 180px;overflow-wrap:anywhere}
.home-account-message{flex-basis:100%;margin:0;overflow-wrap:anywhere}

#homeAccount{text-align:right}
#homeAccount .home-account-actions{order:1}
#cloudIdentity{flex:0 1 auto}
#homeAccount .home-account-message{order:2}

/* Share one row instead of aligning against an absolutely positioned Settings link. */
body[data-screen="home"] header>div{padding-right:0}
.home-header-toolbar{display:contents}
body[data-screen="home"] .home-header-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin-bottom:16px}
body[data-screen="home"] .home-header-toolbar .settings-link{position:static;height:44px;min-height:44px;box-sizing:border-box}
#homeAccount{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin:0;min-width:0}
#homeAccount .home-account-actions{grid-column:2;grid-row:1}
#cloudIdentity{grid-column:1;grid-row:1}
#homeAccount .home-account-message{grid-column:1/-1;grid-row:2}
#homeAccount button{height:44px;white-space:nowrap}
body:not([data-screen="home"]) #homeAccount{display:none}

/* Human versus three coaches. */
body:not([data-screen="solo"]) #soloPanel,body[data-screen="solo"] #rackPrivacy{display:none!important}
#soloSetup{margin-bottom:16px}#soloSetup>summary{font-weight:650}
#soloSetup [hidden]{display:none!important}
#soloSetup select{max-width:100%}
.solo-opponents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.solo-opponents article{min-width:0;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--quiet)}
.solo-opponents h4{margin:0;overflow-wrap:anywhere}.solo-opponents .tile-row{flex-wrap:wrap}
.solo-rack{flex-wrap:wrap;gap:8px}.solo-rack .solo-selected{outline:3px solid #b47c18;outline-offset:2px;transform:translateY(-3px)}
#soloNotice:empty{display:none}#soloNotice{padding:12px;background:#fff1df;border-radius:10px}
#soloActions{align-items:center}#soloActions button{max-width:100%}
#soloLog{max-height:240px;overflow:auto;padding-left:24px}#soloLog li{margin:8px 0}
@media(max-width:540px){.solo-opponents{grid-template-columns:1fr}.solo-opponents article{padding:8px}.solo-opponents h4,.solo-opponents p{display:inline;margin-right:10px}#soloActions{align-items:stretch}#soloActions button{flex:1 1 140px}}
#soloRack .tile{touch-action:none;cursor:grab;-webkit-touch-callout:none}
#soloRack .tile:disabled{cursor:default}

/* Stable decision area: latest event, hand and actions stay together. */
#soloDecision{overflow-anchor:none}
#soloDecision[hidden]{display:none}
#soloLastEvent{height:104px;overflow:auto;padding:8px 12px;border:1px solid #bfd7cb;border-left:4px solid var(--accent);border-radius:12px;background:#edf5ef}
#soloLastEvent>strong{display:block;color:#43655a;font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}
.solo-event-body{display:flex;gap:12px;align-items:flex-start}
.solo-event-body>.tile{flex:none;width:45px;height:60px}
.solo-event-body>div{min-width:0}
.solo-event-body p{margin:0 0 4px;font-size:18px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.solo-event-body p:last-child{margin-bottom:0}
#soloStatus{min-height:2.9em;margin:14px 0 0;font-size:18px;outline:none}
#soloDecision>h3:not(#soloStatus){font-size:15px;margin:12px 0 8px}
#soloDecision>.muted{margin:0 0 8px}
#soloActions{min-height:96px;align-content:flex-start;margin-bottom:16px}
.solo-action-note{flex-basis:100%;font-size:13px;color:#526760;margin:0}
#soloTableDetails>details{border-top:1px solid var(--line);padding:8px 0}
#soloTableDetails>details>summary{font-weight:650}
#soloStatus{height:2.9em;min-height:0;overflow:auto}

#soloRack .solo-dragging{opacity:.3}
#soloRack .solo-drop-target{outline:3px solid #b47c18;outline-offset:2px}
.solo-drag-ghost{position:fixed;z-index:20001;pointer-events:none;opacity:.92;cursor:grabbing;box-shadow:0 8px 24px #0004}
.solo-coach-box{border:1px solid #bfd7cb;border-radius:12px;padding:14px;margin:12px 0 18px;background:#f5f9f5}
.solo-coach-box h2,.solo-coach-box h3{margin:0 0 8px}.solo-coach-box h3:not(:first-child){margin-top:20px}
.solo-coach-box .tile-row{flex-wrap:wrap}.solo-coach-box p{margin:8px 0}
.solo-recommendation{font-size:18px;font-weight:700;line-height:1.4}
#soloRack .solo-recommended{box-shadow:0 0 0 3px #34785b}
.solo-review-score{font-size:28px;font-weight:750}
.solo-review-ratings{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:10px;margin:16px 0}.solo-review-ratings dt{font-weight:650}.solo-review-ratings dd{margin:0}
.solo-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.solo-progress article{display:flex;flex-direction:column;padding:10px;background:white;border:1px solid var(--line);border-radius:8px}.solo-progress strong{font-size:24px}.solo-progress span,.solo-progress small{font-size:12px}
.solo-review-table{overflow:auto}.solo-review-table table{width:100%;border-collapse:collapse}.solo-review-table th,.solo-review-table td{text-align:left;padding:8px;border-bottom:1px solid var(--line)}
#soloTopImprovements{padding-left:24px}#soloTopImprovements li{margin-bottom:14px}
@media(max-width:540px){#soloLastEvent{height:112px}.solo-event-body p{font-size:17px}.solo-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.solo-review-ratings{font-size:14px}}

/* V15 table view: one set of game controls, rearranged without changing game state. */
.solo-view-tools{justify-content:space-between;align-items:center}.solo-view-tools label{display:flex;align-items:center;gap:8px}
#soloHand,#soloTableCenter,#soloTableDiscards{min-width:0}#soloHand>h3{font-size:15px;margin:12px 0 8px}
.solo-seat-label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 6px}.solo-seat.solo-turn{outline:2px solid #c59b43}
.solo-choice-dialog{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #a8c2b5;border-radius:16px;padding:22px;color:#18332e;background:#fcfcf7;box-shadow:0 20px 70px #0004}
.solo-choice-dialog::backdrop{background:#0b2d286e}.solo-choice-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px}.solo-choice-head h2{margin:0;font-size:22px}.solo-choice-dialog>button{margin:6px 8px 0 0}.solo-choice-dialog .tile-row{flex-wrap:wrap;gap:8px}.solo-choice-dialog .solo-selected{outline:3px solid #b47c18;outline-offset:2px;transform:translateY(-3px)}.solo-claim-tiles{padding:8px 3px}.solo-choice-status{min-height:24px;font-weight:650}.solo-joker-choice{display:block;width:100%;padding:14px;text-align:left}.solo-joker-choice[aria-pressed=true]{outline:3px solid #b47c18;background:#eef5e8}.solo-joker-choice .tile-row{pointer-events:none}.solo-move-log{padding-left:22px}.solo-move-log li{margin:12px 0;line-height:1.5}.solo-choice-dialog button:focus-visible{outline:3px solid #b47c18;outline-offset:3px}
body[data-screen=solo].solo-wide .wrap{max-width:1440px}
.solo-table-view #soloContent{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:start}
.solo-table-view #soloNotice{grid-column:1/-1;margin:0}
.solo-table-view #soloDecision{display:grid;grid-template-columns:145px minmax(0,1fr) 145px;grid-template-areas:'. opposite .' 'left center right' 'hand hand hand';gap:16px;background:radial-gradient(ellipse at center,#36725f,#194b3d);border:6px solid #d4c3a0;border-radius:22px;padding:16px;color:#f6f8ef;box-shadow:0 5px 0 #b2a07e}
.solo-table-view #soloDecision[hidden]{display:none}
.solo-table-view #soloTableCenter{grid-area:center;align-self:center;display:flex;flex-direction:column;text-align:center}
.solo-table-view #soloStatus{order:-2;height:auto;min-height:45px;margin:0 0 8px;padding:9px;background:#e1ebd2;color:#244331;border-radius:12px;font-size:16px}
.solo-table-view #soloLastEvent{height:100px;text-align:left;background:#ffffff0d;border:1px solid #ffffff40;color:#fff}
.solo-table-view #soloLastEvent>strong{color:#c4d9ce}.solo-table-view .solo-event-body p{font-size:16px}
.solo-table-view #soloTableCenter>.muted{color:#cee0d4;font-size:12px}
.solo-table-view #soloHand{grid-area:hand;border-top:1px solid #ffffff40;padding-top:6px}
.solo-table-view #soloRack{background:#ffffff0d;gap:5px;border-bottom:6px solid #bca77d;min-height:84px;border-radius:8px 8px 0 0;justify-content:center}
.solo-table-view #soloRack .tile{flex:none;min-width:35px}
.solo-table-view #soloActions{min-height:0;margin-bottom:0;justify-content:center}.solo-table-view #soloActions button{background:#f9f8ef;color:#234b3e}.solo-table-view #soloActions .primary{background:#ecd6a3;border-color:#ecd6a3}.solo-table-view .solo-action-note{color:#ecf0e7}
.solo-table-view #soloOpponents{display:none}
.solo-table-view .solo-seat{align-self:center;min-width:0;padding:12px;border-radius:12px;background:#103e3280;border:1px solid #ffffff25;overflow-wrap:anywhere}
.solo-table-view .solo-seat h4{margin:4px 0 8px;font-size:15px}.solo-table-view .solo-seat .muted{color:#c5d9cd;margin:5px 0;font-size:12px}
.solo-table-view .solo-seat-1{grid-area:right}.solo-table-view .solo-seat-2{grid-area:opposite;justify-self:center;min-width:240px;max-width:100%;text-align:center}.solo-table-view .solo-seat-3{grid-area:left}
.solo-table-view .solo-seat .tile-row{justify-content:center;gap:3px}.solo-table-view .solo-seat .tile{min-width:25px;height:39px;font-size:16px;padding:2px}.solo-table-view .solo-seat .tile small{font-size:7px}
.solo-table-view #soloDiscardDetail>summary{font-size:12px;font-weight:700;letter-spacing:.04em;margin-bottom:10px}.solo-table-view #soloDiscardDetail{border-top:1px solid #ffffff35;padding-top:14px}.solo-table-view #soloTableDiscards .discard-board{justify-content:center}
.solo-table-view #soloTableDetails{min-width:0}.solo-table-view #soloHint{margin-top:0}.solo-table-view #soloHistoryDetail{display:none}
@media(min-width:1024px) and (max-width:1199px){.solo-table-view #soloContent{grid-template-columns:1fr}.solo-table-view #soloTableDetails{display:block}.solo-table-view #soloDecision{grid-template-columns:145px minmax(0,1fr) 145px}}
@media(max-width:540px){.solo-choice-dialog{padding:16px}.solo-choice-dialog .tile{min-width:38px}.solo-choice-head h2{font-size:19px}}
.solo-coach-prompt{display:none}.solo-table-view .solo-coach-prompt{display:block;margin-top:0}
.solo-table-view #soloDecision{gap:12px}.solo-table-view .solo-seat h4+.muted{display:none}
.solo-table-view #soloLastEvent{height:104px;padding:6px 10px}.solo-table-view .solo-event-body>.tile{height:50px}
.solo-table-view #soloTableDiscards .live-discards{justify-content:center;margin:8px 0;max-height:170px;overflow:auto;padding:8px 5px}
.solo-table-view #soloTableDiscards .live-discards .tile{height:46px;min-width:31px}
.solo-table-view #soloTableDiscards .muted{color:#cee0d4}
.solo-table-view .solo-view-tools>.muted:empty{display:none}

.rack-settings .game-style-picker{margin:0;padding:0;border:0;background:none;flex:1 1 220px}.rack-settings .game-style-picker small{font-size:12px}.blank-recovery-note{font-size:.88rem;color:#285b50;margin:6px 0;line-height:1.4}

/* Labels stay above form fields at every screen size. Explanatory text gets its own row. */
.rack-settings{display:grid;grid-template-columns:minmax(170px,1.1fr) 100px minmax(260px,1.6fr);align-items:start;gap:10px}
.rack-settings>label:not(.hint-toggle),.controls>label:has(>select),.controls>label:has(>input[type=number]),#analysisPanel>div>label:has(>select){display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;font-size:13px;font-weight:650}
.rack-settings select,.controls>label>select,.controls>label>input[type=number]{min-height:44px;margin:0;font-size:16px;width:100%;box-sizing:border-box}
.rack-settings .hint-toggle{grid-column:1/-1;align-self:center}
.controls:has(>label>select),.controls:has(>label>input[type=number]){align-items:end}
.controls>label:has(>.help-icon){display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:0 4px;align-items:center}
.controls>label:has(>.help-icon)>select{grid-area:2/1/3/3}.controls>label>.help-icon{grid-area:1/2;min-height:24px;height:24px;width:24px}
.game-style-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 8px}
.game-style-picker>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:13px;font-weight:650}
.game-style-picker>button{align-self:end;min-height:44px;margin:0}
.game-style-picker>small,.game-style-picker>p{grid-column:1/-1}
.game-style-picker>p:empty{display:none}
.game-style-picker>select,.game-style-picker label select{min-height:44px;font-size:16px;margin:0}
.game-style-picker>button:nth-of-type(2):not([hidden]){grid-column:1/-1;justify-self:start}
.charleston-progress{font-weight:750;color:#175e4c;margin:6px 0 12px;font-size:15px}
.analysis-pass-options{margin:8px 0;align-items:center!important}.analysis-pass-options label{max-width:190px}.analysis-pass-options p{flex:1 1 180px;margin:0}
.analysis-custom-pass{margin:10px 0}.analysis-custom-pass summary{font-size:13px;color:#345f52;cursor:pointer}
.analysis-custom-pass .tile{min-height:48px;cursor:pointer}.analysis-custom-pass .tile.pass-selected{outline:3px solid #238d62;outline-offset:1px}
.hand-strengths{margin:14px 0;padding:12px;border:1px solid #bbd5c9;border-radius:10px;background:#fff}
.hand-strengths ul{margin:8px 0 0;padding-left:20px;display:grid;gap:9px}.hand-strengths li{font-size:14px}.hand-strengths small{display:block;color:#527064;font-size:12px;margin-top:3px}
.analysis-pass-evidence{width:100%}.analysis-pass-row{row-gap:12px}.analysis-pass-actions button{white-space:normal}
#analysisPassReceipt{margin:0}.charleston-improvement{font-weight:750;font-size:18px;color:#175e4c}.charleston-report-target{padding:12px;margin:12px 0;background:#f1f7f2;border-radius:10px}
#analysisCharlestonReport ol{padding-left:22px}#analysisCharlestonReport li{margin-bottom:14px}
#analysisPlayerComparison{margin:12px 0 0;border:1px solid #b9cec4;border-radius:10px;background:#fff;padding:12px}#analysisPlayerComparison summary{font-weight:700;cursor:pointer}#analysisPlayerComparison select{margin-top:12px;width:100%;min-height:44px}
@media(min-width:900px){.selected-target:has(#analysisPlayerComparison){display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr);gap:12px;align-items:start}#analysisPlayerComparison{margin:0}.hand-strengths ul{grid-template-columns:1fr 1fr}}
@media(max-width:740px){.rack-settings{grid-template-columns:minmax(0,1fr) 110px}.rack-settings .game-style-picker{grid-column:1/-1}.rack-settings .hint-toggle{grid-column:1/-1}.hand-strengths ul{grid-template-columns:1fr}}
@media(max-width:380px){.game-style-picker{grid-template-columns:minmax(0,1fr)}.game-style-picker>button{justify-self:start}.analysis-pass-actions button{flex-basis:100%}}

#analysisPassReceipt>.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.analysis-custom-selection>.hint-message{display:none}
