:root{--ink:#1d1d1f;--muted:#86868b;--line:#d8d8dc;--soft:#f5f5f7;--blue:#0071e3;--danger:#c9343a}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--ink);background:#fff;font:15px/1.45 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","PingFang SC",sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}
.topbar{height:56px;display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:30;background:rgba(255,255,255,.9);border-bottom:1px solid rgba(0,0,0,.08);backdrop-filter:blur(20px) saturate(180%)}.brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:650;text-decoration:none;white-space:nowrap}.brand-mark{width:29px;height:29px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:3}.brand-mark .accent{stroke:var(--blue)}.nav{display:flex;gap:2px;margin-left:auto}.nav-btn,.mode-tabs button{padding:7px 13px;border:0;border-radius:999px;background:transparent;color:#515154;cursor:pointer}.nav-btn:hover,.nav-btn.active,.mode-tabs button.active{color:var(--ink);background:var(--soft)}
main{width:min(720px,calc(100% - 32px));min-height:calc(100vh - 112px);margin:0 auto;padding:72px 0 100px}.view{display:none}.view.active{display:block}.page-head{margin:0 0 26px;text-align:center}.page-head h1{margin:0;font-size:clamp(36px,7vw,54px);line-height:1.05;letter-spacing:-.05em;font-weight:650}.page-head p{margin:9px 0 0;color:var(--muted);font-size:13px}
.panel{padding:24px;border:1px solid rgba(0,0,0,.1);border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.06)}.picker-wrap{position:relative}.dropzone{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px dashed #aaaab0;border-radius:18px;background:#fafafa;cursor:pointer;transition:.18s}.dropzone:hover,.dropzone:focus-visible,.dropzone.drag,.picker-wrap.open .dropzone{outline:0;border-color:var(--blue);background:#f5f9ff}.dropzone.small{min-height:150px}.dropzone strong{font-size:17px}.dropzone>span{color:var(--muted);font-size:12px}.plus{display:grid;place-items:center;width:40px;height:40px;margin-bottom:8px;border-radius:50%;background:#e9f3ff;color:var(--blue);font-size:25px;font-weight:300}
.picker-menu{visibility:hidden;opacity:0;pointer-events:none;position:absolute;z-index:10;left:50%;bottom:20px;display:flex;gap:5px;padding:6px;border:1px solid rgba(0,0,0,.1);border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 12px 35px rgba(0,0,0,.15);backdrop-filter:blur(18px);transform:translate(-50%,8px);transition:.16s}.picker-wrap:hover .picker-menu,.picker-wrap:focus-within .picker-menu,.picker-wrap.open .picker-menu{visibility:visible;opacity:1;pointer-events:auto;transform:translate(-50%,0)}.picker-menu button{padding:8px 15px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-weight:550;cursor:pointer}.picker-menu button:hover{background:var(--soft)}
.file-summary{display:flex;justify-content:space-between;margin:14px 2px 7px;color:var(--muted);font-size:12px}.file-summary strong{color:var(--ink)}.file-list{display:flex;flex-direction:column;gap:6px;max-height:190px;overflow:auto}.file-row{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:10px;background:var(--soft)}.file-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.file-row small{color:var(--muted);font-size:11px}.file-row button{border:0;background:transparent;color:var(--muted);font-size:18px;cursor:pointer}.file-row button:hover{color:var(--danger)}
label{display:flex;flex-direction:column;gap:6px;color:#515154;font-size:12px;font-weight:550}input,textarea,select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);outline:0}textarea{min-height:72px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,113,227,.11)}.auth-field{margin-top:14px;padding:13px;border:1px solid #e8c970;border-radius:14px;background:#fffaf0}.primary-controls{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:end;margin-top:18px}.primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:11px 18px;border:0;border-radius:999px;background:var(--blue);color:#fff;font-weight:600;cursor:pointer}.primary:hover{background:#0077ed}.primary:disabled{opacity:.5;cursor:not-allowed}.options{margin-top:15px}.options summary{width:max-content;margin:auto;color:var(--muted);font-size:12px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.form-grid .wide{grid-column:1/-1}
.lookup-panel{display:flex;flex-direction:column;gap:14px}.mode-tabs{display:flex;justify-content:center;gap:4px;margin:-10px 0 18px}.collect-mode{display:none}.collect-mode.active{display:flex}.progress-wrap{margin-top:16px}.progress-meta{display:flex;justify-content:space-between;margin-bottom:6px;color:var(--muted);font-size:12px}.progress{height:4px;border-radius:99px;background:#e8e8ed;overflow:hidden}.progress i{display:block;width:0;height:100%;background:var(--blue);transition:.2s}.hidden{display:none!important}
.result{padding-top:16px;border-top:1px solid #e8e8ed}.result h3{margin:0 0 4px;font-size:20px}.result>p{margin:0 0 14px;color:var(--muted)}.code-card{padding:20px;border-radius:18px;background:#1d1d1f;color:#fff;text-align:center}.code-card small{display:block;color:#aaa}.code-card strong{display:block;margin:4px 0;font-size:32px;letter-spacing:.13em}.copy-row{display:flex;gap:7px;margin-top:12px}.copy-row input{color:#fff;background:#2c2c2e;border-color:#48484a}.copy-btn,.outline-btn{padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--blue);font-weight:600;cursor:pointer;white-space:nowrap}.download-list{display:flex;flex-direction:column;gap:7px}.download-item{display:flex;align-items:center;gap:12px;padding:11px;background:var(--soft);border-radius:11px}.download-item div{flex:1;min-width:0}.download-item strong,.download-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-item span{color:var(--muted);font-size:11px}.download-item a{color:var(--blue);font-weight:600;text-decoration:none}
.records{display:grid;gap:9px}.record{display:grid;grid-template-columns:1fr auto;gap:10px;padding:17px;border:1px solid var(--line);border-radius:16px}.record h3{margin:0;font-size:15px}.record p{margin:3px 0;color:var(--muted);font-size:11px}.record-actions{display:flex;align-items:center;gap:6px}.danger-btn{padding:8px 10px;border:1px solid #efc7c9;border-radius:999px;background:#fff;color:var(--danger);cursor:pointer}.empty{padding:36px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);text-align:center}
.text-dialog{width:min(600px,calc(100% - 28px));padding:0;border:0;border-radius:22px;box-shadow:0 25px 90px rgba(0,0,0,.23)}.text-dialog::backdrop{background:rgba(0,0,0,.22);backdrop-filter:blur(7px)}.text-dialog form{padding:24px}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h2{margin:0;font-size:24px}.close-dialog{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:var(--soft);color:#515154;font-size:19px;cursor:pointer}.text-dialog label+label{margin-top:12px}.text-dialog textarea{min-height:220px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.dialog-actions .primary{width:auto;min-width:110px}
.toast{position:fixed;left:50%;bottom:25px;z-index:50;max-width:calc(100% - 30px);padding:10px 16px;border-radius:999px;background:#1d1d1f;color:#fff;opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#9f252b}footer{height:56px;display:grid;place-items:center;border-top:1px solid rgba(0,0,0,.07);color:var(--muted);font-size:11px}
@media(max-width:620px){.topbar{height:auto;min-height:56px;padding:10px 14px;flex-wrap:wrap}.brand span{display:none}.nav{margin-left:auto}.nav-btn{padding:7px 10px}main{padding:45px 0 70px}.panel{padding:16px;border-radius:19px}.dropzone{min-height:200px}.primary-controls,.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.record{grid-template-columns:1fr}.record-actions{flex-wrap:wrap}.copy-row{flex-direction:column}.picker-menu{bottom:15px}.page-head h1{font-size:40px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
