/* Simulator-only palette: game-inspired slate, warm gold actions, cyan values. */
body.pet-page{color-scheme:dark;--pet-canvas:#10151d;--pet-surface:#1c232e;--pet-raised:#252e3b;--pet-text:#edf0f4;--pet-secondary:#c2ccd9;--pet-muted:#acb9c9;--pet-line:#3b485b;--pet-control-line:#6c7e96;--pet-action:#d8b875;--pet-gold:#efd49a;--pet-accent:#89dfd4;--pet-selected:#3a3327;--pet-selected-line:#9e8657;--pet-focus:#a2eee4;--pet-danger:#ff9ca7;--pet-shadow-soft:#00000033;--pet-shadow:#00000066;--pet-backdrop:#080c14bb;scrollbar-color:#748399 #1c232e}
@font-face{font-family:Pretendard;src:url('/fonts/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
body.pet-page{margin:0;background:var(--pet-canvas)!important;color:var(--pet-text)!important;font:14px/1.5 Pretendard,'Malgun Gothic',sans-serif;letter-spacing:-.015em;--line:var(--pet-line);--muted:var(--pet-muted);--accent:var(--pet-action);--selected:var(--pet-selected);--ease:cubic-bezier(.23,1,.32,1)}
.pet-page *{box-sizing:border-box}.pet-page [hidden]{display:none!important}.pet-page ::selection{background:var(--pet-selected);color:var(--pet-text)}.pet-page :focus-visible{outline:3px solid var(--pet-focus);outline-offset:3px}.pet-page svg{width:18px;height:18px;flex:none}.pet-page a{color:var(--pet-accent);text-underline-offset:3px}
.pet-app{width:min(1480px,100%);padding:20px 24px;margin:auto}.pet-native-focus #pet-shell{display:none}.pet-native-focus .pet-app{padding:16px 24px}.pet-loading{text-align:center;padding:60px 24px}.pet-skip{position:fixed;left:12px;top:-100px;z-index:1000;padding:12px;background:var(--pet-surface)}.pet-skip:focus{top:12px}
.pet-app button,.pet-dialog button{font:600 13px/1.3 Pretendard,'Malgun Gothic',sans-serif;min-height:40px;border:1px solid var(--line);border-radius:8px;padding:9px 13px;color:var(--pet-secondary);background:var(--pet-surface);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;touch-action:manipulation;transition:background-color 120ms var(--ease),border-color 120ms var(--ease),color 120ms var(--ease)}
.pet-page button:disabled{cursor:not-allowed;color:var(--pet-muted);background:var(--pet-raised);border-color:var(--pet-line)}.pet-page button.primary,.run-buttons #roll-target{background:var(--pet-action);border-color:var(--pet-action);color:var(--pet-text)}.pet-page button.primary:disabled,.run-buttons #roll-target:disabled{background:var(--pet-line);color:var(--pet-muted);border-color:var(--pet-line)}.pet-page .danger{color:var(--pet-danger)}
.pet-page input,.pet-page select{font:inherit;color:var(--pet-text);border:1px solid var(--pet-control-line);background:var(--pet-surface);border-radius:7px;min-height:40px;padding:8px 10px;max-width:100%;accent-color:var(--pet-action)}.pet-page input::placeholder{color:var(--pet-muted);opacity:1}.pet-page input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:none;padding:0}.pet-page input:disabled{background:var(--pet-canvas);color:var(--pet-muted)}.pet-page input[aria-invalid=true]{border-color:var(--pet-danger)}
.pet-page :is(h1,h2,h3){color:var(--pet-text);margin:0;font-weight:720;letter-spacing:-.025em}.pet-app h1{font-size:24px;line-height:1.3}.pet-app h2{font-size:18px}.pet-page h3{font-size:15px}.pet-page p{margin:0}.pet-page small{font-size:12px;color:var(--pet-muted)}
.native-game{background:var(--pet-surface);border-radius:16px;border:1px solid var(--line);display:flex;flex-direction:column;height:calc(100dvh - 188px);min-height:620px;max-height:900px}.pet-native-focus .native-game{height:calc(100dvh - 32px);min-height:620px}
.workbench-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px 18px;flex:none}.workbench-title p{font-size:13px;color:var(--pet-muted);margin-top:5px}.workbench-tools{display:flex;gap:7px}.workbench-tools button{min-height:40px;padding:8px 11px;background:var(--pet-raised);border-color:transparent}.workbench-tools #sound-toggle[aria-pressed=true]{color:var(--pet-accent);background:var(--pet-selected)}
.workbench-selector{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 28px;padding-bottom:18px;border-bottom:1px solid var(--line);flex:none}.race-tabs{display:flex;gap:5px}.race-tabs button{min-height:48px;border-color:transparent;background:transparent;padding:6px 16px;font-size:14px;color:var(--pet-secondary)}.race-tabs button img{height:30px;width:30px;object-fit:contain;filter:drop-shadow(0 2px 2px #0002)}.race-tabs button[aria-pressed=true]{color:var(--pet-gold);background:var(--pet-selected);border-color:var(--pet-selected-line)}.level-field{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--pet-muted);white-space:nowrap}.level-field select{font-size:13px;font-weight:650;width:136px}
.pet-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);min-height:0;flex:1;padding:20px 28px 16px;gap:28px;align-items:stretch}.native-options,.pet-board{min-width:0;min-height:0;display:flex;flex-direction:column}.pet-board{border-left:1px solid var(--line);padding-left:28px}.results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;height:52px;flex:none;margin-bottom:6px}.results-head>div:first-child>span{display:block;color:var(--pet-muted);font-size:12px;margin-top:2px}.results-tools{display:flex;gap:6px}.results-tools button{font-size:12px;padding:7px 10px;min-height:36px}.results-tools svg{width:15px;height:15px}
#native-info{flex:1;min-height:0;display:flex;flex-direction:column}.result-column-head{display:grid;grid-template-columns:1fr 95px 126px;gap:12px;font-size:12px;color:var(--pet-muted);background:var(--pet-raised);padding:9px 10px;border-radius:7px;flex:none}.result-column-head>span:not(:first-child){text-align:right}.slot-grid{display:flex;flex-direction:column;flex:1;min-height:0}.pet-slot{display:grid;grid-template-columns:40px minmax(0,1fr) 90px 120px;align-items:center;gap:10px;min-height:44px;flex:1;border-bottom:1px solid var(--pet-line);padding:4px 3px}.pet-slot.is-selected{background:var(--pet-selected)}.pet-slot.is-closed{background:var(--pet-raised)}.pet-slot.is-locked .slot-option:after{content:'';display:inline-block;width:5px;height:5px;background:var(--pet-action);border-radius:50%;margin-left:8px;vertical-align:3px}
.native-row-select{position:relative;width:36px;min-height:36px!important;height:36px;padding:0!important;border-color:transparent!important;background:transparent!important}.native-row-rune{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 2px #0003)}.native-row-select span{font-size:10px;position:absolute;right:-1px;bottom:-1px;width:15px;height:15px;background:var(--pet-surface);color:var(--pet-secondary);border:1px solid var(--pet-control-line);border-radius:4px;line-height:14px}.grade-name{display:block;color:var(--grade,var(--pet-muted));font-size:11px;font-weight:650;line-height:1.2;margin-bottom:3px}.slot-option{font-size:14px;font-weight:620;color:var(--pet-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}.slot-value{font-size:16px;font-weight:720;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.slot-value.is-range{font-size:14px}.native-row-actions{display:flex;justify-content:flex-end;gap:2px}.native-row-actions button{width:36px;height:36px;min-height:36px;border-color:transparent;padding:8px;background:transparent}.native-row-actions button[aria-pressed=true]{background:var(--pet-selected);color:var(--pet-accent)}.native-row-actions svg{width:16px;height:16px}
.native-statistics{display:flex;flex-direction:column;min-height:0;flex:1}.stats-tabs{display:flex;border-bottom:1px solid var(--line);height:52px;flex:none;margin-bottom:10px}.stats-tabs button{flex:1;min-height:44px;border:0;border-radius:0;background:transparent;color:var(--pet-muted);padding:8px 4px;font-size:14px}.stats-tabs button[aria-selected=true]{color:var(--pet-accent);box-shadow:inset 0 -2px var(--pet-action)}.stats-progress{display:flex;gap:14px;padding:0 0 12px;flex:none}.stats-progress>div{display:flex;align-items:center;gap:7px;flex:1;white-space:nowrap}.stats-progress span{font-size:12px;color:var(--pet-muted)}.stats-progress strong{font-size:15px;font-weight:700}.stats-progress small{font-size:12px;font-weight:450}.stats-detail-panel{min-height:0;flex:1;display:flex;flex-direction:column}.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}.stats-heading h3{font-size:14px}.stats-heading>span{font-size:12px;color:var(--pet-muted)}.stat-table-head{display:flex;justify-content:space-between;font-size:12px;color:var(--pet-muted);background:var(--pet-raised);padding:7px 8px;border-radius:6px}.stat-rows{display:flex;flex-direction:column}.pet-app .stat-total-row{display:grid;grid-template-columns:1fr auto 12px;align-items:center;text-align:left;gap:10px;border:0;border-bottom:1px solid var(--pet-line);border-radius:0;min-height:40px;padding:5px 4px;background:transparent;min-width:0}.stat-total-row strong{font-size:13px;font-weight:550}.stat-total-row small{margin-left:8px;font-size:11px}.stat-total-row b{font-size:15px;font-weight:680;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--pet-accent)}.stat-total-row svg{width:12px;height:12px;color:var(--pet-muted)}.stats-model-note{font-size:12px;color:var(--pet-muted);line-height:1.55;margin-top:10px!important}.stats-model-note+.stats-model-note{display:none}.stats-empty{padding:30px 20px;text-align:center;color:var(--pet-muted);margin:auto}.stats-empty>span{display:block;margin-bottom:10px;color:var(--pet-accent)}.stats-empty svg{width:32px;height:32px}.stats-empty h3{font-size:16px;margin-bottom:8px}.stats-empty p{max-width:28ch;margin:auto;line-height:1.7;font-size:13px}.race-summary-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-bottom:12px}.pet-app .race-summary-list button{min-height:46px;padding:5px 2px;display:flex;flex-direction:column;gap:2px;font-size:12px;border-color:transparent;background:var(--pet-raised)}.race-summary-list button[aria-pressed=true]{background:var(--pet-selected);color:var(--pet-gold)}.race-summary-list strong{font-size:12px}
.stats-spend{flex:none;border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.spend-title{font-size:12px;color:var(--pet-muted);margin-bottom:6px}.session-spend{display:grid;grid-template-columns:.8fr 1fr 1.2fr;gap:12px;font-size:12px;color:var(--pet-muted)}.session-spend>span{display:flex;flex-direction:column;gap:2px;white-space:nowrap}.session-spend b{font-size:20px;font-weight:720;color:var(--pet-text);font-variant-numeric:tabular-nums;order:2}.stats-expectation h3{margin:8px 0 14px;font-size:14px}.forecast-values{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}.forecast-values>div:first-child{grid-column:1/-1}.forecast-values span{display:block;font-size:12px;color:var(--pet-muted);margin-bottom:5px}.forecast-values strong{font-size:22px;color:var(--pet-accent);font-weight:720;font-variant-numeric:tabular-nums;white-space:nowrap}.forecast-values>div:first-child strong{font-size:28px}.forecast-prob{font-size:12px;margin:14px 0 8px!important;color:var(--pet-accent)}.forecast-foot{font-size:12px;color:var(--pet-muted);line-height:1.6}.stats-expectation>.quiet{margin-top:12px;font-size:12px;padding:8px 12px;min-height:36px}
.run-controls{display:grid;grid-template-columns:minmax(270px,1fr) auto;gap:8px 24px;align-items:center;padding:14px 28px;background:var(--pet-raised);border-top:1px solid var(--line);border-radius:0 0 16px 16px;flex:none;position:relative}.native-price{display:flex;align-items:center;gap:18px;min-width:0}.side-title{display:flex;align-items:center;gap:10px}.side-title h2{font-size:13px;font-weight:600}.side-title small{font-size:12px;white-space:nowrap}.cost-pair{display:flex;gap:20px}.cost-pair>div{display:flex;align-items:center;gap:6px;white-space:nowrap}.cost-pair span{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--pet-muted)}.cost-pair img{object-fit:contain}.cost-pair strong{font-size:19px;font-weight:740;font-variant-numeric:tabular-nums}.cost-sub{display:none}.run-buttons{display:flex;gap:8px;position:relative}.run-buttons button{min-height:44px;min-width:116px}.run-buttons #roll-one{color:var(--pet-accent);border-color:var(--pet-control-line);background:var(--pet-surface)}.run-status{font-size:12px;line-height:1.5;height:18px;grid-column:1/-1;color:var(--pet-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0!important}.run-status.error{color:var(--pet-danger)}.pause-button{position:absolute;right:28px;top:14px;min-height:44px!important;width:364px;background:var(--pet-surface)!important;border-color:var(--pet-danger)!important;color:var(--pet-danger)!important;z-index:2}.run-controls[aria-busy=true] .run-buttons{visibility:hidden}.goal-celebration{position:absolute;pointer-events:none;left:80%;top:50%;width:1px;height:1px}.goal-celebration i{position:absolute;width:5px;height:8px;border-radius:2px;background:var(--pet-action)}.goal-celebration i:nth-child(even){background:var(--pet-gold)}
.page-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;flex:none;font-size:12px;color:var(--pet-muted);padding-top:5px}.page-controls>div{display:flex;align-items:center;gap:10px}.page-controls button{width:32px;min-height:32px;height:32px;padding:6px}.page-controls svg{width:16px;height:16px}
.pet-dialog{padding:0;border:1px solid var(--line);border-radius:16px;background:var(--pet-surface);color:var(--pet-text);font:14px/1.5 Pretendard,'Malgun Gothic',sans-serif;width:min(860px,calc(100% - 32px));max-width:calc(100% - 20px);max-height:calc(100dvh - 32px);box-shadow:0 18px 60px var(--pet-shadow)}.pet-dialog::backdrop{background:var(--pet-backdrop)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:16px 24px;flex:none;min-height:66px}.dialog-head h2{font-size:20px}.dialog-head button{width:36px;min-height:36px;padding:8px;border-color:transparent}.dialog-body{padding:20px 24px}.dialog-body p{color:var(--pet-muted);font-size:13px;margin-bottom:16px;line-height:1.6}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.dialog-error{color:var(--pet-danger)!important;min-height:20px;font-size:12px!important;margin:0!important}.pet-dialog form>label{display:grid;gap:6px;margin:14px 0;font-size:13px;font-weight:600}.pet-dialog form>label small{font-weight:450}.dialog-grade-context{display:flex;align-items:center;gap:10px;padding-bottom:12px}.dialog-grade-context img{width:36px;height:36px}.dialog-grade-context span{font-size:13px;color:var(--pet-muted)}.dialog-grade-context strong{display:block;color:var(--pet-text);font-size:15px}.tools-dialog{width:min(980px,calc(100% - 32px));height:min(740px,calc(100dvh - 32px));overflow:visible}.tools-dialog[open]{display:flex;flex-direction:column}.tool-tabs{display:flex;gap:5px;padding:10px 24px;border-bottom:1px solid var(--line)}.tool-tabs button{flex:1;border-color:transparent;font-size:13px;white-space:nowrap}.tool-tabs button[aria-pressed=true]{background:var(--pet-selected);color:var(--pet-gold)}.tool-pages{padding:20px 24px;min-height:0;flex:1}.tool-pages>section{height:100%;display:flex;flex-direction:column;min-height:0}.tool-pages h3{margin-bottom:12px}.side-section{padding:0}.side-section>.side-title{justify-content:space-between;margin-bottom:12px}.side-section .side-title h2{font-size:17px}.target-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border-bottom:1px solid var(--pet-line);padding:7px 0}.target-item strong{font-size:13px}.target-item small{display:block;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.target-item>div{min-width:0}.target-item button{font-size:12px;padding:5px 9px;min-height:32px}.target-empty{padding:16px 0;font-size:13px;color:var(--pet-muted)}.target-add{margin-top:10px;min-height:40px!important}.field-stack{margin-top:18px;display:grid;gap:6px;font-size:13px}.mode-select{width:100%}.check-line,.assumption-row{display:flex;gap:9px;align-items:start;font-size:13px;color:var(--pet-secondary);line-height:1.6;margin-top:14px}.check-line input,.assumption-row input{margin-top:2px}.mode-help,.assumption-copy{font-size:12px;color:var(--pet-muted);margin:8px 0 0!important}.budget-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.budget-fields label{display:grid;gap:7px;font-size:12px;color:var(--pet-secondary)}.pet-evidence-note{font-size:13px;line-height:1.8;margin:20px 0;color:var(--pet-secondary);padding-top:16px;border-top:1px solid var(--line)}.board-caption{font-size:13px;color:var(--pet-muted);margin:14px 0!important}.native-extras h3{margin-bottom:14px}
.analysis-tabs,.native-art-cache,.compact-view-tabs{display:none}.forecast-head h2,.history-toolbar h2{font-size:17px}.forecast-head p{color:var(--pet-muted);font-size:13px;margin:8px 0 16px}.estimate-controls{display:flex;align-items:end;gap:12px;margin-top:18px}.estimate-controls label{display:grid;gap:5px;font-size:12px;color:var(--pet-secondary)}.estimate-controls input{width:105px}.estimate-progress{width:100%;height:6px;accent-color:var(--pet-action);margin-top:14px}.estimate-result{margin-top:12px}.estimate-result p,.save-note{color:var(--pet-muted);font-size:12px;line-height:1.65;margin:10px 0!important}.estimate-result .censored{color:var(--pet-gold)}.estimate-table,.history-table,.option-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.estimate-table :is(td,th),.history-table :is(td,th),.option-table :is(td,th){padding:10px 8px;border-bottom:1px solid var(--line);text-align:left}.estimate-table th,.history-table th,.option-table th{font-size:12px;color:var(--pet-muted);background:var(--pet-raised);font-weight:600}.estimate-table td:not(:first-child),.history-cost{text-align:right!important}.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.history-toolbar>div:last-child{display:flex;gap:6px}.history-toolbar button{font-size:12px;min-height:36px;padding:6px 9px}.history-table button{font-size:12px;min-height:28px;padding:3px 7px;border-color:transparent;background:transparent;color:var(--pet-accent)}.history-empty{padding:35px 12px!important;text-align:center!important;color:var(--pet-muted)}.table-scroll{overflow:visible}.file-input{display:none}.sources{font-size:14px;line-height:1.8;color:var(--pet-secondary)}.sources ul{padding-left:20px;margin:0}.sources li{margin-bottom:20px}.source-links{display:flex;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;margin-top:16px;font-size:13px}.option-tools{display:flex;gap:10px;margin:12px 0}.option-tools input{flex:1;min-width:0}.pool-grade-tabs{display:flex;gap:5px;margin-bottom:12px}.pool-grade-tabs button{flex:1;font-size:12px;padding:6px}.pool-grade-tabs button[aria-pressed=true]{color:var(--pet-accent);background:var(--pet-selected);border-color:var(--pet-selected-line)}.option-meta{font-size:12px!important;margin-top:12px!important}.contribution-list>div{display:flex;align-items:center;justify-content:space-between;min-height:42px;border-bottom:1px solid var(--line);font-size:13px;gap:16px}.stat-detail-total{display:flex;align-items:center;justify-content:space-between}.stat-detail-total strong{font-size:24px;color:var(--pet-accent);font-variant-numeric:tabular-nums}
#pet-dialog[data-kind=target]{width:min(1180px,calc(100% - 32px));height:min(790px,calc(100dvh - 32px));overflow:visible}#pet-dialog[data-kind=target][open]{display:flex;flex-direction:column}#pet-dialog[data-kind=target] .dialog-body{padding:0;min-height:0;flex:1}.target-editor{height:100%;display:flex;flex-direction:column}.target-editor-main{display:grid;grid-template-columns:116px 1fr;min-height:0;flex:1}.target-slots{border-right:1px solid var(--line);background:var(--pet-raised);padding:10px 7px;display:flex;flex-direction:column;gap:3px}.pet-dialog .target-slots button{flex:1;min-height:36px;padding:5px 7px;gap:7px;border-color:transparent;background:transparent;justify-content:start;text-align:left}.target-slots svg{width:16px;height:18px;color:var(--pet-muted)}.target-slots strong{font-size:13px;display:block;white-space:nowrap}.target-slots small{font-size:11px;display:block;margin-top:1px}.pet-dialog .target-slots button[aria-pressed=true]{background:var(--pet-selected);color:var(--pet-gold);border-color:var(--pet-selected-line)}.target-option-panel{min-width:0;display:flex;flex-direction:column;min-height:0}.target-panel-top{padding:14px 20px 8px;flex:none}.target-panel-top h3{font-size:16px;margin-bottom:4px}.target-panel-top p{font-size:12px;color:var(--pet-muted);line-height:1.5;margin:0}.target-search{display:flex;align-items:center;gap:10px;padding:0 20px 10px;flex:none}.target-search input{font-size:13px;min-height:36px;flex:1;min-width:0}.target-search select{display:none}.target-column-head,.target-rule{display:grid;grid-template-columns:minmax(110px,1.05fr) minmax(210px,1.8fr) 48px 48px 106px;gap:10px;align-items:center}.target-column-head{padding:9px 20px;background:var(--pet-raised);font-size:12px;color:var(--pet-muted);flex:none}.target-column-head>span:nth-last-child(2),.target-column-head>span:nth-last-child(3){text-align:right}.target-grade-legend{display:grid;grid-template-columns:repeat(6,1fr);text-align:center;font-size:12px;gap:2px}.target-rows{padding:0 20px;min-height:0;flex:1;display:flex;flex-direction:column}.target-rule{flex:1;min-height:48px;border-bottom:1px solid var(--line);padding:5px 0}.target-rule-name strong{display:block;font-size:13px;font-weight:600;color:var(--pet-secondary)}.target-rule.is-targeted .target-rule-name strong{color:var(--pet-gold)}.target-grade-readout{display:block;font-size:11px;color:var(--target-grade);margin-top:2px}.target-grade-control{position:relative;min-width:0}.pet-dialog .target-grade-control input[type=range]{width:calc(83.333333% + 16px);margin-inline:calc(8.333333% - 8px);min-height:36px;height:36px;padding:0;border:0;background:transparent;appearance:none;cursor:pointer}.target-grade-control input::-webkit-slider-runnable-track{height:3px;background:var(--pet-control-line)}.target-grade-control input::-webkit-slider-thumb{appearance:none;width:16px;height:20px;background:var(--pet-surface);border:2px solid var(--pet-action);border-radius:4px;margin-top:-8px;box-shadow:0 2px 4px var(--pet-shadow-soft)}.target-grade-control input::-moz-range-track{height:3px;background:var(--pet-control-line)}.target-grade-control input::-moz-range-thumb{width:14px;height:18px;border:2px solid var(--pet-action);border-radius:4px;background:var(--pet-surface)}.target-rule.is-targeted input::-webkit-slider-thumb{background:var(--pet-action)}.target-grade-ticks{display:flex;justify-content:space-between;position:absolute;left:calc(8.333333% - 2.5px);right:calc(8.333333% - 2.5px);top:16px;pointer-events:none}.target-grade-ticks span{width:5px;height:5px;border-radius:50%;background:var(--tick)}.target-grade-ticks .unavailable{opacity:.22}.target-mobile-legend{display:none}.target-bound{font-size:13px;text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.target-threshold>span{display:none}.target-threshold input{font-size:13px;width:100%;min-height:36px;padding:6px 8px}.target-pages{padding:6px 20px 10px;flex:none}.target-editor-footer{padding:12px 20px 16px;border-top:1px solid var(--line);background:var(--pet-raised);border-radius:0 0 16px 16px;flex:none}.target-footer-options{display:flex;gap:12px 16px;align-items:center;flex-wrap:wrap}.target-footer-options label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--pet-secondary)}.target-footer-options select{min-height:36px;font-size:12px;padding:6px}.target-footer-status{height:40px;margin:8px 0;flex:none}.target-footer-status p{font-size:12px;color:var(--pet-muted);margin:0;line-height:1.55}.target-editor-actions{display:flex;align-items:center;gap:7px}.target-next-cost{flex:1;text-align:center;font-size:12px;color:var(--pet-secondary);font-variant-numeric:tabular-nums}.target-editor-actions button{font-size:12px;min-height:42px}.target-empty-results{text-align:center;padding:30px 12px;color:var(--pet-muted);font-size:13px}
@media(hover:hover) and (pointer:fine){.pet-app button:not(:disabled):hover,.pet-dialog button:not(:disabled):hover{background:var(--pet-line);border-color:var(--pet-control-line)}.pet-app .primary:not(:disabled):hover,.pet-dialog .primary:not(:disabled):hover,.run-buttons #roll-target:not(:disabled):hover{background:var(--pet-accent);border-color:var(--pet-accent)}.pet-app .stat-total-row:hover{background:var(--pet-raised)}.pet-app .race-tabs button[aria-pressed=true]:hover{background:var(--pet-selected)}}
@media(min-width:760px) and (max-height:820px){.workbench-head{padding:18px 24px 12px}.workbench-selector{padding-bottom:12px;margin-inline:24px}.pet-workspace{padding:12px 24px;gap:24px}.pet-board{padding-left:24px}.run-controls{padding:12px 24px}.pet-slot{min-height:40px}.results-head,.stats-tabs{height:44px}.stats-tabs{margin-bottom:8px}.stats-progress{padding-bottom:8px;gap:10px}.stats-model-note{margin-top:7px!important}.stats-spend{margin-top:8px;padding-top:8px}.stats-empty{padding:20px}.pause-button{top:12px;right:24px}.target-panel-top{padding-top:10px}.target-editor-footer{padding-top:10px;padding-bottom:12px}.target-footer-status{height:36px;margin-block:5px}}
@media(min-width:760px) and (max-width:1200px){.workbench-title h1{font-size:21px}.workbench-tools button{padding:8px;gap:5px;font-size:12px}.workbench-title p{font-size:12px}.race-tabs button{padding-inline:12px}.pet-workspace{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px}.pet-board{padding-left:20px}.results-tools button{font-size:11px;padding:6px}.result-column-head{grid-template-columns:1fr 75px 108px}.pet-slot{grid-template-columns:32px minmax(0,1fr) 75px 108px;gap:6px}.native-row-actions button{width:34px}.slot-option{font-size:13px}.slot-value{font-size:14px}.stats-progress{gap:8px}.stats-progress>div{display:block;line-height:1.4}.stats-progress span{font-size:11px;display:block}.stats-progress strong{font-size:14px}.stat-total-row small{display:none}.race-summary-list button{font-size:11px!important}.native-price{gap:12px}.cost-pair{gap:12px}.cost-pair strong{font-size:17px}.side-title{display:block}.side-title h2{font-size:12px}.run-controls{gap:8px 16px}.run-buttons button{min-width:108px;padding-inline:10px}.pause-button{width:340px}.target-column-head,.target-rule{grid-template-columns:minmax(100px,1fr) minmax(190px,1.7fr) 44px 44px 100px;gap:8px}}
@media(max-width:759px){
 .pet-app,.pet-native-focus .pet-app{padding:0}.native-game,.pet-native-focus .native-game{height:100dvh;min-height:640px;max-height:none;border:0;border-radius:0}.workbench-head{padding:16px 16px 12px;gap:12px;align-items:start}.workbench-title h1{font-size:20px;max-width:15ch}.workbench-title p{display:none}.workbench-tools{gap:3px}.workbench-tools button{width:36px;min-height:36px;padding:8px}.workbench-tools button>span{display:none}.workbench-selector{margin:0 16px;gap:10px;align-items:stretch;flex-direction:column;padding-bottom:12px}.race-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}.race-tabs button{min-height:44px;padding:5px 2px;gap:4px;font-size:12px;flex-direction:column}.race-tabs button img{width:26px;height:26px}.level-field{justify-content:flex-end;font-size:12px}.level-field select{min-height:32px;height:32px;width:126px;font-size:12px;padding:5px 9px}.compact-view-tabs{display:flex;gap:4px;padding:8px 16px 0}.compact-view-tabs button{flex:1;border-color:transparent;min-height:36px;font-size:13px;background:var(--pet-canvas)}.compact-view-tabs button[aria-selected=true]{color:var(--pet-gold);background:var(--pet-selected)}.pet-workspace{display:block;padding:8px 16px 10px;min-height:0}.native-options,.pet-board{height:100%}.pet-board{border:0;padding:0}.native-game[data-view=results] .pet-board,.native-game[data-view=summary] .native-options{display:none}.results-head{height:44px;margin-bottom:4px}.results-head h2{font-size:16px}.results-head>div:first-child>span{display:none}.results-tools button{font-size:11px;padding:6px 8px;min-height:34px}.results-tools svg{display:none}.result-column-head{font-size:11px;grid-template-columns:1fr 65px 104px;gap:5px;padding:7px 3px}.result-column-head>span:last-child{font-size:10px}.pet-slot{grid-template-columns:29px minmax(0,1fr) 65px 102px;gap:4px;padding:3px 0;min-height:46px}.native-row-select{width:28px!important}.native-row-rune{height:26px;width:26px}.native-row-select span{font-size:9px;width:13px;height:13px;line-height:12px;right:-3px;bottom:0}.native-row-actions{gap:0}.native-row-actions button{width:34px;height:40px;min-height:40px;padding:8px}.native-row-actions svg{width:16px;height:16px}.slot-option{font-size:12px}.slot-value,.slot-value.is-range{font-size:12px}.grade-name{font-size:10px;margin-bottom:2px}.stats-tabs{height:40px;margin-bottom:8px}.stats-tabs button{min-height:36px;font-size:13px}.stats-progress{padding-bottom:7px}.stats-progress span{font-size:11px}.stats-progress strong{font-size:14px}.stats-progress>div{display:block}.stats-progress small{font-size:11px}.stats-heading h3{font-size:13px}.stats-heading>span{font-size:11px}.stat-table-head{font-size:11px}.stat-total-row{min-height:36px!important;padding:4px 2px!important}.stat-total-row strong{font-size:12px}.stat-total-row small{display:none}.stat-total-row b{font-size:13px}.stats-model-note{font-size:11px;line-height:1.5;margin-top:7px!important}.stats-spend{padding-top:7px;margin-top:8px}.session-spend{gap:10px}.session-spend b{font-size:17px}.spend-title{font-size:11px;margin-bottom:4px}.forecast-values{gap:10px}.forecast-values strong{font-size:20px}.forecast-values>div:first-child strong{font-size:24px}.forecast-values span,.forecast-foot,.forecast-prob{font-size:11px}.forecast-prob{margin:8px 0 6px!important}.stats-expectation h3{font-size:13px;margin:4px 0 9px}.stats-expectation>.quiet{margin-top:6px}.race-summary-list{gap:3px;margin-bottom:5px}.race-summary-list button{font-size:10px!important;min-height:38px!important}.run-controls{grid-template-columns:1fr;padding:10px 16px 12px;border-radius:0;gap:9px;flex:none}.native-price{justify-content:space-between;gap:10px}.side-title{display:flex;gap:7px}.side-title h2{font-size:12px}.side-title small{font-size:11px}.cost-pair{gap:10px}.cost-pair strong{font-size:16px}.cost-pair span{font-size:11px;gap:3px}.cost-pair span img{width:14px;height:19px}.run-buttons{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:5px}.run-buttons button{font-size:12px;min-width:0;min-height:44px;padding:8px 5px}.run-status{font-size:11px;height:17px}.pause-button{top:45px;left:16px;right:16px;width:calc(100% - 32px);min-height:44px!important}.page-controls{min-height:34px}.page-controls button{width:32px;height:32px;min-height:32px}.pet-dialog{max-width:calc(100% - 16px);width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.dialog-head{padding:12px 16px;min-height:56px}.dialog-head h2{font-size:17px}.dialog-body{padding:14px 16px}.dialog-body p{font-size:12px;margin-bottom:12px}.pet-dialog form>label{font-size:12px;margin:12px 0}.dialog-grade-context{padding-bottom:4px}.dialog-actions button{min-height:44px}.tools-dialog{height:calc(100dvh - 16px)}.tool-tabs{padding:8px;gap:2px}.tool-tabs button{font-size:11px;min-height:40px;padding:6px 3px}.tool-pages{padding:14px 16px}.tool-pages h3{font-size:15px}.check-line,.assumption-row{font-size:12px}.assumption-copy,.pet-evidence-note,.board-caption{font-size:12px}.budget-fields{gap:10px;margin-top:12px}.field-stack{margin-top:12px}.mode-help{font-size:11px;line-height:1.5}.target-item small{font-size:11px}.history-toolbar{display:block}.history-toolbar h2{font-size:15px;margin-bottom:10px}.history-toolbar>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:5px}.history-toolbar button{font-size:11px;min-height:38px;padding:6px}.history-toolbar #export-all-races{order:-1}.history-table,.option-table{font-size:11px;table-layout:fixed}.history-table :is(td,th),.option-table :is(td,th){padding:9px 3px;overflow-wrap:anywhere;font-size:11px}.history-table :is(td,th):nth-child(2),.history-table :is(td,th):nth-child(5){display:none}.history-table button{font-size:11px;padding:3px;min-height:32px}.save-note{font-size:11px;line-height:1.55}.estimate-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.estimate-controls input{width:100%;min-height:36px}.estimate-controls button{grid-column:1/-1;min-height:40px}.forecast-head p{font-size:12px;line-height:1.6}.estimate-table{font-size:11px}.estimate-table :is(td,th){padding:7px 3px;font-size:11px}.estimate-result p{font-size:11px}.sources{font-size:13px;line-height:1.8}.source-links{gap:12px;font-size:12px}.option-tools{gap:5px}.pool-grade-tabs{gap:3px}.pool-grade-tabs button{font-size:10px;padding:4px 2px;min-height:38px}.option-meta{font-size:11px!important}.contribution-list>div{font-size:12px;min-height:42px}
 #pet-dialog[data-kind=target]{width:calc(100% - 16px);height:calc(100dvh - 16px)}.target-editor-main{grid-template-columns:1fr}.target-slots{display:none}.target-search{padding:7px 14px;gap:7px}.target-search select{display:block;min-height:36px;font-size:12px;width:100px}.target-search input{font-size:12px;min-height:36px}.target-panel-top{padding:10px 14px 3px}.target-panel-top h3{font-size:15px}.target-panel-top p{font-size:11px}.target-column-head{display:none}.target-rows{padding:0 14px}.target-rule{grid-template-columns:1fr 65px 65px;gap:3px 8px;min-height:114px;max-height:none;padding:8px 0}.target-rule-name{grid-column:1;grid-row:1}.target-rule-name strong{font-size:12px}.target-bound{font-size:12px;grid-row:1}.target-bound:before{content:attr(data-bound-label);font-size:11px;font-weight:450;color:var(--pet-muted)}.target-grade-control{grid-column:1/-1;grid-row:2}.target-mobile-legend{display:grid;grid-template-columns:repeat(6,1fr);font-size:10px;text-align:center}.target-grade-readout{font-size:10px}.target-threshold{grid-column:1/-1;grid-row:3;display:flex;align-items:center;gap:10px}.target-threshold>span{display:block;font-size:12px;white-space:nowrap}.target-threshold input{min-height:34px;height:34px;font-size:12px}.target-pages{padding:4px 14px}.target-editor-footer{padding:10px 14px;border-radius:0 0 12px 12px}.target-footer-options{display:grid;gap:7px;grid-template-columns:1fr}.target-footer-options label{font-size:11px}.target-footer-options select{min-height:32px;height:32px;font-size:11px;padding:4px 6px}.target-footer-status{height:37px;margin:7px 0}.target-footer-status p{font-size:11px}.target-editor-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}.target-editor-actions .target-next-cost{grid-column:1/-1;grid-row:1;font-size:11px;text-align:left;margin-bottom:4px}.target-editor-actions #target-reset-slot{grid-column:1;grid-row:2}.target-editor-actions [data-dialog-cancel]{grid-column:2;grid-row:2}.target-editor-actions #target-save{grid-column:3;grid-row:2}.target-editor-actions #target-save-run{grid-column:1/-1;grid-row:3}.target-editor-actions button{font-size:11px;padding:7px 5px;min-height:40px}#target-save-run{min-height:44px}
}
#applied-overview [data-mobile-allstats]{display:none}
@media(max-width:759px){.pet-dashboard .pet-workspace{gap:6px}.pet-dashboard .stats-spend{margin-bottom:4px}#applied-overview>.stats-tabs{display:none}#applied-overview [data-mobile-allstats]{display:inline-flex;min-height:44px}#applied-overview .stats-heading{min-height:44px}#applied-overview .stats-heading h3{margin-right:auto}#dashboard-targets{flex:1;font-size:12px;min-height:44px}.compact-view-tabs button{white-space:nowrap;padding-inline:4px}}
.target-footer-status{height:62px}.target-editor-footer .target-next-cost{font-size:12px}.target-footer-options>label{gap:6px}.target-search .target-slot-select{min-height:44px}
.save-persistence-note{font-size:12px;color:var(--pet-muted);line-height:1.7;margin-top:14px!important}.pet-dialog .target-grade-control input[type=range]{min-height:44px;height:44px}.target-grade-ticks{top:20px}.target-rule{min-height:56px}
@media(max-width:759px){.workbench-head{flex-wrap:nowrap;gap:6px}.workbench-title{min-width:0;flex:1}.workbench-title h1{max-width:142px}.workbench-tools{flex:none}.level-field select{min-height:44px;height:44px}.check-line,.assumption-row{min-height:44px}.pet-dialog input:not([type=checkbox]),.pet-dialog select{min-height:44px}.target-rule{min-height:166px}.target-threshold input{height:44px}.target-editor-actions #target-reset-slot{font-size:12px;white-space:normal}.history-page-jump input{min-height:44px}}
.tools-dialog .tool-tabs button[aria-pressed=true]{background:var(--pet-selected);color:var(--pet-gold);box-shadow:inset 0 -2px var(--pet-action)}
@media(max-width:759px){.target-item button{min-height:44px;min-width:44px}.target-add{min-height:44px!important}}
@media(min-width:760px) and (max-height:760px){.stats-expectation .forecast-values{display:flex;flex-direction:column;gap:5px}.stats-expectation .forecast-values>div{display:flex;align-items:center;justify-content:space-between}.stats-expectation .forecast-values span{margin:0}.stats-expectation .forecast-values strong,.stats-expectation .forecast-values>div:first-child strong{font-size:20px}}
/* The overview keeps spend, expectation and applied stats together. */
.pet-dashboard .pet-workspace{grid-template-columns:minmax(0,1.35fr) minmax(350px,.9fr)}
#applied-overview{display:flex;flex-direction:column;flex:1;min-height:0}#applied-overview>.stats-tabs{height:40px;margin-bottom:8px}#applied-overview>.stats-tabs button{min-height:40px;font-size:13px}#applied-overview .stats-detail-panel{flex:1;min-height:0}#applied-overview .stat-table-head{display:none}#applied-overview .stats-heading{margin:0 0 10px;min-height:28px}#applied-overview .stats-heading h3{font-size:14px}
#applied-overview .stat-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}#applied-overview .stat-total-row{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:72px;padding:7px 3px;border-bottom:1px solid var(--pet-line)}#applied-overview .stat-total-row>span{display:block;min-width:0;max-width:100%}#applied-overview .stat-total-row strong{display:block;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}#applied-overview .stat-total-row small{display:block;margin:2px 0 0;font-size:12px}#applied-overview .stat-total-row b{display:block;font-size:21px;font-weight:730;max-width:100%;white-space:nowrap}#applied-overview .stat-total-row svg{display:none}#applied-overview .stats-model-note{margin-top:10px!important;line-height:1.5}
.pet-dashboard .native-options[data-detail=stats] #result-pages{display:none!important}.pet-dashboard .results-tools{flex-wrap:wrap;justify-content:flex-end}.pet-dashboard .results-tools button{font-size:12px}.financial-title{font-size:18px!important;margin-bottom:16px!important}.pet-dashboard .stats-spend{margin:0 0 20px;padding:0 0 18px;border-top:0;border-bottom:1px solid var(--pet-line)}.pet-dashboard .spend-title{font-size:13px;color:var(--pet-secondary);margin-bottom:10px}.pet-dashboard .session-spend{grid-template-columns:.8fr 1fr 1.2fr;gap:10px}.pet-dashboard .session-spend b{font-size:27px;font-weight:740}.pet-dashboard #stats-panel-cost{flex:1;display:flex;min-height:0}.pet-dashboard .stats-expectation{display:flex;flex-direction:column;flex:1;min-height:0}.pet-dashboard .stats-expectation h3{font-size:15px;margin:0 0 14px}.pet-dashboard .forecast-values{display:flex;flex-direction:column;gap:12px}.pet-dashboard .forecast-values>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px}.pet-dashboard .forecast-values span{font-size:13px;margin:0}.pet-dashboard .forecast-values strong,.pet-dashboard .forecast-values>div:first-child strong{font-size:25px;line-height:1.2}.pet-dashboard .forecast-values.is-held strong{color:var(--pet-muted)}.pet-dashboard .forecast-prob{margin:12px 0 6px!important}.pet-dashboard .forecast-foot{font-size:12px;line-height:1.5}.pet-dashboard .stats-expectation>.quiet{align-self:start;margin:10px 0 0;min-height:36px}.pet-dashboard #stats-progress{margin-top:12px;padding-top:12px;border-top:1px solid var(--pet-line);flex:none;gap:8px}.pet-dashboard #stats-progress>div{display:flex;align-items:center;gap:6px}.pet-dashboard #stats-progress span{font-size:12px}.pet-dashboard #stats-progress strong{font-size:14px}
@media(min-width:760px) and (max-height:820px){.financial-title{font-size:17px!important;margin-bottom:10px!important}.pet-dashboard .stats-spend{padding-bottom:10px;margin-bottom:10px}.pet-dashboard .session-spend b{font-size:23px}.pet-dashboard .spend-title{margin-bottom:6px}.pet-dashboard .forecast-values{gap:8px}.pet-dashboard .forecast-values strong,.pet-dashboard .forecast-values>div:first-child strong{font-size:22px}.pet-dashboard .stats-expectation h3{margin-bottom:9px}.pet-dashboard #stats-progress{padding-top:8px;margin-top:8px}.pet-dashboard #stats-progress>div{display:block}#applied-overview .stat-total-row{min-height:65px}#applied-overview .stat-total-row small{display:none}#applied-overview .stat-total-row b{font-size:20px}}
@media(max-width:759px){
 .pet-dashboard .native-game[data-view=summary] .native-options{display:flex!important}.pet-dashboard .native-game[data-view=summary] .pet-board{display:flex!important}.pet-dashboard .native-game[data-view=results] .pet-board{display:none!important}.pet-dashboard .pet-workspace{display:flex;flex-direction:column;gap:12px;padding:8px 12px}.pet-dashboard .pet-board{height:auto;flex:none;order:0}.pet-dashboard .native-options{height:auto;flex:1;min-height:0;order:1}.pet-dashboard .native-options[data-detail=stats] .results-head{display:none}.pet-dashboard .native-options[data-detail=slots]{height:100%}.pet-dashboard .native-options[data-detail=slots] .results-head{display:flex}
 .pet-dashboard .financial-title{display:none}.pet-dashboard .stats-spend{padding:0;margin:0 0 8px;border:0}.pet-dashboard .spend-title{font-size:12px;margin-bottom:3px}.pet-dashboard .session-spend{gap:8px;grid-template-columns:1fr 1fr 1.2fr}.pet-dashboard .session-spend>span{gap:0}.pet-dashboard .session-spend b{font-size:20px;line-height:1.2}.pet-dashboard #stats-panel-cost{flex:none}.pet-dashboard .stats-expectation{flex:none}.pet-dashboard .stats-expectation h3{display:block;font-size:12px;margin:0 0 3px;color:var(--pet-secondary);font-weight:600}.pet-dashboard .forecast-values{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:8px}.pet-dashboard .forecast-values>div{display:flex;align-items:start;flex-direction:column;gap:0;grid-column:auto}.pet-dashboard .forecast-values span{font-size:12px;line-height:1.5;white-space:nowrap}.pet-dashboard .forecast-values strong,.pet-dashboard .forecast-values>div:first-child strong{font-size:19px;line-height:1.2}.pet-dashboard .forecast-prob{display:none}.pet-dashboard .forecast-foot{font-size:12px;line-height:1.4;margin-top:5px}.pet-dashboard .stats-expectation>.quiet{display:none}.pet-dashboard #stats-progress{display:none}
 #applied-overview>.stats-tabs{min-height:44px;height:44px;margin-bottom:5px}#applied-overview>.stats-tabs button{min-height:44px}#applied-overview .stats-heading{min-height:22px;margin:0 0 5px}#applied-overview .stats-heading h3{font-size:13px}#applied-overview .stats-heading>span{font-size:12px}#applied-overview .stat-rows{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 6px}#applied-overview .stat-total-row{min-height:44px;padding:4px 0;gap:0}#applied-overview .stat-total-row strong{font-size:12px;line-height:1.3}#applied-overview .stat-total-row small{display:none}#applied-overview .stat-total-row b{font-size:17px;line-height:1.3}#applied-overview .stats-model-note{font-size:12px;margin-top:5px!important;line-height:1.4}.pet-dashboard .native-game[data-view=results] .native-options{flex:1}
}
@media(max-width:359px){.workbench-head{padding-inline:12px;gap:5px}.workbench-title h1{font-size:18px;max-width:12ch}.workbench-tools button{width:32px;padding:7px}.workbench-tools svg{width:17px}.workbench-selector{margin-inline:12px}.pet-workspace,.compact-view-tabs{padding-inline:12px}.native-row-actions button{width:30px;padding:7px}.pet-slot{grid-template-columns:26px minmax(0,1fr) 54px 90px;gap:4px}.slot-value,.slot-value.is-range{font-size:11px}.result-column-head{grid-template-columns:1fr 54px 90px}.results-tools button{padding-inline:6px;font-size:10px}.results-head h2{font-size:15px}.run-controls{padding-inline:12px}.cost-pair span{font-size:10px}.cost-pair strong{font-size:15px}.cost-pair{gap:8px}.side-title h2{font-size:11px}.side-title small{font-size:10px}.pause-button{left:12px;right:12px;width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.pet-page *{scroll-behavior:auto!important}.pet-app button,.pet-dialog button{transition:none}.goal-celebration{display:none}}
.target-pages button{width:auto;min-width:56px;white-space:nowrap}.target-pages .page-controls{padding:0}.target-grade-readout{color:var(--pet-muted)}
@media(max-width:759px){.stats-progress{display:none}.race-summary-list{display:none}.stats-heading{margin:5px 0}.target-pages button{min-width:48px}.stats-expectation .forecast-values{display:flex;flex-direction:column;gap:6px}.stats-expectation .forecast-values>div{display:flex;align-items:center;justify-content:space-between}.stats-expectation .forecast-values span{margin:0}.stats-expectation .forecast-values strong,.stats-expectation .forecast-values>div:first-child strong{font-size:20px}.stats-expectation h3{display:none}}
.native-row-actions [data-slot-menu]{display:none}#slot-actions{border:1px solid var(--line);border-radius:12px;background:var(--pet-surface);padding:18px;width:min(290px,calc(100% - 32px));color:var(--pet-text);box-shadow:0 12px 40px var(--pet-shadow)}#slot-actions h3{margin-bottom:14px}#slot-actions button{display:flex;width:100%;min-height:44px;margin-top:8px}
.budget-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-fields label,.budget-fields input,.mode-select,.side-section{min-width:0}.budget-fields input{width:100%}
@media(max-width:759px){.workbench-title h1{word-break:keep-all;max-width:none}.stats-model-note{display:none}.target-editor-footer .target-next-cost{min-width:0}.target-editor-footer .dialog-error{font-size:11px!important}.page-controls{font-size:11px}}
@media(max-width:759px) and (max-height:780px){#race-stat-overview{display:none}}
.tools-status{font-size:12px;color:var(--pet-muted);line-height:1.5;height:36px;flex:none;padding:7px 24px;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tools-status.error{color:var(--pet-danger)}
@media(max-width:759px){.tools-status{font-size:11px;white-space:normal;height:42px;padding:6px 16px}}
.trial-views{display:flex;gap:6px;margin-bottom:18px}.trial-views button{flex:1;border-color:transparent}.trial-views button[aria-pressed=true]{background:var(--pet-selected);color:var(--pet-gold)}#forecast-panel[data-view=config] #estimate-result,#forecast-panel[data-view=config] #estimate-progress{display:none}#forecast-panel[data-view=results]>.forecast-head,#forecast-panel[data-view=results]>.estimate-controls{display:none}
#forecast-panel:not([data-view=model]) #forecast-model-detail{display:none}#forecast-panel[data-view=model]>.forecast-head,#forecast-panel[data-view=model]>.estimate-controls,#forecast-panel[data-view=model]>#estimate-progress,#forecast-panel[data-view=model]>#estimate-result{display:none}#forecast-model-detail .forecast-prob{margin-block:16px!important}#forecast-model-detail .forecast-foot{font-size:13px;line-height:1.8}.trial-views button{font-size:12px;padding-inline:7px}
@media(max-height:820px){.stats-expectation .forecast-values{row-gap:12px}.stats-expectation .forecast-prob{margin:4px 0!important}}
@media(max-width:759px){.stats-expectation .forecast-values{row-gap:4px}}
/* Independent review fix batch: readable values, immediate selection, explicit context. */
.tool-tabs button{transition:none}.tool-tabs button[aria-pressed=true]{box-shadow:inset 0 -2px var(--pet-action);font-weight:750}.stats-heading{flex-wrap:wrap}.stats-heading h3{margin-right:auto}.stats-heading button{font-size:12px;min-height:32px;padding:5px 7px}.race-entry-count{font-size:12px!important;color:var(--pet-secondary)!important}.race-tabs button{gap:7px}.native-row-select span{font-size:12px;width:17px;height:17px;line-height:16px}.stat-search-label{display:grid;gap:8px;font-size:13px;margin-bottom:14px}
.pet-workbench :is(.grade-name,.result-column-head,.stats-progress span,.stats-progress small,.stats-heading>span,.stat-table-head,.stat-total-row small,.spend-title,.forecast-values span,.forecast-foot,.forecast-prob,.stats-model-note,.run-status,.side-title small,.cost-pair span,.results-tools button,.page-controls,.page-controls span,.target-grade-readout,.target-mobile-legend,.target-bound:before,.target-footer-options label,.target-footer-options select,.target-footer-status p,.target-next-cost,.target-editor-actions button,.target-item small,.history-toolbar button,.history-table td,.history-table th,.history-table button,.option-table td,.option-table th,.pool-grade-tabs button,.option-meta,.save-note,.estimate-result p,.estimate-table td,.estimate-table th,.mode-help,.tool-tabs button,.tools-status,.dialog-error){font-size:12px!important;line-height:1.5}
#race-stat-overview{display:none}.stats-model-note{display:block!important}.stats-heading button:focus-visible{outline-offset:1px}
#target-advanced{display:none;padding:20px;flex:1;min-height:0}#target-advanced h3{margin-bottom:10px}#target-advanced p{font-size:13px;color:var(--pet-muted);line-height:1.7;margin-bottom:16px}#target-advanced label{display:flex;align-items:center;gap:10px;min-height:44px;margin:10px 0;font-size:13px}#pet-dialog[data-advanced=true] #target-advanced{display:block}#pet-dialog[data-advanced=true] :is(.target-search,.target-column-head,.target-rows,.target-pages){display:none}.target-footer-options{justify-content:space-between}.target-footer-options select{min-height:44px}.target-footer-options button{min-height:44px}.target-editor-actions button{min-height:44px}
#mobile-site-menu{display:none}
.history-page-jump{display:flex;align-items:center;gap:5px;font-size:12px}.history-page-jump input{width:66px;min-height:40px;padding:6px;font-size:13px}
@media(max-width:759px){
 .workbench-tools button{width:44px;min-height:44px;padding:12px}.workbench-tools #native-focus{display:none}#mobile-site-menu{display:flex;margin-top:10px;min-height:44px}.workbench-title h1{font-size:18px}.native-game[data-view=summary] .level-field{display:none}.race-tabs button{min-height:64px}.race-entry-count{font-size:12px!important}.race-tabs{gap:2px}.race-tabs button{gap:1px;padding-inline:1px}.race-tabs button img{width:24px;height:24px}.slot-value,.slot-value.is-range{font-size:14px!important}.slot-option{font-size:13px!important}.result-column-head>span:last-child:after{font-size:12px}.compact-view-tabs button,.results-tools button,.stats-tabs button,.stats-heading button,.page-controls button,.tool-tabs button,.dialog-head button,.pool-grade-tabs button,.history-toolbar button,.history-table button,.trial-views button,.stat-total-row,.target-pages button,.target-search select,.target-search input{min-height:44px!important}.page-controls button{width:44px;height:44px;padding:10px}.target-pages button{width:auto;height:44px}.results-head{height:48px}.stats-tabs{height:48px}.stats-heading{gap:5px}.stats-heading h3{font-size:13px}.stat-total-row{padding-block:5px!important}.stats-model-note{font-size:12px!important;margin-top:6px!important}.session-spend{font-size:12px}.side-title h2{font-size:12px}.cost-pair span img{display:none}.cost-pair strong{font-size:16px}.tools-status{height:48px}.target-search input,.target-search select{font-size:16px}.target-rule{min-height:130px}.target-threshold input{min-height:40px;height:40px;font-size:16px}.target-threshold>span{font-size:12px}.target-footer-options{display:flex;gap:6px;flex-wrap:nowrap}.target-footer-options>label{min-width:0;flex:1}.target-footer-options select{width:100%;min-width:0;max-width:100%;font-size:12px;min-height:44px;height:44px}.target-footer-options>label{font-size:0!important}.target-footer-options button{font-size:12px;padding-inline:8px}.target-editor-actions button,#target-save-run{min-height:44px;height:44px}.target-next-cost{line-height:1.5}.target-footer-status{height:44px}.target-editor-footer{padding-top:8px;padding-bottom:10px}.target-panel-top p{font-size:12px}.target-bound{font-size:12px}.target-rule-name strong{font-size:13px}.target-rule .target-grade-readout,.target-mobile-legend{font-size:12px}.tools-dialog .estimate-controls button{min-height:44px}.dialog-head button{min-width:44px}.page-controls{min-height:48px}.tool-tabs{padding-inline:6px}.tool-tabs button{padding-inline:2px}.history-table :is(td,th),.option-table :is(td,th){font-size:12px}.grade-name{font-size:12px}.stat-total-row strong,.stat-total-row b{font-size:13px}.stat-total-row small{display:none}.stats-expectation>.quiet{min-height:44px}
}
@media(max-width:759px){.native-row-actions [data-slot-menu]{display:inline-flex}.native-row-actions [data-manual],.native-row-actions [data-target-slot]{display:none}.native-row-actions button{width:44px;min-height:44px;height:44px;padding:12px}.pet-slot{grid-template-columns:29px minmax(0,1fr) 62px 88px;gap:4px;min-height:48px}.result-column-head{grid-template-columns:1fr 62px 88px}.result-column-head>span:last-child{font-size:0}.result-column-head>span:last-child:after{content:'잠금 · 편집';font-size:11px}html[lang=en] .result-column-head>span:last-child:after{content:'Lock · edit'}.slot-option{font-size:13px}.native-row-select{min-height:44px!important;height:44px}.page-controls button{min-height:40px;height:40px}.target-pages button{min-height:36px;height:36px}}
/* Dashboard compact composition follows the incumbent mobile rules. */
@media(max-width:759px){
 .pet-dashboard .pet-workspace{gap:6px}
 .pet-dashboard .stats-spend{margin-bottom:4px}
 .pet-dashboard .stats-expectation .forecast-values{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:8px}
 .pet-dashboard .stats-expectation .forecast-values>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;grid-column:auto}
 .pet-dashboard .stats-expectation .forecast-values strong{font-size:19px;line-height:1.2}
 .pet-dashboard #applied-overview .stats-heading{min-height:44px}
}
@media(max-width:759px) and (max-height:780px){.pet-dashboard .workbench-head{padding-top:12px;padding-bottom:8px}.pet-dashboard .pet-workspace{padding-top:6px;padding-bottom:6px}}
@media(max-width:759px){.pet-dashboard #applied-overview .stats-empty{padding:8px 12px}.pet-dashboard #applied-overview .stats-empty>span{margin-bottom:6px}.pet-dashboard #applied-overview .stats-empty h3{margin-bottom:5px}}
@media(max-width:359px){.pet-dashboard #applied-overview .stat-total-row.has-range b{font-size:15px}}

/* Spacing follows the existing dashboard geometry; visual groups have an inset. */
.pet-app button,.pet-dialog button{background:var(--pet-raised)}
.pet-page input,.pet-page select{background:var(--pet-canvas)}
body.pet-page #pet-main input:not([type=range]):not([type=checkbox]),body.pet-page #pet-main select{background:var(--pet-canvas)!important;color:var(--pet-text)!important;border-color:var(--pet-control-line)!important}
body.pet-page #pet-main input[aria-invalid=true]{border-color:var(--pet-danger)!important}
body.pet-page #pet-main input:disabled,body.pet-page #pet-main select:disabled{background:var(--pet-raised)!important;color:var(--pet-muted)!important}
.pet-app .race-tabs button:not([aria-pressed=true]){background:transparent}
.pet-page button.primary,.run-buttons #roll-target{color:#211b12;background:var(--pet-action);border-color:var(--pet-action)}
.pet-page button.primary,.run-buttons button{transition:border-color 120ms var(--ease)}
.pet-dialog :is(td,th){color:var(--pet-secondary)}
.pet-page button.primary:disabled,.run-buttons #roll-target:disabled{color:var(--pet-muted);background:var(--pet-raised);border-color:var(--pet-line)}
.pet-page input[type=checkbox],.pet-page progress{accent-color:var(--pet-action)}
.pet-page button:hover:not(:disabled){border-color:var(--pet-control-line)}
.pet-app .stat-total-row:hover{background:#283746}
.pet-page button.primary:hover:not(:disabled),.run-buttons #roll-target:hover:not(:disabled){background:#e7cb8d;border-color:#e7cb8d;color:#211b12}
.pet-dialog .target-rule.is-targeted{background:var(--pet-selected)}
.pet-dashboard #applied-overview .stat-total-row{padding-inline:10px;text-align:left}
.pet-dashboard #applied-overview .stats-heading{padding-inline:10px}
.pet-dashboard .forecast-values>div{padding-inline:8px}
.pet-dashboard #stats-progress{padding-inline:8px}
.pet-dashboard .stats-model-note{padding-inline:8px}
.pet-dashboard .run-controls{padding:14px 28px}
@media(min-width:760px) and (max-height:820px){.pet-dashboard .run-controls{padding:12px 24px}}
@media(max-width:759px){.pet-dashboard .run-controls{padding:10px 16px 12px}}
@media(max-width:359px){.pet-dashboard .run-controls{padding-inline:12px}}
@media(min-width:760px){.pet-dashboard .native-statistics{padding-right:8px}.pet-dashboard .financial-title,.pet-dashboard .stats-spend,.pet-dashboard .stats-expectation>h3,.pet-dashboard .forecast-foot,.pet-dashboard .forecast-prob{padding-inline:8px}.pet-dashboard .stats-expectation>.quiet{margin-left:8px}}
@media(min-width:760px) and (max-height:820px){.pet-dashboard .workbench-head{padding:16px 24px 8px}.pet-dashboard .workbench-selector{padding-bottom:8px}.pet-dashboard .pet-workspace{padding-block:8px}.pet-dashboard .results-head{margin-bottom:2px}.pet-dashboard .result-column-head{padding-block:6px}.pet-dashboard .native-options[data-detail=slots] .pet-slot{padding-block:0}.pet-dashboard .pet-slot .grade-name{line-height:1.3!important;margin-bottom:0}}
@media(max-width:759px){.pet-dashboard #applied-overview .stat-total-row{padding-inline:4px}.pet-dashboard #applied-overview .stats-heading{padding-inline:2px}.pet-dashboard .stats-model-note{padding-inline:2px}.pet-dashboard .forecast-values>div{padding-inline:0}.pet-dashboard .native-options[data-detail=slots] .pet-slot{padding-inline:3px}.pet-dashboard #applied-overview .stat-rows{column-gap:8px}}

/* Reset is a scoped, reversible action rather than an ambiguous new-session button. */
.selector-actions{display:flex;align-items:center;gap:12px;flex:none}.pet-app #quick-reset{min-height:40px;white-space:nowrap}.pet-app #quick-reset svg{width:16px;height:16px}
#pet-dialog[data-kind=reset]{width:min(580px,calc(100% - 32px))}
#pet-dialog[data-kind=reset] .dialog-head h2{font-size:19px}
.reset-options{display:grid;gap:8px;padding:0;margin:0;border:0;min-width:0}.reset-options .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.reset-option{display:flex;gap:12px;padding:11px 12px;border:1px solid var(--pet-line);border-radius:8px;cursor:pointer;min-width:0;align-items:flex-start}
.reset-option:has(input:checked){background:var(--pet-selected);border-color:var(--pet-selected-line)}
.reset-option:has(input:disabled){cursor:default}.reset-option:has(input:disabled) strong{color:var(--pet-muted)}
#pet-main .reset-option input[type=radio]{width:18px;height:18px;min-height:18px;flex:none;padding:0;margin:2px 0 0;accent-color:var(--pet-action)}
.reset-option strong{font-size:14px;display:block;line-height:1.4;color:var(--pet-text)}.reset-option small{display:block;font-size:12px;line-height:1.5;margin-top:4px;color:var(--pet-secondary)}
.reset-recovery{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.reset-recovery button{min-height:44px;font-size:12px}
#pet-dialog .reset-context{font-size:12px;margin:0 0 12px;color:var(--pet-muted)}#pet-dialog .reset-guidance{font-size:12px;line-height:1.5;margin:10px 0 0;color:var(--pet-muted)}
#pet-dialog[data-kind=reset] .dialog-actions{margin-top:14px;gap:8px}#pet-dialog[data-kind=reset] .dialog-actions button{min-height:44px}#reset-apply:not(:disabled){border-color:var(--pet-danger);color:var(--pet-danger)}
@media(max-width:759px){.selector-actions{display:contents}#quick-reset{display:none!important}#mobile-reset{font-size:12px;min-height:44px}.compact-view-tabs{gap:3px}.compact-view-tabs button{padding-inline:2px;font-size:12px}.pet-dialog[data-kind=reset] .dialog-body{padding:12px 14px}.reset-options{gap:6px}.reset-option{padding:8px;gap:9px}.reset-option strong{font-size:13px}.reset-option small{margin-top:3px}.reset-recovery{gap:6px;margin-top:10px}#pet-dialog .reset-context{margin-bottom:8px}#pet-dialog[data-kind=reset] .dialog-actions{margin-top:10px}#pet-dialog[data-kind=reset]{width:calc(100% - 16px)}}
@media(max-width:359px) and (max-height:780px){.native-extras .pet-evidence-note{margin-block:12px;padding-top:10px;line-height:1.6}.native-extras h3{margin-bottom:10px}.native-extras .save-persistence-note{margin-top:10px!important}}
.pet-dialog .dialog-head{flex-wrap:nowrap}.pet-dialog .dialog-head h2{flex:1;min-width:0}.pet-dialog .dialog-head>button{flex:none}
.compact-toolbar{display:none}
@media(max-width:759px){.compact-toolbar{display:flex;gap:3px;padding:8px 16px 0;flex:none}.compact-toolbar .compact-view-tabs{flex:1;min-width:0;padding:0!important;gap:3px}.compact-actions{display:flex;flex:1;min-width:0;gap:3px}.compact-actions button{flex:1;min-width:0;padding-inline:2px;border-color:transparent;background:var(--pet-raised)}}
@media(max-width:359px){.compact-toolbar{padding-inline:12px}}

/* Mobile uses its Overview/Edit slots tab pair for this view switch. */
@media(max-width:759px){.pet-dashboard #show-slot-results,.pet-dashboard #native-tab-goals{display:none}.pet-dashboard .results-tools{flex-wrap:nowrap;flex:none}.pet-dashboard .results-tools button{white-space:nowrap}}
