:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, sans-serif; color: #19283c; background: #f5f7fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #175bb4; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; min-height: 42px; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible { outline: 3px solid #a2c4f8; outline-offset: 3px; }
.primary { background: #2068d6; color: white; }
.primary:hover { background: #1859bc; }
.secondary { background: white; color: #2f4661; border-color: #d5dde7; }
.secondary:hover { background: #f1f5fa; }
.danger { background: #b42318; color: white; }
.revoke-button { background: transparent; color: #b42318; font-size: 13px; padding: 7px 10px; min-height: 36px; }
.revoke-button:hover { background: #fff0ee; }
.site-header { background: #132238; min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 32px; }
.brand { color: white; text-decoration: none; font-size: 15px; font-weight: 650; }
.brand span { color: #b9c9df; font-size: 12px; font-weight: 400; margin-left: 9px; white-space: nowrap; }
.inbox-link { color: #e0eaf8; text-decoration: none; font-size: 13px; white-space: nowrap; }
.inbox-link span { margin-left: 8px; }
.header-links { display: flex; align-items: center; gap: 18px; }
main { max-width: 1344px; margin: auto; padding: 38px 32px 48px; }
.page-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-heading { margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: #63748b; margin: 0 0 8px; }
h1 { font-size: 32px; letter-spacing: -.035em; margin: 0; line-height: 1.2; }
.intro { color: #63748b; font-size: 14px; margin: 10px 0 0; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: white; border: 1px solid #dfe5ed; border-radius: 10px; padding: 20px; }
.stat-label { display: flex; align-items: center; gap: 9px; color: #4e6077; font-size: 13px; font-weight: 500; }
.stat strong { display: block; font-size: 30px; letter-spacing: -.025em; line-height: 1.2; font-weight: 600; margin: 12px 0 6px; }
.stat small { color: #7c899b; font-size: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.active { background: #26815e; } .dot.expiring { background: #ba7a13; } .dot.expired { background: #a96a59; } .dot.revoked { background: #8190a3; }
.key-panel { background: white; border: 1px solid #dfe5ed; border-radius: 11px; overflow: hidden; }
.panel-heading { padding: 22px 24px 16px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.panel-heading p { color: #7a8799; font-size: 12px; margin: 7px 0 0; }
.panel-heading button { min-height: 36px; padding: 7px 13px; font-size: 12px; }
.filters { display: flex; gap: 14px; align-items: center; padding: 0 24px 20px; }
.search-label { flex: 1; max-width: 420px; }
input, select, textarea { border: 1px solid #cfd8e4; border-radius: 7px; background: white; color: #263c56; min-height: 42px; padding: 10px 12px; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #a9c8f4; outline-offset: 1px; }
input[type="search"] { width: 100%; }
.status-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #63748b; }
.status-label select { min-width: 155px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
thead { color: #66788e; background: #f8fafc; border-top: 1px solid #e7ecf2; border-bottom: 1px solid #e7ecf2; }
th { padding: 12px 14px; font-size: 11px; font-weight: 600; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td { padding: 19px 14px; border-bottom: 1px solid #edf0f5; color: #53667e; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
.service-name { color: #1d314b; display: block; font-weight: 600; margin-bottom: 5px; word-break: break-word; min-width: 140px; }
.key-prefix { color: #7b8a9d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.status-pill.active { color: #216747; background: #edf7f1; }
.status-pill.expiring { color: #8f5a07; background: #fff6e3; }
.status-pill.expired { color: #9b4d3c; background: #fff0eb; }
.status-pill.revoked { color: #69788b; background: #f0f3f7; }
.date-value { white-space: nowrap; font-size: 12px; }
.date-time { color: #8995a5; font-size: 11px; display: block; margin-top: 4px; }
.action-heading, .action-cell { text-align: right; }
.no-action { color: #9aa5b4; }
.panel-footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 24px; border-top: 1px solid #edf0f5; font-size: 11px; color: #7c8a9d; }
.help-text { margin: 17px 0 0; font-size: 12px; color: #7c8a9d; }
.empty-state { padding: 35px 20px 42px; text-align: center; }
.empty-icon { font-size: 40px; color: #7e93ad; }
.empty-state h3 { font-size: 16px; margin: 5px 0 9px; }
.empty-state p { color: #74849a; font-size: 13px; margin: 0 0 19px; }
.empty-state button { font-size: 12px; }
.loading { padding: 35px; text-align: center; color: #74849a; font-size: 13px; }
.notice { background: #edf3fe; color: #304f7f; border-radius: 8px; padding: 14px 18px; font-size: 13px; margin-bottom: 20px; }
.notice.error { background: #fff0ee; color: #a3241c; }
dialog { border: 1px solid #dce3ed; border-radius: 13px; padding: 26px; width: min(480px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; color: #263c56; box-shadow: 0 20px 80px #13223833; }
dialog::backdrop { background: #13223870; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dialog-heading h2 { font-size: 21px; }
.close-button { background: transparent; font-size: 24px; color: #6e7f95; padding: 0; min-height: 32px; width: 32px; }
dialog p { font-size: 13px; line-height: 1.6; color: #65788f; }
.dialog-intro { margin: 13px 0 22px; }
dialog label { display: block; font-size: 13px; font-weight: 600; margin: 17px 0 7px; }
dialog input, dialog select, dialog textarea { width: 100%; }
.optional { color: #8b97a7; font-weight: 400; }
.field-help { display: block; font-size: 11px; line-height: 1.6; color: #8290a2; margin-top: 7px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.inline-error { color: #b42318; margin-bottom: 0; }
#new-secret { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.7; resize: none; }
.secret-service { color: #243e5f; font-weight: 600; overflow-wrap: anywhere; }
#copy-status { color: #216747; min-height: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { main { padding: 28px 20px; } .site-header { padding: 16px 20px; } .summary { gap: 10px; } .stat { padding: 16px; } .stat small { line-height: 1.5; display: block; } }
@media (max-width: 650px) {
  .header-links { gap: 12px; }
  .site-header { padding: 14px 16px; } .brand { font-size: 12px; max-width: 230px; } .brand span { display: block; margin: 4px 0 0; } .inbox-link { font-size: 12px; }
  main { padding: 26px 14px; } .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; } h1 { font-size: 29px; } .intro { line-height: 1.6; } .page-heading .primary { width: 100%; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; } .stat { padding: 16px; } .stat strong { font-size: 28px; } .stat small { font-size: 11px; } .stat-label { font-size: 12px; }
  .panel-heading { padding: 18px 16px; } .filters { align-items: stretch; flex-direction: column; padding: 0 16px 18px; gap: 10px; } .search-label { max-width: none; } .status-label { justify-content: space-between; } .status-label select { flex: 1; margin-left: 20px; }
  .table-wrap { overflow-x: visible; } table, tbody { display: block; } thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  tbody tr { display: block; border-top: 1px solid #e5ebf3; padding: 12px 16px; } td, td:first-child, td:last-child { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 6px 0; font-size: 12px; text-align: right; }
  td::before { content: attr(data-label); text-align: left; color: #8190a3; flex-shrink: 0; } td:first-child { display: block; text-align: left; padding: 6px 0 12px; } td:first-child::before { display: none; } .service-name { font-size: 14px; }
  .date-time { display: inline; margin-left: 5px; } .action-cell { align-items: center; } .panel-footer { padding: 13px 16px; flex-wrap: wrap; } .help-text { line-height: 1.7; margin: 16px 3px; }
  dialog { padding: 22px; } .dialog-actions button { flex: 1; }
}
