:root{--bg:#fff;--rail:#f8fafb;--line:#e5e9ed;--text:#162b38;--muted:#73838f;--teal:#087f8c;--selected:#e5f3f3;--danger:#b83838;font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}h1,h2,p{margin:0}h1{font-size:32px;line-height:1.35;font-weight:650;letter-spacing:-.6px}h2{font-size:22px;line-height:1.4;font-weight:650}button,input,select,textarea{font:inherit;color:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 18px;border:1px solid var(--teal);border-radius:7px;background:#fff;color:var(--teal);font-weight:550;cursor:pointer;text-decoration:none;line-height:1.4;white-space:nowrap;transition:background .12s}button:hover,.button:hover{background:var(--selected)}button:disabled{opacity:.5;cursor:not-allowed}.primary{color:#fff;background:var(--teal);border-color:var(--teal)}.primary:hover{background:#066b76}.small{min-height:34px;padding:7px 14px;font-size:13px}.danger{color:var(--danger);border-color:#e6a4a4}.subtle{color:#456070;border-color:var(--line);background:var(--rail)}input,select,textarea{width:100%;border:1px solid #d3dce2;border-radius:7px;padding:11px 13px;background:#fff;line-height:1.4;outline:none}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid #91ccd1;outline-offset:2px}input::placeholder,textarea::placeholder{color:#98a5ae}select{min-height:42px}textarea{resize:vertical}a{color:var(--teal)}label{display:block;font-weight:550;margin-top:22px}label input,label select,label textarea{display:block;margin-top:8px;font-weight:400}fieldset{border:0;padding:0;margin:27px 0 0}legend{padding:0;font-weight:600;margin-bottom:12px}.check{display:flex;align-items:center;gap:11px;margin-top:13px;font-weight:450}.check input{appearance:auto;width:19px;height:19px;margin:0;accent-color:var(--teal)}svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.brand{display:block;color:var(--text);text-decoration:none;font-size:25px;font-weight:700;letter-spacing:-.6px;line-height:1.35}.brand span{display:block;color:var(--muted);font-size:14px;font-weight:400;letter-spacing:0;margin-top:5px}.sidebar{width:232px;position:fixed;inset:0 auto 0 0;padding:25px 12px;background:var(--rail);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.sidebar .brand{margin:0 12px 35px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav a{display:flex;align-items:center;gap:17px;height:50px;padding:0 15px;color:#415563;border-radius:6px;text-decoration:none;font-size:15px}.sidebar nav a[aria-current]{background:var(--selected);color:var(--teal);font-weight:600}.sidebar nav a:hover{background:#eef3f5}.sidebar-user{margin:auto 12px 8px;border-top:1px solid #dce4e8;padding-top:18px}.sidebar-user strong{display:block;font-size:14px;font-weight:500}.sidebar-user span{display:block;color:var(--muted);margin-top:2px;font-size:13px}.nav-logout{display:flex;width:100%;justify-content:flex-start;border:0;padding:10px 0;margin-top:14px;color:#415563;background:none;font-weight:450}.workspace{margin-left:232px;padding:47px 36px 48px;min-height:100vh}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:30px}.page-heading>button{margin-top:8px}.subtitle{color:#617787;font-size:15px;line-height:1.7;margin-top:11px}.toolbar{display:flex;gap:16px;align-items:center;margin-bottom:20px}.toolbar select{width:205px}.toolbar button{height:42px}.table-scroll{width:100%;overflow-x:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}thead{background:var(--rail)}th{padding:16px 20px;color:#4d6574;font-weight:600;white-space:nowrap}td{padding:18px 20px;border-top:1px solid var(--line);vertical-align:middle;line-height:1.65}td strong{font-weight:550}tbody tr:hover{background:#fbfdfd}.secondary{display:block;color:var(--muted);font-size:12px;margin-top:3px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.identity{display:block;font-size:13px}.scope{display:inline-block;margin-right:8px;white-space:nowrap}.time{white-space:nowrap;font-size:13px}.reason{max-width:290px;overflow-wrap:anywhere}.status{display:inline-block;white-space:nowrap;font-size:13px;font-weight:550;color:#667983}.status.active,.status.approved{color:#258253;background:#e2f4e9;border-radius:20px;padding:3px 11px}.status.pending{color:#bc830c}.status.denied,.status.revoked,.status.user_disabled,.status.expired,.status.permission_revoked{color:#ae5252}.row-actions{display:flex;gap:10px;align-items:center}.table-count{font-size:13px;color:var(--muted);margin-top:14px}.muted{color:var(--muted)}.empty{text-align:center;height:160px;color:var(--muted)}.drawer{position:fixed;inset:0 0 0 auto;width:420px;max-width:100%;padding:42px 30px;background:#fff;border-left:1px solid var(--line);box-shadow:-5px 0 16px #162b3809;z-index:30;overflow-y:auto}.drawer h2{font-size:23px;margin-bottom:16px}.drawer form{display:flex;flex-direction:column;min-height:calc(100vh - 140px)}.drawer-user{font-size:17px;font-weight:550;border-bottom:1px solid var(--line);padding-bottom:24px}.icon-button{padding:6px;min-height:32px;border:0;color:#74838f;background:none}.close{position:absolute;right:19px;top:18px}.actions{display:flex;align-items:center;gap:12px;margin-top:28px}.actions>button{flex:1}.actions.bottom{margin-top:auto;padding-top:32px}.drawer-divider{border-top:1px solid var(--line);margin:32px 0 20px}.drawer [data-permission-form]{min-height:0}.text-danger{padding:0;border:0;color:var(--danger);background:none}.hint{font-size:13px;line-height:1.7;color:var(--muted);margin-top:23px}.notice{padding:14px 17px;border:1px solid #cde5e4;border-radius:7px;background:#f2faf9;color:#396b70;margin:20px 0}.notice.error{background:#fff7f6;border-color:#f0d6d2;color:#a44747}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 20px;background:var(--text);color:#fff;border-radius:7px;z-index:50;max-width:90vw}.toast.error{background:#943f3f}.wide{width:100%;margin-top:24px}.quiet-link{display:block;margin-top:20px;text-decoration:none;font-size:13px}.auth-shell{max-width:540px;margin:55px auto;padding:0 24px}.auth-shell>.brand{margin-bottom:50px}.auth-panel{border-top:1px solid var(--line);padding-top:32px}.auth-panel h1{font-size:29px}.auth-hint{font-size:14px;color:#607682;margin-top:32px}.auth-details{display:grid;grid-template-columns:90px 1fr;gap:10px 16px;padding:22px 0;margin:22px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.auth-details dt{color:var(--muted)}.auth-details dd{margin:0;overflow-wrap:anywhere}.portal-shell{max-width:1140px;margin:0 auto;padding:30px 30px 60px}.portal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:60px;padding-bottom:24px;border-bottom:1px solid var(--line)}.portal-account{display:flex;gap:18px;align-items:center}.portal-account button{min-height:34px;font-size:12px;padding:6px 12px}.service-list{margin:35px 0}.service-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 0;border-top:1px solid var(--line)}.service-row:last-child{border-bottom:1px solid var(--line)}.service-row h2{font-size:19px}.request-inline{display:flex;gap:12px;max-width:500px}.request-inline input{width:260px}.portal-history{margin-top:48px}.portal-history .table-scroll{margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}[hidden]{display:none!important}[data-secret]{font-size:12px;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}body.drawer-open .workspace{padding-right:456px;min-width:900px}body.drawer-open .page-heading{gap:16px}body.drawer-open .table-scroll{max-width:100%}@media(max-width:1100px){body.drawer-open .workspace{padding-right:36px;min-width:0}.workspace{padding:40px 26px}.drawer{box-shadow:-8px 0 30px #162b3814}}@media(max-width:700px){.sidebar{width:100%;position:relative;min-height:0;padding:18px 15px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0 3px 15px;font-size:22px}.sidebar nav{flex-direction:row;overflow-x:auto;gap:5px}.sidebar nav a{height:39px;padding:0 11px;gap:7px;font-size:13px;white-space:nowrap}.sidebar nav svg{height:17px;width:17px}.sidebar-user{margin:16px 3px 0;padding-top:11px;display:flex;align-items:center;gap:10px}.sidebar-user span{font-size:11px;margin:0}.nav-logout{width:auto;margin:0 0 0 auto;font-size:12px;padding:4px}.nav-logout svg{display:none}.workspace{margin:0;padding:28px 18px}h1{font-size:27px}.page-heading{margin-bottom:24px}.page-heading>.primary{padding:9px 12px;font-size:12px}.subtitle{font-size:13px}.table-scroll table{min-width:660px}th,td{padding:13px 14px}.drawer{width:100%;padding:45px 24px}.auth-shell{margin:28px auto}.portal-shell{padding:22px 18px}.portal-header{align-items:flex-start;margin-bottom:32px;gap:12px}.portal-header .brand{font-size:22px}.portal-account{flex-wrap:wrap;justify-content:flex-end;gap:8px;font-size:12px}.service-row{align-items:flex-start;flex-direction:column}.request-inline{width:100%}.request-inline input{min-width:0;width:100%}.portal-history{margin-top:35px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.confirm-dialog{width:420px;max-width:calc(100vw - 36px);border:1px solid var(--line);border-radius:9px;padding:28px;color:var(--text)}.confirm-dialog::backdrop{background:#162b3833}.confirm-dialog h2{font-size:22px;margin-bottom:16px}.confirm-dialog p{line-height:1.75;color:#607682}.scope{text-transform:capitalize}

/* 密钥表为所属用户保留空间，状态整体显示；长内容在表格内部滚动。 */
.key-table td:nth-child(2){min-width:145px}
.key-table th,.key-table td{padding-left:14px;padding-right:14px}

/* 登录方式选择页沿用后台排版，密钥仅在展开后的密码框中输入。 */
.login-choice{max-width:480px}.login-methods{display:grid;gap:14px;margin-top:28px}.login-provider{padding:20px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:#fff}.provider-heading{display:flex;gap:14px;align-items:center}.provider-heading h2{font-size:16px;margin:0 0 5px}.provider-heading p,.provider-description{font-size:13px;line-height:1.6;color:#64748b;margin:0}.provider-mark{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#f1f5f9;color:#334155;font-size:13px;font-weight:700}.provider-mark svg{width:22px;height:22px}.login-provider form{margin-top:18px}.key-provider summary{display:flex;gap:14px;align-items:center;cursor:pointer;list-style:none}.key-provider summary::-webkit-details-marker{display:none}.key-provider summary>span:nth-child(2){flex:1}.provider-description{display:block;margin-top:5px}.provider-expand{color:#94a3b8;font-size:20px}.key-provider[open] .provider-expand{transform:rotate(45deg)}.key-login-form label{display:block;margin-bottom:16px}.key-login-form input{width:100%;box-sizing:border-box}.provider-disabled{background:#f8fafc;opacity:.7}.provider-badge{margin-left:10px;font-size:11px;font-weight:400;color:#64748b;padding:3px 7px;border-radius:5px;background:#e2e8f0}.login-footer{margin-top:24px}.login-choice .wide{width:100%;justify-content:center}@media(max-width:540px){.login-provider{padding:16px}.provider-heading,.key-provider summary{gap:10px}.provider-heading p,.provider-description{font-size:12px}}
