:root{font-family:'Malgun Gothic',system-ui,sans-serif;color:#203550;background:#f3f6fa}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;background:#14233f;color:white;padding:20px}header span{font-size:12px}main{max-width:600px;margin:auto;padding:18px}h1{font-size:24px}h2{font-size:19px}section{padding-bottom:16px}label{display:block;margin:14px 0;font-size:14px}input,select,button{font:inherit;border-radius:9px;padding:13px;border:1px solid #ced9e8}input,select{display:block;width:100%;margin-top:6px;background:white}button{background:#1f63c4;color:white;cursor:pointer;margin:5px 3px 5px 0}button.secondary{background:white;color:#203550}nav{display:flex;gap:5px}nav button{flex:1;font-size:13px}.hint{color:#697d96;font-size:12px;line-height:1.8}.item{background:white;border:1px solid #dce3ef;border-radius:12px;padding:16px;margin:10px 0}.item p{margin:7px 0}video{width:100%;margin-top:10px}#message{background:#e4eefe;border-radius:8px;padding:12px;white-space:pre-wrap}#message:empty{display:none}[hidden]{display:none!important}.profit{font-size:26px;color:#08765d}.error{color:#a93838;font-size:13px}

nav{display:grid;grid-template-columns:repeat(2,1fr)}nav button.active{background:#14233f;box-shadow:inset 0 -3px #60b9ff}#scan-previous:not(:empty){padding:12px;border-radius:8px;background:#fff3da;color:#795019;font-size:13px;line-height:1.7;margin:8px 0}.scan-state{display:inline-block;font-size:11px;padding:4px 7px;border-radius:6px;background:#e8effa;color:#28518b}.scan-state.pending{background:#fff3da;color:#795019}.scan-state.applied{background:#e6f5ed;color:#15785c}.history-item .hint{overflow-wrap:anywhere}
