:root{--navy:#243c64;--paper:#f4f5f7;--line:#dde3eb;--muted:#728098}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:#23334d;font:14px/1.5 -apple-system,"Microsoft YaHei",sans-serif}button,input,select{font:inherit}button,.button{border:1px solid var(--line);border-radius:7px;padding:10px 14px;background:white;color:var(--navy);cursor:pointer;text-decoration:none}button:disabled{opacity:.45;cursor:default}.primary{background:var(--navy);color:white;border-color:var(--navy)}header{background:white;border-bottom:1px solid var(--line);padding:19px max(20px,calc((100% - 1420px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}header b{font-size:20px}header span{font-weight:400;margin-left:13px;font-size:15px}header small{display:block;color:var(--muted);font-size:12px;margin-top:4px}nav{display:flex;gap:20px;align-items:center}a{color:var(--navy)}main{max-width:1460px;margin:auto;padding:25px 20px 135px}h1{font-size:25px;margin:0 0 8px}p{color:var(--muted)}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.heading p{font-size:12px;margin:0}.filters{display:flex;gap:10px;flex-wrap:wrap;background:white;padding:16px;border:1px solid var(--line);border-radius:10px}.filters input{flex:1;min-width:190px}input,select{padding:10px;border:1px solid var(--line);border-radius:6px;background:white;min-width:0}input:focus,select:focus{outline:2px solid #9bb3d7;outline-offset:1px}.batch{display:flex;align-items:center;gap:10px;padding:14px 0;flex-wrap:wrap}.batch input{width:150px}.batch small,.summary{color:var(--muted);font-size:12px}.summary{display:flex;justify-content:space-between;padding:8px 0 14px}.summary input{vertical-align:middle}#rows{border:1px solid var(--line);background:white;border-radius:9px;overflow:auto;max-height:65vh}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th{position:sticky;top:0;background:#e9eef6;z-index:2;text-align:left;color:#556985;white-space:nowrap}th,td{padding:10px;border-bottom:1px solid #e9edf2}td input{width:100%;font-size:13px;padding:8px}td[data-cell=model]{min-width:175px}td[data-cell=storage]{min-width:110px}td[data-cell=condition]{min-width:150px}td[data-cell=my_price]{min-width:115px}td[data-cell=remark]{min-width:210px}td[data-cell=status]{min-width:100px}.old{font-size:11px;color:#8592a5;margin-top:4px}.dirty{background:#fff6df}.dirty input{border-color:#dfb978}.number{font-weight:700;color:var(--navy)}footer{position:fixed;bottom:0;left:0;right:0;z-index:5;background:white;border-top:1px solid var(--line);padding:16px max(20px,calc((100% - 1420px)/2));display:flex;justify-content:space-between;align-items:center;gap:15px}footer small{display:block;color:var(--muted);font-size:12px;max-width:650px;margin-top:4px}footer>div:last-child{display:flex;gap:10px}#login{max-width:390px;margin:50px auto;padding:30px;background:white;border:1px solid var(--line);border-radius:12px}#login label{display:block;margin:16px 0}#login input{display:block;width:100%;margin-top:6px}#login button{width:100%}#login-error{color:#b94535}dialog{border:0;border-radius:12px;width:min(850px,94vw);max-height:85vh;overflow:auto;padding:25px;color:#23334d}dialog::backdrop{background:#172b4a88}#changes{max-height:50vh;overflow:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.change-item{border-bottom:1px solid var(--line);padding:12px 0}.change-item b{display:block}.change-item span{display:block;font-size:12px;color:#63728b;white-space:pre-wrap}.empty{padding:40px;text-align:center;color:var(--muted)}@media(max-width:650px){header{padding:14px;align-items:start}header small{display:none}header b{font-size:16px}header span{font-size:12px;margin-left:5px}nav{gap:9px;font-size:11px;flex-wrap:wrap;justify-content:end}nav button{padding:5px}main{padding:20px 12px 150px}.heading{align-items:start;flex-direction:column}h1{font-size:21px}.filters{padding:11px;gap:7px}.filters input{width:100%;flex-basis:100%}.filters select{flex:1;width:90px;font-size:12px}.batch{font-size:12px}.batch small{width:100%}footer{padding:12px;flex-wrap:wrap}footer>div:last-child{width:100%}footer button{flex:1}.summary{font-size:11px}#rows{max-height:57vh}footer small{font-size:11px}}
:root{--mobile-editor:1}
td[data-cell=screen],td[data-cell=feature]{min-width:120px}td[data-cell=grade]{min-width:140px}
@media(max-width:650px){#rows td[data-cell=grade]:before{content:'机况类别'}#rows td[data-cell=screen]:before{content:'屏幕类型'}#rows td[data-cell=feature]:before{content:'指纹 / 面容'}}
@media(max-width:650px){#rows{overflow-x:hidden;border:0;background:transparent;max-height:none}#rows table,#rows tbody{display:block}#rows thead{display:none}#rows tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 8px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:12px;padding:10px}#rows tr.dirty{background:#fff6df}#rows td{display:block;min-width:0!important;border:0;padding:6px}#rows td:first-child{grid-column:1/-1;font-weight:700;color:var(--navy)}#rows td[data-cell=remark]{grid-column:1/-1}#rows td:before{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}#rows td[data-cell=model]:before{content:'型号'}#rows td[data-cell=storage]:before{content:'容量'}#rows td[data-cell=condition]:before{content:'机况'}#rows td[data-cell=my_price]:before{content:'销售价（元）'}#rows td[data-cell=remark]:before{content:'备注'}#rows td[data-cell=status]:before{content:'上架状态'}#rows td input,#rows td select{width:100%}}
