/*! Card Throne tcgplayer-repricer.html page styles.
    Signed-in workspace only (loaded through data-throne-authed-css). The
    signed-out gate is styled in throne-ui.css. Colors come from theme and kit
    tokens so light and dark both follow the shared theme. */body:has(.tcg-repricer-page),.throne-main:has(>.tcg-repricer-page){background:var(--throne-bg-dark);background-attachment:scroll}.tcg-repricer-page{width:100%;max-width:1480px;margin:0;padding:0 var(--throne-page-inline) 36px;box-sizing:border-box;color:var(--throne-text-primary)}.tcg-repricer-page [hidden]{display:none!important}.tcg-repricer-app{--tcg-accent: var(--tr-blue-700);--tcg-dropzone-border: rgba(3, 83, 164, 0.3);--tcg-dropzone-hover: rgba(3, 83, 164, 0.58);--tcg-dropzone-fill: rgba(3, 83, 164, 0.035);--tcg-control-height: 38px;display:grid;gap:20px;min-width:0}.tcg-repricer-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0}.tcg-flow{display:grid;gap:16px;min-width:0}.tcg-step{min-width:0;padding:16px 18px 18px;box-shadow:none}.tcg-step-head{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:14px}.tcg-step-head h2{margin:0;color:var(--throne-text-primary);font-size:1rem;font-weight:650;line-height:1.3;letter-spacing:-0.01em}.tcg-step-number{flex:0 0 auto;display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid var(--throne-border);border-radius:999px;background:var(--throne-surface-muted);color:var(--throne-text-secondary);font-size:0.75rem;font-weight:650;font-variant-numeric:tabular-nums}.tcg-repricer-app[data-step=upload] [data-step-chip=upload],.tcg-repricer-app:is([data-step=reprice],[data-step=download]) [data-step-chip=run]{border-color:var(--tcg-accent);background:var(--tcg-accent);color:var(--throne-on-accent, #ffffff)}.tcg-repricer-app .tr-label{color:var(--throne-text-secondary);font-size:0.8125rem;font-weight:600}.tcg-repricer-app .tr-field{gap:6px;min-width:0}.tcg-repricer-app .tr-field-control{min-width:0;min-height:var(--tcg-control-height);font-size:0.875rem}.tcg-repricer-app .tr-button{min-height:var(--tcg-control-height);font-size:0.875rem;font-weight:600}.tcg-repricer-app .tr-button.tr-button-sm{min-height:32px;font-size:0.8125rem}.tcg-repricer-app .tr-button.tr-button-primary{box-shadow:none}.tcg-repricer-app .tr-button svg{flex-basis:16px;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tcg-repricer-app .tr-button:disabled{cursor:not-allowed;opacity:0.5;transform:none}.tcg-repricer-app .tr-tag{font-weight:600;white-space:nowrap}.tcg-repricer-page .smooth-select-proxy,.tcg-repricer-page .throne-smooth-select{display:block;width:100%;min-width:0;max-width:100%}.tcg-dropzone{position:relative;display:block;min-width:0;border:2px dashed var(--tcg-dropzone-border);border-radius:10px;background:var(--throne-surface);cursor:pointer;transition:border-color 140ms ease,background-color 140ms ease}.tcg-dropzone:hover,.tcg-dropzone.is-dragover{border-color:var(--tcg-dropzone-hover);background:var(--tcg-dropzone-fill)}.tcg-dropzone:focus-within{outline:2px solid var(--tcg-accent);outline-offset:2px}.tcg-repricer-app[aria-busy=true] .tcg-dropzone{cursor:progress}.tcg-file-input{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;opacity:0;clip-path:inset(50%)}.tcg-dropzone-empty,.tcg-dropzone-file{display:flex;align-items:center;gap:14px;min-width:0}.tcg-dropzone-empty{min-height:128px;padding:20px 24px}.tcg-dropzone-file{min-height:64px;padding:12px 14px 12px 16px}.tcg-dropzone[data-state=file]{border-style:solid;border-width:1px;border-color:var(--throne-border)}.tcg-dropzone[data-state=file]:hover,.tcg-dropzone[data-state=file].is-dragover{border-color:var(--tcg-dropzone-hover)}.tcg-dropzone[data-state=file] .tcg-dropzone-empty,.tcg-dropzone:not([data-state=file]) .tcg-dropzone-file{display:none}.tcg-dropzone-icon,.tcg-file-icon{flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tcg-dropzone-icon{width:40px;height:40px;color:var(--tcg-accent)}.tcg-file-icon{width:28px;height:28px;color:var(--throne-text-secondary)}.tcg-dropzone-copy,.tcg-file-meta{display:grid;gap:4px;flex:1 1 auto;min-width:0}.tcg-dropzone-copy strong,.tcg-file-meta strong{color:var(--throne-text-primary);font-size:0.9375rem;font-weight:650;line-height:1.3;overflow-wrap:anywhere}.tcg-dropzone-copy span,.tcg-file-meta span{color:var(--throne-text-secondary);font-size:0.8125rem;line-height:1.4}.tcg-file-meta span{font-variant-numeric:tabular-nums}.tcg-choose-button,.tcg-replace-button{flex:0 0 auto;pointer-events:none}.tcg-step-head .tcg-profile-status{margin-left:auto;max-width:60%;overflow:hidden;text-overflow:ellipsis}.tcg-profile-row{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:20px;align-items:end;min-width:0}.tcg-profile-summary{display:grid;gap:4px;min-width:0;margin:0;padding-bottom:2px}.tcg-profile-summary>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;min-width:0}.tcg-profile-summary dt{color:var(--throne-text-muted);font-size:0.8125rem;font-weight:500}.tcg-profile-summary dd{margin:0;min-width:0;color:var(--throne-text-primary);font-size:0.8125rem;font-weight:500;line-height:1.45}.tcg-profile-summary dd>span{white-space:nowrap}.tcg-settings{margin-top:14px;border-top:1px solid var(--throne-border)}.tcg-settings-toggle{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin-top:10px;padding:0 10px 0 6px;border-radius:var(--tr-radius-sm);color:var(--tcg-accent);font-size:0.875rem;font-weight:600;cursor:pointer;list-style:none;-webkit-user-select:none;user-select:none}.tcg-settings-toggle::-webkit-details-marker{display:none}.tcg-settings-toggle:hover{background:var(--throne-surface-hover, var(--tr-slate-100))}.tcg-settings-toggle:focus-visible{outline:2px solid var(--tcg-accent);outline-offset:2px}.tcg-settings-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform 140ms ease}.tcg-settings[open]>.tcg-settings-toggle svg{transform:rotate(90deg)}.tcg-settings-body{display:grid;gap:16px;min-width:0;padding-top:12px}.tcg-profile-edit{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;min-width:0}.tcg-profile-name-field{flex:1 1 260px;max-width:420px}.tcg-profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tcg-settings-grid{display:grid;gap:12px;min-width:0}.tcg-settings-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start;min-width:0;margin:0;padding:14px;border:1px solid var(--throne-border);border-radius:var(--tr-radius-md);background:var(--throne-surface-muted)}.tcg-settings-card legend{float:left;grid-column:1 / -1;width:100%;margin:0 0 2px;padding:0;color:var(--throne-text-primary);font-size:0.875rem;font-weight:650}.tcg-adjustment-control{display:grid;grid-template-columns:minmax(112px,1fr) minmax(72px,1fr);gap:8px;min-width:0}.tcg-checks{display:flex;gap:10px 24px;flex-wrap:wrap;min-width:0}.tcg-check{display:inline-flex;align-items:flex-start;gap:8px;min-width:0;color:var(--throne-text-primary);font-size:0.875rem;font-weight:500;line-height:1.4;cursor:pointer}.tcg-check input{flex:0 0 auto;width:16px;height:16px;margin:2px 0 0;accent-color:var(--tcg-accent)}.tcg-run-head{flex-wrap:wrap}.tcg-run-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.tcg-status{margin:0 0 12px;padding:10px 12px;border-radius:var(--tr-radius-md);font-size:0.875rem;font-weight:500}.tcg-status.tr-alert-info{background:var(--throne-status-info-bg);border-color:transparent;color:var(--throne-status-info-text)}.tcg-status.tr-alert-success{background:var(--throne-status-success-bg);border-color:transparent;color:var(--throne-status-success-text)}.tcg-status.tr-alert-warning{background:var(--throne-status-warning-bg);border-color:transparent;color:var(--throne-status-warning-text)}.tcg-status.tcg-alert-error{background:var(--throne-status-danger-bg);border-color:rgba(185,28,28,0.18);color:var(--throne-status-danger-text)}.tcg-progress{position:relative;height:6px;margin:-4px 0 14px;overflow:hidden;border-radius:999px;background:var(--throne-surface-muted)}.tcg-progress-bar{display:block;width:0;height:100%;border-radius:inherit;background:var(--tcg-accent);transition:width 160ms ease}.tcg-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;min-width:0;margin:0 0 14px;overflow:hidden;border:1px solid var(--throne-border);border-radius:var(--tr-radius-md);background:var(--throne-border)}.tcg-metric{min-width:0;padding:9px 12px;background:var(--throne-surface-muted)}.tcg-metric dt{color:var(--throne-text-secondary);font-size:0.75rem;font-weight:500;white-space:nowrap}.tcg-metric dd{margin:2px 0 0;color:var(--throne-text-primary);font-size:1.125rem;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums}.tcg-preview-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;color:var(--throne-text-secondary);font-size:0.8125rem;font-weight:500;font-variant-numeric:tabular-nums}.tcg-preview-page-controls,.tcg-preview-page-number{display:flex;align-items:center;gap:8px}.tcg-preview-page-number .tr-field-control{width:64px;min-height:32px;padding:0 8px;text-align:center}.tcg-table-wrap{max-width:100%;min-width:0;background:var(--tr-surface)}.tcg-repricer-app .tcg-table{min-width:640px;width:100%;table-layout:auto;background:var(--tr-surface)}.tcg-repricer-app .tcg-table th,.tcg-repricer-app .tcg-table td{padding:9px 12px;font-size:0.8125rem;vertical-align:middle}.tcg-repricer-app .tcg-table th{font-size:0.6875rem;font-weight:650;letter-spacing:0.06em;white-space:nowrap}.tcg-repricer-app .tcg-table .tcg-col-num{width:1%;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.tcg-repricer-app .tcg-table .tcg-col-card{min-width:200px}.tcg-card-name,.tcg-basis-column{display:block;color:var(--throne-text-primary);font-weight:600;line-height:1.35}.tcg-card-meta,.tcg-basis-detail{display:block;margin-top:2px;color:var(--throne-text-muted);font-size:0.75rem;line-height:1.35;font-variant-numeric:tabular-nums}.tcg-basis-column{font-weight:500;white-space:nowrap}.tcg-repricer-app .tcg-table td.tcg-price-old{color:var(--throne-text-secondary)}.tcg-repricer-app .tcg-table td.tcg-price-new{color:var(--throne-text-primary);font-weight:650}.tcg-repricer-app .tcg-table td.tcg-price-change[data-tone=up]{color:var(--throne-text-gain)}.tcg-repricer-app .tcg-table td.tcg-price-change[data-tone=down]{color:var(--throne-text-loss)}.tcg-repricer-app .tcg-table td.tcg-price-change[data-tone=same]{color:var(--throne-text-muted)}.tcg-tag-neutral{background:var(--throne-surface-muted);border-color:var(--throne-border);color:var(--throne-text-secondary)}.tcg-repricer-app .tcg-table td.tcg-empty{padding:28px 16px;color:var(--throne-text-secondary);font-size:0.875rem;text-align:center}html.throne-theme-dark .tcg-repricer-app{--tcg-accent: #ededed;--tcg-dropzone-border: rgba(255, 255, 255, 0.22);--tcg-dropzone-hover: rgba(255, 255, 255, 0.45);--tcg-dropzone-fill: rgba(255, 255, 255, 0.04)}html.throne-theme-dark .tcg-repricer-app .tcg-status.tcg-alert-error{border-color:rgba(255,154,168,0.28)}@media(max-width:1100px){.tcg-settings-card{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.tcg-profile-row{grid-template-columns:1fr;gap:12px}.tcg-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.tcg-metric:last-child{grid-column:span 2}}@media(max-width:720px){.tcg-repricer-page{padding:0 var(--throne-page-inline) 28px}.tcg-repricer-app{gap:16px}.tcg-step{padding:14px}.tcg-dropzone-empty{flex-direction:column;justify-content:center;min-height:0;padding:22px 16px;text-align:center}.tcg-dropzone-copy{justify-items:center}.tcg-dropzone-icon{width:34px;height:34px}.tcg-dropzone-file{gap:10px;padding:10px 10px 10px 12px}.tcg-step-head .tcg-profile-status{max-width:55%}.tcg-profile-summary>div{grid-template-columns:1fr;gap:0}.tcg-settings-card{grid-template-columns:1fr;padding:12px}.tcg-profile-name-field{max-width:none}.tcg-run-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin-left:0}.tcg-preview-pager{align-items:stretch;flex-direction:column}.tcg-preview-page-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.tcg-preview-page-controls .tr-button.tr-button-sm{padding:0 6px}.tcg-preview-page-number{grid-column:1 / -1;grid-row:2;justify-content:center}.tcg-repricer-app .tcg-table:has(td.tcg-empty){min-width:0}.tcg-repricer-app .tcg-table:has(td.tcg-empty) thead{display:none}.tcg-repricer-app .tcg-table .tcg-col-card{position:sticky;left:0;z-index:1;min-width:150px;max-width:170px;background:var(--tr-surface);box-shadow:1px 0 0 var(--throne-border)}.tcg-repricer-app .tcg-table thead .tcg-col-card{z-index:2;background:var(--tr-slate-050)}html.throne-theme-dark .tcg-repricer-app .tcg-table tr:hover td.tcg-col-card{background:linear-gradient(rgba(var(--throne-accent-rgb),0.08) 0 0),var(--tr-surface)!important}html.throne-theme-dark .tcg-repricer-app .tcg-table thead .tcg-col-card{background:var(--throne-surface-muted)!important}}
