:root{--bg:#f5f7fb;--panel:#fff;--ink:#172033;--muted:#697386;--line:#e3e8ef;--brand:#246bfd;--red:#b42318;--green:#067647}*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei",system-ui,sans-serif;background:var(--bg);color:var(--ink)}header{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 28px;position:sticky;top:0;z-index:5}.brand{font-weight:800;font-size:20px;text-decoration:none;color:var(--ink)}header nav{display:flex;gap:14px;margin-left:auto}header a{color:#354052;text-decoration:none}header select,header input{height:38px}.search{display:flex;min-width:260px}.search input{flex:1}.search button{border-radius:0 8px 8px 0}main{max-width:1240px;margin:0 auto;padding:28px}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.page-head h1{margin:0 0 5px}.muted{color:var(--muted)}.panel,.item-card,.login-card,.empty,.suggest{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 2px 8px #1720330a}.login-card{max-width:410px;margin:9vh auto;padding:36px}.stack{display:grid;gap:17px}.stack label,.entry-grid label{display:grid;gap:7px;font-weight:600}input,select,button,.button{font:inherit;border:1px solid #cbd3df;border-radius:8px;padding:9px 12px;background:#fff}button,.button{cursor:pointer;text-decoration:none;color:inherit;display:inline-block}.primary{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:700}.ghost{border:0}.alert{background:#fff0ee;color:var(--red);padding:10px;border-radius:8px;margin:14px 0}.success{background:#ecfdf3;color:var(--green);padding:12px;border-radius:8px;margin-bottom:16px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.item-card{display:flex;gap:16px;color:inherit;text-decoration:none;transition:.15s}.item-card:hover{transform:translateY(-2px);border-color:#a9bfff}.thumb,.title-with-image img{width:70px;height:70px;border-radius:12px;background:#edf2ff;display:grid;place-items:center;overflow:hidden;font-size:28px;font-weight:800;color:var(--brand)}.thumb img,.title-with-image img{width:100%;height:100%;object-fit:cover}.item-card h3{margin:0 0 8px}.price{font-size:24px;font-weight:800}.price small{font-size:12px;color:var(--muted)}.range,.meta{font-size:13px;margin-top:5px}.scarcity{color:#b54708}.two-col{display:grid;grid-template-columns:390px 1fr;gap:18px}.inline,.actions{display:flex;gap:10px;align-items:center}.list{display:grid;margin-top:15px}.list a{padding:13px 4px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;text-decoration:none;color:inherit}.list span{color:var(--muted)}.entry-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:16px;align-items:end}.entry-grid .wide{grid-column:1/4}.big{height:43px}.tabs{display:flex;gap:8px;margin-bottom:16px}.tabs a{padding:8px 14px;border-radius:8px;text-decoration:none;color:inherit}.tabs .active{background:#172033;color:#fff}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.stats-grid div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px}.stats-grid span{display:block;color:var(--muted);font-size:13px;margin-bottom:8px}.stats-grid b{font-size:19px}.suggest{background:linear-gradient(120deg,#172033,#253a67);color:#fff;margin-bottom:16px}.suggest span{opacity:.75}.suggest strong{display:block;font-size:28px;margin:8px 0}.suggest p{margin:0;opacity:.75}.title-with-image{display:flex;gap:14px;align-items:center}.title-with-image img{object-fit:cover}.narrow{max-width:560px}.empty{text-align:center;padding:60px}.capture-box{max-width:760px}.pending{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}table{width:100%;border-collapse:collapse;margin-top:14px}th,td{text-align:left;padding:11px;border-bottom:1px solid var(--line)}th{font-size:13px;color:var(--muted)}tr.anomaly{background:#fff5f3;color:#8a1c13}canvas{width:100%}@media(max-width:900px){header{height:auto;flex-wrap:wrap;padding:12px}header nav{order:3;width:100%;overflow:auto}.two-col,.entry-grid{grid-template-columns:1fr}.entry-grid .wide{grid-column:auto}.stats-grid{grid-template-columns:repeat(2,1fr)}main{padding:16px}}
/* history calendar */
.history-shell{max-width:1180px;margin:0 auto}.history-heading,.detail-title,.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.history-heading{margin-bottom:20px}.history-heading h1,.detail-title h2{margin:3px 0}.eyebrow{margin:0;color:#668578;font-size:13px;font-weight:700;letter-spacing:.08em}.muted{color:#748078}.today-link,.month-button{border:1px solid #cddbd4;background:#fff;color:#2e5d49;border-radius:12px;padding:9px 14px;text-decoration:none}.calendar-card,.history-details{background:#fff;border:1px solid #e2e8e4;border-radius:18px;padding:22px;box-shadow:0 8px 28px rgba(40,67,53,.06)}.calendar-toolbar h2{margin:0}.month-button{font-size:26px;padding:6px 14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-weekdays{margin:20px 0 8px;color:#7c877f;text-align:center;font-size:13px}.calendar-day{min-height:86px;border-radius:13px;padding:10px;display:flex;flex-direction:column;justify-content:space-between;text-decoration:none;border:1px solid transparent}.calendar-day.no-data{background:#f4f5f4;color:#8a918d;border-color:#ecefed}.calendar-day.has-data{background:#edf7f1;color:#245c43;border-color:#cce6d7}.calendar-day.is-today{box-shadow:inset 0 0 0 2px #587568}.calendar-day.is-selected{outline:2px solid #2f7656;outline-offset:2px}.day-number{font-size:18px;font-weight:750}.day-status{font-size:12px}.empty{min-height:86px}.history-details{margin-top:20px}.history-search{display:flex;gap:8px}.history-search input{min-width:260px}.empty-state{padding:42px 18px;background:#f7f8f7;border-radius:14px;text-align:center;display:flex;flex-direction:column;gap:7px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}.summary-card{border:1px solid #e3e9e5;border-radius:14px;padding:15px}.item-title{display:flex;align-items:center;gap:9px}.item-title img,.record-row img,.image-placeholder{width:42px;height:42px;border-radius:9px;object-fit:cover}.sale-tag{color:#496a59;background:#eef3f0;padding:3px 8px;border-radius:999px;font-size:12px}.summary-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}.summary-card dl div,.record-row>div:not(.record-main):not(.image-placeholder){display:flex;flex-direction:column}.summary-card dt,.record-row small{color:#879087;font-size:12px}.summary-card dd{margin:2px 0 0;font-weight:700}.records-title{margin-top:28px}.records-title span{font-size:13px;color:#7b867e;font-weight:400}.record-list{display:flex;flex-direction:column;gap:8px}.record-row{display:grid;grid-template-columns:44px minmax(130px,1.3fr) auto minmax(80px,.6fr) minmax(70px,.5fr) minmax(180px,1.4fr);gap:13px;align-items:center;padding:12px;border:1px solid #e7ebe8;border-radius:12px}.record-main{display:flex;flex-direction:column}.record-main span{color:#7d877f;font-size:12px}.image-placeholder{display:grid;place-items:center;background:#eef1ef;color:#839087}@media(max-width:760px){.history-heading,.detail-title{align-items:flex-start;flex-direction:column}.history-search{width:100%}.history-search input{min-width:0;flex:1}.calendar-card{padding:12px}.calendar-grid{gap:4px}.calendar-day,.empty{min-height:64px;padding:7px}.day-status{font-size:10px}.record-row{grid-template-columns:42px 1fr auto}.record-row>div:nth-last-child(-n+3){grid-column:2/4}.summary-card dl{grid-template-columns:1fr}.history-details{padding:14px}}


.history-shell{min-width:0}.calendar-card,.history-details{min-width:0;overflow:hidden}@media(max-width:1100px){body:has(.history-shell) header{flex-wrap:wrap}body:has(.history-shell) header .search{order:3;flex:1 1 100%}body:has(.history-shell) main{min-width:0}}
/* earnings ledger */
.earn-shell{max-width:1180px;margin:0 auto}.earn-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.earn-head h1{margin:4px 0}.date-picker{display:flex;align-items:flex-end;gap:8px}.date-picker label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#748078}.earn-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.earn-summary>div,.missing-card,.earn-form,.earned-list{background:#fff;border:1px solid #e2e8e4;border-radius:16px;box-shadow:0 7px 24px rgba(42,69,55,.05)}.earn-summary>div{padding:17px;display:flex;flex-direction:column;gap:6px}.earn-summary small{color:#7b867f}.earn-summary strong{font-size:20px}.earn-summary .total{background:#edf7f1;border-color:#cce6d7}.missing-card{border-color:#efd59a;background:#fffaf0;padding:18px;display:flex;justify-content:space-between;gap:20px}.missing-card h2,.missing-card p{margin:0 0 5px}.missing-tags{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.missing-tags span,.no-price{background:#fff0cf;color:#805d16;border-radius:999px;padding:5px 10px;font-size:12px}.earn-form{margin-top:16px;overflow:hidden}.earn-toolbar,.earn-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 18px}.earn-toolbar h2,.earn-toolbar p{margin:0 0 3px}.earn-table-wrap{overflow:auto}.earn-table{width:100%;border-collapse:collapse}.earn-table th,.earn-table td{padding:11px 14px;border-top:1px solid #edf0ee;text-align:left}.earn-table th{font-size:12px;color:#77827b;background:#f8faf8}.earn-table input[type=number]{width:130px}.earn-item{display:flex;align-items:center;gap:9px}.earn-item img{width:38px;height:38px;object-fit:cover;border-radius:8px}.earn-table td small{display:block;color:#89938c}.earn-table tr.has-qty{background:#fbfdfb}.earn-table tr.needs-price{background:#fffaf0}.earn-actions{border-top:1px solid #edf0ee}.earn-actions span{font-size:13px;color:#768179}.earned-list{margin-top:16px;padding:18px}.earned-list article{display:grid;grid-template-columns:1fr auto auto;gap:18px;padding:11px 0;border-top:1px solid #edf0ee}.earned-list article span{color:#748078}.earn-notice{padding:12px 15px;border-radius:12px;background:#fff4db;color:#765719}.earn-notice.success{background:#edf7f1;color:#286044}@media(max-width:760px){.earn-head,.missing-card,.earn-actions{align-items:stretch;flex-direction:column}.earn-summary{grid-template-columns:1fr 1fr}.earn-table{min-width:720px}.earned-list article{grid-template-columns:1fr}.date-picker{width:100%}.date-picker label{flex:1}}


.quick-item{display:flex;align-items:center;gap:12px;margin-top:16px;padding:14px 16px;background:#f7faf8;border:1px dashed #c8d8cf;border-radius:14px}.quick-item div{display:flex;flex-direction:column;margin-right:auto}.quick-item span{font-size:12px;color:#7b867f}.quick-item input{min-width:240px}@media(max-width:760px){.quick-item{align-items:stretch;flex-direction:column}.quick-item input{min-width:0}}

/* polished app navigation and daily record */
body>header{display:grid;grid-template-columns:auto auto minmax(280px,1fr) auto;align-items:center;gap:12px 14px;padding:14px max(22px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.96);border-bottom:1px solid #e2e9e5;box-shadow:0 5px 22px rgba(38,64,51,.05)}
body>header .brand{font-size:20px;font-weight:850;color:#173b2c;text-decoration:none;white-space:nowrap}
body>header .search{display:flex;min-width:0}
body>header .search input{min-width:0;flex:1}
body>header nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
body>header nav a{position:relative;display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 9px;border:1px solid #e0e8e3;border-radius:12px;background:#f8faf9;color:#53665c;text-align:center;text-decoration:none;font-size:13px;font-weight:700;transition:.16s ease}
body>header nav a:before{content:"";width:7px;height:7px;margin-right:7px;border-radius:50%;background:#9cb5a8;box-shadow:0 0 0 3px #edf3f0}
body>header nav a:hover{transform:translateY(-1px);border-color:#bad3c5;background:#fff;box-shadow:0 6px 15px rgba(44,76,59,.09);color:#235d43}
body:has(.earn-shell)>header nav a[href="/earnings"]{color:#225f42;background:#eaf6ef;border-color:#b9ddc9;box-shadow:0 5px 13px rgba(38,108,72,.09)}
body:has(.earn-shell)>header nav a[href="/earnings"]:before{background:#31a66b;box-shadow:0 0 0 3px #ccebd9}
.earn-shell{padding-bottom:30px}.earn-head{position:relative;overflow:hidden;align-items:center;padding:26px 28px;border:1px solid #dfe9e3;border-radius:20px;background:linear-gradient(135deg,#fbfdfc,#eef8f2);box-shadow:0 12px 34px rgba(38,69,52,.07)}
.earn-head:after{content:"";position:absolute;right:-55px;top:-85px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,#caebd8 0,rgba(202,235,216,0) 68%);pointer-events:none}.earn-head>*,.date-picker{position:relative;z-index:1}.earn-head h1{font-size:30px;color:#173a2b}.earn-head p:not(.eyebrow){margin:6px 0 0;color:#64746b}.date-picker{padding:11px;background:#fff;border:1px solid #dce7e1;border-radius:14px;box-shadow:0 5px 16px rgba(40,75,56,.05)}
.earn-summary{margin:16px 0}.earn-summary>div{position:relative;overflow:hidden}.earn-summary>div:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#cadbd2}.earn-summary .total:before{background:#43a875}.earn-summary .total strong{color:#246846}
.quick-item{box-shadow:0 7px 22px rgba(42,69,55,.04)}.earn-form{box-shadow:0 12px 32px rgba(42,69,55,.06)}.earn-toolbar{background:linear-gradient(90deg,#fbfdfb,#f4f9f6)}.earn-table tbody tr:hover{background:#f6faf7}.earn-actions{background:#fbfdfc}.earn-actions .primary{min-width:130px}.earned-list h2{margin-top:0}
@media(max-width:1000px){body>header{grid-template-columns:auto auto 1fr}body>header>form:last-of-type{grid-column:3}body>header nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){body>header{grid-template-columns:1fr auto;padding:12px}body>header .search{grid-column:1/-1;grid-row:2}body>header nav{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr))}body>header>form:last-of-type{grid-column:2;grid-row:1}.earn-head{padding:20px}.earn-head h1{font-size:26px}.earn-summary{grid-template-columns:1fr 1fr}.earn-summary .total{grid-column:1/-1}}
/* navigation overlap fix */
body>header{height:auto!important;min-height:0!important;position:relative!important;grid-template-columns:auto auto minmax(280px,1fr) auto!important}
body>header .brand{grid-column:1;grid-row:1}body>header>form:first-of-type{grid-column:2;grid-row:1;margin:0!important}body>header .search{grid-column:3;grid-row:1;margin:0!important}body>header>nav{grid-column:1/-1;grid-row:2;margin:0!important;position:static!important}body>header>form:last-of-type{grid-column:4;grid-row:1;margin:0!important;position:static!important}
@media(max-width:1000px){body>header{grid-template-columns:auto auto minmax(220px,1fr) auto!important}body>header nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){body>header{grid-template-columns:1fr auto!important}body>header .brand{grid-column:1;grid-row:1}body>header>form:first-of-type{grid-column:1;grid-row:2}body>header .search{grid-column:1/-1;grid-row:3}body>header>nav{grid-column:1/-1;grid-row:4}body>header>form:last-of-type{grid-column:2;grid-row:1}}


.item-catalog-head{align-items:center}.catalog-total{display:grid;place-items:center;min-width:88px;padding:14px;border-radius:18px;background:#eef4ff;color:var(--brand);font-size:28px;font-weight:850}.catalog-total small{font-size:12px;color:var(--muted)}.item-tools{margin-bottom:18px;padding:18px}.catalog-search{display:flex;gap:10px}.catalog-search input{flex:1}.category-tabs{display:flex;gap:8px;margin-top:14px;overflow-x:auto;padding-bottom:3px}.category-tabs a{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#526174}.category-tabs a.active{border-color:#8eabef;background:#eef4ff;color:var(--brand);font-weight:750}.category-tabs span{padding:1px 6px;border-radius:8px;background:#e7ecf4;font-size:11px}.catalog-layout{display:grid;grid-template-columns:280px 1fr;gap:18px;align-items:start}.add-item-card{position:sticky;top:14px;padding:20px}.item-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.item-catalog-card{display:grid;grid-template-columns:92px 1fr;gap:14px;min-height:112px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;color:inherit;box-shadow:0 8px 22px rgba(35,55,85,.06);transition:.18s ease}.item-catalog-card:hover{transform:translateY(-2px);border-color:#9ab2e9;box-shadow:0 12px 28px rgba(35,55,85,.1)}.catalog-image{display:grid;place-items:center;width:92px;height:92px;overflow:hidden;border-radius:14px;background:#edf2f8;color:#71809a;font-size:28px;font-weight:800}.catalog-image img{width:100%;height:100%;object-fit:contain;background:#111a28}.catalog-info{min-width:0}.category-pill{display:inline-block;padding:3px 8px;border-radius:8px;background:#f0f3f7;color:#647186;font-size:11px}.catalog-info h3{margin:7px 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.latest-price{display:grid}.latest-price b{color:#1f9a67;font-size:20px}.latest-price b.no-price{color:#9099a8;font-size:15px}.latest-price small{margin-top:3px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-catalog{grid-column:1/-1;text-align:center;color:var(--muted)}@media(max-width:1150px){.item-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.catalog-layout{grid-template-columns:1fr}.add-item-card{position:static}.item-catalog-grid{grid-template-columns:1fr}.catalog-search{align-items:stretch;flex-direction:column}.item-catalog-head{align-items:flex-start}}

/* final-polish */
header nav a.active{border-color:#8db7aa;background:linear-gradient(135deg,#edf8f4,#f7fbfa);color:#176c55;box-shadow:0 6px 16px rgba(27,111,87,.10)}header nav a.active:before{background:#23a77b;box-shadow:0 0 0 4px rgba(35,167,123,.12)}main h1{color:#17243b;letter-spacing:-.02em}.page-head h1:after{content:"";display:block;width:44px;height:4px;margin-top:10px;border-radius:4px;background:linear-gradient(90deg,#24a87d,#6a91ef)}.panel>h2:first-child{padding-left:11px;border-left:4px solid #4f7fe8;color:#1d3154}.notice:not(.danger){border-left:4px solid #3d8de3}.latest-price b{font-variant-numeric:tabular-nums;text-shadow:0 1px 0 rgba(255,255,255,.7)}.category-pill{background:#edf7f3;color:#28715d;font-weight:700}.category-tabs{flex-wrap:wrap;overflow:visible}.category-tabs a.active span{background:#dce9ff;color:#315fae}@media(max-width:760px){.category-tabs{flex-wrap:nowrap;overflow-x:auto}}

/* layout-paste */
.catalog-layout{grid-template-columns:1fr}.add-item-card{position:static}.add-item-card .stack{display:grid;grid-template-columns:1fr .8fr 1.2fr 1fr auto;gap:12px;align-items:end}.add-item-card .stack label{min-width:0}.add-item-card .stack input,.add-item-card .stack select{width:100%;min-width:0;box-sizing:border-box}.add-item-card .stack button{height:44px}.earn-paste{display:grid;grid-template-columns:1fr minmax(340px,520px);gap:18px;align-items:center;margin-bottom:18px;padding:20px}.earn-paste h2{margin:4px 0}.earn-paste p{margin:0;color:var(--muted)}.earn-drop{display:flex;align-items:center;gap:12px;padding:16px 18px;border:2px dashed #a9b9cc;border-radius:16px;background:#f8fbff}.earn-drop strong{color:#24436d}.earn-drop span{flex:1;color:var(--muted);font-size:12px}.earn-drop.drag,.earn-drop.loading{border-color:#4f80ea;background:#edf4ff}.earn-paste-status{grid-column:1/-1;padding:11px 13px;border-radius:10px;background:#e9f8f1;color:#197653;font-weight:700}.earn-paste-status.bad{background:#fff0f1;color:#a43e49}@media(max-width:1000px){.add-item-card .stack{grid-template-columns:repeat(2,minmax(0,1fr))}.add-item-card .stack button{grid-column:1/-1}.earn-paste{grid-template-columns:1fr}}@media(max-width:650px){.add-item-card .stack{grid-template-columns:1fr}.earn-drop{align-items:stretch;flex-direction:column}}

/* catalog price range */
.catalog-price-range{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 8px;padding:7px 10px;border-radius:10px;background:#eef8f3;color:#557267;font-size:12px}.catalog-price-range b{color:#13795b;font-size:15px;letter-spacing:.2px}

/* item management */
.item-catalog-card{position:relative;padding-bottom:50px}.catalog-card-actions{position:absolute;right:14px;bottom:12px;display:flex;gap:8px}.mini-action,.row-actions a,.row-actions button{border:0;background:#eef4ff;color:#285ca8;border-radius:9px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none}.mini-action.delete,.row-actions .text-danger{background:#fff0f1;color:#b23b48}.row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:160px}.item-edit-panel{max-width:760px;margin:28px auto}.item-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.item-edit-form label{display:grid;gap:8px;font-weight:700}.item-edit-form input,.item-edit-form select{width:100%;box-sizing:border-box}.item-edit-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}@media(max-width:700px){.item-edit-form{grid-template-columns:1fr}.row-actions{min-width:130px}}
\n
/* OCR sequential queue */
.ocr-queue-bar{margin:14px 0;padding:14px 18px;border:1px solid #cfe0ff;border-radius:16px;background:linear-gradient(135deg,#f7faff,#f1f7ff);box-shadow:0 8px 24px rgba(35,84,160,.07)}
.ocr-queue-bar>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ocr-queue-bar strong{color:#17365f}.ocr-queue-bar .queue-state{color:#55708f;font-size:14px}
.ocr-queue-results{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.queue-result{border:1px solid #c7daf9;background:#fff;color:#235fb3;border-radius:999px;padding:7px 12px;cursor:pointer}.queue-result:hover{border-color:#6d9fea;background:#f5f9ff}
@media(max-width:640px){.ocr-queue-bar{padding:12px}.queue-result{max-width:100%;overflow:hidden;text-overflow:ellipsis}}
\n

/* Recognition process */
.recognition-progress{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;counter-reset:stage}
.recognition-progress li{position:relative;padding:30px 8px 9px;text-align:center;border:1px solid #dbe5f2;border-radius:12px;background:#fff;color:#718096;font-size:13px;transition:.2s}
.recognition-progress li:before{counter-increment:stage;content:counter(stage);position:absolute;top:7px;left:50%;transform:translateX(-50%);width:18px;height:18px;line-height:18px;border-radius:50%;background:#e8eef7;color:#66758a;font-weight:700}
.recognition-progress li.active{border-color:#78a7ff;background:#f3f7ff;color:#1959b8;box-shadow:0 0 0 2px rgba(68,124,255,.08)}
.recognition-progress li.active:before{background:#3578ee;color:#fff;animation:stagePulse 1.1s infinite}
.recognition-progress li.done{border-color:#bde3d1;background:#f2fbf6;color:#167451}.recognition-progress li.done:before{content:'✓';background:#27a875;color:#fff}
.recognition-progress li.bad{border-color:#f0a4a4;background:#fff5f5;color:#c83e3e}.recognition-progress li.bad:before{content:'!';background:#dc5555;color:#fff}
.earnings-progress{margin:12px 0 18px}
@keyframes stagePulse{50%{box-shadow:0 0 0 5px rgba(53,120,238,.15)}}
@media(max-width:720px){.recognition-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.recognition-progress li{text-align:left;padding:10px 8px 10px 34px}.recognition-progress li:before{left:8px;top:50%;transform:translateY(-50%)}}

.hour-price-box{margin:10px 0;padding:10px 12px;border:1px solid #d9e7f4;border-radius:13px;background:#f8fbfe}.hour-price-title{display:flex;justify-content:space-between;gap:8px;color:#46627f;font-size:12px}.hour-price-title span{font-weight:800;color:#193a60}.hour-price-title small{color:#7890a8}.hour-price-lines{display:grid;gap:7px;margin-top:8px}.hour-price-lines>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px}.hour-price-lines em{font-style:normal;font-size:12px;color:#61758b}.hour-price-lines b{text-align:right;color:#15815e;font-size:18px}.hour-price-lines small{grid-column:1/-1;text-align:right;color:#7a8b9d}.hour-price-lines .buy-hour b{color:#cb6b20}.hour-empty{padding-top:8px;color:#9aa7b5;font-size:13px}.item-catalog-card:hover .hour-price-box{border-color:#bdd5ec;background:#f5faff}

.catalog-price-editor{margin-top:12px;padding-top:12px;border-top:1px solid #e7edf5}.price-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:8px}.catalog-price-editor input,.catalog-price-editor select{min-width:0;width:100%;height:38px;border:1px solid #cbd7e8;border-radius:10px;padding:0 10px;background:#fff;color:#17324f}.price-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.price-editor-actions button{border:0;border-radius:10px;padding:9px 8px;font-weight:700;cursor:pointer}.price-add{background:#e9f7f1;color:#087858}.price-update{background:#eef4ff;color:#245fd6}.mini-action.view{color:#168267;text-decoration:none}.item-catalog-card{display:flex}.category-pill{max-width:100%;white-space:normal;line-height:1.3}@media(max-width:640px){.price-editor-actions{grid-template-columns:1fr}.price-editor-row{grid-template-columns:1fr 80px}}
