:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font-sans); cursor: default; }
header { display: flex; gap: 24px; align-items: center; padding: 18px 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
header #logout { margin-left: auto; }
a { color: var(--text); text-underline-offset: 3px; cursor: pointer; }
.service-link, .service-title { color: var(--accent); }
.back-link { display: inline-block; margin-bottom: 16px; }
.brand { font-weight: 800; text-decoration: none; font-size: 20px; }
main { margin: 0 auto; padding: 24px 32px; max-width: 1280px; }
h1 { margin: 0 0 8px; font-weight: 800; font-size: 24px; }
h2 { font-size: 16px; }
p { margin-top: 0; }
.muted, header span { color: var(--t2); }
.heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin: 16px 0; }
.card, details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; padding: 20px; }
summary { font-weight: 700; cursor: pointer; }
button, input, select { font: inherit; border-radius: 8px; border: 1px solid var(--border); color: var(--text); background: var(--surface); padding: 9px 13px; }
button { cursor: pointer; }
button:hover { border-color: var(--brand-copper); }
button.primary { background: var(--brand-copper); color: #171717; border-color: var(--brand-copper); }
button:disabled { opacity: .6; cursor: wait; }
input { display: block; width: 100%; margin: 6px 0 18px; }
.login { max-width: 460px; margin: 56px auto 16px; }
table { border-collapse: collapse; width: 100%; }
td, th { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--t2); font-size: 12px; }
.table-scroll { overflow-x: auto; }
.service-row { cursor: pointer; }
.service-row > td { vertical-align: middle; }
.service-row:hover, .service-row:focus-within { background: var(--bg); }
.history-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.history-heading h2, .history-heading p { margin: 0; }
.snapshot-note { font-weight: 400; }
.service-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.group-heading p { margin-bottom: 0; }
.secrets-table { table-layout: fixed; min-width: 540px; }
.secret-name-column { width: 30%; }
.secret-actions-column { width: 112px; }
.secrets-table .mono, td.secret-value { overflow-wrap: anywhere; }
td.secret-value { font-family: var(--font-mono); white-space: pre-wrap; }
.secret-actions { text-align: right; white-space: nowrap; }
.icon-button { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; }
.icon-button + .icon-button { margin-left: 6px; }
.icon-button[aria-pressed="true"] { border-color: var(--brand-copper); background: var(--bg); }
.snapshot-content { padding-top: 16px; }
.error { color: var(--sem-error); }
.last-result { max-width: 480px; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 12px 48px #0005; }
dialog::backdrop { background: #0008; }
dialog h2 { margin: 0 0 16px; font-size: 20px; }
#error-details { padding-left: 20px; overflow-wrap: anywhere; }
#error-details:empty { display: none; }
#error-details li + li { margin-top: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 700px) { header, main { padding: 16px; } .heading { align-items: flex-start; flex-direction: column; } .card, details { padding: 12px; } .group-heading { flex-wrap: wrap; } }
