/* op-gw 页面样式：手机优先，单列，无外部字体与图片（CSP style-src 'self'）。 */
* { box-sizing: border-box; }
body {
  margin: 0; padding: 16px; background: #f4f5f7; color: #1f2328;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
main { max-width: 560px; margin: 0 auto; }
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
h1 { font-size: 20px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0 0 8px; color: #59636e; }
.sub { color: #59636e; font-size: 14px; margin: 0; }
dl { margin: 0; display: grid; grid-template-columns: 6em 1fr; gap: 6px 12px; }
dt { color: #59636e; }
dd { margin: 0; word-break: break-all; }
.risk { border: 2px solid #cf222e; background: #fff5f5; }
.risk li { color: #cf222e; font-weight: 600; }
ul { margin: 0; padding-left: 1.2em; }
.banner { background: #fff8c5; border: 1px solid #d4a72c; }
.other { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #eaecef; }
.other:first-of-type { border-top: 0; }
.other input { margin-top: 5px; width: 20px; height: 20px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
button {
  width: 100%; min-height: 48px; border: 0; border-radius: 10px; font-size: 17px; font-weight: 600; cursor: pointer;
}
button.primary { background: #1f883d; color: #fff; }
button.secondary { background: #eaecef; color: #1f2328; }
button:disabled { opacity: .5; cursor: default; }
/* OIDC 登录入口：与指纹按钮同尺寸的通栏链接按钮 */
a.btn-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; border-radius: 10px; font-size: 17px; font-weight: 600;
  text-decoration: none;
}
a.btn-link.primary { background: #1f883d; color: #fff; }
.sso-or { display: flex; align-items: center; gap: 12px; color: #8c959f; font-size: 14px; }
.sso-or::before, .sso-or::after { content: ""; flex: 1; height: 1px; background: #eaecef; }
form { margin: 0; }
.msg { color: #cf222e; font-weight: 600; }
.ok { color: #1f883d; font-weight: 600; }
.status { font-size: 48px; margin: 0; }
.req { color: #8c959f; font-size: 12px; margin-top: 16px; }
/* 管理台与审批页的窗口选项 */
body.admin main { max-width: 760px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.nav a { color: #0969da; text-decoration: none; }
.nav a.on { color: #1f2328; font-weight: 600; }
.nav .inline { margin-left: auto; }
button.link { width: auto; min-height: 0; background: none; color: #59636e; font-size: 14px; font-weight: 400; padding: 0; }
.row { padding: 10px 0; border-top: 1px solid #eaecef; }
.row:first-of-type { border-top: 0; }
.row p { margin: 0 0 4px; }
.tag { display: inline-block; padding: 0 8px; border-radius: 10px; background: #eaecef; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters button { width: auto; padding: 0 20px; }
.stack label, .filters label { display: flex; flex-direction: column; gap: 4px; color: #59636e; font-size: 14px; }
input, select { font: inherit; padding: 8px 10px; border: 1px solid #d0d7de; border-radius: 8px; background: #fff; color: #1f2328; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 4px; border-top: 1px solid #eaecef; }
pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 13px; }
.pager { display: flex; gap: 16px; margin: 12px 0 0; }
