:root{--tg-accent:#176b77;--tg-soft:#e9f4f3;--tg-border:#dbe3e6;--tg-muted:#60727c;--tg-good:#12654a;--tg-warn:#92511c}html[data-theme=dark]{--tg-soft:#193335;--tg-border:#3b4c53;--tg-muted:#b0bec6;--tg-good:#8ed8b8;--tg-warn:#f5c58d}body{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}#header{background:#183e4a;padding:20px 32px}#site-name a{font-weight:700;letter-spacing:.02em}.brand-sub{font-size:14px;font-weight:400;margin-left:10px;color:#b7d4dc}.identity{font-weight:600}.header-link{border:0;background:none;color:#fff;text-decoration:underline;cursor:pointer;padding:0;font:inherit}.portal-shell{max-width:1250px;margin:0 auto}.portal-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:0 0 24px}.portal-heading h1{font-size:28px;font-weight:650;letter-spacing:-.03em;color:var(--body-fg);margin:8px 0 10px}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:700;color:var(--tg-muted)}.muted{color:var(--tg-muted);line-height:1.8}.small{font-size:12px}.portal-tabs{display:flex;gap:8px;margin-bottom:24px;border-bottom:1px solid var(--tg-border);overflow:auto;white-space:nowrap;padding-bottom:12px}.portal-tabs a{color:var(--body-fg);padding:9px 15px;border-radius:6px}.portal-tabs a[aria-current=page]{background:var(--tg-soft);color:var(--tg-accent);font-weight:700}.panel,.stat{border:1px solid var(--tg-border);border-radius:10px;padding:24px;background:var(--body-bg);margin-bottom:20px;box-sizing:border-box}.panel h2{background:none;color:var(--body-fg);font-size:17px;line-height:1.5;letter-spacing:0;font-weight:650;padding:0;margin:0 0 14px}.panel p{line-height:1.8}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat span{display:block;color:var(--tg-muted);font-size:13px}.stat strong{display:block;font-size:32px;margin-top:12px;font-weight:600}.two-column,.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.two-column>.panel,.template-grid>.panel{margin-bottom:0}.two-column{margin-bottom:20px}.template-grid{margin-bottom:20px}.section-heading,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.toolbar{margin-bottom:16px}.section-heading h2{margin-bottom:10px}.button,button.button{display:inline-block;background:var(--tg-accent);color:white;border:1px solid transparent;border-radius:6px;padding:10px 16px;font-size:13px;font-family:inherit;line-height:1.4;text-decoration:none;cursor:pointer;white-space:normal;box-sizing:border-box}.button:hover,button.button:hover{background:#115763;color:#fff}.button.secondary{background:var(--body-bg);border-color:var(--tg-border);color:var(--body-fg)}.button.danger{background:var(--body-bg);border-color:#d3a6a0;color:#a2372f}.button[disabled]{background:#78878c;cursor:not-allowed;opacity:.6}.small-button{padding:7px 10px;font-size:12px;margin:3px 4px 3px 0}.badge{display:inline-block;border-radius:100px;padding:5px 10px;font-size:12px;line-height:1.4;white-space:nowrap}.badge.good{color:var(--tg-good);background:var(--tg-soft)}.badge.neutral{color:var(--tg-muted);background:var(--darkened-bg)}.badge.warn{color:var(--tg-warn);background:var(--darkened-bg)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}table th{background:var(--darkened-bg);color:var(--tg-muted);padding:12px;text-transform:none;font-weight:600;font-size:12px}table td{padding:14px 12px;vertical-align:top;border-bottom:1px solid var(--tg-border);font-size:13px;line-height:1.6}.empty-cell{text-align:center;padding:40px!important;color:var(--tg-muted)}.empty-state{text-align:center;padding:38px}.form-panel{max-width:900px}.auth-panel{max-width:580px;margin-left:auto;margin-right:auto}.stack-form>div{margin-bottom:20px}.stack-form label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}.stack-form input:not([type=checkbox]):not([type=radio]),.stack-form select,.stack-form textarea{box-sizing:border-box;width:100%;max-width:100%;padding:10px 12px;border-radius:6px;border:1px solid var(--tg-border);background:var(--body-bg);color:var(--body-fg);font-size:14px}.stack-form textarea{resize:vertical;line-height:1.7}.stack-form input[type=checkbox]{margin-right:6px}.stack-form .helptext{display:block;color:var(--tg-muted);font-size:12px;line-height:1.7;margin-top:7px}.stack-form ul.errorlist{margin:0 0 8px;padding-left:18px;color:var(--error-fg)}.stack-form #id_group_ids{max-height:260px;overflow:auto;border:1px solid var(--tg-border);padding:12px;border-radius:6px}.stack-form #id_group_ids label{font-weight:400}.inline-form{display:inline-block;margin:0}.inline-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:12px}.inline-controls label{margin-right:8px}.inline-controls select{max-width:100%;padding:8px}.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.detail-grid{display:grid;grid-template-columns:160px 1fr;gap:14px;font-size:14px;line-height:1.6}.detail-grid dt{color:var(--tg-muted)}.detail-grid dd{margin:0;word-break:break-word}.message-preview{background:var(--darkened-bg);border-radius:6px;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.8 system-ui,sans-serif;max-height:400px;overflow:auto}.notice{padding:16px;border-left:3px solid #d19a59;background:var(--darkened-bg);line-height:1.8}.field-note{color:var(--tg-warn);max-width:340px;font-size:12px}.step-number{display:block;font-size:12px;color:var(--tg-accent);font-weight:700;margin-bottom:8px}.portal-footer{color:var(--tg-muted);font-size:11px;border-top:1px solid var(--tg-border);padding-top:20px;margin-top:28px}.otp-qr{display:block;width:220px;max-width:100%;margin:20px auto;background:white;border:12px solid white;border-radius:8px;box-sizing:border-box}.secret-key{overflow-wrap:anywhere;user-select:all}.recovery-codes{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0;padding:0}.recovery-codes li{background:var(--darkened-bg);border:1px solid var(--tg-border);padding:12px;border-radius:5px;text-align:center}.wizard-steps{display:flex;gap:16px;list-style:none;padding:0;margin:20px 0}.wizard-steps li{color:var(--tg-muted);border-bottom:2px solid var(--tg-border);padding-bottom:8px;font-size:12px}.wizard-steps li[aria-current=step]{color:var(--tg-accent);border-color:var(--tg-accent);font-weight:700}.restart-form{margin-top:16px}code{overflow-wrap:anywhere}.portal-shell a:focus,.portal-shell button:focus,.portal-shell input:focus,.portal-shell textarea:focus,.portal-shell select:focus{outline:2px solid #4895a1;outline-offset:3px}@media(max-width:900px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column,.template-grid{grid-template-columns:1fr}.portal-heading h1{font-size:24px}#content{padding:20px}.portal-heading{align-items:flex-start}.section-heading,.toolbar{align-items:flex-start;flex-direction:column}.panel{padding:20px}.detail-grid{grid-template-columns:120px 1fr}}@media(max-width:500px){#header{padding:18px}.brand-sub{display:block;margin:4px 0 0}.portal-heading{flex-direction:column;gap:8px}.portal-tabs a{padding:8px 12px}.stat strong{font-size:28px}.stat{padding:16px}.panel{padding:17px}.detail-grid{grid-template-columns:1fr;gap:6px}.detail-grid dd{margin-bottom:10px}.inline-controls{align-items:stretch;flex-direction:column}.inline-controls select{width:100%}.recovery-codes{grid-template-columns:1fr}.form-actions{align-items:stretch}.form-actions>.button,.form-actions>form{flex:1}.portal-shell button{min-height:40px}table td,table th{min-width:90px}}

/* Shared light shell and authentication views. */
:root{color-scheme:light;--body-bg:#fff;--body-fg:#18353f;--darkened-bg:#f3f8f7;--error-fg:#b64242;--tg-accent:#147d7a;--tg-soft:#e9f5f2;--tg-border:#dbe7e4;--tg-muted:#647a80;--tg-good:#147d65;--tg-warn:#936224}
*{box-sizing:border-box}html{min-height:100%;background:#f3f8f7}body{margin:0;color:#18353f;background:#f3f8f7;font:14px/1.65 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}a{color:#147d7a;text-decoration:none}a:hover{color:#0f625f;text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,summary{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid #64b6aa;outline-offset:4px}main[tabindex="-1"]:focus{outline:none}.skip-link{position:fixed;left:20px;top:-100px;z-index:20;background:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 4px 16px #18353f26}.skip-link:focus{top:12px}.site-header{min-height:88px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px max(32px,calc((100vw - 1240px)/2));border-bottom:1px solid #e2eae7;background:#ffffffb8}.site-brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:750;letter-spacing:-.5px;color:#18353f;line-height:1.3}.site-brand:hover{text-decoration:none;color:#18353f}.brand-mark{width:42px;height:42px;display:grid;place-items:center;flex:none;background:#147d7a;border-radius:13px;color:white;font-size:26px;font-weight:700;box-shadow:0 4px 10px #147d7a14}.site-brand .brand-sub{display:block;margin:2px 0 0;color:#74868b;font-size:11px;font-weight:450;letter-spacing:.08em}.site-header-actions{display:flex;align-items:center;gap:18px;min-width:0}.site-header .identity{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#647a80;font-weight:500}.site-header .header-link{padding:4px 0;color:#4d6a71;font-size:12px;text-decoration:none;border:0;background:transparent;white-space:nowrap}.site-header .header-link:hover{color:#147d7a;text-decoration:underline}.header-caption{display:flex;align-items:center;gap:8px;color:#667c81;font-size:12px}.status-dot{display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:#3c9b85}.site-footer{display:flex;justify-content:center;gap:16px;align-items:center;padding:23px 24px;color:#8a999d;font-size:11px;letter-spacing:.02em}.site-footer>span:first-child{color:#6e858a;font-weight:700;letter-spacing:.04em}.portal-page .portal-shell{max-width:1240px;padding:32px 24px}.portal-heading h1{color:#18353f}.site-messages{grid-column:1/-1;list-style:none;padding:0;margin:0 0 20px}.site-message{padding:12px 16px;border:1px solid #c8e2d8;border-radius:10px;background:#ecf7f1;color:#20694f}.site-message.error{border-color:#edceca;background:#fff3f1;color:#a43b35}.auth-page{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 7% 55%,#e8f4ee 0,transparent 42%),#f3f8f7}.auth-shell{width:min(1112px,calc(100% - 80px));margin:0 auto;padding:54px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,472px);column-gap:96px;align-items:center;flex:1}.auth-intro{padding:12px 0;min-width:0}.intro-eyebrow{display:flex;align-items:center;gap:10px;color:#41766e;font-size:11px;font-weight:750;letter-spacing:.12em}.auth-intro h1{font-size:42px;line-height:1.42;letter-spacing:-1.5px;font-weight:700;color:#18353f;margin:22px 0 18px}.auth-intro>p{max-width:400px;color:#6b8085;font-size:15px;line-height:1.9;margin:0}.intro-features{display:grid;gap:24px;margin-top:42px}.intro-features>div{display:flex;align-items:center;gap:15px}.feature-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#fff9;color:#4e8b81;font-size:12px;font-weight:650;border:1px solid #dcebe4}.intro-features strong{display:block;font-size:13px;font-weight:650;color:#37575e}.intro-features small{display:block;margin-top:2px;color:#809298;font-size:12px}.intro-note{display:flex;gap:13px;margin-top:32px;padding:20px 22px;background:#e9f3ee;border:1px solid #dbeae1;border-radius:14px;max-width:408px}.note-icon{display:grid;place-items:center;flex:none;width:23px;height:23px;background:#d0e8db;color:#26795e;border-radius:50%;font-size:12px}.intro-note strong{font-size:13px;font-weight:650;color:#3d655b}.intro-note p{font-size:12px;color:#718b82;line-height:1.85;margin:5px 0 0}.setup-instructions{padding:0;list-style:none;display:grid;gap:24px;margin:34px 0 0}.setup-instructions li{display:flex;gap:14px}.setup-instructions li>span{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid #cfe3db;border-radius:50%;color:#388370;font-weight:600;font-size:12px}.setup-instructions strong{font-weight:600;font-size:13px;color:#3d5e64}.setup-instructions p{font-size:12px;color:#7b8f94;line-height:1.8;margin:3px 0 0}.auth-shell .auth-panel{max-width:none;width:100%;min-width:0;margin:0;padding:36px;border:1px solid #e0e9e6;border-radius:22px;background:#fff;box-shadow:0 15px 55px #254d4210,0 2px 5px #254d4203}.auth-steps{display:flex;list-style:none;justify-content:space-between;padding:0;margin:0 0 36px;gap:5px;counter-reset:none}.auth-steps li{display:flex;align-items:center;gap:6px;font-size:11px;color:#9ba9ac;white-space:nowrap;position:relative}.auth-steps li>span{display:grid;place-items:center;width:22px;height:22px;background:#f3f6f5;border:1px solid #e7ecea;border-radius:50%;font-size:10px;font-weight:600;flex:none}.auth-steps li.current{color:#147d7a;font-weight:650}.auth-steps li.current>span{background:#147d7a;color:#fff;border-color:#147d7a;box-shadow:0 0 0 4px #147d7a0a}.auth-steps li.complete{color:#53867b}.auth-steps li.complete>span{background:#eaf5ef;color:#3e917a;border-color:#d9ece1}.auth-card-heading{margin-bottom:26px}.section-kicker{display:block;color:#75908d;font-size:11px;letter-spacing:.07em;margin-bottom:8px}.auth-panel .auth-card-heading h2{font-size:25px;font-weight:700;letter-spacing:-.6px;line-height:1.45;margin:0 0 9px;color:#18353f}.auth-panel .auth-card-heading p{font-size:13px;line-height:1.85;margin:0;color:#7a8c91}.auth-form>div{margin-bottom:20px}.auth-form .form-field label{font-size:12px;color:#3d5961;font-weight:600;margin:0 0 8px}.input-control{position:relative;min-width:0}.auth-form input:not([type=checkbox]):not([type=radio]){height:48px;padding:12px 14px;border:1px solid #dce6e3;background:#fbfdfc;border-radius:9px;color:#18353f;font-size:14px;line-height:1.5;transition:border-color .15s,box-shadow .15s}.auth-form .input-control:has(.password-toggle) input{padding-right:65px}.auth-form input:hover{border-color:#b9d1c9}.auth-form input:focus{outline:none;outline-offset:0;border-color:#4c9d90;background:#fff;box-shadow:0 0 0 3px #147d7a12}.auth-form .has-error input{border-color:#d7948c;background:#fffcfb}.auth-form .helptext{font-size:11px;line-height:1.75;color:#87979b;margin-top:7px}.password-toggle{position:absolute;right:8px;top:7px;padding:6px 8px;border:0;border-radius:6px;background:transparent;line-height:1.5;min-height:34px;font-size:11px;font-weight:500;color:#7d9396}.password-toggle:hover{background:#eef5f1;color:#147d7a}.auth-form .token-control input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;font-size:17px}.auth-form .form-error-summary{padding:13px 15px;background:#fff3f0;border:1px solid #efd7d1;border-radius:9px;font-size:12px;line-height:1.75;color:#b2443a;margin-bottom:22px}.form-error-summary strong{font-weight:650;display:block;margin-bottom:3px}.auth-form .form-error-summary ul,.auth-form .field-errors ul{list-style:none;padding:0;margin:0;color:inherit}.auth-form .field-errors{margin:7px 0 0;font-size:11px;line-height:1.7;color:#ba4d43}.auth-form .errorlist li+li{margin-top:3px}.auth-panel .button.primary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 18px;background:#147d7a;border:1px solid #147d7a;border-radius:9px;color:#fff;font-size:13px;font-weight:600;box-shadow:0 4px 9px #147d7a14;transition:background .15s,transform .15s;text-decoration:none}.auth-panel .button.primary:hover{background:#106c69;border-color:#106c69;transform:translateY(-1px);color:white}.auth-panel .button.primary:active{transform:translateY(0)}.auth-panel .button.primary:disabled{background:#79a7a0;border-color:#79a7a0;box-shadow:none;transform:none;opacity:1;cursor:wait}.full-width{width:100%}.button-arrow{font-size:18px;line-height:1;opacity:.8}.auth-form>.button{margin-top:8px}.auth-card-footer{margin-top:26px;padding-top:23px;border-top:1px solid #eef2f0;text-align:center;color:#8b9b9f;font-size:12px}.auth-card-footer a{font-weight:600;margin-left:6px}.auth-panel .auth-footnote{margin:16px 0 0;text-align:center;color:#9ba8ac;font-size:11px;line-height:1.8}.auth-help{margin-top:24px;padding-top:18px;border-top:1px solid #edf2ef;color:#7d9195;font-size:12px;line-height:1.8}.auth-help summary{cursor:pointer;color:#597e7c;font-size:12px;line-height:1.8;padding:3px 0}.auth-help p{font-size:12px;line-height:1.85;margin:11px 0 0;color:#7d9195}.auth-help summary::marker{color:#7a9d94;font-size:10px}.qr-surface{padding:16px;margin:0 0 18px;border-radius:12px;border:1px solid #e6eeea;background:#fbfdfb;text-align:center}.auth-panel .otp-qr{width:184px;height:auto;max-width:100%;margin:0 auto;background:#fff;border:0;border-radius:5px;display:block}.qr-surface p{font-size:11px;color:#8ba098;margin:9px 0 0;line-height:1.5}.manual-key{margin:0 0 24px;padding-top:0;border-top:0}.manual-key .secret-key{padding:13px 14px;background:#f4f8f5;border:1px solid #e1eae4;border-radius:8px;font-size:13px;color:#365f54;letter-spacing:.05em;overflow-wrap:anywhere;word-break:break-all;user-select:all}.auth-panel .recovery-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;margin:24px 0 17px;padding:0}.auth-panel .recovery-codes li{padding:11px 12px;background:#f6f9f7;border:1px solid #e3ebe6;border-radius:8px;text-align:left;min-width:0}.recovery-index{display:block;font-size:9px;color:#95aaa0;margin-bottom:3px}.recovery-codes code{font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.02em;color:#3d6658;overflow-wrap:anywhere;user-select:all}.auth-panel .recovery-note{font-size:11px;line-height:1.75;color:#8c9c9d;margin:0 0 25px}.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.auth-shell-register{padding-top:34px;padding-bottom:34px}.auth-shell-register .auth-steps{margin-bottom:28px}.auth-shell-register .auth-form>div{margin-bottom:17px}.auth-shell-register .auth-card-heading{margin-bottom:22px}.auth-shell-enroll{padding-top:32px;padding-bottom:32px}.auth-shell-enroll .auth-steps{margin-bottom:27px}.auth-shell-enroll .auth-card-heading{margin-bottom:20px}
@media(min-width:1400px){.auth-shell{column-gap:120px;grid-template-columns:minmax(0,1fr) minmax(0,480px);padding:65px 0}.auth-intro h1{font-size:45px}}
@media(max-width:1000px){.auth-shell{width:calc(100% - 64px);column-gap:45px;grid-template-columns:minmax(0,1fr) minmax(0,440px);padding:40px 0}.auth-intro h1{font-size:33px;letter-spacing:-1px}.auth-intro>p{font-size:13px}.auth-shell .auth-panel{padding:30px}.intro-features{margin-top:32px;gap:21px}.intro-note{padding:17px}.site-header{padding:19px 32px}}
@media(max-width:760px){.site-header{min-height:76px;padding:16px 24px}.site-brand{font-size:19px}.brand-mark{width:38px;height:38px;border-radius:11px;font-size:23px}.auth-shell{display:block;width:min(480px,calc(100% - 40px));padding:30px 0;margin:auto;flex:1}.auth-intro{padding:0 4px 24px}.auth-intro .intro-eyebrow{font-size:10px;margin-bottom:9px}.auth-intro h1{font-size:27px;line-height:1.5;letter-spacing:-.8px;margin:0 0 9px}.auth-intro h1 br{display:none}.auth-intro>p{max-width:none;font-size:12px;line-height:1.9;margin:0}.intro-features,.auth-intro .intro-note,.setup-instructions{display:none}.auth-shell .auth-panel{padding:27px;border-radius:18px;box-shadow:0 8px 30px #254d4209}.auth-steps{margin-bottom:28px}.auth-panel .auth-card-heading h2{font-size:23px}.auth-card-heading{margin-bottom:24px}.auth-panel .auth-card-heading p{font-size:12px}.auth-page .site-footer{padding:18px 20px 24px}.auth-shell-register,.auth-shell-enroll{padding-top:25px;padding-bottom:25px}.auth-shell-register .auth-intro>p{max-width:360px}.auth-shell-enroll .auth-intro>p{font-size:12px}.site-header .identity{max-width:110px}.header-caption{font-size:11px}}
@media(max-width:400px){.site-header{padding:15px 20px;gap:12px}.site-header-actions{gap:11px}.site-header .identity{max-width:85px;font-size:11px}.site-header .header-link{font-size:11px}.auth-shell{width:calc(100% - 32px);padding:24px 0}.auth-intro{padding:0 5px 21px}.auth-intro h1{font-size:25px}.auth-intro>p{font-size:12px}.auth-shell .auth-panel{padding:24px 22px;border-radius:16px}.auth-steps{gap:4px;margin-bottom:27px}.auth-steps li{font-size:10px;gap:5px}.auth-steps li>span{width:20px;height:20px;font-size:9px}.auth-panel .auth-card-heading h2{font-size:22px}.auth-panel .recovery-codes{gap:8px}.auth-panel .recovery-codes li{padding:10px 9px}.recovery-codes code{font-size:11px;letter-spacing:0}.site-footer{gap:10px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
