:root{--pink:#ef5f91;--pink-dark:#c24a72;--pink-soft:#fff0f5;--pink-pale:#fff8fa;--ink:#2e2830;--muted:#7f747a;--line:#eadde2;--green:#118b63;--red:#c5365e;--white:#fff;--shadow:0 18px 55px rgba(102,52,73,.09)}
        *{box-sizing:border-box}
        html{scroll-behavior:smooth}
        body{margin:0;min-height:100vh;background:#fffafb;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0}
        body.config-loading>*{visibility:hidden}
        body.config-loading:before{content:"";position:fixed;inset:0;background:#fffafb;z-index:100}
        body.config-loading:after{content:"";position:fixed;z-index:101;top:50%;left:50%;width:26px;height:26px;margin:-13px;border:3px solid #f4dbe4;border-top-color:var(--pink);border-radius:50%;animation:config-spin .8s linear infinite}
        @keyframes config-spin{to{transform:rotate(360deg)}}
        body.modal-open{overflow:hidden}
        button,input{font:inherit}
        button{cursor:pointer}
        [hidden],.hidden{display:none!important}
        .topbar{height:70px;border-bottom:1px solid rgba(234,221,226,.85);background:rgba(255,255,255,.94);display:flex;align-items:center;position:sticky;top:0;z-index:20}
        .topbar-inner{width:min(1180px,calc(100% - 40px));margin:auto;display:flex;align-items:center;justify-content:space-between}
        .brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}
        .brand-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
        .brand-subtitle{display:block;color:var(--muted);font-size:12px;line-height:1.45;font-weight:500}
        .brand img{width:38px;height:38px;border-radius:8px;object-fit:cover}
        .brand-name{font-size:16px;font-weight:800}
        .site-tabs{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #f3d7e1;border-radius:23px;background:#fff7fa}
        .site-tabs a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:104px;height:34px;padding:0 14px;border-radius:18px;color:#9a7b86;text-decoration:none;font-size:12px;font-weight:750;white-space:nowrap;transition:.18s ease}
        .site-tabs a:hover{color:var(--pink-dark);background:#ffe8ef}
        .site-tabs a.active{background:var(--pink);color:#fff;box-shadow:0 5px 12px rgba(239,95,145,.2)}
        .nav{display:flex;gap:8px}
        .nav a,.nav button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;color:#655b61;text-decoration:none;font-size:13px;border-radius:6px}
        .nav button{border:0;background:transparent;cursor:pointer}
        .nav a:hover,.nav button:hover{background:var(--pink-soft);color:var(--pink-dark)}
        .page{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:44px 0 58px}
        .intro{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}
        .intro-copy{max-width:720px}
        .intro h1{font-size:34px;line-height:1.2;margin:0 0 12px}
        .intro p{margin:0;color:var(--muted);line-height:1.7;font-size:15px}
        .intro-actions{display:flex;gap:10px;width:100%;padding-top:0}
        .purchase-hero-button,.contact-hero-button,.certificate-hero-button{height:38px;margin-top:0;border:0;border-radius:20px;background:var(--pink);color:#fff;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:800;box-shadow:0 7px 16px rgba(239,95,145,.2);text-decoration:none;white-space:nowrap}
        .purchase-hero-button:hover,.contact-hero-button:hover,.certificate-hero-button:hover{background:var(--pink-dark)}
        .contact-hero-button{border:1px solid #efafc5;background:#fff;color:var(--pink-dark);box-shadow:none}
        .contact-hero-button:hover{background:var(--pink-soft);color:var(--pink-dark)}
        .workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:18px;align-items:start}
        .card{background:var(--white);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}
        .card-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line)}
        .card-head h2{font-size:16px;margin:0}
        .step{font-size:11px;color:var(--pink-dark);background:var(--pink-soft);padding:5px 8px;border-radius:4px;font-weight:700}
        .card-body{padding:22px}
        .source-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f7f3f5;border:1px solid var(--line);border-radius:7px;padding:3px;margin-bottom:17px}
        .source-tabs button{height:38px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:13px;font-weight:650}
        .source-tabs button.active{background:#fff;color:var(--pink-dark);box-shadow:0 2px 8px rgba(70,38,50,.08)}
        .library-box{display:none}
        .library-box.show{display:block}
        .library-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:11px}
        .library-heading strong{font-size:13px}
        .library-heading p{margin:4px 0 0;color:var(--muted);font-size:12px}
        .library-count{flex:0 0 auto;color:var(--pink-dark);font-size:11px;background:var(--pink-soft);padding:4px 7px;border-radius:4px}
        .library-options{display:grid;gap:8px;max-height:278px;overflow:auto;padding-right:3px}
        .library-option{width:100%;min-height:64px;border:1px solid var(--line);border-radius:7px;background:#fff;display:grid;grid-template-columns:40px minmax(0,1fr) 24px;align-items:center;gap:12px;padding:10px 12px;text-align:left;color:var(--ink)}
        .library-option:hover{border-color:#efb2c7;background:var(--pink-pale)}
        .library-option.active{border-color:var(--pink);background:var(--pink-soft);box-shadow:0 0 0 2px rgba(239,95,145,.08)}
        .library-icon{width:40px;height:40px;border-radius:10px;background:#fff0f5;color:#f16d93;display:grid;place-items:center;font-size:22px;overflow:hidden;position:relative;flex-shrink:0}
        .library-icon img{display:block;width:100%;height:100%;object-fit:cover}
        .library-icon .icon-fallback{width:100%;height:100%;display:grid;place-items:center;font-size:16px;font-weight:800;color:#f16d93;background:#fff0f5}
        .library-icon .icon-dl,.library-icon .icon-up{font-size:18px;font-weight:700}
        .library-icon-action{border-radius:50%!important;background:#fa7198!important;color:#fff!important;box-shadow:0 3px 8px rgba(239,95,145,.28)!important}
        .library-icon-action i{font-size:20px;line-height:1;color:#fff}
        .library-option.active .library-icon-action{background:#ef557a!important;color:#fff!important;box-shadow:0 3px 10px rgba(239,95,145,.34)!important}
        .library-option.active .library-icon{background:#fff;color:var(--pink);box-shadow:0 0 0 2px rgba(239,95,145,.12)}
        .library-option.active .library-icon.library-icon-action{background:#ef557a!important;color:#fff!important}
        .library-check{color:#c9bdc2;font-size:18px;font-weight:700;text-align:center}
        .library-option.active .library-check{color:var(--pink)}
        .library-copy{min-width:0}
        .library-name-row{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
        .library-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:750}
        .library-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
        .library-version{display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 8px;border-radius:999px;border:1px solid #f0bfd0;background:linear-gradient(180deg,#fff7fa,#ffeef4);color:var(--pink-dark);font-size:11px;font-weight:750;line-height:1.3;letter-spacing:.02em}
        .library-size{color:var(--muted);font-size:11px}
        .library-subtitle{display:block;color:#b17d8d;font-size:11px;line-height:1.45;white-space:normal}
        .library-option-allinone{position:relative;overflow:hidden;border-color:#ff9fbb;background:#fffafc}
        .library-option-allinone:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:linear-gradient(180deg,#fa7198,#ef557a)}
        .library-option-allinone.active{background:#fff0f5;border-color:#fa7198}
        .library-option-allinone .library-icon{box-shadow:0 0 0 2px rgba(250,113,152,.12)}
        .library-name-with-tag{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%}
        .library-name-with-tag .library-name{flex:0 1 auto}
        .library-recommend{flex:0 0 auto;display:inline-flex;align-items:center;height:16px;padding:0 6px;border-radius:999px;border:1px solid #ff9fbb;background:#fff;color:#ef557a;font-size:9px;font-weight:800;letter-spacing:.03em}
        .library-feature-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
        .library-feature-chip{display:inline-flex;align-items:center;gap:3px;max-width:100%;height:22px;padding:0 9px;border-radius:999px;background:#fa7198;color:#fff;font-size:11px;font-weight:750;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 6px rgba(239,95,145,.2)}
        .library-feature-chip i{font-size:12px;opacity:.95}
        .library-feature-chip.is-soft{background:#fff;color:#d9557f;border:1px solid #ffb7cb;box-shadow:none}
        .library-option-allinone.active .library-feature-chip{background:#ef557a}
        .library-option-allinone.active .library-feature-chip.is-soft{background:#fff5f8;border-color:#fa7198;color:#d63d6e}
        .library-check{color:#c9bdc2;font-size:20px}
        .library-option.active .library-check{color:var(--pink)}
        .library-empty{border:1px dashed #dfbdca;border-radius:7px;padding:24px;text-align:center;color:var(--muted);font-size:13px;background:var(--pink-pale)}
        .library-loading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:72px;padding:18px;border:1px dashed #efafc5;border-radius:14px;background:#fff8fb;color:#b17d8d;font-size:13px}
        .library-loading i{font-size:18px;color:var(--pink)}
        .library-custom{margin-top:10px;border-style:dashed;border-color:#efafc5;background:#fffafd}
        .library-custom .library-icon{background:#fa7198;color:#fff}
        .library-custom .library-icon.library-icon-action{background:#fa7198;color:#fff}
        .library-custom.active{border-style:solid;background:var(--pink-soft)}
        .dropzone{min-height:152px;border:1.5px dashed #dfbdca;border-radius:8px;background:var(--pink-pale);display:grid;place-items:center;text-align:center;padding:24px;transition:.2s}
        .dropzone.drag{border-color:var(--pink);background:var(--pink-soft)}
        .dropzone button{border:0;background:transparent;color:inherit;padding:0}
        .drop-icon{width:50px;height:50px;border-radius:8px;background:#fff;border:1px solid #f0dce4;display:grid;place-items:center;margin:0 auto 12px;color:var(--pink);font-size:23px}
        .dropzone strong{display:block;font-size:15px;margin-bottom:6px}
        .dropzone small{color:var(--muted);font-size:12px}
        .file-state{display:none;margin-top:12px;padding:12px 14px;background:#fbf8f9;border:1px solid #efe5e9;border-radius:6px;font-size:13px}
        .file-state.show{display:flex;align-items:center;justify-content:space-between;gap:12px}
        .file-state .ok{color:var(--green)}
        .field{margin-bottom:16px}
        .field:last-child{margin-bottom:0}
        .field label{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:650;margin-bottom:8px}
        .field label span{font-size:11px;font-weight:400;color:var(--muted)}
        .field input{width:100%;height:44px;border:1px solid var(--line);border-radius:6px;padding:0 12px;background:#fff;color:var(--ink);outline:none}
        .field input:focus{border-color:var(--pink);box-shadow:0 0 0 3px rgba(239,95,145,.1)}
        .cert-card{margin-top:18px;scroll-margin-top:88px}
        .mode-tabs{display:flex;gap:9px;margin-bottom:18px}
        .mode-tabs button{height:36px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 13px;font-size:13px;color:var(--muted)}
        .mode-tabs button.active{border-color:#ef9fba;background:var(--pink-soft);color:var(--pink-dark)}
        .action-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:0 0 18px;padding:4px;border:1px solid #f0d9e2;border-radius:8px;background:#fff7fa}
        .action-tabs button{min-width:0;height:38px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;font-weight:700}
        .action-tabs button.active{background:#fff;color:var(--pink-dark);box-shadow:0 3px 10px rgba(101,48,72,.09)}
        .action-help{margin:-8px 0 16px;color:var(--muted);font-size:11px;line-height:1.55}
        .lookup-panel{display:none}
        .lookup-panel.show{display:block}
        .lookup-note{margin:0;padding:11px 12px;border-left:3px solid var(--pink);background:var(--pink-pale);color:#745e68;font-size:12px;line-height:1.6}
        .purchase-channels{display:grid;gap:10px;margin-top:20px}.purchase-channel{width:100%;min-height:46px;border:1px solid #efafc5;border-radius:23px;background:#fff;color:var(--pink-dark);font-weight:750;display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;padding:0 16px;transition:.18s}.purchase-channel:hover{background:var(--pink-soft);border-color:var(--pink)}button.purchase-channel{font:inherit;cursor:pointer}.purchase-empty{margin:20px 0 0;padding:22px 14px;color:var(--muted);font-size:13px;text-align:center;background:var(--pink-pale);border:1px dashed #efafc5;border-radius:12px}.purchase-guide-back{display:block;width:100%;height:38px;margin-top:16px;border:1px solid #efafc5;border-radius:19px;background:#fff;color:var(--pink-dark);font-size:13px;font-weight:700;cursor:pointer}.purchase-guide-back:hover{background:var(--pink-soft)}
        .udid-row{display:grid;grid-template-columns:minmax(0,1fr) 136px;gap:8px}
        .udid-row button{height:44px;min-width:0;border:0;border-radius:6px;background:var(--pink);color:#fff;padding:0 9px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;overflow:hidden}
        .udid-row .secondary{border:1px solid #ef9fba;background:#fff;color:var(--pink-dark)}
        .device-model-hint{margin:8px 2px 0;color:#986171;font-size:13px;line-height:1.5}.device-model-hint strong{color:var(--pink-dark);font-weight:800}
        .field-hint{margin:8px 2px 0;color:#a87988;font-size:11px;line-height:1.55}
        .lookup-feedback{display:none;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#faf8f9;color:var(--muted);font-size:12px;line-height:1.5}
        .lookup-feedback.show{display:flex}
        .lookup-feedback.loading{border-color:#efc2d2;background:#fff8fa;color:var(--pink-dark)}
        .lookup-feedback.error{border-color:#f0b8c2;background:#fff5f7;color:var(--red)}
        .lookup-feedback.ok{border-color:#b9e3d3;background:#f6fffb;color:var(--green)}
        .lookup-feedback>span{min-width:0;flex:1}
        .status-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:750}
        .status-pill.unused{background:#fff0f5;color:var(--pink-dark)}
        .status-pill.used{background:#eef8f2;color:var(--green)}
        .status-pill.banned{background:#fff1f0;color:var(--red)}
        .status-warn-box{margin-top:14px;padding:12px 14px;border-radius:10px;border:1px solid #f0bfd0;background:#fff7fa;color:#986171;font-size:13px;line-height:1.55}
        .lookup-feedback button{display:none;flex:0 0 auto;height:32px;border:1px solid currentColor;border-radius:5px;background:#fff;color:inherit;padding:0 10px;font-weight:700}
        .lookup-feedback.error button{display:inline-flex;align-items:center;justify-content:center}
        .certificate-status-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:10px}
        .certificate-status-trigger{width:max-content;min-width:118px;height:34px;margin:0;padding:0 14px;border:1px solid #efafc5;border-radius:17px;background:#fff;color:var(--pink-dark);font-size:12px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 2px 7px rgba(207,86,123,.08);transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}.certificate-status-trigger:hover:not(:disabled){background:var(--pink-soft);border-color:var(--pink);box-shadow:0 4px 11px rgba(207,86,123,.14);transform:translateY(-1px)}.certificate-status-trigger:active:not(:disabled){transform:translateY(0)}.certificate-status-trigger:disabled{cursor:not-allowed;opacity:.48;box-shadow:none}
        .certificate-choice{display:none;margin-top:14px;padding:14px;border:1px solid #f0bfd0;border-radius:12px;background:#fff7fa}
        .certificate-choice.show{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
        .certificate-choice strong{display:block;color:var(--pink-dark);font-size:13px;margin-bottom:5px}
        .certificate-choice p{margin:0;color:var(--muted);font-size:12px}
        .download-cert{height:40px;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 13px;text-decoration:none;font-size:13px;font-weight:700;border:1px solid #efafc5;background:#fff;color:var(--pink-dark);white-space:nowrap}
        .certificate-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
        .mini-status{border:1px solid var(--line);border-radius:6px;padding:11px 12px;font-size:12px;color:var(--muted)}
        .mini-status.ready{border-color:#b9e3d3;color:var(--green);background:#f6fffb}
        .sign-progress{display:grid;grid-template-columns:42px minmax(0,1fr);gap:4px 12px;align-items:center;margin-top:15px;padding:13px 14px;border:2px solid #ffb4c9;border-radius:14px;background:#fff5f8;color:#986171;box-shadow:0 8px 18px rgba(207,86,123,.1)}
        .sign-progress[hidden]{display:none}
        .sign-progress-icon{grid-row:span 2;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fa7198;color:#fff;font-size:21px}
        .sign-progress-copy{min-width:0}
        .sign-progress-copy strong{display:block;color:#e55280;font-size:14px;line-height:1.35}
        .sign-progress-copy span{display:block;margin-top:3px;color:#a87988;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
        .sign-progress-track{grid-column:2;height:6px;border-radius:4px;background:#f5d9e3;overflow:hidden}
        .sign-progress-track span{display:block;width:0;height:100%;border-radius:4px;background:#f16d93;transition:width .25s}
        .options{margin-top:18px}
        .options summary{cursor:pointer;color:var(--pink-dark);font-size:13px;font-weight:650;list-style:none}
        .options summary::-webkit-details-marker{display:none}
        .options summary:before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;margin-right:7px;border:1px solid #ecc3d2;border-radius:4px}
        .options[open] summary:before{content:"−"}
        .options-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:17px}
        .logo-pick{display:flex;align-items:center;gap:12px}
        .logo-preview{width:44px;height:44px;border-radius:8px;border:1px solid var(--line);object-fit:cover}
        .logo-button{height:36px;border:1px solid var(--line);background:#fff;border-radius:6px;padding:0 11px;color:#62575d;font-size:12px}
        .primary{width:100%;height:50px;border:0;border-radius:7px;background:var(--pink);color:#fff;font-size:15px;font-weight:800;margin-top:22px;box-shadow:0 9px 22px rgba(239,95,145,.23)}
        .primary:hover{background:var(--pink-dark)}
        .primary:disabled{opacity:.55;cursor:not-allowed}
        .sidebar{display:grid;gap:18px;position:sticky;top:88px}
        .status-main{text-align:center;padding:30px 20px}
        .status-ring{width:74px;height:74px;border:5px solid #f5dbe4;border-top-color:var(--pink);border-radius:50%;display:grid;place-items:center;margin:0 auto 17px;color:var(--pink);font-size:26px;transition:.25s}
        .status-ring.running{animation:spin 1s linear infinite}
        .status-ring.running i{animation:counterspin 1s linear infinite}
        @keyframes spin{to{transform:rotate(360deg)}}
        @keyframes counterspin{to{transform:rotate(-360deg)}}
        .status-main strong{display:block;font-size:16px;margin-bottom:7px}
        .status-main p{min-height:40px;margin:0;color:var(--muted);font-size:13px;line-height:1.55}
        .progress{height:7px;background:#f2e9ed;border-radius:4px;overflow:hidden;margin-top:20px}
        .progress div{height:100%;width:0;background:var(--pink);transition:width .25s}
        .checklist{padding:18px 20px}
        .check{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid #f2eaed;font-size:13px}
        .check:last-child{border-bottom:0}
        .check i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#f5f0f2;color:#9c8e94}
        .check.ready i{background:#e9f9f2;color:var(--green)}
        .result{display:none;padding:22px;scroll-margin-top:88px}
        .result.show{display:block}
        .result h3{font-size:18px;margin:0 0 8px}
        .result p{font-size:13px;color:var(--muted);line-height:1.6}
        .result-actions{display:grid;gap:9px;margin-top:17px}
        .result-actions a,.result-actions button{height:42px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-size:13px;font-weight:700;border:0;cursor:pointer}
        .install{background:var(--pink);color:#fff;border:0}
        .import-cert{background:linear-gradient(180deg,#ff7da3,#ef557a);color:#fff;box-shadow:0 4px 12px rgba(239,95,145,.28)}
        .import-cert-panel{margin-top:14px;padding:14px;border:1px solid #f2c2d2;border-radius:12px;background:#fff8fb}
        .import-cert-panel[hidden]{display:none!important}
        .import-cert-panel p{margin:0 0 10px;color:#986171;font-size:13px;line-height:1.6}
        .import-cert-actions{display:grid;gap:8px}
        .import-cert-link{height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:7px;background:#fa7198;color:#fff;text-decoration:none;font-size:13px;font-weight:750}
        .import-cert-link.is-soft{background:#fff;color:#d9557f;border:1px solid #ffb7cb}
        .import-cert-tip{margin:10px 0 0!important;font-size:12px!important;color:#b08390!important}
        .import-cert-tip strong{color:#e53935;font-size:14px}
        .download{background:var(--pink-soft);color:var(--pink-dark);border:1px solid #f0c9d8}
        .copy{background:#fff;color:#675c62;border:1px solid var(--line)}
        .qr-code-button{background:#fff4f8;color:var(--pink-dark);border:1px solid #f1b8cb}
        .qr-code-button:hover{background:#ffe8f0;border-color:#ee86a7}
        .footer{text-align:center;color:#95878e;font-size:12px;padding:26px 20px 38px}
        .toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,16px);background:#2d2730;color:#fff;padding:12px 17px;border-radius:6px;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;pointer-events:none;transition:.2s;z-index:80;max-width:min(440px,calc(100% - 30px));text-align:center;font-size:13px}
        .toast.show{opacity:1;transform:translate(-50%,0)}
        .toast.error{background:var(--red)}
        .purchase-modal,.contact-modal{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:24px}
        .purchase-backdrop{position:absolute;inset:0;background:rgba(25,20,23,.72)}
        .contact-backdrop{position:absolute;inset:0;background:rgba(25,20,23,.72)}
        .purchase-dialog,.contact-dialog{position:relative;width:min(620px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border:1px solid #eadde2;border-radius:8px;box-shadow:0 28px 80px rgba(24,15,20,.28);padding:22px}.purchase-guide-content{padding:18px 2px 2px;color:#493e44;font-size:17px;line-height:1.9;overflow-wrap:anywhere}.purchase-guide-content h1,.purchase-guide-content h2,.purchase-guide-content h3{color:var(--pink-dark);line-height:1.4;margin:15px 0 7px}.purchase-guide-content h1{font-size:23px}.purchase-guide-content h2{font-size:20px}.purchase-guide-content h3{font-size:18px}.purchase-guide-content p,.purchase-guide-content li{font-size:17px}.purchase-guide-content p{margin:8px 0}.purchase-guide-content ol,.purchase-guide-content ul{margin:8px 0;padding-left:24px}.purchase-guide-content strong{color:#e53935;font-size:19px;font-weight:800}.purchase-guide-content img{display:block;max-width:100%;height:auto;max-height:58vh;margin:14px auto;border:1px solid #f1e1e7;border-radius:9px;object-fit:contain;cursor:zoom-in}.purchase-guide-empty{margin:18px 0 5px;padding:24px;text-align:center;color:var(--muted);background:var(--pink-pale);border:1px dashed #efafc5;border-radius:9px;font-size:13px}
        .copy-notice-modal{z-index:86}.copy-notice-dialog{width:min(420px,100%);text-align:center}.copy-notice-dialog .guide-head h2{color:var(--pink-dark)}.copy-notice-content{padding:20px 4px 8px;color:#6f5962;font-size:14px;line-height:1.75}.copy-notice-content strong{display:block;color:var(--pink-dark);font-size:17px;margin-bottom:5px}.copy-notice-content p{margin:0}.copy-notice-close{width:100%;height:42px;margin-top:12px;border:0;border-radius:21px;background:var(--pink);color:#fff;font-size:14px;font-weight:750;cursor:pointer}.copy-notice-close:hover{background:var(--pink-dark)}
        .lookup-alert-content{padding:18px 4px 8px}.lookup-alert-content .lookup-alert-message{margin:0;color:var(--pink-dark);font-size:17px;font-weight:800;line-height:1.7;overflow-wrap:anywhere}
        .download-cert-notice{padding:8px 4px 4px}.download-cert-notice .download-cert-status{margin:0 0 14px;color:#6f5962;font-size:15px;line-height:1.7;font-weight:600}.download-cert-password-box{margin:0 0 12px;padding:16px 12px;border:2px solid #ff8aa8;border-radius:12px;background:linear-gradient(180deg,#fff7fa,#ffe8f0)}.download-cert-password-label{display:block;margin:0 0 8px;color:#a13d57;font-size:15px;font-weight:700;line-height:1.4}.download-cert-password-value{display:block;margin:0;color:#e53935;font-size:34px;font-weight:900;line-height:1.25;letter-spacing:.02em}.download-cert-password-hint{margin:0;color:#6f5962;font-size:15px;line-height:1.75;text-align:center;font-weight:700}.download-cert-password-hint .download-cert-em{display:inline;color:#e53935;font-size:16px;font-weight:800;margin:0}
        .purchase-head{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:10px}
        .icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#665b61;display:grid;place-items:center;font-size:20px}
        .icon-button:hover{background:var(--pink-soft);color:var(--pink-dark)}
        .purchase-title{text-align:center;min-width:0}
        .purchase-title h2{font-size:20px;margin:0}
        .purchase-title p{margin:7px 0 0;color:var(--muted);font-size:13px}
        .contact-qr{display:block;width:min(360px,100%);max-height:65vh;height:auto;object-fit:contain;margin:22px auto 8px;border:1px solid #f0dce4;border-radius:12px;background:#fff}
        .contact-qr-empty{margin:22px 0 8px;padding:28px 16px;text-align:center;color:var(--muted);font-size:13px;background:var(--pink-pale);border:1px dashed #efafc5;border-radius:10px}
        .certificate-status-modal{z-index:75}.certificate-status-dialog{width:min(560px,100%)}.certificate-status-dialog .guide-head h2{color:var(--pink-dark)}.certificate-status-result{display:grid;gap:0;margin-top:18px;border:1px solid #f0d4df;border-radius:9px;overflow:hidden;background:#fff}.certificate-status-row{display:grid;grid-template-columns:130px minmax(0,1fr);gap:14px;padding:13px 15px;border-bottom:1px solid #f3e7eb;font-size:13px;line-height:1.5}.certificate-status-row:last-child{border-bottom:0}.certificate-status-row span{color:var(--muted)}.certificate-status-row strong{min-width:0;color:var(--ink);overflow-wrap:anywhere}.certificate-status-row strong.status-normal{color:var(--green)}.certificate-status-row strong.status-hidden,.certificate-status-row strong.status-expiration{color:var(--red)}.certificate-status-empty{margin:18px 0 4px;padding:26px 18px;text-align:center;border:1px dashed #efafc5;border-radius:9px;background:var(--pink-pale);color:var(--pink-dark);font-size:14px;line-height:1.75}.certificate-status-empty small{display:block;margin-top:4px;color:var(--muted);font-size:12px}
        .guide-modal.install-qr-modal{z-index:78}.guide-modal .install-qr-dialog{width:min(430px,100%);text-align:center}.install-qr-dialog .guide-head h2{color:var(--pink-dark)}.install-qr-content{padding:18px 0 3px}.install-qr-code{width:min(330px,100%);aspect-ratio:1;margin:0 auto;padding:14px;display:grid;place-items:center;background:#fff;border:1px solid #f0d4df;border-radius:14px;box-shadow:0 10px 24px rgba(207,86,123,.1);overflow:hidden}.install-qr-code img,.install-qr-code canvas,.install-qr-code svg{display:block;width:100%!important;height:auto!important;max-width:100%;image-rendering:pixelated}.install-qr-content p{margin:14px 0 0;color:#8e6a77;font-size:13px;line-height:1.6}.install-qr-content .install-qr-hint{margin-top:4px;color:#b08a98;font-size:12px}.install-qr-content .install-qr-url{margin:12px auto 0;max-width:100%;padding:8px 10px;border:1px solid #f3e3e8;border-radius:7px;background:#fffafd;color:#b08a98;font-size:11px;line-height:1.45;overflow-wrap:anywhere;user-select:text}
        @media(max-width:900px){.workspace{grid-template-columns:1fr}.sidebar{position:static;grid-template-columns:1fr 1fr}.result{grid-column:1/-1}}
        @media(max-width:640px){.topbar{height:auto;padding-top:10px}.topbar-inner,.page{width:calc(100% - 28px)}.topbar-inner{min-height:135px;padding:20px 18px 58px;align-items:flex-start}.site-tabs{position:absolute;left:17px;right:17px;bottom:14px}.site-tabs a{flex:1;min-width:0;height:34px;padding:0 8px;font-size:11px}.page{padding:29px 0 42px}.intro{display:block;margin-bottom:20px}.intro h1{font-size:27px}.intro p{font-size:14px}.intro-actions{display:grid;grid-template-columns:1fr;gap:8px}.intro-actions:has(#openContact:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-hero-button,.contact-hero-button{width:100%;padding:0 8px;font-size:11px}.card-body,.card-head{padding-left:16px;padding-right:16px}.dropzone{min-height:138px}.options-grid,.certificate-summary{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr}.udid-row{grid-template-columns:1fr}.udid-row button{width:100%}.lookup-feedback.show{align-items:flex-start;flex-wrap:wrap}.lookup-feedback button{width:100%}.certificate-choice.show{grid-template-columns:1fr}.download-cert{width:100%}.certificate-status-actions{justify-content:stretch}.certificate-status-trigger{flex:1;min-width:0;justify-content:center}.certificate-status-row{grid-template-columns:112px minmax(0,1fr);gap:10px;padding:12px 13px}.purchase-modal,.contact-modal{padding:12px}.purchase-dialog,.contact-dialog{padding:16px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.certificate-status-modal{padding:10px}.certificate-status-dialog{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:16px}.footer{padding-bottom:24px}}
        /* Single-column public signing workspace. The admin library and existing
           certificate workflow stay unchanged; only the presentation is compact. */
        body{background:#fff0f5;color:#946274}
        .topbar{height:auto;border:0;background:transparent;position:static;padding:14px 0 0}
        .topbar-inner{width:min(450px,calc(100% - 28px));min-height:150px;padding:24px 22px;background:#fff;border:3px solid #ffb4c9;border-radius:24px;box-shadow:0 12px 28px rgba(207,86,123,.12);position:relative}
        .topbar-inner:before,.topbar-inner:after{content:"";position:absolute;width:25px;height:25px;background:#ffbfd0;z-index:0}.topbar-inner:before{left:-3px;top:-3px;border-radius:0 0 16px 0}.topbar-inner:after{right:-3px;bottom:-3px;border-radius:16px 0 0}
        .brand{gap:14px;position:relative;z-index:1}.brand img{width:75px;height:75px;border-radius:50%;padding:3px;background:#fff;box-shadow:0 7px 16px rgba(217,98,135,.18)}.brand-name{font-size:23px;color:#f36b93;line-height:1.2}.brand-subtitle{color:#a87988;font-size:12px}.nav{position:absolute;right:15px;top:13px;z-index:2}.nav a{color:#d75a7e;padding:4px 6px}.nav a span{display:none}
        .page{width:min(450px,calc(100% - 28px));padding:14px 0 34px}
        .intro{min-height:70px;margin:0 0 14px;padding:16px 22px;background:#fff;border:3px solid #ffb4c9;border-radius:24px;box-shadow:0 12px 28px rgba(207,86,123,.12);align-items:center}.intro-copy{max-width:none;width:100%}.intro h1,.intro p{display:none}.intro-actions{display:grid;grid-template-columns:1fr;gap:10px}.intro-actions:has(#openContact:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-hero-button,.contact-hero-button,.certificate-hero-button{width:100%;height:40px;border-radius:20px;padding:0 12px;font-size:12px;box-shadow:none}
        .workspace{display:block}.workspace>div{display:flex;flex-direction:column}.workspace>div>.public-help{order:0}.workspace>div>.cert-card{order:1}.workspace>div>.card:not(.cert-card){order:2}.workspace>div>.card,.cert-card{border:3px solid #ffb4c9;border-radius:24px;box-shadow:0 12px 28px rgba(207,86,123,.12);overflow:hidden}.workspace>div>.card{margin-bottom:14px}.card-head{padding:18px 22px;border:0}.card-head h2{font-size:17px;color:#986171}.step{display:none}.card-body{padding:20px 24px 25px}
        .source-tabs{display:none}.library-box{display:block}.library-heading{margin-bottom:9px}.library-heading strong{color:#986171;font-size:15px}.library-count{display:none}.library-options{max-height:none}.library-option{min-height:54px;border:2px solid #ffd0dc;border-radius:24px;padding:7px 12px}.library-option.active{background:#fff5f8;border-color:#ff8fb0;box-shadow:none}.library-option-allinone{min-height:58px;padding:8px 12px 8px 14px;border-color:#ff9fbb;background:#fffafc}.library-option-allinone:before{top:12px;bottom:12px}.library-option-allinone.active{background:#fff0f5;border-color:#fa7198;box-shadow:none}.library-icon{width:34px;height:34px;border-radius:50%;background:#fff0f5;color:#f16d93;overflow:hidden}.library-icon img{display:block;width:100%;height:100%;object-fit:cover}.library-name{color:#986171}.library-feature-chip{height:20px;padding:0 8px;font-size:10px;border-radius:999px}.library-feature-chip i{font-size:11px}.library-option.active .library-check{color:#f16d93}.library-empty{border:2px dashed #ffc0d1;border-radius:16px;background:#fff7fa}
        .cert-card{margin-top:0;scroll-margin-top:14px}.cert-card .card-head{padding-bottom:5px}.cert-card .card-body{padding-top:8px}.action-tabs{border:2px solid #ffb4c9;border-radius:25px;background:#fff;padding:4px;gap:3px}.action-tabs button{height:39px;border-radius:21px;color:#986171}.action-tabs button.active{background:#fa7198;color:#fff;box-shadow:0 3px 9px rgba(250,113,152,.22)}.action-help{color:#b08390;margin:-6px 3px 14px}.mode-tabs,#manualPanel{display:none!important}.lookup-note{display:none!important}.udid-row{grid-template-columns:minmax(0,1fr) 136px}.udid-row input{border-color:#ffb4c9;border-radius:23px}.udid-row button{border-radius:23px;background:#fa7198;font-size:12px}.udid-row button i{flex:0 0 auto}.field input{height:47px;border:2px solid #ffb4c9;border-radius:24px}.field label{color:#986171}.lookup-feedback{border-radius:13px}.lookup-feedback #switchToUploadCert{display:none!important}.certificate-choice{border-radius:14px}.certificate-choice .download-cert{display:none!important}.certificate-summary{display:none}.options{display:none}.primary{height:52px;border-radius:27px;background:#fa7198;box-shadow:0 5px 0 #e9c3cc}.sidebar{position:static;display:block}.sidebar #statusCard{display:none}.result{margin-top:14px;border:3px solid #a9dec9;border-radius:24px;box-shadow:0 12px 28px rgba(71,146,115,.1)}.footer{color:#bc92a0;padding:0 12px 22px}.workspace:after{content:"";display:block;height:14px}
        .public-help{margin:0 0 14px;padding:0;background:#fff;border:3px solid #ffb4c9;border-radius:24px;box-shadow:0 12px 28px rgba(207,86,123,.12);overflow:hidden}.public-help summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 22px;color:#f16d93;font-size:17px;font-weight:800;user-select:none}.public-help summary::-webkit-details-marker{display:none}.public-help summary:after{content:none}.public-help-chevron{flex:0 0 auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fff0f5;color:#f16d93;font-size:20px;line-height:1;transition:transform .22s ease,background .22s ease}.public-help summary:hover .public-help-chevron{background:#ffe1eb}.public-help[open] summary{border-bottom:1px solid #ffd3de}.public-help[open] .public-help-chevron{transform:rotate(180deg);background:#ffe1eb}.public-help-content{padding:2px 22px 20px}.public-help h2{margin:14px 0 10px;color:#f16d93;font-size:16px}.public-help h2:first-child{margin-top:10px}.public-help p{margin:9px 0;color:#a27582;font-size:12px;line-height:1.7}.public-help p i{color:#ef557a;margin-right:5px}.public-help-divider{height:1px;background:#ffd3de;margin:17px 0;position:relative}.public-help-divider:after{content:"✿";position:absolute;left:50%;top:-10px;transform:translateX(-50%);background:#fff;padding:0 10px;color:#f46e99;font-size:17px}
        .tutorial-links{display:grid;justify-items:start;gap:8px;margin-top:14px}.developer-guide-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:29px;margin:0;padding:0 10px;border:1px solid #f3a9c1;border-radius:15px;background:#fff;color:#d9557f;font-size:11px;font-weight:700;cursor:pointer;transition:.18s ease}.developer-guide-link:hover{background:#fff0f5;border-color:#ef7fa3;color:#c83d70}.video-tutorial-link{min-width:148px;height:38px;padding:0 18px;border-color:#fa7198;border-radius:20px;background:#fa7198;color:#fff;font-size:13px;box-shadow:0 5px 12px rgba(239,95,145,.22)}.video-tutorial-link:hover{border-color:#e85883;background:#e85883;color:#fff;transform:translateY(-1px)}
        .guide-modal{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:18px}.guide-backdrop{position:absolute;inset:0;background:rgba(25,20,23,.72)}.guide-dialog{position:relative;width:min(720px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid #eadde2;border-radius:12px;box-shadow:0 28px 80px rgba(24,15,20,.28);padding:22px}.guide-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #f0e4e8}.guide-head h2{margin:0;color:var(--pink-dark);font-size:21px;line-height:1.35}.guide-content{padding:16px 2px 4px;color:#493e44;font-size:14px;line-height:1.75;overflow-wrap:anywhere}.guide-content h1,.guide-content h2,.guide-content h3{color:var(--pink-dark);line-height:1.4;margin:15px 0 7px}.guide-content h1{font-size:21px}.guide-content h2{font-size:18px}.guide-content h3{font-size:16px}.guide-content p{margin:8px 0}.guide-content ol,.guide-content ul{margin:8px 0;padding-left:24px}.guide-content strong{color:#e53935;font-weight:800}.guide-content em{color:var(--pink-dark)}.guide-content code{padding:2px 5px;border-radius:4px;background:#fff0f5;color:var(--pink-dark)}.guide-content a{color:var(--pink);text-decoration:underline}
        .developer-guide-content{padding:16px 4px 8px;color:#493e44;font-size:16px;line-height:1.85}
        .developer-guide-content h2{color:var(--pink-dark);font-size:20px;margin:16px 0 10px}
        .developer-guide-content h2:first-child{margin-top:4px}
        .developer-guide-content p,.developer-guide-content li{font-size:16px;line-height:1.85;color:#493e44}
        .developer-guide-content strong{color:#e53935;font-size:17px;font-weight:800}
        .developer-guide-content ol,.developer-guide-content ul{margin:8px 0 12px;padding-left:24px}
        .developer-guide-content img{display:block;max-width:100%;height:auto;max-height:62vh;margin:14px auto;border:1px solid #f1e1e7;border-radius:10px;object-fit:contain;background:#fff}.guide-content img{display:block;max-width:100%;height:auto;max-height:58vh;margin:14px auto;border:1px solid #f1e1e7;border-radius:9px;object-fit:contain;cursor:zoom-in}.guide-empty{margin:18px 0 5px;padding:24px;text-align:center;color:var(--muted);background:var(--pink-pale);border:1px dashed #efafc5;border-radius:9px;font-size:13px}.guide-image-lightbox{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:28px}.guide-image-backdrop{position:absolute;inset:0;background:rgba(17,13,16,.82)}.guide-image-lightbox img{position:relative;z-index:1;display:block;max-width:94vw;max-height:88vh;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.35);cursor:zoom-out}.guide-image-close{position:absolute;z-index:2;top:18px;right:18px;width:40px;height:40px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.94);color:#6c5d65;display:grid;place-items:center;font-size:22px;cursor:pointer}
        .video-choice-dialog{width:min(480px,100%)}.video-choice-dialog .guide-head h2{color:var(--pink-dark)}.video-choice-list{display:grid;gap:10px;padding-top:18px}.video-choice-button{width:100%;min-height:64px;padding:10px 13px;border:1px solid #f2c2d2;border-radius:9px;background:#fff8fa;color:#9b5870;display:grid;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:11px;text-align:left;transition:.18s ease}.video-choice-button:hover{border-color:#ef7fa3;background:#fff0f5;color:var(--pink-dark);transform:translateY(-1px)}.video-choice-button:disabled{cursor:not-allowed;opacity:.5;transform:none}.video-choice-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#ffe2eb;color:var(--pink);font-size:21px}.video-choice-copy strong{display:block;font-size:14px}.video-choice-copy small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.video-choice-arrow{font-size:21px;color:#df8da9}
        .video-player-modal{z-index:80;padding:20px;background:#050506}.video-player-modal .guide-backdrop{background:#050506}.video-player-dialog{width:min(1280px,calc(100vw - 40px));height:calc(100vh - 40px);height:calc(100dvh - 40px);max-height:none;overflow:hidden;padding:18px;background:#0d0d10;border:1px solid #29292e;border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.55);display:grid;grid-template-rows:auto minmax(0,1fr)}.video-player-dialog .guide-head{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:12px;padding:0 0 16px;border-bottom:1px solid #29292e}.video-player-dialog .guide-head h2{color:#fff;text-align:center;font-size:22px}.video-player-dialog .icon-button{width:42px;height:42px;border-color:#34343a;background:#151519;color:#fff}.video-player-dialog .icon-button:hover{background:#24242a;color:#fff}.video-player-shell{min-height:0;padding-top:16px;display:grid;place-items:center;position:relative;overflow:hidden}.video-player{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;border-radius:12px;background:#000;object-fit:contain}.video-player-error{position:absolute;left:14px;right:14px;bottom:14px;margin:0;padding:11px 13px;border-radius:7px;background:rgba(197,54,94,.92);color:#fff;font-size:12px;line-height:1.55;text-align:center}
         @media(max-width:640px){.topbar{padding-top:10px}.topbar-inner,.page{width:calc(100% - 18px)}.topbar-inner{min-height:150px;padding:22px 18px 58px}.brand img{width:68px;height:68px}.brand-name{font-size:21px}.brand-subtitle{font-size:11px}.intro{min-height:70px;padding:14px 18px}.intro-actions{gap:8px}.purchase-hero-button,.certificate-hero-button{font-size:11px;padding:0 8px}.card-body{padding-left:17px;padding-right:17px}.udid-row{grid-template-columns:minmax(0,1fr) 128px}.udid-row button{padding:0 7px;font-size:12px}.action-tabs button{font-size:12px}.public-help summary{padding:16px 17px;font-size:16px}.public-help-content{padding:2px 17px 18px}}
          @media(min-width:641px){
             .topbar{padding:24px 0 0}
             .topbar-inner{width:min(960px,calc(100% - 64px));min-height:112px;padding:20px 30px;border-radius:28px;box-shadow:0 16px 36px rgba(207,86,123,.14);gap:30px}
             .brand{flex:1;min-width:0;gap:18px}
             .brand img{width:76px;height:76px}
             .brand-name{font-size:25px}
             .brand-subtitle{font-size:13px}
             .site-tabs{flex:0 0 auto;gap:6px;padding:5px;border:2px solid #ffc4d5;border-radius:27px;box-shadow:0 7px 16px rgba(207,86,123,.1)}
             .site-tabs a{min-width:136px;height:42px;padding:0 18px;border-radius:22px;font-size:13px}
             .site-tabs a.active{box-shadow:0 7px 16px rgba(239,95,145,.28)}
              .page{width:min(960px,calc(100% - 64px));padding:28px 0 56px}
          }
        @media(max-width:640px){.guide-modal{padding:10px}.guide-dialog{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:16px}.guide-head h2{font-size:18px}.guide-content{font-size:13px}.purchase-guide-content{font-size:16px}.purchase-guide-content p,.purchase-guide-content li{font-size:16px}.purchase-guide-content strong{font-size:18px}.developer-guide-link{min-width:0;padding:0 9px}.video-tutorial-link{min-width:148px;padding:0 16px}.video-player-modal{padding:0}.video-player-dialog{width:100vw;height:100vh;height:100dvh;max-height:none;padding:max(12px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom));border:0;border-radius:0}.video-player-dialog .guide-head{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;padding:0 2px 12px}.video-player-dialog .guide-head h2{font-size:20px}.video-player-dialog .icon-button{width:40px;height:40px}.video-player-shell{padding-top:10px}.video-player{border-radius:10px}}
          @media(max-width:640px){.topbar-inner{min-height:164px}.site-tabs{bottom:10px}}
        .library-custom{position:relative;overflow:hidden;border-color:#f1aac1;background:#fffafd;box-shadow:0 3px 10px rgba(207,86,123,.05);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
        .library-custom:hover{border-color:#ee7fa3;background:#fff5f8;box-shadow:0 6px 15px rgba(207,86,123,.1);transform:translateY(-1px)}
        .library-custom:focus-visible{outline:3px solid rgba(239,95,145,.2);outline-offset:2px}
        .library-custom .library-icon{width:40px;height:40px;border-radius:50%;background:#fa7198;color:#fff;font-size:21px}
        .library-custom .library-icon.library-icon-action{background:#fa7198;color:#fff}
        .library-custom .library-size{color:#b17d8d}
        .library-custom .library-check{font-size:18px;opacity:.35;transition:opacity .18s ease,color .18s ease}
        .library-custom.active{border-color:#f16d93;background:#fff0f5;box-shadow:0 0 0 2px rgba(239,95,145,.1),0 7px 16px rgba(207,86,123,.1);transform:none}
        .library-custom.active .library-icon{background:#ef557a;color:#fff}
        .library-custom.active .library-check{opacity:1;color:var(--pink)}
        #uploadAppBox{margin-top:12px}
        #uploadAppBox:not(.hidden){animation:custom-upload-in .18s ease-out}
        @keyframes custom-upload-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
        #uploadAppBox .dropzone{min-height:172px;border:2px dashed #efb0c5;border-radius:14px;background:#fff8fb;padding:22px 18px;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
        #uploadAppBox .dropzone:hover{border-color:#ee7fa3;background:#fff2f6;box-shadow:0 7px 17px rgba(207,86,123,.08)}
        #uploadAppBox .drop-icon{width:58px;height:58px;border-radius:17px;background:#fff;border:1px solid #f6d8e2;color:var(--pink);font-size:27px;box-shadow:0 6px 14px rgba(207,86,123,.1)}
        #uploadAppBox .dropzone strong{color:#9b5870;font-size:15px;margin-bottom:6px}
        #uploadAppBox .dropzone small{color:#b17d8d}
        #uploadAppBox .file-state{margin-top:10px;padding:10px 12px;border:1px solid #f1dce4;border-radius:11px;background:#fff;box-shadow:0 4px 12px rgba(102,52,73,.05)}
        #uploadAppBox .file-state>span{display:flex;align-items:center;gap:7px;min-width:0}
        #uploadAppBox #appFileName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#765866}
        #uploadAppBox #clearApp{height:32px;border:1px solid #efbfd0;border-radius:17px;padding:0 13px;color:var(--pink-dark);background:#fff;white-space:nowrap;transition:background .18s ease,border-color .18s ease}
        #uploadAppBox #clearApp:hover{border-color:#ee7fa3;background:var(--pink-soft)}
        @media(max-width:640px){.library-custom{min-height:58px;margin-top:9px}.library-custom .library-icon{width:38px;height:38px;border-radius:12px;font-size:20px}#uploadAppBox{margin-top:10px}#uploadAppBox .dropzone{min-height:150px;padding:18px 14px}#uploadAppBox .drop-icon{width:52px;height:52px;border-radius:15px;font-size:24px}#uploadAppBox .file-state{padding:10px}#uploadAppBox #clearApp{padding:0 11px;font-size:12px}}
