:root{color-scheme:light;--blue:#2468e8;--blue-soft:#edf4ff;--ink:#253043;--muted:#65748b;--line:#e4e9f1;--canvas:#f3f6fb;--danger:#b53d39;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);line-height:1.6}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #adc8fb;outline-offset:3px}h1,h2,h3,p{margin:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:18px;height:18px;flex:0 0 18px;display:block}.topbar{background:#fff;border-bottom:1px solid var(--line)}.topbar-inner{max-width:1120px;margin:auto;min-height:68px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-weight:650;font-size:18px;letter-spacing:.1px}.brand-mark{width:28px;height:30px;color:var(--blue);flex:none}.brand-sub{margin-left:5px;font-size:14px;font-weight:500}.header-note{font-size:12px;color:var(--muted)}.workspace{max-width:1120px;padding:34px 28px 28px;margin:auto;animation:enter 160ms ease-out}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-heading h1{font-size:26px;line-height:1.4;letter-spacing:-.5px;font-weight:650}.page-heading p{color:var(--muted);margin-top:8px;font-size:14px}.clock-status{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;background:#fff;border:1px solid var(--line);padding:6px 11px;border-radius:9px;font-size:12px;color:var(--muted);flex:none}.clock-status .icon{width:14px;height:14px;flex-basis:14px;color:#8695a9}.status-dot{width:6px;height:6px;border-radius:50%;background:#dfa443;flex:none}.clock-status.ready .status-dot{background:#279578}.clock-status.error{color:var(--danger)}.clock-status.error .status-dot{background:var(--danger)}.work-grid{display:grid;grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);gap:20px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 5px #20345b03;overflow:hidden;min-width:0}.input-panel{padding:22px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2,.help-title h2{font-size:15px;font-weight:650}.subtle{font-size:12px;color:var(--muted)}.panel-description{font-size:13px;color:var(--muted);margin:8px 0 20px}.input-row{margin-bottom:12px;min-width:0}.field-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:12px;color:#536177;gap:8px}.remove-row{width:24px;height:24px;display:grid;place-items:center;padding:0;background:none;border:none;border-radius:5px;color:#8a97a8}.remove-row .icon{width:14px;height:14px}.input-wrap{display:grid;grid-template-columns:minmax(0,1fr) 36px;border:1px solid #d9e1ed;border-radius:9px;background:#fbfcfe;align-items:center;overflow:hidden}.input-wrap:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #2468e811;background:#fff}.input-field{display:block;width:100%;min-width:0;height:44px;border:0;background:transparent;color:var(--ink);padding:10px 0 10px 12px;outline:none;font:13px/1.5 var(--mono);appearance:none}.input-field::placeholder{color:#8e99aa;font-family:inherit}.input-eye{border:0;background:none;display:grid;place-items:center;width:36px;height:44px;color:#8290a3;padding:0}.input-eye .icon{width:16px;height:16px;flex-basis:16px}.input-row.invalid .input-wrap{border-color:#d88580;background:#fffafa}.field-error{color:var(--danger);font-size:12px;margin-top:6px;overflow-wrap:anywhere}.input-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:-1px}.text-button{background:none;border:none;min-height:34px;padding:5px 0;color:var(--blue);font-size:12px;display:inline-flex;gap:5px;align-items:center}.text-button .icon{width:15px;height:15px;flex-basis:15px}.text-button.muted{color:var(--muted)}.form-bottom{display:flex;gap:8px;margin-top:18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid #dce3ee;background:#fff;border-radius:9px;color:#4b5d77;font-size:13px;font-weight:500;line-height:1.5}.button:hover{background:#f7f9fd;border-color:#c4d0e2}.button.primary{background:var(--blue);border-color:var(--blue);color:white}.button.primary:hover{background:#195cd8}.form-bottom .primary{flex:1;min-height:40px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;padding:0;border:1px solid transparent;background:transparent;color:#7b8aa0;border-radius:9px}.icon-button:hover,.remove-row:hover,.input-eye:hover{background:#f0f4fa;color:var(--blue)}.form-bottom .icon-button{width:40px;height:40px;flex-basis:40px;border-color:var(--line)}.input-note{display:flex;gap:8px;border-top:1px solid var(--line);padding-top:16px;margin-top:20px;color:var(--muted);font-size:12px;line-height:1.8}.input-note .icon{width:14px;height:14px;flex-basis:14px;margin-top:4px;color:#98a6ba}.result-heading{min-height:65px;padding:10px 18px;border-bottom:1px solid var(--line)}.result-count{font-size:11px;min-width:21px;display:inline-grid;place-items:center;background:#eff3f9;border-radius:5px;color:#6b7d96;line-height:21px;margin-left:5px;font-weight:500}.result-controls{display:flex;gap:8px;align-items:center}.switch-control{min-height:36px;display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;color:var(--muted);font-size:12px}.switch-track{display:block;background:#ccd5e2;width:29px;height:17px;padding:2px;border-radius:12px;transition:background 120ms}.switch-track>span{display:block;background:#fff;border-radius:50%;width:13px;height:13px;transition:transform 120ms;box-shadow:0 1px 2px #0001}.switch-control[aria-checked=true] .switch-track{background:var(--blue)}.switch-control[aria-checked=true] .switch-track>span{transform:translateX(12px)}.empty-state{padding:35px 20px 30px;text-align:center;color:var(--muted)}.empty-icon{display:block;width:32px;height:32px;color:#b8c9e2;margin:0 auto 14px}.empty-state h3{font-size:15px;font-weight:500;color:#536781;margin-bottom:7px}.empty-state p{font-size:13px;line-height:1.9}.empty-spec{display:inline-block;margin-top:18px;font-size:12px;color:#92a0b2;letter-spacing:.2px}.result-footer{border-top:1px solid var(--line);font-size:12px;color:#8a98ac;text-align:center;padding:11px 16px}.result-item{padding:18px 22px;border-bottom:1px solid var(--line)}.result-item:last-child{border-bottom:0}.record-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-name{font-size:13px;font-weight:550;overflow-wrap:anywhere}.record-spec{font-size:11px;color:#8997ab;margin-top:2px;letter-spacing:.2px}.record-info{min-width:0}.details-button{font-size:12px;color:#7b8ca3;display:flex;align-items:center;gap:2px;min-height:32px;padding:0;background:none;border:0;flex:none}.details-button .icon{width:12px;height:12px;flex-basis:12px}.code-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.code-button{border:0;background:none;padding:0;color:var(--blue);font:600 38px/1.4 var(--mono);letter-spacing:2px;text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:0}.code-button:disabled{color:#9aa8bb;opacity:1;font-size:24px;letter-spacing:1px}.code-copy{color:var(--blue);background:var(--blue-soft);border:0}.timer{font-size:12px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:8px;font-variant-numeric:tabular-nums}.timer strong{font-weight:500;color:#4e637e}.timer-track{height:3px;overflow:hidden;background:#edf1f7;border-radius:3px;margin-top:8px}.timer-progress{height:100%;background:var(--blue);transform-origin:left;transform:scaleX(1)}.result-item.expiring .timer-progress{background:#d7a03c}.result-item.expiring .timer strong{color:#a77318}.next-row{font-size:12px;color:#8a98ab;display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:12px}.next-row code{font:13px var(--mono);letter-spacing:1px;color:#8796aa}.record-error{margin:12px 0 2px;color:var(--danger);font-size:13px;overflow-wrap:anywhere}.help-section{padding-top:25px;margin-top:4px}.help-title{display:flex;gap:7px;align-items:center;margin-bottom:14px;color:#667991}.help-title h2{font-size:13px}.help-title .icon{width:15px;height:15px;flex-basis:15px}.help-columns{display:grid;grid-template-columns:1fr 1.2fr 1.1fr;gap:28px}.help-columns h3{font-size:12px;font-weight:600;color:#61738d;margin-bottom:5px}.help-columns p{font-size:12px;color:#7b8ba2;line-height:1.9}.toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#263b58;color:#fff;border-radius:10px;box-shadow:0 6px 24px #1b305a22;font-size:13px;padding:10px 18px;z-index:10;max-width:calc(100% - 24px);width:max-content;text-align:center}.toast[hidden]{display:none}dialog{width:460px;max-width:calc(100vw - 28px);padding:20px;border:1px solid var(--line);border-radius:16px;color:var(--ink);box-shadow:0 16px 55px #1c34562b;background:#fff}dialog::backdrop{background:#1b2c4d40}dialog[open]{animation:enter 140ms ease-out}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.dialog-heading h2{font-size:17px;font-weight:600}.secret-field{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:8px;padding:8px 10px;background:#f5f8fc;border:1px solid var(--line);border-radius:9px}.secret-field code{overflow-wrap:anywhere;font:13px/1.6 var(--mono)}dl{display:grid;grid-template-columns:1fr auto;font-size:13px;gap:8px;margin:18px 0}dt{color:var(--muted)}dd{margin:0;font-family:var(--mono)}.dialog-warning{color:#9c7838;font-size:12px;background:#fcf8ef;padding:10px 12px;border-radius:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;flex-wrap:wrap}.busy .icon use[href="#i-refresh"]{animation:spin 800ms linear infinite}.busy .icon:has(use[href="#i-refresh"]){animation:spin 800ms linear infinite}
@keyframes enter{from{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:821px){#inputs{max-height:400px;overflow:auto;padding:3px;margin:-3px}}
@media(max-width:820px){.workspace{padding:26px 20px}.work-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:14px}.input-panel{padding:18px}.result-item{padding:16px}.code-button{font-size:32px}.help-columns{gap:18px}.topbar-inner{padding-inline:20px}.page-heading h1{font-size:24px}}
@media(max-width:640px){.topbar-inner{min-height:57px;padding:10px 16px}.header-note{display:none}.brand{font-size:17px}.brand-mark{width:24px;height:26px}.brand-sub{font-size:13px}.workspace{padding:22px 14px 24px}.page-heading{gap:12px;align-items:flex-start;flex-direction:column;margin-bottom:18px}.page-heading h1{font-size:22px}.page-heading p{font-size:13px;margin-top:5px}.clock-status{min-height:30px;padding:3px 9px;font-size:11px}.work-grid{grid-template-columns:minmax(0,1fr);gap:14px}.input-panel{padding:16px}.panel-description{font-size:12px;margin-bottom:14px}.input-field{font-size:16px;height:44px}.input-wrap{grid-template-columns:minmax(0,1fr) 44px}.input-eye{width:44px}.input-row{margin-bottom:10px}.remove-row{width:44px;height:34px;margin-top:-8px;margin-bottom:-4px}.field-label{margin-bottom:5px}.input-actions{margin-top:0}.text-button{min-height:44px}.form-bottom{margin-top:9px}.form-bottom .primary{min-height:36px;margin-block:4px}.form-bottom .icon-button{width:44px;height:44px;flex-basis:44px;border-color:transparent}.input-note{font-size:12px;line-height:1.7;margin-top:14px;padding-top:12px}.result-heading{padding:6px 12px;min-height:57px;gap:6px}.result-heading h2{font-size:14px}.result-controls{gap:5px}.switch-control{min-height:44px;gap:6px}.result-controls .icon-button{width:44px;height:44px;flex-basis:44px}.result-item{padding:14px 16px}.code-button{font-size:36px}.code-copy{height:44px;width:44px;flex-basis:44px;background:transparent}.details-button{min-height:44px}.code-line{margin:7px 0 10px}.record-spec{font-size:12px}.empty-state{padding:25px 16px}.empty-state p{font-size:12px}.empty-spec{margin-top:12px}.result-footer{font-size:11px;padding:9px 12px}.help-section{padding-top:20px}.help-columns{grid-template-columns:1fr;gap:14px}.help-title{margin-bottom:12px}.help-columns h3{margin-bottom:3px}.help-columns p{line-height:1.8}.dialog-heading .icon-button,.secret-field .icon-button{width:44px;height:44px;flex-basis:44px}.secret-field{grid-template-columns:minmax(0,1fr) 44px}.dialog-actions .button{min-height:40px}.next-row{margin-top:10px}}
@media(max-width:360px){.code-button{font-size:30px;letter-spacing:1px}.result-controls{gap:0}.switch-control{font-size:11px;gap:5px}.result-count{margin-left:1px}.result-item{padding:13px}.result-heading{padding-inline:10px}.brand-sub{margin-left:2px}}
@media(prefers-reduced-motion:reduce){.workspace,dialog[open],.busy .icon{animation:none}.switch-track,.switch-track>span{transition:none}}
[hidden]{display:none!important}
@media(max-width:360px){.dialog-actions .button{font-size:12px;padding-inline:10px}.dialog-actions{gap:6px}}
.input-field.is-masked{-webkit-text-security:disc}
