*{box-sizing:border-box}
body{margin:0;font:16px/1.5 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#1a2233;background:#f4f6fa}
header{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#fff;border-bottom:1px solid #e3e8f0;position:sticky;top:0}
header h1{font-size:18px;margin:0;flex:1}
main{max-width:640px;margin:0 auto;padding:16px}
h2{font-size:18px;margin:8px 0 12px}
label{display:block;font-size:14px;color:#556;margin:12px 0 4px}
input,select,textarea{width:100%;padding:12px;font:inherit;border:1px solid #c9d1de;border-radius:8px;background:#fff}
input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #8fb4ff;outline-offset:1px}
textarea{min-height:96px;resize:vertical}
button{font:inherit;padding:10px 16px;border:1px solid #c9d1de;border-radius:8px;background:#fff;cursor:pointer}
button.primary{width:100%;margin-top:16px;background:#0b5fff;border-color:#0b5fff;color:#fff;font-weight:600}
.msg{color:#c0262d;min-height:1.5em;margin:8px 0}.msg.ok{color:#17803d}
.hint{font-size:13px;color:#667}
.tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:12px}
.tabs button{white-space:nowrap;border-radius:20px}
.tabs button.on{background:#0b5fff;border-color:#0b5fff;color:#fff}
.card{background:#fff;border:1px solid #e3e8f0;border-radius:10px;padding:12px;margin-bottom:10px}
.card b{display:block;word-break:break-all}
.card small{color:#667}
.tag{display:inline-block;padding:1px 8px;border-radius:10px;font-size:12px;background:#e8efff;color:#0b4bd0}
.tag.done{background:#e1f5e8;color:#17803d}.tag.closed{background:#eee;color:#666}
.install{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#fff8e1;border-bottom:1px solid #f0dca0;font-size:14px}
.install span{flex:1}
.install button.primary{width:auto;margin:0;padding:6px 14px}
.install #iclose{border:0;background:none;font-size:22px;line-height:1;padding:0 6px}
.dot{display:inline-block;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:#d92d20;color:#fff;font-size:12px;line-height:18px;text-align:center}
.toast{position:fixed;left:12px;right:12px;bottom:16px;max-width:616px;margin:0 auto;padding:12px 16px;border:0;border-radius:10px;background:#1a2233;color:#fff;text-align:left;box-shadow:0 4px 16px rgba(0,0,0,.25);z-index:10}
.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.thumb{position:relative;display:inline-block}
img.thumb,.thumb img{width:84px;height:84px;object-fit:cover;border-radius:8px;border:1px solid #e3e8f0;background:#eef1f6}
.thumb button{position:absolute;top:-6px;right:-6px;width:24px;height:24px;padding:0;border-radius:12px;line-height:1}
.logline{display:block;margin-top:4px}
.addpic{display:inline-block;margin-top:8px;padding:6px 12px;border:1px dashed #0b5fff;border-radius:8px;color:#0b5fff;font-size:14px;cursor:pointer}
.tag.pending{background:#fff3d6;color:#8a5a00}.tag.approved{background:#e1f5e8;color:#17803d}
.tag.rejected{background:#fde4e2;color:#b42318}.tag.processing{background:#e8efff;color:#0b4bd0}
img.thumb.big{width:100%;height:auto;max-height:70vh;object-fit:contain}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.actions input{flex:1 1 100%}
.actions .msg{flex:1 1 100%;min-height:0;margin:0}
.exportbtn{margin-bottom:6px;border-color:#0b5fff;color:#0b5fff}
details.card summary{cursor:pointer;font-weight:600}
details.card p{margin:8px 0 0;color:#334}
