:root { color-scheme: light; font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: #30383d; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.topbar { border-bottom: 1px solid #e4e8e9; }
.topbar > div { max-width: 1040px; margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
main { max-width: 1040px; margin: 42px auto; padding: 0 24px; }
h1 { font-size: 26px; font-weight: 600; line-height: 1.4; margin: 0 0 24px; }
h2 { font-size: 18px; margin: 0 0 10px; }
p { margin: 8px 0; }
label { display: block; margin-bottom: 8px; font-size: 14px; }
input, button { font: inherit; min-height: 44px; border-radius: 4px; }
input { width: 100%; padding: 9px 12px; border: 1px solid #bac3c7; background: #fff; color: #30383d; }
button { padding: 9px 18px; color: #fff; background: #167085; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
button:hover { background: #105263; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid #167085; outline-offset: 3px; }
.quiet { background: transparent; color: #167085; border-color: #d5dcdf; }
.quiet:hover { background: #f3f5f5; }
.danger { background: #a33131; }
.danger:hover { background: #852828; }
.login { max-width: 380px; margin: 70px auto; }
.login input { margin-bottom: 22px; }
.login button { width: 100%; }
.section-head { display: flex; align-items: baseline; gap: 24px; justify-content: space-between; }
.section-head span, .muted { color: #626c73; font-size: 14px; }
.create-form { display: flex; gap: 16px; align-items: end; padding: 0 0 28px; border-bottom: 1px solid #e4e8e9; }
.create-form > div { flex: 1; }
.created { border: 1px solid #ccd9db; border-radius: 4px; background: #f7fafa; padding: 20px; margin: 24px 0; }
.created p { font-size: 14px; color: #626c73; }
.copy-row { display: flex; gap: 12px; margin: 12px 0; }
.copy-row input { font-size: 14px; min-width: 0; }
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th { font-weight: 500; color: #626c73; }
td, th { padding: 14px 10px; border-bottom: 1px solid #e4e8e9; }
td:first-child { overflow-wrap: anywhere; min-width: 140px; }
td:not(:first-child) { white-space: nowrap; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; text-align: right; }
.active { color: #167085; }
.expired, .revoked { color: #767676; }
#status { color: #626c73; margin-top: 24px; }
#status.error, #revoke-error { color: #a33131; }
.access { max-width: 600px; margin-top: 18vh; }
.access p { color: #626c73; }
dialog { width: min(440px, calc(100% - 40px)); padding: 26px; border: 1px solid #d5dcdf; border-radius: 6px; color: #30383d; }
dialog::backdrop { background: #18252c50; }
.dialog-actions { display: flex; justify-content: end; gap: 12px; margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 600px) { main { padding: 0 20px; margin-top: 28px; } .topbar > div { padding: 12px 20px; } .section-head { display: block; margin-bottom: 20px; } .section-head h1 { margin-bottom: 4px; } .create-form, .copy-row { flex-direction: column; align-items: stretch; } table { min-width: 620px; } .login { margin-top: 44px; } }
@media(max-width: 600px) {
  table, tbody { display: block; min-width: 0; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 18px 0; border-bottom: 1px solid #e4e8e9; }
  td { display: block; padding: 0; border: 0; }
  td:first-child { grid-column: 1 / -1; font-size: 16px; font-weight: 600; }
  td:nth-child(2), td:nth-child(3) { grid-column: 1 / -1; color: #626c73; white-space: normal; }
  td:nth-child(2)::before { content: '创建：'; }
  td:nth-child(3)::before { content: '到期：'; }
  td:nth-child(4) { align-self: center; }
  td:last-child { grid-column: 2; }
}
