    :root{--brand:#176b5b;--brand2:#0e4d43;--bg:#f3f6f7;--card:#fff;--line:#dbe3e6;--ink:#17232b;--muted:#6a7880;--danger:#b63838;--warn:#a76414}
    *{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system-ui,"Microsoft YaHei",sans-serif}
    header{padding:20px 28px;background:linear-gradient(120deg,#0c4039,#18806e);color:#fff;display:flex;justify-content:space-between;align-items:center}h1{font-size:22px;margin:0}header small{opacity:.8}
    main{max-width:1600px;margin:auto;padding:20px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.tab,.btn,button{border:0;border-radius:7px;padding:9px 13px;cursor:pointer;font-weight:600;background:var(--brand);color:#fff}.tab{background:#e1e8ea;color:#3e4e55}.tab.active{background:var(--brand);color:#fff}.secondary{background:#e6efed!important;color:var(--brand2)!important}.danger{background:var(--danger)!important}.warn{background:var(--warn)!important}
    .panel{display:none}.panel.active{display:block}.grid{display:grid;grid-template-columns:390px 1fr;gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:17px;box-shadow:0 2px 8px #18342f0a}.card h2{font-size:17px;margin:0 0 12px}
    label{display:block;margin-top:9px;font-weight:600;color:#45545b}input,select,textarea{width:100%;margin-top:4px;border:1px solid #c8d3d7;border-radius:7px;padding:8px 9px;background:#fff;color:var(--ink)}textarea{min-height:95px;font:12px/1.45 Consolas,monospace}form button{margin-top:13px}
    .scroll{overflow:auto;max-height:68vh}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:nowrap}th{position:sticky;top:0;background:#f6f9f9;color:#596970}.actions{display:flex;gap:5px}.actions button{padding:5px 8px;font-size:12px}.badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#dcefeb;color:#145e52}.badge.SUBMITTED{background:#fff0cd;color:#875600}.badge.APPROVED{background:#dceafd;color:#245e9e}.badge.REJECTED,.badge.REVOKED{background:#f8dddd;color:#972f2f}.badge.ISSUED,.badge.ACTIVE{background:#dcefe8;color:#13634f}
    .notice{background:#fff8e9;border-left:4px solid #d08b26;padding:10px 12px;margin-bottom:15px}.muted{color:var(--muted)}code{font-size:12px}.error{position:fixed;right:20px;bottom:20px;max-width:620px;padding:13px 16px;background:#7d2929;color:#fff;border-radius:8px;white-space:pre-wrap;z-index:9}
    dialog{border:0;border-radius:12px;padding:22px;width:min(450px,90vw);box-shadow:0 18px 60px #0005}dialog::backdrop{background:#12201dcc}
    [hidden]{display:none!important}fieldset{padding:0;margin:0;border:0;min-width:0}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #eab84a;outline-offset:3px}
    .header-side{text-align:right;flex-shrink:0}.site-links{display:flex;gap:10px;justify-content:flex-end;margin-bottom:8px}.site-links a{color:#fff;text-decoration:none;border:1px solid #ffffff70;border-radius:7px;padding:6px 10px}.site-links a:hover{background:#ffffff20}.readiness{display:flex;justify-content:space-between;align-items:center;gap:16px}.readiness p{margin:4px 0 0}.readiness button{flex-shrink:0}#collectorCommand{min-height:260px}
    @media(max-width:950px){.grid{grid-template-columns:1fr}main{padding:12px}header{padding:18px;align-items:flex-start;gap:16px;flex-wrap:wrap}.header-side{text-align:left}.site-links{justify-content:flex-start}.readiness{align-items:flex-start;flex-direction:column}}
    html{color-scheme:light}body{min-width:320px}button,input,select{font:inherit}button{transition:background-color .15s}button:hover:not(:disabled){filter:brightness(.94)}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c3dfd5;outline-offset:1px;border-color:var(--brand)}input[readonly]{background:#f1f5f5;color:var(--muted)}
    .auth-layout{max-width:1040px;margin:50px auto 70px;display:grid;grid-template-columns:1.15fr 1fr;gap:64px;align-items:center}.auth-intro{padding:28px 6px}.eyebrow{display:inline-block;font-size:12px;font-weight:700;letter-spacing:2px;color:var(--brand)}.auth-intro h2{font-size:42px;line-height:1.35;letter-spacing:-1px;margin:20px 0;color:var(--brand2)}.auth-intro p{max-width:430px;color:var(--muted);font-size:16px;line-height:1.9}.auth-features{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.auth-features span{background:#e3efeb;color:var(--brand2);border-radius:6px;padding:5px 9px;font-size:12px}.auth-card{padding:30px;box-shadow:0 8px 30px #18342f09;border-radius:16px}.auth-card h2{font-size:23px;margin-bottom:8px}.auth-card input{min-height:43px}.auth-card label{margin-top:18px}.auth-card button{min-height:43px}.full-width{width:100%}.form-hint{display:block;font-size:12px;line-height:1.65;color:var(--muted);font-weight:400;margin-top:7px}.auth-single{max-width:510px;margin:36px auto}.form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.form-actions button{margin-top:13px}
    .account-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:18px}.account-bar strong{font-size:16px;margin-right:14px}.account-bar p{margin:5px 0 0;font-size:12px}.account-bar .actions{flex-shrink:0}.notice.info{background:#edf3f8;border-color:#6f93b0;color:#425c70}.single-column{grid-template-columns:1fr}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.section-heading h2{margin:0}.users-grid{grid-template-columns:420px minmax(0,1fr)}.card{min-width:0}.choice-group{border:1px solid var(--line);border-radius:8px;padding:8px 12px 12px;margin-top:20px}.choice-group legend{font-weight:700;padding:0 5px;color:var(--brand2)}.choice-group legend small{font-weight:400;color:var(--muted);margin-left:6px}.check-row{display:flex;gap:10px;align-items:flex-start;padding:6px 0;margin:2px 0;font-weight:500;cursor:pointer}.check-row input{width:17px;height:17px;flex:0 0 17px;margin:3px 0 0;accent-color:var(--brand)}.check-row span{overflow-wrap:anywhere}.check-row small{display:block;color:var(--muted);font-weight:400;font-size:12px;line-height:1.55;margin-top:2px}.project-choices{border-top:1px solid var(--line);padding-top:8px;margin-top:8px;max-height:240px;overflow:auto}.scope-cell{max-width:230px;white-space:normal;min-width:130px}.audit-details{white-space:normal;overflow-wrap:anywhere;min-width:240px;max-width:560px}.self-label{font-size:10px;background:#e6efed;color:var(--brand);border-radius:4px;margin-left:6px;padding:2px 4px}.empty-state{text-align:center;color:var(--muted);height:110px;vertical-align:middle}.badge.DISABLED,.badge.CLOSED,.badge.SUSPENDED{background:#f2e8dc;color:#856129}.actions{flex-wrap:wrap}.success{position:fixed;right:20px;bottom:20px;max-width:620px;padding:13px 16px;background:#176b5b;color:#fff;border-radius:8px;white-space:pre-wrap;z-index:10;box-shadow:0 5px 20px #10221b22}.error{display:flex;gap:18px;align-items:flex-start;box-shadow:0 5px 20px #10221b22;z-index:11}.error button{padding:0 4px;background:transparent;color:#fff;font-size:23px;line-height:1;flex-shrink:0}.site-links{flex-wrap:wrap}.header-side #health{font-size:12px;opacity:.88}
    @media(max-width:1100px){.users-grid{grid-template-columns:1fr}.users-grid>.card:first-child{max-width:none}.auth-layout{gap:36px;margin-top:30px;padding:0 10px}.auth-intro h2{font-size:36px}}
    @media(max-width:700px){header{padding:18px 16px}h1{font-size:20px}.site-links{gap:6px}.site-links a{font-size:12px;padding:5px 8px}.auth-layout{grid-template-columns:1fr;gap:12px;margin:12px auto 35px;max-width:480px;padding:0}.auth-intro{padding:8px 6px}.auth-intro h2{font-size:28px;margin:10px 0}.auth-intro h2 br{display:none}.auth-intro p{font-size:14px;margin:8px 0}.auth-features{display:none}.auth-card{padding:22px;border-radius:12px}.account-bar{align-items:flex-start;flex-direction:column;padding:14px;gap:12px}.account-bar strong{display:block;margin:0 0 4px}.account-bar .actions{width:100%}.tabs{gap:6px}.tabs button{font-size:13px;padding:8px 10px}.auth-single{margin:20px auto}.error,.success{left:12px;right:12px;bottom:12px;max-width:none}.choice-group{padding:8px 10px}.scroll{max-height:65vh}}
    @media(prefers-reduced-motion:reduce){button{transition:none}}
