:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#172923;background:#fff;font-synthesis:none;letter-spacing:0;color-scheme:light}
*{box-sizing:border-box}
body{margin:0}
[v-cloak]{display:none}
button,input,select,a{-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled,[aria-disabled="true"]{opacity:.38;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e6ae32;outline-offset:3px}
.icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.icon svg{width:100%;height:100%;stroke-width:1.8}
.site-header{height:88px;border-bottom:1px solid #e5ebe7;display:flex;align-items:center;justify-content:space-between;padding:0 6%;gap:16px}
.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:750}
.brand>.icon{width:29px;height:29px;color:#128455}
.brand-divider{width:1px;height:22px;background:#d5dfd9;margin:0 3px}
.brand-subtitle{font-size:16px;font-weight:500}
.header-label{font:13px ui-monospace,monospace;color:#66766e}
main{width:min(720px,calc(100% - 48px));margin:60px auto 72px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px}
h1{font-size:26px;margin:0;line-height:1.4;font-weight:650}
.section-number{font:12px "Segoe UI",sans-serif;color:#78837e;white-space:nowrap}
label{display:block;font-size:14px;font-weight:550;margin-bottom:10px;color:#475d51}
.input-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;flex-wrap:wrap}
.input-heading label{margin:0}
.input-heading .import-button{font-size:14px;min-height:36px;padding:6px 0}
.secret-field{display:flex;align-items:center;border:1px solid #a7c3b4;border-radius:6px;background:#f8fbf9;padding:6px 8px 6px 17px;gap:12px;min-height:62px}
.secret-field:focus-within{border-color:#188454;box-shadow:0 0 0 1px #188454}
.secret-field>.icon{color:#789284}
.secret-field input{flex:1;min-width:0;padding:10px 0;border:0;background:transparent;outline:none!important;font-family:ui-monospace,"Microsoft YaHei",monospace}
input::placeholder{color:#86968d}
.icon-button{border:0;background:transparent;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:#53685c;flex-shrink:0;padding:0}
.icon-button:hover:not(:disabled){background:#eaf1ec;color:#126741}
.form-actions{display:flex;align-items:center;gap:12px;margin:18px 0 0;flex-wrap:wrap}
.primary,.secondary,.text-button{min-height:44px;padding:11px 18px;border-radius:5px;font-size:15px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.4;text-decoration:none}
.primary{background:#138450;border:1px solid #138450;color:#fff}
.primary:hover{background:#106d43}
.secondary{border:1px solid #cfdbd2;color:#254d38;background:#fff}
.secondary:hover:not(:disabled){background:#f3f7f4;border-color:#a2bca9}
.text-button{border:0;background:transparent;color:#52685a;padding:10px 8px}
.text-button:hover:not(:disabled){color:#107448;background:#f4f7f5}
.advanced-toggle{margin-left:auto;font-size:14px}
.advanced-toggle>.icon{width:16px;height:16px}
.settings{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;border-top:1px solid #e5ebe7;margin-top:22px;padding-top:22px}
.settings input,.settings select,.qr-fields input{width:100%;min-width:0;padding:11px 12px;min-height:44px;background:#fff;border:1px solid #cbd8cf;border-radius:4px;color:#243c2e}
.result{border-top:1px solid #dfe7e1;border-bottom:1px solid #dfe7e1;margin-top:36px;padding:28px 0 24px}
.result-top{display:flex;justify-content:space-between;align-items:center}
h2{font-size:15px;font-weight:550;margin:0;color:#52685a}
.result-state{font-size:12px;color:#7b857f}
.token-row{display:flex;align-items:center;justify-content:center;gap:20px;min-height:124px}
#token{font:500 56px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;color:#163f2a;white-space:pre}
#token.empty{color:#b9c5bd}
.copy-token{color:#377752}
.countdown{display:flex;align-items:center;justify-content:space-between;color:#78847c;font-size:13px;margin-bottom:11px}
.countdown strong{font-family:ui-monospace,monospace;font-size:16px;font-weight:550;color:#3a5545}
progress{display:block;width:100%;height:4px;border:0;border-radius:0;appearance:none;background:#edf1ee;accent-color:#168352}
progress::-webkit-progress-bar{background:#edf1ee}
progress::-webkit-progress-value{background:#168352}
progress::-moz-progress-bar{background:#168352}
.result-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;flex-wrap:wrap}
.security-note{font-size:13px;line-height:1.7;color:#7a8175;display:flex;gap:8px;margin:18px 0 0}
.security-note>.icon{width:15px;height:15px;margin-top:3px;color:#99854f}
footer{border-top:1px solid #e5ebe7;max-width:1080px;width:calc(100% - 48px);margin:0 auto;padding:22px 0;display:flex;justify-content:space-between;gap:16px;color:#879087;font-size:12px;line-height:1.8;flex-wrap:wrap}
footer>span:first-child{font-weight:750;font-size:16px;color:#5d7363}
footer a{color:#667c6c;text-decoration:none}
footer a:hover{text-decoration:underline}
.error{font-size:14px;line-height:1.6;color:#b33535;margin:10px 0 0}
.invalid{border-color:#c75a54}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1f3a2a;color:#fff;padding:12px 20px;border-radius:6px;max-width:calc(100% - 32px);display:flex;align-items:center;gap:10px;font-size:14px;box-shadow:0 4px 24px #142a2020;z-index:3}
dialog{border:1px solid #dbe3dd;border-radius:8px;padding:26px;width:min(448px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;color:#172923}
dialog::backdrop{background:#15271c80}
.dialog-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.dialog-title h2{font-size:20px;color:#172923}
.qr-fields{display:grid;gap:14px}
.qr-image{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;margin:8px auto 0}
.qr-image img{width:100%;height:100%;object-fit:contain}
.qr-warning{font-size:13px;color:#8b7546;text-align:center;margin:0 0 18px}
.download{display:flex;width:100%}
@media(max-width:540px){
  .site-header{height:72px;padding:0 20px}
  .brand{gap:9px;font-size:23px}
  .brand-subtitle{font-size:14px}
  main{width:calc(100% - 40px);margin:34px auto 46px}
  h1{font-size:23px}
  .section-title{margin-bottom:25px}
  .section-number{font-size:12px}
  .settings{grid-template-columns:1fr;gap:14px}
  .form-actions{gap:6px}
  .primary,.secondary,.text-button{font-size:14px}
  .primary,.secondary{padding:11px 13px}
  #token{font-size:40px}
  .token-row{gap:10px;min-height:112px}
  .result{margin-top:28px}
  .result-actions{gap:8px}
  footer{width:calc(100% - 40px)}
  dialog{padding:18px}
}
@media(max-width:360px){#token{font-size:34px}.header-label{display:none}.advanced-toggle{margin-left:0}.section-number{display:none}}
.history{margin-top:36px;border-top:1px solid #dfe7e1;padding-top:24px}
.history-heading,.history-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.history-count{font-size:12px;color:#78847c;margin-left:8px}
.history-toggle{display:flex;align-items:center;gap:7px;margin:0;font-weight:400}
.history-toggle input{accent-color:#138450;width:16px;height:16px}
.history-warning{font-size:13px;color:#8b7546;line-height:1.7;margin:14px 0}
.history-empty{color:#7b857f;font-size:14px;padding:24px 0;text-align:center}
.history-list{list-style:none;margin:0;padding:0;max-height:360px;overflow:auto}
.history-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e5ebe7;padding:6px 0}
.history-reuse{flex:1;min-width:0;border:0;background:transparent;text-align:left;color:#254d38;padding:10px 8px;border-radius:4px}
.history-reuse:hover{background:#f3f7f4}
.history-secret{display:block;font:15px/1.7 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.history-name{display:block;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.history-meta{display:flex;gap:6px 16px;flex-wrap:wrap;font-size:12px;color:#768279;line-height:1.8}
.history-actions{margin-top:14px}
.danger{color:#ac4038}
.confirm-copy{font-size:15px;line-height:1.8;color:#52685a}
.history-note{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;font-weight:600;line-height:1.7;margin-bottom:3px;color:#243c2e}
#history-note{display:block;width:100%;min-height:100px;resize:vertical;padding:12px;border:1px solid #cbd8cf;border-radius:4px;font:inherit;color:#243c2e;box-sizing:border-box}
.note-count{text-align:right;font-size:12px;color:#768279;margin:8px 0}
.note-buttons{display:flex;gap:8px;flex-wrap:wrap}
.direct-page{width:calc(100% - 40px);min-height:100dvh;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 0;text-align:center}
.direct-page h1{font-size:28px;color:#111;margin-bottom:26px}
.direct-token{font:400 48px/1.25 ui-monospace,Consolas,monospace;color:#111;background:white;border:2px solid #444;border-radius:8px;padding:20px 24px;min-height:104px;min-width:230px;max-width:100%}
.direct-token:hover{background:#f6f9f7;border-color:#138450}
.direct-countdown{font-size:18px;color:#68736b;margin-top:24px}
@media(max-width:360px){.direct-token{font-size:36px;padding:20px 16px}.direct-page h1{font-size:24px}}
