:root{font-family:Inter,PingFang SC,Hiragino Sans GB,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{border:0}.page-shell{display:flex;min-height:100vh;min-height:100dvh;flex-direction:column;gap:16px;padding:0 14px calc(16px + env(safe-area-inset-bottom));background:#f5f7fb}.app-header{display:flex;min-height:56px;align-items:center;margin:0 -14px;padding:0 18px;border-bottom:1px solid #e5ebf5;background:#fff}.header-title{display:flex;align-items:center;gap:10px}h1,h2,p{margin:0}h1{color:#172033;font-size:18px;font-weight:700;line-height:1.25;letter-spacing:0}.title-mark{position:relative;width:18px;height:18px;flex:0 0 auto;border-radius:5px;background:#1d5fd1}.title-mark:after{position:absolute;top:5px;left:5px;width:8px;height:5px;border-right:2px solid #ffffff;border-bottom:2px solid #ffffff;content:"";transform:rotate(38deg)}.form-panel{padding:20px 16px 16px;border:1px solid #e1e8f2;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0d}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.panel-title h2{color:#172033;font-size:17px;font-weight:700;line-height:1.35;letter-spacing:0}.merchant-card{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:11px 13px;border:1px solid #d9e7fb;border-radius:8px;background:#f5f9ff}.merchant-card span{flex:0 0 auto;color:#52637a;font-size:13px;font-weight:700}.merchant-card strong{min-width:0;color:#123f8c;font-size:15px;font-weight:700;text-align:right;word-break:break-all}.merchant-card.missing{border-color:#fecaca;background:#fff7f7}.merchant-card.missing strong{color:#b91c1c}.status-badge{flex:0 0 auto;padding:4px 10px;border:1px solid #c9d8ef;border-radius:999px;color:#1757c2;background:#f5f8ff;font-size:12px;font-weight:700}.status-badge.success{border-color:#bbf7d0;color:#047857;background:#f0fdf4}.status-badge.error{border-color:#fecaca;color:#b91c1c;background:#fef2f2}.write-off-form{display:grid;gap:16px}.field{display:grid;gap:8px}.field span{color:#334155;font-size:13px;font-weight:700}.field input{width:100%;height:50px;padding:0 14px;border:1px solid #ccd8e8;border-radius:8px;outline:none;background:#fff;color:#172033;font-size:16px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.field input::placeholder{color:#94a3b8}.field input:focus{border-color:#1d5fd1;background:#fff;box-shadow:0 0 0 3px #1d5fd11f}.field input:disabled{color:#94a3b8;background:#f3f6fb}.form-note{padding:10px 12px;border:1px solid #e0e8f4;border-radius:8px;color:#52637a;background:#f8fafc;font-size:13px;line-height:1.45}.notice{padding:11px 12px;border-radius:8px;font-size:13px;line-height:1.45}.notice.success{border:1px solid #a7f3d0;color:#047857;background:#ecfdf5}.notice.error{border:1px solid #fecaca;color:#b91c1c;background:#fef2f2}.result-box{display:grid;gap:1px;overflow:hidden;border:1px solid #d7e2f0;border-radius:8px;background:#d7e2f0}.result-box div{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f8fafc}.result-box .result-head{background:#eef6ff}.result-head span{color:#1757c2;font-weight:700}.result-head strong{color:#047857}.result-box span{flex:0 0 auto;color:#64748b;font-size:13px}.result-box strong{min-width:0;color:#172033;font-size:14px;text-align:right;word-break:break-all}.primary-button,.ghost-button{display:inline-flex;width:100%;min-height:50px;align-items:center;justify-content:center;gap:8px;border-radius:8px;font-size:16px;font-weight:700}.primary-button{margin-top:2px;color:#fff;background:#1d5fd1;box-shadow:0 8px 18px #1d5fd12e}.primary-button:disabled{cursor:not-allowed;background:#a8b8d0;box-shadow:none}.ghost-button{color:#1757c2;background:#f0f6ff}.ghost-button:disabled{color:#94a3b8;background:#eef2f7}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}footer{margin-top:auto;padding:4px 0 0;color:#64748b;font-size:12px;line-height:1.5;text-align:center}@keyframes spin{to{transform:rotate(360deg)}}@media (min-width: 640px){.page-shell{width:430px;margin:0 auto}}@media (max-width: 360px){.app-header{min-height:54px}h1{font-size:18px}}
