
:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #17191c;
  --muted: #66707b;
  --line: #dfe3e7;
  --line-strong: #c8ced4;
  --accent: #176b5b;
  --accent-hover: #115347;
  --danger: #b42318;
  --focus: #2878c8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 58px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 6px; font-size: 13px; }
.account { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.account-dot { width: 7px; height: 7px; border-radius: 50%; background: #238636; flex: none; }
#account-email { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 1180px; margin: 0 auto; padding: 54px 32px 80px; }
.state-page { min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.state-page h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.state-page p { margin: 0; }
.loader { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-right-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace { width: 100%; }
.page-heading { min-height: 72px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; font-size: 30px; line-height: 1.15; }
h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.button { min-height: 38px; border: 1px solid transparent; border-radius: 6px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; transition: background-color .15s, border-color .15s, color .15s; }
.button:disabled { cursor: wait; opacity: .62; }
.primary { background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.secondary:hover:not(:disabled) { background: #eef1f3; }
.summary { margin-top: 34px; padding: 14px 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.summary strong { color: var(--ink); font-size: 20px; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
table { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: fixed; }
th, td { height: 54px; padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
th { height: 42px; background: #f0f2f4; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
th:nth-child(1) { width: 34%; }
th:nth-child(2) { width: 22%; }
th:nth-child(3) { width: 26%; }
th:nth-child(4) { width: 18%; }
tbody tr:last-child td { border-bottom: 0; }
td { overflow-wrap: anywhere; }
.key-prefix { font-family: "SFMono-Regular", Consolas, monospace; color: #39414a; font-size: 12px; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.action-button { min-width: 54px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.action-button:hover { background: #eef1f3; color: var(--ink); }
.action-button.danger:hover { background: #fff1f0; color: var(--danger); }
.empty-state { min-height: 160px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
dialog { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 8px; padding: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(20, 27, 33, .18); }
dialog::backdrop { background: rgba(25, 30, 35, .42); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.icon-button:hover { background: #eef1f3; color: var(--ink); }
label { display: grid; gap: 7px; margin-top: 18px; color: #39414a; font-size: 12px; font-weight: 700; }
input { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 11px; background: #fff; color: var(--ink); font-size: 14px; }
input:focus { border-color: var(--focus); outline: 2px solid rgba(40, 120, 200, .18); outline-offset: 1px; }
.dialog-actions { margin-top: 26px; display: flex; justify-content: flex-end; gap: 8px; }
.form-error { margin: 14px 0 0; color: var(--danger); font-size: 12px; }
.secret-warning { color: var(--danger); font-size: 13px; font-weight: 700; }
.secret-value { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.secret-value code { min-height: 42px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: #f3f5f6; overflow-wrap: anywhere; font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #20252a; color: #fff; box-shadow: 0 12px 32px rgba(20, 27, 33, .2); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .topbar { padding: 0 18px; }
  #account-email { max-width: 150px; }
  main { padding: 34px 16px 60px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .button { align-self: flex-start; }
  h1 { font-size: 25px; }
  dialog { padding: 20px; }
  .secret-value { grid-template-columns: 1fr; }
  .toast { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
