:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#243341;background:#f0f3f7;color-scheme:light;--blue:#345bdd;--muted:#6c7989}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 8%,#e4eafb,transparent 60%)}main{width:min(650px,100%);margin:auto;padding:48px 24px}header{display:flex;justify-content:space-between;align-items:center;margin:0 8px 28px}.brand{display:flex;align-items:center;gap:4px;font-size:24px;font-weight:800;letter-spacing:-1px}.brand b{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:12px;background:var(--blue);color:white}.brand small{font-size:11px;font-weight:500;letter-spacing:0;margin-left:12px;color:#607083}i{width:6px;height:6px;display:inline-block;background:#25886c;border-radius:50%}button{font:inherit;cursor:pointer;border:0;border-radius:50px;padding:11px 17px;background:#edf1f6;color:#536479;font-size:13px;transition:background .15s}button:hover{filter:brightness(.97)}button:focus-visible,input:focus-visible{outline:3px solid #91adff;outline-offset:3px}#sync{border:1px solid #d5ddea;background:#ffffffb0}.card{background:#fff;border:1px solid #fff;border-radius:32px;padding:36px;box-shadow:0 18px 60px #293c6c0d}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:700;color:#7b8ca1}h1{font-size:32px;letter-spacing:-1px;margin:16px 0}h1 span{color:var(--blue)}#instruction{font-size:14px;color:var(--muted);line-height:1.9;margin:0 0 24px}.entry{display:flex;align-items:center;border:1px solid #dfe5ee;border-radius:50px;background:#f7f9fc;padding:5px 7px 5px 20px}.entry:focus-within{border-color:#88a1f3}.entry input{border:0;background:transparent;min-width:0;flex:1;padding:12px 0;font:14px Consolas,monospace;color:#243341;outline:none}.entry input:focus-visible{outline:none}.entry button{background:#fff;padding:9px 12px;font-size:12px;color:#68778c}.actions{display:flex;gap:10px;margin-top:14px}.actions button{padding:15px 20px;font-size:14px;font-weight:600}.primary{background:var(--blue);color:#fff;flex:1;display:flex;justify-content:space-between;align-items:center}#clear{min-width:82px}#message{font-size:12px;color:var(--muted);min-height:36px;line-height:1.6;margin:12px 5px 18px;overflow-wrap:anywhere}.error{color:#af3434!important}.result{border-radius:26px;background:#f0f4ff;padding:22px 24px 18px;overflow:hidden}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#637395}#remaining{background:#fff;padding:6px 10px;border-radius:30px;font-size:11px;white-space:nowrap}#code{font:600 clamp(32px,7.5vw,52px)/1.3 Consolas,monospace;letter-spacing:.09em;color:#284cbf;display:block;margin:24px 0 26px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.privacy{font-size:11px;color:#677895}#copy{background:#fff;padding:10px 13px;color:#355bc8;font-size:12px;font-weight:600}progress{appearance:none;width:100%;height:4px;border:0;border-radius:10px;overflow:hidden;display:block;margin:18px 0 0;background:#dbe4fc}progress::-webkit-progress-bar{background:#dbe4fc}progress::-webkit-progress-value{background:#6a87e8;border-radius:10px}progress::-moz-progress-bar{background:#6a87e8}.status-line{display:flex;gap:10px;justify-content:space-between;font-size:10px;color:#8190a4;margin:18px 5px 0;line-height:1.7}#time-status{overflow-wrap:anywhere}.status-line>span:last-child{white-space:nowrap}footer{text-align:center;color:#8996a8;font-size:11px;letter-spacing:.05em;margin-top:22px}button:disabled{cursor:default;opacity:.5}@media(max-width:480px){main{padding:24px 16px}.card{padding:26px 20px;border-radius:26px}header{margin:0 3px 22px}h1{font-size:28px}.brand small{margin-left:8px}.result{padding:20px 16px}.status-line{flex-direction:column;gap:2px}.status-line>span:last-child{display:none}}@media(prefers-reduced-motion:reduce){button{transition:none}}
.actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:stretch}.actions button{white-space:nowrap;padding:14px 18px}#clear{min-width:64px}#sync{background:#edf1f6;border:0}.entry button{flex-shrink:0}@media(max-width:480px){.actions{gap:6px;grid-template-columns:minmax(0,1fr) auto auto}.actions button{padding:13px 10px;font-size:12px}#clear{min-width:48px}.primary span{display:none}}

/* Outlined capsule treatment and equal-width action group. */
.card{border:1px solid #cdd7ea}.result{border:1px solid #d5def4}.entry{border-color:#bac9e4}.entry button{border:1px solid #d1dbed}.actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.actions button{width:100%;height:48px;min-width:0;padding:0 10px;display:flex;align-items:center;justify-content:center;border:1px solid #c5d1e5}.actions .primary{border-color:#294bc4}#clear{min-width:0}#sync{border:1px solid #c5d1e5}.result #copy,#remaining{border:1px solid #d5def4}@media(max-width:480px){.actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.actions button{height:44px;padding:0 5px;font-size:12px}#clear{min-width:0}}
