:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;color-scheme:light;--bg:#f4f7fc;--surface:#fff;--ink:#162740;--muted:#52627a;--subtle:#64748b;--line:#e0e7f1;--primary:#245ad8;--primary-hover:#1948b6;--tint:#edf3ff;--success:#13724c;--danger:#b92b3b;--radius:18px;--demo-accent:#2563eb;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 78% 0,#e7efff 0,transparent 42%),var(--bg)}button,input,textarea,select{font:inherit}a,button,input,summary,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}a{color:var(--primary)}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #82a9ff;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 3px #245ad81a}[hidden]{display:none!important}.skip-link{position:fixed;top:-80px;left:16px;padding:12px 18px;background:var(--ink);color:#fff;z-index:20;border-radius:8px}.skip-link:focus{top:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{max-width:1168px;margin:0 auto;min-height:88px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-size:18px;letter-spacing:.7px;font-weight:750;color:var(--ink);white-space:nowrap}.brand strong{font-weight:450;letter-spacing:-.2px}.brand-icon{width:36px;height:40px;border-radius:11px;background:var(--primary);color:white;display:grid;place-items:center}.brand-icon svg{width:23px;height:23px}.nav-link{font-size:14px;font-weight:550;text-decoration:none;display:inline-flex;align-items:center;gap:10px;min-height:44px}.nav-link:hover{text-decoration:underline}.page{max-width:1168px;margin:0 auto;padding:26px 24px 24px}.intro{margin-bottom:34px;max-width:720px}.eyebrow{font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px;letter-spacing:2px;font-weight:600;color:var(--primary)}h1{font-size:40px;line-height:1.35;letter-spacing:-1.2px;font-weight:700;margin:14px 0 14px}.intro>p{font-size:16px;line-height:1.9;color:var(--muted);max-width:590px;margin:0 0 18px}.scope-label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:550;color:var(--muted);border:1px solid var(--line);padding:7px 11px;border-radius:99px;background:#ffffff9c;white-space:nowrap}.status-dot{width:7px;height:7px;display:inline-block;background:var(--success);border-radius:50%;flex-shrink:0}.portal-grid{display:grid;grid-template-columns:1.02fr 1fr;gap:24px;align-items:start}.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:0 8px 28px #273e6905}.section-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:24px;min-width:0}.section-number{width:33px;height:33px;display:grid;place-items:center;flex-shrink:0;background:var(--tint);color:var(--primary);font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px;font-weight:650;border-radius:9px;margin-top:2px}h2{font-size:18px;line-height:1.5;margin:0;font-weight:650;letter-spacing:-.2px}.section-heading p{font-size:13px;line-height:1.65;color:var(--muted);margin:5px 0 0}label{font-size:14px;line-height:1.5;font-weight:600;display:block;margin-bottom:8px}input,textarea,select{width:100%;max-width:100%;min-height:48px;border:1px solid #ccd7e6;background:#fcfdff;border-radius:9px;color:var(--ink);font-size:16px;padding:11px 13px;transition:border-color .18s,box-shadow .18s}input::placeholder,textarea::placeholder{color:#6c7d93}textarea{resize:vertical;line-height:1.7;min-height:98px}.input-wrap{position:relative}.input-wrap input{padding-right:64px}.paste{position:absolute;right:3px;top:2px;min-width:52px;min-height:44px;padding:0 10px;border:0;background:none;color:var(--primary);font-size:14px;font-weight:550;border-radius:7px}.paste:hover{background:var(--tint)}.field-help{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 0}.error{font-size:14px;line-height:1.7;color:var(--danger);margin:12px 0 0;background:#fff3f4;padding:10px 12px;border-radius:8px;border:1px solid #f7dce0;overflow-wrap:anywhere}.button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;border:1px solid transparent;padding:11px 17px;text-decoration:none;font-size:14px;font-weight:600;line-height:1.5;transition:background .18s,border-color .18s,color .18s;text-align:center}.button svg{width:19px;height:19px}.primary{background:var(--primary);border-color:var(--primary);color:white}.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.primary:active{background:#153f9f}.secondary{background:white;border-color:#ccd7e6;color:var(--ink)}.secondary:hover{background:#f5f8fe;border-color:#a9bddc}.quiet{background:transparent;color:var(--primary)}.quiet:hover{background:var(--tint)}.danger{color:var(--danger);border-color:#f1cdd3;background:white}.danger:hover{background:#fff0f2}.danger:disabled{background:#f7f8fa;color:var(--subtle);border-color:var(--line)}.full{width:100%;margin-top:18px}.full+.full{margin-top:12px}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.body-note{font-size:14px;line-height:1.8;color:var(--muted);margin:14px 0 0}.session-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf8f2;border:1px solid #d5eadf;border-radius:10px;padding:13px 14px;color:var(--success)}.session-banner>div{display:flex;align-items:center;gap:8px;font-size:14px}.countdown{font-family:ui-monospace,SFMono-Regular,monospace;font-size:16px;font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.session-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:13px;color:var(--muted);font-size:12px}.session-footer>span{overflow-wrap:anywhere}.link-button{border:0;background:none;color:var(--primary);font-size:12px;font-weight:550;padding:10px 0 10px 8px;min-height:44px;flex-shrink:0}.fold{border-top:1px solid var(--line);margin-top:24px}.fold summary{min-height:52px;padding-top:4px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:13px;color:var(--muted);font-weight:550;list-style:none;gap:12px}.fold summary::-webkit-details-marker{display:none}.fold summary>span{font-size:22px;font-weight:400}.fold[open] summary>span{transform:rotate(45deg)}.fold-content>p{font-size:13px;line-height:1.85;color:var(--muted);margin:4px 0 12px}.connection-list{display:grid;grid-template-columns:60px 1fr;gap:8px 12px;font-size:13px;margin:16px 0}.connection-list dt{display:flex;align-items:center;color:var(--muted)}.connection-list dd{margin:0;display:flex;align-items:center;justify-content:space-between;min-width:0;gap:10px}.connection-list dd>span{font-family:ui-monospace,SFMono-Regular,monospace;overflow-wrap:anywhere}.copy-button{border:0;background:var(--tint);color:var(--primary);border-radius:7px;font-size:12px;min-width:48px;min-height:44px;padding:8px;flex-shrink:0}.steps{margin:0;padding:0;list-style:none}.steps li{display:flex;align-items:flex-start;gap:13px;margin-bottom:22px}.step-index{flex-shrink:0;display:grid;place-items:center;width:26px;height:26px;border:1px solid #cedbf0;border-radius:50%;font-size:12px;color:var(--primary);font-weight:600;background:#f6f9ff;margin-top:1px}.steps h3{font-size:14px;font-weight:650;line-height:1.6;margin:0 0 6px}.steps p{font-size:13px;color:var(--muted);line-height:1.9;margin:0}.callout{display:flex;gap:10px;align-items:flex-start;background:#f5f8fd;border:1px solid #e8edf6;padding:13px 14px;border-radius:10px}.callout svg{width:17px;height:17px;flex-shrink:0;color:var(--primary);margin-top:3px}.callout p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.editor-panel,.certificate-panel{grid-column:1/-1}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}.field{min-width:0}.field+.field:not(.field-grid .field){margin-top:18px}.span-two{grid-column:1/-1}.color-field{display:flex;gap:10px}.color-field input[type=color]{width:51px;min-width:51px;padding:5px;cursor:pointer;background:white}.color-field input[type=text]{max-width:180px;font-family:ui-monospace,SFMono-Regular,monospace}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:23px;padding-top:18px}.form-footer .field-help{margin:0}.form-footer .button{flex-shrink:0}.cert-list{display:grid;grid-template-columns:82px 1fr;gap:12px 20px;line-height:1.8;font-size:13px;margin:0}.cert-list dt{color:var(--muted)}.cert-list dd{margin:0;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;color:#3e506b}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 0 12px;color:var(--muted);font-size:11px;line-height:1.8}.page-footer>span:first-child{font-weight:650;letter-spacing:.5px}#toast{position:fixed;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translate(-50%,10px);max-width:min(90vw,480px);padding:13px 19px;border-radius:10px;background:#182b46f2;color:white;font-size:14px;line-height:1.7;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;box-shadow:0 8px 28px #16274033}#toast.visible{opacity:1;transform:translate(-50%,0)}.compact{margin-bottom:28px}.compact h1{font-size:34px}.login-panel{max-width:430px;margin:35px auto 60px}.login-panel .field{margin-top:18px}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.signed-in{font-size:13px;color:var(--muted)}.signed-in strong{color:var(--ink);margin-left:8px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:20px 22px;display:flex;flex-direction:column;gap:8px}.stat span{font-size:12px;color:var(--muted)}.stat strong{font-size:30px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums}.admin-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;align-items:start}.generated-panel{border-top:1px solid var(--line);padding-top:21px;margin-top:24px}.generated-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.generated-heading h3{font-size:14px;margin:0;font-weight:600}.badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:99px;font-size:11px;font-weight:600;line-height:1.5;background:var(--tint);color:var(--primary);white-space:nowrap}.keys-output{margin-top:12px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;line-height:2;white-space:pre;overflow:auto;background:#f6f9fe}.cards-panel{margin-top:24px}.panel-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.panel-toolbar .section-heading{margin-bottom:20px}.panel-toolbar>.button{flex-shrink:0}.filter-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin:0 0 18px;flex-wrap:wrap}.filter-row label{font-size:12px;margin:0}.filter-row select{width:150px;min-height:44px;font-size:13px;padding:8px 12px}.filter-row>.field-help{margin:0 0 0 auto;font-size:12px}.cards-list{display:grid;gap:12px}.card-record{border:1px solid var(--line);border-radius:12px;padding:18px 20px;background:#fff}.card-record-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.card-identity code{font-size:12px;overflow-wrap:anywhere;color:#3b506f}.subtle{font-size:12px;padding:8px 14px;min-height:44px;flex-shrink:0}.badge-active{color:var(--success);background:#edf8f2}.badge-unused{color:var(--primary);background:var(--tint)}.badge-expired{color:#73561f;background:#fff6e3}.badge-disabled{color:var(--muted);background:#edf0f5}.card-details{display:grid;grid-template-columns:.65fr 1.25fr 1.25fr 1fr 1fr;gap:16px;margin-top:13px}.card-detail{display:flex;flex-direction:column;gap:5px;min-width:0}.card-detail span{font-size:11px;color:var(--muted)}.card-detail strong{font-size:12px;line-height:1.8;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.empty-state{padding:35px 20px;text-align:center;color:var(--muted);font-size:14px;line-height:1.8;border:1px dashed #c8d5e8;border-radius:12px;background:#fafcff}.demo-page{max-width:760px;margin:0 auto;padding:30px 24px 20px}.demo-meta{display:flex;flex-direction:column;gap:8px;margin-bottom:21px;font-size:12px;color:var(--muted);padding:0 6px}.demo-meta>div{display:flex;align-items:center;gap:8px}.demo-meta strong{font-size:13px;font-weight:600;color:var(--muted)}.demo-meta .status-dot{background:#7890ae}.is-modified .demo-meta strong{color:var(--success)}.is-modified .demo-meta .status-dot{background:var(--success)}.demo-card{background:white;border:1px solid var(--line);border-top:4px solid var(--demo-accent);border-radius:22px;padding:46px 46px 40px;box-shadow:0 16px 50px #19356608;text-align:center;overflow-wrap:anywhere}.demo-orbit{width:84px;height:84px;margin:0 auto 26px;border-radius:23px;background:#f0f5ff;color:var(--demo-accent);display:grid;place-items:center}.demo-orbit svg{width:64px;height:64px;stroke-width:1.6}.demo-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border:1px solid var(--demo-accent);border-radius:99px;color:var(--ink);font-size:12px;font-weight:600;line-height:1.7;max-width:100%;white-space:pre-wrap}.demo-card h1{font-size:34px;letter-spacing:-.8px;margin:24px 0 13px;white-space:pre-wrap}.demo-subtitle{font-size:16px;line-height:1.9;margin:0;color:var(--muted);white-space:pre-wrap}.demo-divider{height:1px;background:var(--line);width:60px;margin:27px auto}.demo-message{font-size:16px;line-height:2;color:#3d506c;margin:0 0 28px;white-space:pre-wrap}.demo-explainer{padding:30px 7px 4px}.demo-explainer h2{font-size:14px}.demo-explainer p{font-size:13px;line-height:1.9;color:var(--muted);margin:10px 0}.demo-explainer .nav-link{font-size:13px}
@media(min-width:1400px){.page{padding-top:42px}.intro{margin-bottom:40px}}@media(max-width:900px){.portal-grid{gap:18px;grid-template-columns:1fr 1fr}.panel{padding:23px}.admin-grid{grid-template-columns:1fr 1fr;gap:18px}.stats-grid{gap:12px}.stat{padding:18px}.card-details{grid-template-columns:1fr 1fr 1fr}.card-detail:nth-child(n+4){margin-top:4px}.compact h1{font-size:32px}}@media(max-width:700px){.topbar{min-height:76px;padding:16px 20px}.page{padding:20px 20px 16px}.intro{margin-bottom:28px}.intro h1{font-size:32px;letter-spacing:-.7px}.intro>p{font-size:14px;line-height:1.95}.eyebrow{font-size:10px;letter-spacing:1.4px}.portal-grid,.admin-grid{grid-template-columns:1fr}.panel{padding:24px}.editor-panel,.certificate-panel{grid-column:auto}.guide-panel{order:3}.editor-panel{order:2}.certificate-panel{order:4}.page-footer{font-size:10px;flex-wrap:wrap;gap:6px}.field-grid{gap:16px;grid-template-columns:1fr}.span-two{grid-column:auto}.form-footer{align-items:flex-start;flex-direction:column;gap:14px}.form-footer .button{width:100%}.stats-grid{grid-template-columns:1fr 1fr;gap:12px}.stat{padding:16px 19px;gap:6px}.stat strong{font-size:27px}.compact h1{font-size:28px}.cards-panel{margin-top:18px}.panel-toolbar{align-items:center;flex-wrap:wrap;gap:0}.panel-toolbar>.button{margin-bottom:18px;width:100%}.panel-toolbar .section-heading{margin-bottom:18px}.card-record{padding:16px}.card-details{grid-template-columns:1fr 1fr;gap:13px}.card-identity{gap:7px}.card-identity code{font-size:11px}.card-record-heading{gap:8px}.filter-row>.field-help{width:100%;margin:0}.filter-row select{flex:1}.login-panel{margin:16px auto 40px}.demo-page{padding:22px 20px 16px}.demo-card{padding:34px 25px 30px;border-radius:18px}.demo-card h1{font-size:29px}.demo-meta{padding:0}.demo-orbit{margin-bottom:22px;width:72px;height:72px}.demo-orbit svg{width:58px;height:58px}.demo-explainer{padding:25px 2px 4px}.demo-body .topbar .scope-label{font-size:10px;padding:6px 8px}.demo-body .brand{font-size:16px;gap:8px}.demo-body .brand-icon{width:30px;height:34px}}@media(max-width:390px){.topbar{padding-left:16px;padding-right:16px}.brand{font-size:16px;gap:8px}.brand-icon{width:32px;height:36px}.nav-link{font-size:12px;gap:5px}.page,.demo-page{padding-left:16px;padding-right:16px}.panel{padding:21px}.intro h1{font-size:29px}.session-banner{padding:12px}.session-banner>div{font-size:13px}.section-heading{gap:11px}.section-heading p{font-size:12px}.cert-list{grid-template-columns:64px 1fr;gap:11px}.button{padding-left:13px;padding-right:13px}.card-record{padding:13px}.card-identity{flex-direction:column;align-items:flex-start}.demo-card{padding-left:21px;padding-right:21px}.demo-body .brand{font-size:14px}.demo-body .scope-label{font-size:10px}.demo-body .topbar{gap:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.vpn-connect-panel{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#f8faff}.vpn-connect-panel h3{font-size:14px;line-height:1.6;margin:0;color:var(--ink)}.vpn-connect-panel>.field-help{margin-top:6px}.vpn-connect-panel .button{margin-top:14px}.vpn-connection-status{margin-top:14px;padding:12px 13px;border:1px solid var(--line);border-left:3px solid #9baac0;border-radius:9px;background:white;color:var(--muted);overflow-wrap:anywhere}.vpn-connection-status strong{display:block;font-size:13px;line-height:1.7}.vpn-connection-status p{font-size:12px;line-height:1.8;margin:4px 0 0}.vpn-connection-status[data-state=connecting]{border-left-color:var(--primary);background:var(--tint)}.vpn-connection-status[data-state=connecting] strong{color:var(--primary)}.vpn-connection-status[data-state=connected]{border-color:#d5eadf;border-left-color:var(--success);background:#edf8f2}.vpn-connection-status[data-state=connected] strong{color:var(--success)}.vpn-connection-status[data-state=waiting],.vpn-connection-status[data-state=failed]{border-left-color:#ad6a21;background:#fffaf1}.vpn-connection-status[data-state=waiting] strong,.vpn-connection-status[data-state=failed] strong{color:#835518}

.card-search-form{border-top:1px solid var(--line);padding-top:19px;margin-bottom:18px}.card-search-controls{display:flex;gap:10px;align-items:stretch}.card-search-controls input{flex:1;min-width:0}.card-search-controls .button{flex-shrink:0}.card-heading-main{min-width:0;flex:1}.card-identity .card-key{font-size:14px;line-height:1.8;word-break:break-all;user-select:all}.card-record-id{font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere;margin:7px 0 0}.legacy-card-label{font-size:13px;line-height:1.8;color:var(--muted)}@media(max-width:700px){.card-search-controls{flex-direction:column}.card-search-controls .button{width:100%}.card-identity .card-key{font-size:12px}.card-record-heading{align-items:flex-start}}

.settings-panel{margin-top:24px}.settings-panel form{max-width:780px}.settings-demo-link{margin-top:12px;overflow-wrap:anywhere}.settings-panel input{max-width:100%}@media(max-width:700px){.settings-panel{margin-top:18px}}

.sites-panel{margin-top:24px}.sites-form{margin-top:22px}.checkbox-label{display:flex;align-items:center;gap:10px;min-height:44px;margin:12px 0 0;font-size:13px;font-weight:500;cursor:pointer}.checkbox-label input{width:20px;min-height:20px;height:20px;padding:0;accent-color:var(--primary);flex-shrink:0}.sites-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:20px 0 14px}.sites-summary .field-help{margin:0}.sites-summary #sites-count{white-space:nowrap}.sites-list{display:grid;gap:12px}.site-record{border:1px solid var(--line);border-radius:12px;padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.site-record-main{min-width:0}.site-record-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;overflow-wrap:anywhere}.site-record-heading strong{font-size:14px;line-height:1.7}.site-host{font-size:12px;font-family:ui-monospace,SFMono-Regular,monospace;line-height:1.8;overflow-wrap:anywhere;margin:7px 0 0;color:var(--muted)}.site-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap;max-width:380px;flex-shrink:0}.site-picker{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.site-picker select{max-width:520px}.site-picker .nav-link{margin-top:6px}.site-picker .button{margin-top:6px}.site-picker a[aria-disabled=true]{pointer-events:none;opacity:.55}input:disabled,textarea:disabled,select:disabled{background:#f2f5f9;color:var(--muted);cursor:wait}@media(max-width:900px){.site-record{flex-direction:column}.site-actions{justify-content:flex-start;max-width:none}}@media(max-width:700px){.sites-panel{margin-top:18px}.site-record{padding:16px}.sites-summary{flex-direction:column;gap:6px}.site-actions{width:100%;gap:8px}.site-actions .button{flex:1;white-space:nowrap}.site-picker select{max-width:none}}

.site-template-field{max-width:520px;margin-top:18px}.school-template-note{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f5f8fd}.editor-panel[data-template="school-cards"] #content-title,.editor-panel[data-template="school-title-patch"] #content-title{max-width:620px}@media(max-width:700px){.site-template-field{max-width:none}}

.student-details{min-width:0;margin:26px 0 0;padding:20px;border:1px solid var(--line);border-radius:12px}.student-details legend{padding:0 8px;font-size:15px;font-weight:600}.student-details>.field-help{margin:0 0 18px}@media(max-width:700px){.student-details{padding:16px}}

.site-conflict-action{margin-top:12px;max-width:100%;white-space:normal}

/* ============================================================
   v2 追加样式
   ============================================================ */

/* 顶部：去掉管理后台链接后保持单边对齐 */
.topbar { justify-content: space-between; }

/* 引导卡右上角视频教程按钮 */
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.video-button {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #fff; background: #2563eb; text-decoration: none; white-space: nowrap;
  transition: background .15s ease;
}
.video-button:hover { background: #1d4ed8; }
.video-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* 学籍选择 */
.substep-title { margin: 20px 0 10px; font-size: 15px; font-weight: 600; color: #0f172a; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  border: 1.5px solid #dbe3ef; border-radius: 12px; background: #fff;
  text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.choice:hover { border-color: #2563eb; }
.choice.selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.choice strong { font-size: 14px; color: #0f172a; }
.choice span { font-size: 12px; color: #64748b; line-height: 1.5; }

/* 警告提示 */
.field-help.warn { color: #b45309; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 9px 12px; line-height: 1.6; }

/* 认证成功横幅 */
.verified-banner {
  margin: 16px 0; padding: 14px 16px; border-radius: 12px;
  background: #ecfdf5; border: 1px solid #a7f3d0; border-left: 4px solid #10b981;
}
.verified-banner strong { display: block; font-size: 15px; color: #065f46; margin-bottom: 6px; }
.verified-banner p { font-size: 13px; color: #047857; line-height: 1.65; margin: 0 0 6px; }
.verified-banner .verified-time { font-size: 12px; color: #059669; margin: 0; }

/* 用户协议 */
.agreement {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 13px 16px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; font-size: 13px; color: #475569; line-height: 1.6;
  cursor: pointer;
}
.agreement input {
  flex: 0 0 auto; width: 17px; height: 17px; margin: 0;
  accent-color: #2563eb; cursor: pointer;
}
.agreement span { flex: 1; min-width: 0; }
.agreement a { color: #2563eb; text-decoration: none; }
.agreement a:hover { text-decoration: underline; }

/* 危险提示卡片 */
.warn-callout { background: #fffbeb; border-color: #fde68a; }
.warn-callout p { color: #92400e; }
.warn-callout svg { stroke: #d97706; }

/* 协议页面 */
.doc-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.doc-page h1 { font-size: 26px; color: #0f172a; margin: 0 0 8px; }
.doc-page .doc-meta { font-size: 13px; color: #94a3b8; margin: 0 0 28px; }
.doc-page h2 { font-size: 17px; color: #0f172a; margin: 28px 0 10px; }
.doc-page p, .doc-page li { font-size: 14px; color: #475569; line-height: 1.85; }
.doc-page ul { padding-left: 22px; margin: 8px 0; }
.doc-page .doc-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e2e8f0;
  font-size: 13px; color: #94a3b8; }

/* ---------- 后台：验证码 ---------- */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.captcha-row input { flex: 1 1 auto; min-width: 0; }
.captcha-image {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; cursor: pointer; min-width: 160px; height: 52px;
  border-radius: 8px; overflow: hidden; background: #f4f7fc;
}
.captcha-image svg { display: block; width: 160px; height: 52px; }
.captcha-row .paste { flex: 0 0 auto; }

/* ---------- 后台：批量工具栏 ---------- */
.bulk-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px; margin: 12px 0; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 10px;
}
.bulk-bar .checkbox-label { margin: 0; }
.bulk-bar .button { padding: 6px 12px; font-size: 13px; }

/* ---------- 后台：分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pager .button { padding: 7px 16px; font-size: 13px; }

/* ---------- 后台：筛选行 ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-row select { width: auto; min-width: 120px; }
.filter-row label { font-size: 13px; color: #64748b; }

/* ---------- 后台：卡密选中态 ---------- */
.card-record.checked { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.card-record .card-select { margin-right: 8px; accent-color: #2563eb; width: 16px; height: 16px; }

/* ---------- 状态徽标补充 ---------- */
.badge-verified { background: #ecfdf5; color: #047857; }
.badge-active { background: #eff6ff; color: #1d4ed8; }
.badge-unused { background: #f8fafc; color: #64748b; }
.badge-expired { background: #fef2f2; color: #b91c1c; }
.badge-disabled { background: #f1f5f9; color: #475569; }

/* ---------- 卡密种类标签 ---------- */
.kind-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; background: #f1f5f9; color: #475569; margin-left: 6px;
}


/* ---------- 自定义 Logo ---------- */
.brand-icon img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 8px;
}
.brand-icon:has(img:not([hidden])) svg { display: none; }

/* ---------- 后台：品牌预览 ---------- */
.brand-preview {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 12px 0; padding: 12px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 10px; min-width: 120px;
}
.brand-preview img { max-width: 160px; max-height: 80px; object-fit: contain; display: block; }
