/* 8 Mahjong scoring workspace v234. Scoped presentation only; no scoring rules. */
#scoringAppHeader{display:none}
body.scoring-mode.scoring-ui-ready{background:#f7f1e3;color:#183e30;--sd-green:#086a47;--sd-dark:#103e2e;--sd-gold:#bd923d;--sd-line:#deceb0;--sd-paper:#fffcf5;--sd-ink:#193d30;--sd-muted:#796a4e;--sd-header:68px}
body.scoring-mode.scoring-ui-ready:before{display:none}
body.scoring-mode.scoring-ui-ready>.page{max-width:1160px;padding:20px 24px 70px}
body.scoring-mode.scoring-ui-ready>.page>header,body.scoring-mode.scoring-ui-ready .tabs{display:none!important}
body.scoring-mode.scoring-ui-ready #scoringAppHeader{display:block;position:sticky;top:0;z-index:40;background:linear-gradient(110deg,#15563e,#103b2d);border-bottom:2px solid #bb974f;color:#fff4d9;box-shadow:0 3px 12px #15392818}
.sd-topbar{max-width:1160px;margin:auto;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 24px}
#scoringAppHeader button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:9px 14px;border:1px solid #ccaf6e;border-radius:10px;color:#fff5de;background:transparent;box-shadow:none;font-family:Georgia,serif;font-size:15px;letter-spacing:0}
#scoringAppHeader .sd-brand{border:0;padding:0;text-align:left;gap:10px}
.sd-brand img{width:32px;height:46px;object-fit:contain;filter:none}
.sd-brand-name{font:600 26px Georgia,serif;color:#f1dcaa;white-space:nowrap}.sd-brand-label{font:600 12px Arial,sans-serif;letter-spacing:2px;border-left:1px solid #c6b07866;margin-left:12px;padding-left:15px;color:#fff4dd}
.sd-nav-end{display:flex;gap:8px}#scoringAppHeader #sdRoomButton{background:#fff9ea;color:#234833}
.sd-icon{width:20px;height:20px;flex:none;display:inline-block;vertical-align:middle;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#scoring.sd-root{font-family:Arial,Helvetica,sans-serif;line-height:1.45}#scoring.sd-root .tile-calculator{padding:0;margin:0;border:0;background:none;box-shadow:none}
#scoring.sd-root [hidden],.sd-dialog [hidden]{display:none!important}
#scoring.sd-root button,.sd-dialog button{font-family:inherit;letter-spacing:0;font-weight:600;min-height:44px;touch-action:manipulation}
#scoring.sd-root button:disabled{cursor:not-allowed;opacity:.43;transform:none}
#scoring.sd-root :focus-visible,#scoringAppHeader :focus-visible,.sd-dialog :focus-visible{outline:3px solid #b47e20;outline-offset:3px}
#scoring.sd-root h2,#scoring.sd-root h3{font-family:Georgia,'Times New Roman',serif;color:#194f38}
#scoring.sd-root button{transition:background-color .12s,border-color .12s}
#scoring.sd-root select,#scoring.sd-root input,.sd-dialog select,.sd-dialog input{font-size:16px;border:1px solid #d5c3a0;border-radius:8px;background:#fffef9;color:#1c4533;min-height:44px;padding:9px 10px;line-height:1.3}
.sd-panel{border:1px solid #d6bc84;border-radius:15px;background:#fffcf5;box-shadow:0 4px 14px #694b1410}
#sdSettings{margin:0 0 14px;overflow:visible}
.sd-settings-main{display:grid;grid-template-columns:1.15fr 1fr 1fr .8fr 1fr;gap:0;padding:13px 8px 11px}
.sd-field{min-width:0;padding:0 14px;border-right:1px solid #e3d7bf;display:flex;flex-direction:column;justify-content:center;gap:2px}
.sd-field label{font-size:12px;font-weight:500;color:#796a4e;display:block;letter-spacing:.2px}
#sdSettings .sd-field select,#sdSettings .sd-field input{width:100%;margin:0;padding:6px 22px 6px 0;font-family:Georgia,serif;font-size:17px;font-weight:600;background-color:transparent;border:1px solid transparent;border-radius:4px;box-shadow:none}
#sdSettings .sd-field input{padding-right:2px}#sdSettings .sd-field select:focus,#sdSettings .sd-field input:focus{border-color:#cbb57f;background:#fffdf5}
#sdMoreButton{display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:8px;box-shadow:none;background:transparent;color:#244936;font-size:14px;margin:0 8px;padding:8px 10px;text-align:left}
#sdMoreButton small{display:block;font-weight:400;color:#796a4e;font-size:12px}
.sd-setting-summary{display:flex;justify-content:space-between;gap:8px;padding:8px 20px;border-top:1px solid #eee3ce;background:#faf5e9;border-radius:0 0 15px 15px;color:#776244;font-size:12px;min-height:34px;align-items:center}
.sd-setting-summary b{font-weight:500;color:#27543d}.sd-setting-summary .sd-event{color:#80550d}
#sdMoreSettings{padding:16px 20px;border-top:1px solid #e0d0ad}
#sdMoreSettings>.scoring-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#sdMoreSettings .score-settings{grid-template-columns:repeat(2,minmax(0,1fr));background:transparent;padding:12px 0 0;margin:10px 0 0;border:0;border-top:1px solid #e3d7bf}
#sdMoreSettings .scoring-grid>div>label,#sdMoreSettings .score-settings label{font-size:12px;display:block;color:#756447}
#sdMoreSettings #hkAdvanced{margin:14px 0 0;background:#f9f5eb;border-color:#dfd0ae}
#sdMoreSettings #hkAdvanced>summary{font-size:13px;padding:12px}
#sdMoreSettings #mcrSettings>.score-note{font-size:13px;margin-top:12px}
#scoring.sd-root #scoreInstruction{display:none}
#scoring.sd-root #scoreHandReview{margin:0;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}
#sdPhotoCard{margin-bottom:14px;padding:14px 16px}
.sd-photo-top{display:flex;align-items:center;gap:16px;min-width:0}
.sd-photo-buttons{display:flex;gap:10px;flex:none}
#scoring.sd-root #scoreCameraButton,#scoring.sd-root #scoreUploadButton{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;background:#f8f5eb;color:#16543c;border:1px solid #daccb3;border-radius:10px;box-shadow:none;padding:14px 22px;font:600 16px Georgia,serif;min-height:90px}
#scoring.sd-root #scoreCameraButton .sd-icon,#scoring.sd-root #scoreUploadButton .sd-icon{width:26px;height:26px}
.sd-photo-empty{font-size:13px;color:#897551;margin:0;padding:0 12px;flex:1}
#sdPhotoOpen{padding:0;border:0;box-shadow:none;border-radius:10px;overflow:hidden;display:block;background:#efeadf;position:relative;flex:1;min-width:0;color:#fff}
#scoring.sd-root #scoreScanPreview{width:100%;display:block;height:auto;max-height:210px;object-fit:contain;margin:0;border-radius:10px}
#sdPhotoOpen .sd-photo-caption{display:block;text-align:center;font-size:11px;color:#f7f0e0;background:#213b2de6;padding:5px 8px;line-height:1.3}
#sdRemovePhoto{padding:9px 12px;display:inline-flex;gap:6px;align-items:center;background:transparent;border:1px solid #e3caba;box-shadow:none;color:#953e32;border-radius:9px;font-size:12px;white-space:nowrap}
.sd-photo-options{margin-top:8px;color:#786847;font-size:12px}.sd-photo-options>summary{cursor:pointer;padding:4px 0;min-height:28px}
#scoring.sd-root .sd-photo-options label{margin:8px 0 4px!important;font-size:13px!important;line-height:1.45}#scoring.sd-root #scoreUseCloud{min-height:20px;min-width:20px}
#scoring.sd-root #scoreScanStatus{font-size:13px!important;margin:6px 0 0;line-height:1.45;color:#75613d}
#scoring.sd-root #scoreScanStatus:empty,#scoring.sd-root #scanDiagnosticWrap:empty{display:none}
#scoring.sd-root #scanDiagnosticWrap{font-size:12px;margin:8px 0 0!important}
#scoring.sd-root #scoreHandSticky{position:sticky;top:calc(var(--sd-header,68px) + 8px);z-index:25;padding:13px 16px 12px;background:#fffcf5;border:1px solid #dac28d;border-radius:14px;box-shadow:0 5px 18px #634b1920;margin:0 0 14px;overflow-anchor:none}
#scoring.sd-root #scoreHandSticky .selected-hand-head{align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:17px;color:#164b35;line-height:1.2}
#scoring.sd-root #scoreHandSticky .selected-hand-head>b{font-family:Georgia,serif;font-size:21px;letter-spacing:.2px}
#scoring.sd-root #scoreTileCount{font-family:Arial,sans-serif;font-size:13px;font-weight:600;white-space:normal;color:#8b6c28;line-height:1.3}
#scoring.sd-root #scoreSelectedTiles{display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:12px 6px;min-height:70px;max-height:min(30vh,250px);overflow-y:auto;overflow-x:hidden;margin:9px 0 6px;padding:8px 2px 5px;scrollbar-width:thin}
#scoring.sd-root #scoreHandSticky .selected-tile{flex:none;width:clamp(44px,4.8vw,62px);min-width:44px;min-height:56px;height:clamp(56px,6vw,75px);margin:0;padding:3px 1px;font-size:42px;line-height:1;border:1px solid #be963f;border-radius:9px;background:linear-gradient(#fffefc,#faf5e9);box-shadow:0 3px 3px #7d61201a;display:flex;align-items:center;justify-content:center;color:#124e36}
#scoring.sd-root .sd-tile-glyph{font-family:'Apple Symbols','Noto Sans Symbols 2','Segoe UI Symbol',serif;font-variant-emoji:text;font-weight:400;line-height:1;letter-spacing:0;display:block;pointer-events:none}
#scoring.sd-root .sd-red-tile{color:#962e2c!important}
#scoring.sd-root #scoreSelectedTiles .scan-badge{font-size:8px;line-height:1.1;border-radius:5px;padding:2px 3px;top:-7px;right:-2px;pointer-events:none}
#scoring.sd-root #scoreSelectedTiles .scan-uncertain{outline-width:2px;outline-offset:1px}
#scoring.sd-root .empty-hand{font-size:13px;font-weight:400;color:#887958;display:block;width:100%;padding:14px;text-align:center;border:1px dashed #deceb1;border-radius:9px;background:#fbf7ee}
.sd-hand-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px;font-size:11px;color:#8c7b58}
.sd-hand-tools>span{display:inline-flex;align-items:center;gap:5px}
.sd-small-actions{display:flex;align-items:center;gap:5px}
#scoring.sd-root .sd-small-actions button{background:transparent;box-shadow:none;border:0;padding:5px 8px;font-size:11px;min-height:30px;color:#647450;display:flex;align-items:center;gap:4px;border-radius:6px}
#scoring.sd-root .sd-small-actions button.danger{color:#9b4837}#scoring.sd-root .sd-small-actions .sd-icon{width:14px;height:14px}
#scoring.sd-root #scoreAction{display:flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(100deg,#098359,#076847);border:1px solid #b9974e;border-radius:10px;min-height:48px;padding:10px 12px;margin-top:7px;width:100%;box-shadow:0 3px 6px #23533113;color:#fff9e8;font-family:Georgia,serif;font-size:18px;letter-spacing:.7px;font-weight:700}
#sdTilePicker{padding:10px 12px 14px;margin:0 0 14px}
.sd-tile-tabs{display:flex;gap:5px;margin-bottom:12px;border-bottom:1px solid #e6dac1;padding-bottom:10px}
#scoring.sd-root .sd-tile-tab{flex:1;min-width:0;min-height:48px;padding:9px 5px;background:#f6f1e5;color:#234e3a;border:1px solid transparent;box-shadow:none;border-radius:8px;font-family:Georgia,serif;font-size:14px;font-weight:600;white-space:normal;line-height:1.2}
#scoring.sd-root .sd-tile-tab[aria-selected=true]{background:#08794f;color:#fff8e4;border-color:#08794f}
.sd-picker-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}
#scoring.sd-root .sd-picker-panels>.tile-section{margin:0;min-width:0}
#scoring.sd-root .sd-picker-panels>.tile-section>h3{display:none}
#scoring.sd-root .sd-picker-panels .tile-grid{display:grid;grid-template-columns:repeat(9,minmax(44px,1fr));gap:7px;margin:0}
#scoring.sd-root .sd-picker-panels .tile-grid.honors{grid-template-columns:repeat(7,minmax(44px,1fr))}
#scoring.sd-root .sd-picker-panels .tile-grid.bonus{grid-template-columns:repeat(8,minmax(44px,1fr))}
#scoring.sd-root .tile-btn{min-height:102px;padding:6px 3px;background:#fffcf6;border:1px solid #c9aa65;box-shadow:0 3px 4px #78632c12;border-radius:9px;line-height:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#155039;font-size:45px;font-weight:400}
#scoring.sd-root .tile-btn>small{margin:0;font-size:12px;color:#384e3c;font-family:Arial,sans-serif;line-height:1.2}
#scoring.sd-root .sd-copy-count{font-size:10px;color:#8d7953;font-family:Arial,sans-serif;line-height:1.2;font-weight:500;min-height:12px}
#scoring.sd-root .tile-btn.sd-used{border-color:#176744;background:#eef6ec}#scoring.sd-root .tile-btn:disabled{opacity:.45;background:#eeece4}
.sd-picker-note{font-size:11px;color:#827356;margin:10px 0 0}
#scoring.sd-root #scoreTileInputControls{min-width:0}
#scoring.sd-root #kongControls{padding:0;margin:0;background:transparent;border:0;border-radius:0;color:#6d623f}
#scoring.sd-root #kongControls>label{display:none}
#scoring.sd-root #kongControls>small{display:none}
.sd-mode-title{font:600 15px Georgia,serif;color:#234c38;margin-bottom:8px}
.sd-kong-modes{display:flex;gap:6px}
#scoring.sd-root .sd-mode{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:80px;padding:9px 5px;font-size:12px;background:#f8f4e9;border:1px solid #dccba6;border-radius:9px;color:#26503a;box-shadow:none;line-height:1.3}
#scoring.sd-root .sd-mode[aria-pressed=true]{color:#fff8e7;background:#08734e;border-color:#08734e}.sd-mode .sd-icon{width:24px;height:24px}
#kongGroups:not(:empty){border-top:1px solid #e5d8bc;margin-top:10px;padding-top:4px}#kongGroups label{font-size:13px}
#scoring.sd-root #kongGroups select{font-size:14px;margin:4px 0 0}
#scoring.sd-root #scoreResult{padding:18px;margin:0 0 14px;border:1px solid #cfb77d;border-left:3px solid #b7892d;background:#fffcf5;border-radius:14px;font-size:14px;scroll-margin-top:calc(var(--sd-header,68px) + 14px);overflow-wrap:anywhere}
#scoring.sd-root #scoreResult:empty{display:none}
#scoring.sd-root .sd-room-preview{grid-column:1/-1;border-top:1px solid #cfb77d;padding-top:14px;margin-top:4px}#scoring.sd-root .sd-room-preview h3{margin:0 0 4px;font-size:15px;color:#174b35}#scoring.sd-root .sd-room-preview p,#scoring.sd-root .sd-room-preview small{font-size:11px;color:#7b6a4c}#scoring.sd-root .sd-room-preview-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #eadfc7;font-size:14px}#scoring.sd-root .sd-room-preview-row b{color:#174b35}#scoring.sd-root .sd-send-room{width:100%;margin-top:12px;min-height:46px;background:#087a45;color:#fff9e9;border-color:#087a45}#scoring.sd-root .sd-send-room:disabled{opacity:.72;cursor:default}#scoring.sd-root .sd-room-request-status{font-size:12px;color:#17613f;margin-top:8px;min-height:16px}#scoring.sd-root .sd-room-warning{margin:8px 0 0;padding:10px 12px;border:1px solid #dfc27b;border-radius:10px;background:#fff7df;color:#745b20;font-size:12px;line-height:1.45}
.sd-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.sd-result-heading h2{margin:0!important;font-size:23px;letter-spacing:.5px}.sd-result-heading>span{font-size:12px;color:#8c784a}
.sd-result-grid{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.8fr);gap:16px}
.sd-result-stats{background:linear-gradient(140deg,#e2f3e9,#d6ecdf);border:1px solid #d2e6d7;border-radius:12px;text-align:center;padding:17px 16px;color:#14533b}
.sd-metric-label{font-size:11px;letter-spacing:1.5px;font-weight:600;text-transform:uppercase;margin:0 0 3px;color:#39745b}
#scoring.sd-root .sd-result-stats .score-result-title{font-family:Georgia,serif;font-size:70px;color:#075f40;margin:0;line-height:1.15;font-weight:600}
.sd-metric-payment{border-top:1px solid #b0d0bd;margin-top:13px;padding-top:12px}
.sd-payment-number{font-family:Georgia,serif;font-weight:600;font-size:37px;line-height:1.2;overflow-wrap:anywhere;color:#104c35}
.sd-payment-unit{font-size:13px;margin-top:2px}
#scoring.sd-root .sd-result-stats .score-payment{margin:12px 0 0;padding:0;background:transparent;border:0;font-size:12px;line-height:1.55;color:#2e624c}
.sd-result-breakdown{min-width:0}.sd-result-breakdown>h3{font-size:15px;margin:0!important;padding:10px 12px;background:#f5f0e5;border-radius:9px 9px 0 0}
#scoring.sd-root .score-patterns{list-style:none;margin:0!important;padding:0!important;border:1px solid #ebe1cb;border-radius:0 0 10px 10px;overflow:hidden}
#scoring.sd-root .score-patterns>li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:9px 12px;border-bottom:1px solid #eee7d9;font-size:14px;color:#263c2e;background:#fffdf8;line-height:1.45}
#scoring.sd-root .score-patterns>li:last-child{border-bottom:0}#scoring.sd-root .score-patterns>li:nth-child(even){background:#fbf8f0}
#scoring.sd-root #scoreResult .hk-result-link{display:flex;align-items:center;justify-content:space-between;gap:8px;font:500 15px Georgia,serif;color:#254a35;text-decoration:none;letter-spacing:0;border:0;box-shadow:none;background:transparent;padding:4px 0;min-height:34px;width:100%;text-align:left}
#scoring.sd-root .hk-result-link:after{content:'›';font-family:Arial,sans-serif;color:#947d48;font-size:20px}
.sd-pattern-value{font-size:13px;color:#24462f;white-space:nowrap}.sd-pattern-extra{grid-column:1/-1;font-size:12px;color:#7e714f}
.sd-result-breakdown #hkIncludedPatterns{margin-top:12px!important;padding:10px 12px;border:1px solid #ddd0b3;border-radius:9px;background:#f8f4e9}
.sd-result-breakdown #hkIncludedPatterns>summary{min-height:24px;cursor:pointer;color:#72603a}
.sd-result-breakdown #hkIncludedPatterns p{line-height:1.6;margin:7px 0 0}
#scoring.sd-root #hkGroupingReview{font-size:13px;margin:12px 0 0;padding:12px;background:#f9f5e9;border:1px solid #dfcfad;border-radius:9px}
.sd-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
#scoring.sd-root .sd-result-actions button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:11px 12px;border:1px solid #cba659;border-radius:10px;background:#fffcf4;color:#235238;box-shadow:0 2px 5px #5e472011;font:600 16px Georgia,serif}
#scoring.sd-root .sd-result-actions .sd-leaderboard{background:linear-gradient(110deg,#d8b45c,#cda044);color:#293b25;border-color:#bd933c}
#scoring.sd-root.sd-result-state #scoreHandSticky{position:relative;top:auto}
#scoring.sd-root.sd-result-state #sdTilePicker{display:none}
#scoring.sd-root #scoreAccessNote{display:none}
.sd-dialog{border:1px solid #c6a25a;border-radius:16px;background:#fffcf5;color:#234b37;box-shadow:0 20px 90px #09221755;padding:0;max-width:min(760px,calc(100vw - 24px));width:720px;max-height:88vh;max-height:88dvh;font-family:Arial,Helvetica,sans-serif;overscroll-behavior:contain}
.sd-dialog::backdrop{background:#0b211ccc;backdrop-filter:blur(3px)}
.sd-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;position:sticky;top:0;z-index:2;padding:14px 18px;background:#fffcf5;border-bottom:1px solid #dfcda8}
.sd-dialog-head h2{font:600 22px Georgia,serif;margin:0;color:#174c33}.sd-dialog-head button{width:44px;padding:8px;border:1px solid #dac79b;background:#f9f5e9;border-radius:9px;box-shadow:none;color:#255b42;display:flex;justify-content:center;align-items:center}
.sd-dialog-body{padding:12px 18px 20px;overflow:auto;min-height:0}
.sd-dialog #hkWiki{border:0;margin:0;background:none;overflow:visible}.sd-dialog #hkWiki>summary{display:none}.sd-dialog #hkWiki>.hk-body{padding:0}
.sd-dialog #hkWikiList{max-height:none;overflow:visible;margin-top:14px}.sd-dialog #hkWikiTools{position:sticky;top:0;z-index:1;background:#fffcf5;padding:2px 0 8px}
/* Wiki has one bounded scroll surface; the title and close button never scroll away. */
#sdWikiDialog[open]{display:flex;flex-direction:column;height:min(720px,88vh);height:min(720px,88dvh);overflow:hidden}
#sdWikiDialog>.sd-dialog-head{position:relative;flex:0 0 auto}
#sdWikiDialogBody{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto;overflow-anchor:none}
#sdWikiDialog .hk-pattern[data-wiki-linked="true"]{background:#edf5ef;border-radius:8px;box-shadow:inset 3px 0 0 #087a45;padding-left:10px;padding-right:8px}
.sd-dialog .hk-pattern>summary{min-height:48px;font-size:14px}.sd-dialog .hk-pattern p{font-size:14px;line-height:1.65}
.sd-dialog #mcrWikiFull>h3:first-child{display:none}.sd-dialog table{width:100%;table-layout:auto}.sd-dialog table td,.sd-dialog table th{font-size:13px;padding:9px;overflow-wrap:anywhere}
.sd-dialog .score-formula,.sd-dialog p{font-size:14px;line-height:1.6}.sd-dialog .score-wiki{margin:0;border:0}.sd-dialog .score-wiki>summary{display:none}.sd-dialog .score-wiki-body{padding:0}
#sdPhotoDialog{width:min(1100px,calc(100vw - 24px));max-width:calc(100vw - 24px)}#sdPhotoDialog .sd-dialog-body{padding:12px;background:#122c22}
#sdPhotoLarge{width:100%;height:auto;max-height:70vh;max-height:70dvh;object-fit:contain;display:block}
@media(min-width:1100px){#scoring.sd-root .selected-tile-wrap{flex:none}#scoring.sd-root #scoreHandSticky .selected-tile{width:62px}}
@media(max-width:950px){.sd-picker-body{grid-template-columns:minmax(0,1fr)}#scoreTileInputControls{border-top:1px solid #e3d5b7;padding-top:12px}.sd-kong-modes{max-width:480px}.sd-mode-title{font-size:13px}#scoring.sd-root .sd-mode{min-height:48px;flex-direction:row;gap:7px}.sd-brand-label{display:none}.sd-settings-main{grid-template-columns:1.15fr 1fr 1fr .7fr 1fr}.sd-field{padding:0 9px}}
@media(max-width:600px){
 body.scoring-mode.scoring-ui-ready{--sd-header:62px}body.scoring-mode.scoring-ui-ready>.page{padding:12px 12px 64px}
 .sd-topbar{padding:7px 12px;min-height:62px;gap:8px}.sd-brand-name{font-size:20px}.sd-brand img{width:25px;height:37px}#scoringAppHeader .sd-brand{gap:7px}.sd-nav-end{gap:5px}#scoringAppHeader button{min-width:40px;padding:8px 10px;font-size:13px}#scoringAppHeader #sdBackButton{min-width:36px;padding:8px 5px;border:0}#sdBackButton .sd-nav-label{display:none}#scoringAppHeader .sd-icon{width:18px;height:18px}.sd-nav-end .sd-icon{display:none}
 .sd-settings-main{grid-template-columns:1fr 1fr;padding:10px 4px 6px;row-gap:7px}.sd-field{border:0;padding:0 10px}.sd-field:nth-child(2n+1){border-right:1px solid #e6d7b8}#sdSettings .sd-field select,#sdSettings .sd-field input{font-size:16px;min-height:36px}.sd-field label{font-size:11px}
 #sdMoreButton{grid-column:1/-1;min-height:38px;justify-content:flex-end;padding:4px 7px;font-size:12px}#sdMoreButton small{display:none}#sdMoreButton .sd-icon{width:16px;height:16px}.sd-setting-summary{padding:7px 14px;display:block;font-size:11px;line-height:1.6}#sdActiveEvent:not(:empty){display:block}.sd-setting-summary b{font-weight:500}
 #sdMoreSettings{padding:12px}#sdMoreSettings>.scoring-grid{grid-template-columns:1fr 1fr;gap:10px}#sdMoreSettings .score-settings{grid-template-columns:1fr 1fr}
 #sdPhotoCard{padding:12px}.sd-photo-top{gap:10px;flex-wrap:wrap}.sd-photo-buttons{flex:1;gap:8px}#scoring.sd-root #scoreCameraButton,#scoring.sd-root #scoreUploadButton{flex:1;min-height:46px;padding:10px;font:600 14px Georgia,serif;flex-direction:row;gap:7px}#scoring.sd-root #scoreCameraButton .sd-icon,#scoring.sd-root #scoreUploadButton .sd-icon{width:19px;height:19px}
 .sd-photo-empty{display:none}.sd-photo-top:has(#sdPhotoOpen:not([hidden])) .sd-photo-buttons{flex-basis:100%}#sdPhotoOpen{flex-basis:100%}#scoring.sd-root #scoreScanPreview{max-height:200px}#sdRemovePhoto{margin-left:auto;min-height:30px;font-size:11px;padding:5px 8px}.sd-photo-options{margin-top:5px}
 #scoring.sd-root #scoreHandSticky{padding:10px 11px 10px;top:calc(var(--sd-header,62px) + 5px);margin-bottom:12px;border-radius:12px}#scoring.sd-root #scoreHandSticky .selected-hand-head>b{font-size:18px}#scoring.sd-root #scoreTileCount{font-size:11px}#scoring.sd-root #scoreSelectedTiles{gap:12px 5px;margin:5px 0 4px;min-height:58px;padding:8px 1px 5px;max-height:30vh;max-height:30svh}#scoring.sd-root #scoreHandSticky .selected-tile{width:44px;height:55px;min-height:55px;font-size:36px;border-radius:7px}
 .sd-hand-tools{gap:5px;margin:0;font-size:10px}.sd-hand-tools>span>.sd-icon{display:none}#scoring.sd-root .sd-small-actions button{font-size:10px;padding:4px;gap:2px;min-height:28px}.sd-small-actions{gap:3px}
 #scoring.sd-root #scoreAction{font-size:15px;min-height:44px;padding:10px;margin-top:6px;border-radius:9px}.sd-tile-tabs{gap:3px;margin-bottom:10px;padding-bottom:8px}#sdTilePicker{padding:8px 10px 12px}#scoring.sd-root .sd-tile-tab{font-size:12px;padding:9px 3px;min-height:44px;border-radius:6px}
 #scoring.sd-root .sd-picker-panels .tile-grid{grid-template-columns:repeat(5,minmax(44px,1fr));gap:8px}#scoring.sd-root .sd-picker-panels .tile-grid.honors,#scoring.sd-root .sd-picker-panels .tile-grid.bonus{grid-template-columns:repeat(4,minmax(44px,1fr))}
 #scoring.sd-root .tile-btn{min-height:86px;font-size:41px;border-radius:8px;padding:5px 2px;gap:3px}.sd-picker-body{gap:12px}.sd-picker-note{font-size:10px;margin-top:8px}#scoring.sd-root .sd-mode{font-size:11px;padding:7px 4px}.sd-mode .sd-icon{width:18px;height:18px}
 #scoring.sd-root #scoreResult{padding:14px 12px;border-radius:12px}.sd-result-heading{gap:8px;margin-bottom:10px}.sd-result-heading h2{font-size:19px}.sd-result-heading>span{font-size:11px}
 .sd-result-grid{grid-template-columns:minmax(0,1fr);gap:12px}.sd-result-stats{display:grid;grid-template-columns:.7fr 1.3fr;padding:12px;gap:8px 10px;align-items:center}.sd-metric-faan{border-right:1px solid #b7d6c3;padding-right:8px}#scoring.sd-root .sd-result-stats .score-result-title{font-size:50px}.sd-metric-payment{border:0;margin:0;padding:0}.sd-payment-number{font-size:29px}.sd-payment-unit{font-size:12px}.sd-metric-label{font-size:10px;letter-spacing:1px}#scoring.sd-root .sd-result-stats .score-payment{grid-column:1/-1;border-top:1px solid #bad8c7;padding-top:8px;margin:2px 0 0;font-size:12px;text-align:left}
 #scoring.sd-root .score-patterns>li{padding:7px 10px;gap:5px 8px}#scoring.sd-root #scoreResult .hk-result-link{font-size:15px}.sd-pattern-value{font-size:12px}.sd-result-actions{gap:8px;margin-top:12px}#scoring.sd-root .sd-result-actions button{font-size:13px;padding:10px 8px}.sd-result-actions .sd-icon{width:17px;height:17px}
 .sd-dialog{max-width:calc(100vw - 16px);max-height:91dvh;border-radius:13px}.sd-dialog-head{padding:10px 12px}.sd-dialog-head h2{font-size:20px}.sd-dialog-body{padding:10px 12px 18px}.sd-dialog .hk-pattern>summary{font-size:13px}
}
@media(max-width:350px){body.scoring-mode.scoring-ui-ready>.page{padding:10px 9px 60px}.sd-topbar{padding:7px 9px;gap:5px}.sd-brand-name{font-size:18px}.sd-brand img{display:none}#scoringAppHeader button{font-size:12px;padding:8px}.sd-hand-tools>span{max-width:95px;line-height:1.3}#sdMoreSettings>.scoring-grid{grid-template-columns:1fr}.sd-payment-number{font-size:25px}.sd-tile-tabs{gap:2px}#scoring.sd-root .sd-tile-tab{font-size:11px}}
@media(max-height:500px){#scoring.sd-root #scoreHandSticky{top:calc(var(--sd-header,62px) + 3px);padding-top:7px;padding-bottom:7px}#scoring.sd-root #scoreSelectedTiles{max-height:25vh;min-height:0}.sd-hand-tools{display:none}#scoring.sd-root #scoreAction{min-height:38px;padding:7px}.sd-topbar{min-height:54px;padding-top:4px;padding-bottom:4px}}
@media(prefers-reduced-motion:reduce){#scoring.sd-root button{transition:none}html:focus-within{scroll-behavior:auto}}