.cr-shell{--cr-border:#343330;--cr-panel:#171819;--cr-yellow:#e5bd48;max-width:1600px;margin:auto;font-size:16px;line-height:1.5;color:#ebe9e3;padding:8px}.cr-shell *{box-sizing:border-box}.cr-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:28px 30px;border:1px solid #51462a;background:linear-gradient(125deg,#24221a,#161719);border-radius:16px;margin-bottom:20px}.cr-hero h2{font-size:30px;margin:5px 0 8px;color:#f2d783}.cr-hero p{margin:0;color:#bfbfb8}.cr-hero small{color:#b5b3a9;flex-shrink:0;text-align:end}.cr-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.cr-shell button{font-family:inherit;font-size:15px;font-weight:600;border-radius:9px;border:1px solid #514b3b;background:#272724;color:#ece8dc;padding:11px 17px;cursor:pointer;min-height:44px}.cr-shell button:hover{border-color:#e5bd48;background:#343124}.cr-shell button:disabled{cursor:default;opacity:.46}.cr-tabs button.active{background:#dfb741;color:#171511;border-color:#dfb741}.cr-modes{margin-bottom:24px}.cr-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.cr-section{background:var(--cr-panel);border:1px solid var(--cr-border);border-radius:14px;padding:24px;min-width:0}.cr-section h3,.cr-result h3{font-size:20px;color:#ead28c;margin:0 0 18px;letter-spacing:.2px}.cr-section:first-child,.cr-section:last-child{grid-column:1/-1}.cr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cr-section:first-child .cr-grid{grid-template-columns:2fr 1fr 1fr 1fr}.cr-field{display:flex;flex-direction:column;gap:8px;min-width:0}.cr-field>span{font-size:15px;color:#d2d2cb;font-weight:600}.cr-shell input:not([type=checkbox]),.cr-shell select{width:100%;border:1px solid #494941;border-radius:8px;background:#101112;color:#f1efe7;font:inherit;font-size:16px;padding:11px 12px;min-height:46px;max-width:100%;outline:none}.cr-shell input:focus,.cr-shell select:focus{border-color:var(--cr-yellow);box-shadow:0 0 0 2px #e5bd4820}.cr-shell input::placeholder{color:#92958c}.cr-shell input:disabled,.cr-shell select:disabled{opacity:.6}.cr-shell select{color-scheme:dark;text-overflow:ellipsis}.cr-shell option{background:#161719}.cr-check{display:flex;gap:10px;align-items:center;min-height:46px;padding:12px;border:1px solid #454237;border-radius:9px;background:#252219;font-weight:600}.cr-check input{width:20px;height:20px;accent-color:#e5bd48;flex-shrink:0}.cr-hint{color:#adafa6;font-size:14px;margin:0 0 18px;grid-column:1/-1}.cr-grid>.cr-hint{margin:0}.cr-advanced,.cr-presets,.cr-preset{grid-column:1/-1}.cr-advanced{border-top:1px solid #393930;padding-top:12px}.cr-shell summary{cursor:pointer;color:#d6cba4;font-size:15px;padding:8px 0}.cr-advanced[open] summary{margin-bottom:12px}.cr-advanced p{font-size:13px;color:#a8aba1}.cr-preset{display:flex;gap:10px}.cr-preset button{flex-shrink:0}.cr-presets{display:flex;gap:8px;flex-wrap:wrap}.cr-presets button{font-size:13px;padding:7px 10px;min-height:36px}.cr-fact{padding:15px;border:1px solid #464331;border-radius:9px;display:flex;flex-direction:column;gap:6px}.cr-fact b{font-size:24px;color:#edd38a}.cr-actions{position:sticky;top:0;z-index:10;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px;margin:22px 0;background:#20211fed;border:1px solid #5b4c2a;border-radius:12px;box-shadow:0 5px 18px #0007}.cr-actions button[data-scan-source=api],.cr-actions button[data-calculate]{background:#d8b547;color:#17150f}.cr-actions [role=status]{color:#d9cd9b;font-size:14px;margin-inline-start:auto}.cr-empty{padding:38px;text-align:center;background:#161719;border:1px dashed #55503e;border-radius:13px;color:#b9b9b0}.cr-result{border:1px solid #3a3c32;background:#141617;border-radius:14px;padding:26px}.cr-result-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.cr-result-header h2{font-size:26px;color:#f0d586;margin:0 0 8px}.cr-result-header p{font-size:14px;color:#adafa6;margin:0}.cr-result-actions{display:flex;gap:8px;flex-wrap:wrap}.cr-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:22px 0}.cr-metric{padding:16px;background:#22231e;border:1px solid #404331;border-radius:11px;display:flex;flex-direction:column;gap:9px}.cr-metric span{font-size:13px;color:#b8bca9}.cr-metric b{font-size:23px;font-weight:700;letter-spacing:.2px;color:#f0d381;overflow-wrap:anywhere}.cr-missing{background:#34241f;color:#efc0a3;border:1px solid #71503f;border-radius:10px;padding:16px}.cr-missing ul{padding-inline-start:24px;font-size:13px;max-height:210px;overflow:auto;margin-bottom:0}.cr-error,.cr-warning{padding:14px;border:1px solid #71593d;border-radius:9px;background:#2e271c;color:#ddc39c;font-size:14px}.cr-bonuses{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 24px}.cr-bonuses>div{display:flex;flex-direction:column;gap:6px;padding:13px;background:#20221f;border-radius:8px;border:1px solid #353930}.cr-bonuses span{font-size:13px;color:#b4b8a9}.cr-bonuses b{color:#e8d49b}.cr-table-shell{border:1px solid #353930;border-radius:10px;overflow:auto;max-height:660px;margin:14px 0 26px;scrollbar-color:#5c5746 #171819}.cr-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;white-space:nowrap;background:#17191a}.cr-table th{background:#292a23;color:#ddd5b7;padding:14px 12px;text-align:start;position:sticky;top:0;z-index:3;border-bottom:1px solid #57553e;font-size:13px;font-weight:600}.cr-table td{padding:14px 12px;border-bottom:1px solid #30342e;vertical-align:top;max-width:430px}.cr-table tbody tr:nth-child(even){background:#1d201e}.cr-table tbody tr:hover{background:#292d23}.cr-table tbody tr[hidden]{display:none}.cr-table td:first-child{white-space:normal;min-width:150px}.cr-table small{display:block;white-space:normal;font-size:11px;color:#a4aaa0;margin-top:6px;max-width:310px;overflow-wrap:anywhere}.cr-table td select{min-width:150px;font-size:14px}.cr-table td button{font-size:13px;padding:8px 12px;min-height:35px}.cr-price{display:flex;gap:6px;width:210px}.cr-price input{min-width:0;font-size:15px!important}.cr-price button{width:36px;padding:5px!important}.cr-revenue-price{display:flex;gap:20px;align-items:center;flex-wrap:wrap;background:#27271d;border:1px solid #5c5634;padding:16px;border-radius:10px;margin-bottom:16px}.cr-revenue-price>small{max-width:300px;font-size:12px;color:#b3b9a6}.cr-detail{border:1px solid #393d32;border-radius:9px;margin-bottom:15px;padding:10px 15px}.cr-filter{display:inline-block;margin-inline-start:6px;position:relative}.cr-filter>summary{display:inline;padding:5px;list-style:none;font-size:12px;color:#e3cb77}.cr-filter>div{position:absolute;top:100%;inset-inline-start:-60px;width:225px;z-index:20;background:#292b24;border:1px solid #6a6142;border-radius:8px;box-shadow:0 8px 22px #000b;padding:12px;display:grid;gap:8px;white-space:normal}.cr-filter input,.cr-filter select{min-height:34px!important;font-size:13px!important;padding:7px!important}.cr-filter button{min-height:30px!important;padding:6px!important}.cr-table-shell:has(.cr-filter[open]){overflow-y:visible;max-height:none}.cr-shell .eyebrow{font-size:11px;color:#c3a14b;letter-spacing:2px}.cr-table button[data-inspect-result]{text-align:start;white-space:normal;min-width:160px}.cr-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.cr-pager span{color:#adafa6;font-size:14px}
@media(min-width:1200px){.cr-section:has([data-cr-field=startRefining]) .cr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.cr-form{grid-template-columns:1fr}.cr-section:first-child .cr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.cr-bonuses{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-result-header{align-items:start;flex-direction:column}}
@media(max-width:600px){.cr-shell{padding:0;font-size:15px}.cr-hero{padding:21px;align-items:start;flex-direction:column}.cr-hero h2{font-size:26px}.cr-hero small{text-align:start}.cr-section{padding:18px}.cr-grid,.cr-section:first-child .cr-grid{grid-template-columns:1fr}.cr-tabs{gap:7px}.cr-tabs button{flex:1;font-size:13px;padding:10px}.cr-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-metric{padding:12px}.cr-metric b{font-size:20px}.cr-result{padding:16px}.cr-result-header h2{font-size:23px}.cr-actions{padding:10px;position:static}.cr-actions [role=status]{width:100%;margin-inline-start:0}.cr-actions button{flex:1;padding:10px;font-size:14px}.cr-bonuses{grid-template-columns:1fr 1fr}.cr-preset{flex-direction:column}.cr-table td{padding:12px 9px}.cr-table th{padding:12px 9px}}

.cr-pagination,.cr-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0}.cr-pagination button{min-width:44px}.cr-bulk button{min-height:44px}.cr-csv{margin-bottom:16px}.cr-result input[type=checkbox]{width:22px;height:22px;accent-color:#edc52e}

.cr-table th:has(.cr-filter[open]){z-index:100}.cr-filter>div{position:fixed;max-height:calc(100vh - 16px);overflow:auto;z-index:1000}.cr-table-shell:has(.cr-filter[open]){overflow:auto;max-height:660px}

.cr-item-cell,.cr-result-item{display:flex;align-items:center;gap:12px;min-width:0}.cr-item-copy{display:flex;flex-direction:column;gap:4px;min-width:0;white-space:normal}.cr-item-copy b{overflow-wrap:anywhere}.cr-item-copy small{margin:0;font-size:11px;color:#a7aa9e;overflow-wrap:anywhere}.cr-icon-wrap{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #4c4630;border-radius:8px;background:#24241e;overflow:hidden}.cr-icon-wrap img{display:block;width:100%;height:100%;object-fit:contain}.cr-icon-wrap img[hidden]{display:none}.cr-icon-large{width:64px;height:64px;flex-basis:64px}.cr-icon-missing{display:none;color:#a7aa9e;font-size:22px}.cr-icon-unavailable .cr-icon-missing{display:flex}.cr-all-items{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #685c30;border-radius:8px;background:#302a18;color:#ecd27d;font-size:28px}.cr-table .cr-item-cell{min-width:210px}.cr-shell button.cr-inspect-item{width:100%;text-align:start;background:transparent;border-color:transparent;padding:4px;min-width:220px}.cr-shell button.cr-inspect-item:hover{border-color:#b69a47;background:#333022}.cr-result-item>div{min-width:0}.cr-back-scanner{margin-bottom:20px}
.cr-item-picker{position:relative;min-width:0}.cr-item-picker>summary{display:flex;align-items:center;gap:12px;min-height:82px;border:1px solid #494941;border-radius:9px;padding:9px 12px;background:#101112;list-style:none}.cr-item-picker>summary::-webkit-details-marker{display:none}.cr-item-picker>summary:focus-visible{outline:2px solid #e5bd48;outline-offset:2px}.cr-item-picker[open]>summary{border-color:#e5bd48}.cr-item-picker>summary .cr-item-copy{flex:1;color:#f1efe7}.cr-picker-arrow{margin-inline-start:auto;color:#e5bd48}.cr-picker-panel{position:absolute;z-index:50;top:calc(100% + 6px);inset-inline-start:0;width:100%;min-width:280px;max-width:calc(100vw - 56px);padding:12px;border:1px solid #78683b;border-radius:10px;background:#191b19;box-shadow:0 10px 30px #000b}.cr-picker-panel #crItemSearch{margin-bottom:10px}.cr-picker-panel [role=listbox]{max-height:360px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#75643a #161719}.cr-shell button.cr-picker-option{display:flex;align-items:center;gap:12px;width:100%;text-align:start;border-color:transparent;background:transparent;border-radius:6px;padding:9px;min-height:64px;font-size:15px}.cr-shell button.cr-picker-option[hidden]{display:none}.cr-shell button.cr-picker-option:hover,.cr-shell button.cr-picker-option:focus-visible{background:#343021;border-color:#e5bd48;outline:none}.cr-shell button.cr-picker-option[aria-selected=true]{background:#302b1c;border-color:#7f6c34}.cr-picker-option .cr-item-cell{width:100%}.cr-picker-empty{padding:15px;color:#b9b9b0}
@media(max-width:600px){.cr-picker-panel{min-width:0;max-width:100%}.cr-picker-panel [role=listbox]{max-height:300px}.cr-result-item .cr-icon-large{width:54px;height:54px;flex-basis:54px}.cr-result-item h2{overflow-wrap:anywhere}.cr-result-item p{overflow-wrap:anywhere}}
.cr-location-assumptions{display:grid;gap:8px;max-height:420px;overflow:auto}.cr-location-row{display:grid;grid-template-columns:minmax(160px,1fr) 100px 140px;gap:10px;align-items:center;padding:10px;border:1px solid var(--border,#343844);border-radius:8px}.cr-location-row label{display:flex;gap:6px;align-items:center}.cr-location-row input[type=number]{width:100px}.cr-favorite{display:flex;gap:12px;align-items:center}.station-rewards .table-shell{overflow:auto;max-height:650px}.station-rewards td input{max-width:110px}.station-rewards td small{display:block;font-size:10px;max-width:170px;overflow-wrap:anywhere}.nut-selected{background:rgba(216,168,93,.12)}.cr-positive{color:#9dd2a4}.cr-form .cr-advanced{grid-column:1/-1}.cr-fact small{overflow-wrap:anywhere}.cr-summary{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}@media(max-width:600px){.cr-location-row{grid-template-columns:1fr 80px 110px;font-size:12px}.cr-location-row input[type=number]{width:80px}.cr-location-row label{display:block}.cr-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact character controls. Identity labels are not result metrics. */
.cr-shell .cr-character-section{padding:17px 18px}.cr-character-section h3{font-size:17px;margin-bottom:10px}.cr-character-section .cr-help{font-size:12px;margin:0 0 12px}.cr-shell .cr-character-section .cr-grid{grid-template-columns:1.25fr 1fr 1fr 1.35fr;gap:12px;align-items:end}.cr-character-section .cr-field{gap:5px}.cr-character-section .cr-field>span,.cr-spec-character>span{font-size:12px;font-weight:600;color:#c6c6bc}.cr-character-section .cr-check{min-height:42px;align-self:end;padding:9px 11px;font-size:13px;background:#202016}.cr-character-section input:not([type=checkbox]){min-height:42px;padding:9px 10px;font:14px Arial,Tahoma,sans-serif}.cr-spec-character{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;min-width:0;align-items:center}.cr-spec-character>span{grid-column:1/-1}.cr-spec-character>b{font:600 14px/1.4 Arial,Tahoma,sans-serif;color:#ddcf95;overflow-wrap:anywhere}.cr-shell .cr-spec-character button{padding:8px 10px;min-height:42px;font-size:12px;white-space:nowrap}.spec-character-head h3{margin:0;font-size:17px}.spec-character-add input{min-height:40px}
@media(max-width:1100px){.cr-shell .cr-character-section .cr-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.cr-shell .cr-character-section{padding:14px}.cr-shell .cr-character-section .cr-grid{grid-template-columns:1fr 1fr;gap:10px}.cr-character-section .cr-check{grid-column:1/-1}.cr-spec-character{grid-column:1/-1}.cr-character-section .cr-field>span{font-size:11px}}

/* Whole values stay on one line, with a font that fits the available card. */
.cr-ref-prices-section,#crRefResourcePrices{grid-column:1/-1;min-width:0}.cr-resource-price-list{display:grid;gap:10px}.cr-resource-price-row{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #403e2f;border-radius:9px;background:#1d1f19}.cr-resource-kind{display:block;margin:6px 0 0;color:#b7b8a9;font-size:11px}.cr-resource-price-row .cr-field{gap:5px}.cr-resource-price-row .cr-field>span{font-size:12px}.cr-resource-price-row .cr-field small{color:#bdb396;font-size:11px}.cr-resource-price-row button{font-size:12px;padding:9px 11px}.cr-resource-quote{grid-column:1/-1;margin:0;color:#b9b6a1;font-size:12px}
@media(max-width:900px){.cr-resource-price-row{grid-template-columns:1fr 1fr}.cr-resource-price-row>div:first-child{grid-column:1/-1}}
@media(max-width:600px){.cr-resource-price-row{grid-template-columns:1fr 1fr;padding:10px;gap:10px}.cr-resource-price-row>button{grid-column:1/-1}.cr-resource-price-row input,.cr-resource-price-row select{font-size:14px}}
.cr-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
.cr-metric{min-width:0;container-type:inline-size}
.cr-metric b{display:block;width:100%;font-family:Arial,Tahoma,sans-serif;font-size:clamp(13px,calc(100cqi / var(--cr-value-chars,12) * 1.55),20px);font-variant-numeric:tabular-nums;letter-spacing:0;line-height:1.3;white-space:nowrap;overflow-wrap:normal;word-break:normal;unicode-bidi:isolate}
.cr-character-section .cr-spec-character select{min-height:42px;padding:9px 28px 9px 10px;font:14px Arial,Tahoma,sans-serif;min-width:0}
.cr-spec-character small{grid-column:1/-1;font:12px Arial,Tahoma,sans-serif;color:#d7c791}
.cr-sale-toggle,.cr-sale-options{grid-column:1/-1}
.cr-sale-options:empty{display:none}
@media(max-width:600px){.cr-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-metric{padding:11px}.cr-metric b{font-size:clamp(11px,calc(100cqi / var(--cr-value-chars,12) * 1.55),18px)}}
