The menu shows only Connect while signed out and the section links once signed in; / goes to Connect or Identities accordingly. Yes/no settings in the engine forms put the box beside its text. The Secrets page now has New secrets engine on its own line, then a labelled engine picker with Settings and Delete beside it, then the breadcrumbs, and dynamic engines use the full width. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1543 lines
27 KiB
CSS
1543 lines
27 KiB
CSS
/* ---------- Tokens ---------- */
|
|
|
|
:root {
|
|
color-scheme: light dark;
|
|
|
|
/* Surfaces: page < raised < sunken. Ink is a cool slate, not pure black/white. */
|
|
--bg: light-dark(#f6f7f9, #0f1216);
|
|
--surface: light-dark(#ffffff, #171b21);
|
|
--surface-sunken: light-dark(#eef0f3, #0b0e11);
|
|
--line: light-dark(#dde1e7, #262c35);
|
|
--line-strong: light-dark(#c3c9d2, #384150);
|
|
|
|
--ink: light-dark(#161a20, #e8ebf0);
|
|
--ink-soft: light-dark(#4a5361, #a2abb9);
|
|
--ink-faint: light-dark(#6b7482, #7c8594);
|
|
|
|
/* One accent (verdigris) plus two semantic colours. */
|
|
--accent: light-dark(#0b7a6e, #3cc2af);
|
|
--accent-ink: light-dark(#ffffff, #07211d);
|
|
--accent-soft: light-dark(#e2f3f0, #12302c);
|
|
--danger: light-dark(#b42318, #ff8a7a);
|
|
--danger-soft: light-dark(#fdecea, #3a1815);
|
|
--danger-ink: light-dark(#ffffff, #2a0b07);
|
|
--warn: light-dark(#8a5a00, #f2c14e);
|
|
--warn-soft: light-dark(#fff4d6, #3a2d0c);
|
|
|
|
/* Graph node kinds. */
|
|
--node-identity: light-dark(#2a6fdb, #6ea8ff);
|
|
--node-policy: light-dark(#7a4bc2, #b794f4);
|
|
--node-path: light-dark(#0b7a6e, #3cc2af);
|
|
|
|
--font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
--mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
|
|
|
/* Type scale: 1.2 ratio from 15px. */
|
|
--text-sm: 0.8125rem;
|
|
--text: 0.9375rem;
|
|
--text-lg: 1.125rem;
|
|
--text-xl: 1.5rem;
|
|
|
|
/* Spacing scale. */
|
|
--s1: 0.25rem;
|
|
--s2: 0.5rem;
|
|
--s3: 0.75rem;
|
|
--s4: 1rem;
|
|
--s5: 1.5rem;
|
|
--s6: 2.5rem;
|
|
|
|
--radius: 6px;
|
|
--measure: 72rem;
|
|
--focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
|
|
|
|
font-family: var(--font);
|
|
font-size: 100%;
|
|
}
|
|
|
|
/* ---------- Base ---------- */
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-size: var(--text);
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
h1 {
|
|
font-size: var(--text-xl);
|
|
line-height: 1.2;
|
|
font-weight: 650;
|
|
letter-spacing: -0.015em;
|
|
margin: 0 0 var(--s5);
|
|
}
|
|
|
|
h2,
|
|
h3 {
|
|
font-size: var(--text-lg);
|
|
line-height: 1.3;
|
|
font-weight: 600;
|
|
margin: var(--s5) 0 var(--s3);
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 var(--s3);
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-underline-offset: 0.2em;
|
|
}
|
|
|
|
code,
|
|
pre {
|
|
font-family: var(--mono);
|
|
font-size: 0.875em;
|
|
}
|
|
|
|
pre {
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: var(--s3) var(--s4);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus);
|
|
}
|
|
|
|
main:focus {
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.hint {
|
|
color: var(--ink-faint);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
/* ---------- App shell ---------- */
|
|
|
|
.shell > nav {
|
|
display: flex;
|
|
gap: var(--s1);
|
|
align-items: stretch;
|
|
padding: 0 max(var(--s5), calc((100% - var(--measure)) / 2 + var(--s5)));
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.shell > nav strong {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: var(--s4);
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.shell > nav a {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--s3) var(--s3);
|
|
color: var(--ink-soft);
|
|
text-decoration: none;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.shell > nav a:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.shell > nav a.active {
|
|
color: var(--ink);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.shell > nav a:focus-visible {
|
|
box-shadow: inset 0 0 0 2px var(--accent);
|
|
}
|
|
|
|
.shell > nav .whoami {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
padding: 0 var(--s3);
|
|
font-family: var(--mono);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.shell > nav .connect {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.shell main {
|
|
max-width: var(--measure);
|
|
margin: 0 auto;
|
|
padding: var(--s6) var(--s5);
|
|
}
|
|
|
|
/* The graph needs the full width to be readable; the nav follows it. */
|
|
.shell:has(.graph-layout) main {
|
|
max-width: none;
|
|
}
|
|
|
|
.shell:has(.graph-layout) > nav {
|
|
padding-inline: var(--s5);
|
|
}
|
|
|
|
.notice {
|
|
padding: var(--s3) var(--s5);
|
|
background: var(--warn-soft);
|
|
color: var(--warn);
|
|
border-bottom: 1px solid var(--warn);
|
|
}
|
|
|
|
.notice a {
|
|
color: inherit;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.skip-link {
|
|
position: absolute;
|
|
left: -9999px;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
left: var(--s2);
|
|
top: var(--s2);
|
|
z-index: 10;
|
|
background: var(--surface);
|
|
padding: var(--s2) var(--s3);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
/* ---------- Buttons ---------- */
|
|
|
|
button {
|
|
font: inherit;
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
line-height: 1.25;
|
|
padding: 0.4rem var(--s3);
|
|
color: var(--ink);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: background-color 0.12s, border-color 0.12s;
|
|
}
|
|
|
|
button:hover:not(:disabled) {
|
|
background: var(--surface-sunken);
|
|
border-color: var(--ink-faint);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Submit buttons are the primary action of their form. */
|
|
button[type='submit'] {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--accent-ink);
|
|
}
|
|
|
|
button[type='submit']:hover:not(:disabled) {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
/* Destructive actions. */
|
|
button[aria-label^='Delete'],
|
|
button[aria-label^='Revoke'],
|
|
button[aria-label^='Remove'],
|
|
button.danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
button[aria-label^='Delete']:hover:not(:disabled),
|
|
button[aria-label^='Revoke']:hover:not(:disabled),
|
|
button[aria-label^='Remove']:hover:not(:disabled),
|
|
button.danger:hover:not(:disabled) {
|
|
background: var(--danger-soft);
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
/* ---------- Forms ---------- */
|
|
|
|
form {
|
|
display: grid;
|
|
gap: var(--s4);
|
|
max-width: 26rem;
|
|
margin: var(--s4) 0;
|
|
padding: var(--s5);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
form label {
|
|
display: grid;
|
|
gap: var(--s1);
|
|
font-weight: 500;
|
|
}
|
|
|
|
input:not([type='radio'], [type='checkbox']),
|
|
select {
|
|
font: inherit;
|
|
width: 100%;
|
|
padding: 0.45rem var(--s3);
|
|
color: var(--ink);
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
select {
|
|
width: auto;
|
|
min-width: 10rem;
|
|
}
|
|
|
|
input::placeholder {
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
input:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
input:focus-visible,
|
|
select:focus-visible {
|
|
box-shadow: none;
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 0;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
input[type='radio'],
|
|
input[type='checkbox'] {
|
|
margin: 0;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
/* Radios and checkboxes sit beside their text, not stacked. */
|
|
fieldset {
|
|
display: grid;
|
|
gap: var(--s2);
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
legend {
|
|
padding: 0;
|
|
margin-bottom: var(--s2);
|
|
font-weight: 500;
|
|
}
|
|
|
|
fieldset label,
|
|
label.check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s2);
|
|
font-weight: 400;
|
|
}
|
|
|
|
[role='alert'] {
|
|
color: var(--danger);
|
|
}
|
|
|
|
p[role='alert'] {
|
|
padding: var(--s2) var(--s3);
|
|
background: var(--danger-soft);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
[role='status'] {
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
/* ---------- Tables ---------- */
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
margin-bottom: var(--s4);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
text-align: left;
|
|
padding: var(--s3) var(--s4);
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
th {
|
|
background: var(--surface-sunken);
|
|
color: var(--ink-soft);
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
tbody tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: color-mix(in srgb, var(--accent) 5%, transparent);
|
|
}
|
|
|
|
/* Action cells: keep buttons on one line, right aligned. */
|
|
td:last-child:has(button) {
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
}
|
|
|
|
td:last-child button + button {
|
|
margin-left: var(--s1);
|
|
}
|
|
|
|
/* ---------- Tabs ---------- */
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: var(--s1);
|
|
margin-bottom: var(--s5);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.tabs button {
|
|
padding: var(--s2) var(--s4);
|
|
background: none;
|
|
border: 0;
|
|
border-bottom: 2px solid transparent;
|
|
border-radius: 0;
|
|
margin-bottom: -1px;
|
|
color: var(--ink-soft);
|
|
font-size: var(--text);
|
|
}
|
|
|
|
.tabs button:hover:not(:disabled) {
|
|
background: none;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.tabs [aria-selected='true'] {
|
|
color: var(--ink);
|
|
font-weight: 600;
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
/* ---------- Secrets ---------- */
|
|
|
|
.crumbs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s1);
|
|
margin: var(--s4) 0;
|
|
}
|
|
|
|
.crumbs button {
|
|
font-family: var(--mono);
|
|
background: var(--surface-sunken);
|
|
}
|
|
|
|
.entries {
|
|
list-style: none;
|
|
margin: 0 0 var(--s4);
|
|
padding: 0;
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.entries li + li {
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.entries button {
|
|
display: block;
|
|
width: 100%;
|
|
padding: var(--s2) var(--s4);
|
|
text-align: left;
|
|
font-family: var(--mono);
|
|
font-size: var(--text);
|
|
background: none;
|
|
border: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.entries [aria-pressed='true'] {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* A token is shown once; make that unmissable. */
|
|
.secret-once {
|
|
padding: var(--s4);
|
|
margin-bottom: var(--s4);
|
|
background: var(--warn-soft);
|
|
border: 1px solid var(--warn);
|
|
border-radius: var(--radius);
|
|
color: var(--ink);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* The Access panel: a card with a header, current access on the left, the grant form on the right. */
|
|
.access-editor {
|
|
margin-top: var(--s6);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.access-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--s3);
|
|
padding: var(--s3) var(--s5);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.access-head h2 {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--s2);
|
|
margin: 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.access-head .kind {
|
|
padding: 0 var(--s2);
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--ink-soft);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.access-body {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
|
|
gap: var(--s5);
|
|
align-items: start;
|
|
padding: var(--s5);
|
|
}
|
|
|
|
.section-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: var(--s2) var(--s4);
|
|
margin-bottom: var(--s3);
|
|
}
|
|
|
|
.section-head h3,
|
|
.access-grant h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.access-current h3:not(.section-head h3) {
|
|
margin-top: var(--s6);
|
|
margin-bottom: var(--s1);
|
|
}
|
|
|
|
.access-current table {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.policy-list {
|
|
list-style: none;
|
|
margin: var(--s3) 0 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.policy-list > li {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s2) var(--s3);
|
|
padding: var(--s2) 0;
|
|
border-bottom: 1px solid var(--line);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.policy-list pre {
|
|
flex-basis: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.access-grant {
|
|
max-width: none;
|
|
margin: 0;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.access-grant .caps {
|
|
grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
|
|
}
|
|
|
|
.access-grant .caps legend {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
@media (max-width: 60rem) {
|
|
.access-body {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
/* ---------- Graph ---------- */
|
|
|
|
/* One bar above the canvas: filters and refresh on top, the key underneath. */
|
|
.graph-bar {
|
|
display: grid;
|
|
gap: var(--s3);
|
|
margin-bottom: var(--s3);
|
|
padding: var(--s3) var(--s4);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.graph-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--s3) var(--s4);
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.graph-toolbar label:not(.check) {
|
|
display: grid;
|
|
gap: var(--s1);
|
|
color: var(--ink-soft);
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.graph-toolbar input:not([type='checkbox']) {
|
|
width: 15rem;
|
|
}
|
|
|
|
.graph-toolbar .check {
|
|
min-height: 2.25rem;
|
|
}
|
|
|
|
.graph-toolbar button {
|
|
margin-left: auto;
|
|
min-height: 2.25rem;
|
|
}
|
|
|
|
.graph-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s2) var(--s5);
|
|
margin: 0;
|
|
padding: var(--s3) 0 0;
|
|
border-top: 1px solid var(--line);
|
|
list-style: none;
|
|
color: var(--ink-faint);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.graph-legend .grow {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.swatch {
|
|
display: inline-block;
|
|
width: 0.6rem;
|
|
height: 0.6rem;
|
|
margin-right: var(--s1);
|
|
border-radius: 2px;
|
|
background: var(--node-colour);
|
|
}
|
|
|
|
.swatch-identity {
|
|
--node-colour: var(--node-identity);
|
|
}
|
|
|
|
.swatch-policy {
|
|
--node-colour: var(--node-policy);
|
|
}
|
|
|
|
.swatch-path {
|
|
--node-colour: var(--node-path);
|
|
}
|
|
|
|
.graph-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 22rem;
|
|
gap: var(--s4);
|
|
}
|
|
|
|
.graph-canvas {
|
|
height: calc(100vh - 21rem);
|
|
min-height: 28rem;
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.graph-details {
|
|
max-height: calc(100vh - 21rem);
|
|
overflow: auto;
|
|
padding: var(--s4) var(--s5);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.detail-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: var(--s2);
|
|
margin-bottom: var(--s2);
|
|
}
|
|
|
|
.detail-head h2,
|
|
.graph-details h2 {
|
|
margin: 0;
|
|
font-size: var(--text-lg);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.graph-details h3 {
|
|
margin: var(--s5) 0 var(--s2);
|
|
color: var(--ink-soft);
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.graph-details p {
|
|
margin: 0 0 var(--s2);
|
|
}
|
|
|
|
.graph-details code {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.detail-empty {
|
|
padding: var(--s6) var(--s3);
|
|
color: var(--ink-faint);
|
|
text-align: center;
|
|
}
|
|
|
|
.edge-to {
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
/* Label/value rows: one entry per line, hairline between. */
|
|
.rows,
|
|
.people {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.rows > li {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s1) var(--s3);
|
|
padding: var(--s2) 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.rows > li:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.rows > li.stacked {
|
|
display: block;
|
|
}
|
|
|
|
.row-main {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s1) var(--s3);
|
|
}
|
|
|
|
.people {
|
|
margin-top: var(--s1);
|
|
padding-left: var(--s3);
|
|
}
|
|
|
|
.people li {
|
|
padding: 1px 0;
|
|
}
|
|
|
|
.graph-details details {
|
|
margin-top: var(--s5);
|
|
}
|
|
|
|
.graph-details summary {
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.graph-details pre {
|
|
margin: var(--s2) 0 0;
|
|
}
|
|
|
|
.note-warn {
|
|
padding: var(--s2) var(--s3);
|
|
background: var(--warn-soft);
|
|
border-radius: var(--radius);
|
|
color: var(--warn);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
/* Nodes. The wrapper carries state classes; the card is what you see. */
|
|
.gnode {
|
|
--node-colour: var(--ink-faint);
|
|
width: 260px;
|
|
}
|
|
|
|
.gnode-identity {
|
|
--node-colour: var(--node-identity);
|
|
}
|
|
|
|
.gnode-policy {
|
|
--node-colour: var(--node-policy);
|
|
}
|
|
|
|
.gnode-path {
|
|
--node-colour: var(--node-path);
|
|
}
|
|
|
|
.gnode-card {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--s2);
|
|
padding: var(--s2) var(--s3);
|
|
background: var(--surface);
|
|
color: var(--ink);
|
|
border: 1px solid var(--line-strong);
|
|
border-left: 4px solid var(--node-colour);
|
|
border-radius: var(--radius);
|
|
font-size: 14px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.gnode-path .gnode-label {
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.gnode-label {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.gnode-kind {
|
|
flex: none;
|
|
padding: 0 var(--s2);
|
|
background: var(--surface-sunken);
|
|
border-radius: 999px;
|
|
color: var(--ink-soft);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.gnode-managed .gnode-label {
|
|
font-weight: 650;
|
|
}
|
|
|
|
.gnode-missing .gnode-card {
|
|
border-style: dashed;
|
|
border-left-style: solid;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.gnode-selected .gnode-card {
|
|
box-shadow: 0 0 0 2px var(--accent);
|
|
}
|
|
|
|
/* With a node selected, its own links stand out and everything else steps back. */
|
|
.gnode-linked .gnode-card {
|
|
box-shadow: 0 0 0 1px var(--accent);
|
|
}
|
|
|
|
.gnode-dim,
|
|
.edge-dim {
|
|
opacity: 0.25;
|
|
}
|
|
|
|
.react-flow__edge.edge-linked .react-flow__edge-path {
|
|
stroke: var(--accent);
|
|
stroke-width: 2.5;
|
|
}
|
|
|
|
/* Handles anchor the edges but aren't interactive. */
|
|
.gnode-card .react-flow__handle {
|
|
width: 1px;
|
|
height: 1px;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
opacity: 0;
|
|
border: 0;
|
|
}
|
|
|
|
@media (max-width: 48rem) {
|
|
.shell > nav {
|
|
flex-wrap: wrap;
|
|
padding: 0 var(--s4);
|
|
}
|
|
|
|
.shell main {
|
|
padding: var(--s5) var(--s4);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
transition: none !important;
|
|
}
|
|
}
|
|
|
|
/* Standalone field labels (e.g. the Secrets mount picker) sit inline with their control. */
|
|
main section > label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s2);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ---------- Connection summary ---------- */
|
|
|
|
.connection-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--s3);
|
|
padding: var(--s4) var(--s5);
|
|
margin-bottom: var(--s5);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.connection-state {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s2);
|
|
margin: 0;
|
|
}
|
|
|
|
.dot {
|
|
width: 0.6rem;
|
|
height: 0.6rem;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
}
|
|
|
|
.connection-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
|
|
gap: var(--s5);
|
|
}
|
|
|
|
.connection-grid section {
|
|
padding: var(--s4) var(--s5) var(--s2);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.connection-grid h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
dl {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: var(--s3) var(--s5);
|
|
margin: 0 0 var(--s4);
|
|
}
|
|
|
|
dt {
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
dd {
|
|
margin: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--s1);
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.chips li {
|
|
white-space: nowrap;
|
|
padding: 0 var(--s2);
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
border-radius: 999px;
|
|
font-family: var(--mono);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
/* ---------- Access: secret picker ---------- */
|
|
|
|
.path-picker {
|
|
display: grid;
|
|
gap: var(--s3);
|
|
}
|
|
|
|
.path-picker .crumbs {
|
|
margin: 0;
|
|
}
|
|
|
|
.path-picker .entries {
|
|
margin: 0;
|
|
max-height: 14rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.path-picker .hint {
|
|
margin: 0;
|
|
}
|
|
|
|
.entry-folder {
|
|
display: flex !important;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.entry-folder span {
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
.entries .entry-secret {
|
|
padding: var(--s2) var(--s4);
|
|
font-family: var(--mono);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.entries .entry-secret:hover {
|
|
background: var(--surface-sunken);
|
|
}
|
|
|
|
.entries .entry-secret:has(input:checked) {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.entries .entry-secret:has(input:disabled) {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* A button that reads as an inline link. */
|
|
button.link {
|
|
padding: 0;
|
|
font-size: inherit;
|
|
font-weight: 400;
|
|
color: var(--accent);
|
|
background: none;
|
|
border: 0;
|
|
text-decoration: underline;
|
|
text-underline-offset: 0.2em;
|
|
}
|
|
|
|
button.link:hover:not(:disabled) {
|
|
background: none;
|
|
filter: brightness(1.15);
|
|
}
|
|
|
|
/* ---------- Secrets page ---------- */
|
|
|
|
.secrets-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
|
|
gap: var(--s5);
|
|
align-items: start;
|
|
}
|
|
|
|
.secrets-browser .entries {
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.secret-detail {
|
|
padding: var(--s5);
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.secret-detail header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--s2) var(--s4);
|
|
margin-bottom: var(--s4);
|
|
}
|
|
|
|
.secret-detail header > div {
|
|
display: grid;
|
|
gap: var(--s1);
|
|
min-width: 0;
|
|
}
|
|
|
|
.secret-detail h2 {
|
|
margin: 0;
|
|
font-family: var(--mono);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.secret-detail header code {
|
|
color: var(--ink-faint);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.secret-detail table {
|
|
margin-bottom: var(--s3);
|
|
}
|
|
|
|
.secret-placeholder {
|
|
margin: 0;
|
|
padding: var(--s6) var(--s5);
|
|
border: 1px dashed var(--line-strong);
|
|
border-radius: var(--radius);
|
|
color: var(--ink-faint);
|
|
text-align: center;
|
|
}
|
|
|
|
.tag {
|
|
padding: 0 var(--s2);
|
|
margin-left: var(--s1);
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--ink-soft);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
/* Capabilities that change or remove data, or bypass policy checks. */
|
|
.chips li.risky {
|
|
background: var(--danger-soft);
|
|
color: var(--danger);
|
|
}
|
|
|
|
@media (max-width: 60rem) {
|
|
.secrets-layout {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
/* ---------- Identity forms ---------- */
|
|
|
|
form.wide {
|
|
max-width: 36rem;
|
|
}
|
|
|
|
form > h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: var(--s2);
|
|
}
|
|
|
|
/* Checkbox lists (policies, members) run in columns instead of one long stack. */
|
|
.pick-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
|
}
|
|
|
|
.pick-grid legend,
|
|
.pick-grid > p {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
form .note-warn {
|
|
margin: 0;
|
|
}
|
|
|
|
button.primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--accent-ink);
|
|
}
|
|
|
|
button.primary:hover:not(:disabled) {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
/* The one-time token: large, selectable, impossible to mistake for table content. */
|
|
.secret-once p {
|
|
margin: 0 0 var(--s3);
|
|
}
|
|
|
|
.token-value {
|
|
display: block;
|
|
margin-bottom: var(--s3);
|
|
padding: var(--s3) var(--s4);
|
|
background: var(--surface);
|
|
border: 1px solid var(--warn);
|
|
border-radius: var(--radius);
|
|
font-size: var(--text);
|
|
overflow-wrap: anywhere;
|
|
user-select: all;
|
|
}
|
|
|
|
/* ---------- Narrow screens ---------- */
|
|
|
|
@media (max-width: 60rem) {
|
|
.graph-layout {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.graph-canvas {
|
|
height: 60vh;
|
|
}
|
|
|
|
.graph-details {
|
|
max-height: none;
|
|
}
|
|
}
|
|
|
|
.graph-hint {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 40rem) {
|
|
/*
|
|
* Tables become stacked cards: the first cell is the title, other cells show their column name
|
|
* (from data-label) above the value, and row actions sit underneath instead of off the edge.
|
|
*/
|
|
table,
|
|
tbody,
|
|
tr,
|
|
td {
|
|
display: block;
|
|
}
|
|
|
|
table {
|
|
overflow: visible;
|
|
}
|
|
|
|
thead {
|
|
display: none;
|
|
}
|
|
|
|
tr {
|
|
padding: var(--s3) var(--s4);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
tbody tr:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
td {
|
|
padding: var(--s1) 0;
|
|
border: 0;
|
|
}
|
|
|
|
td[data-label]::before {
|
|
content: attr(data-label);
|
|
display: block;
|
|
color: var(--ink-faint);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
td:last-child:has(button) {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--s2);
|
|
padding-top: var(--s2);
|
|
text-align: left;
|
|
}
|
|
|
|
td:last-child button + button {
|
|
margin-left: 0;
|
|
}
|
|
|
|
/* Five nav items have to fit on one line. */
|
|
.shell > nav {
|
|
gap: 0;
|
|
padding: 0 var(--s2);
|
|
}
|
|
|
|
.shell > nav strong {
|
|
margin-right: var(--s2);
|
|
}
|
|
|
|
.shell > nav a {
|
|
padding: var(--s3) var(--s2);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.shell > nav .whoami {
|
|
display: none;
|
|
}
|
|
|
|
/* Less nested padding so cards inside cards keep their width. */
|
|
form,
|
|
.secret-detail {
|
|
padding: var(--s4);
|
|
}
|
|
|
|
.access-head {
|
|
padding: var(--s3) var(--s4);
|
|
}
|
|
|
|
.access-body {
|
|
padding: var(--s3);
|
|
}
|
|
|
|
.graph-hint {
|
|
display: list-item;
|
|
list-style: none;
|
|
}
|
|
|
|
.graph-toolbar label:not(.check),
|
|
.graph-toolbar input:not([type='checkbox']) {
|
|
width: 100%;
|
|
}
|
|
|
|
.graph-toolbar button {
|
|
margin-left: 0;
|
|
}
|
|
|
|
/* The legend is already most of a screen on a phone; drop the long note. */
|
|
.graph-legend .grow {
|
|
display: none;
|
|
}
|
|
|
|
.access-head,
|
|
.connection-head {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
/* ---------- Confirm dialog ---------- */
|
|
|
|
.confirm-dialog {
|
|
width: min(28rem, calc(100% - 2rem));
|
|
padding: var(--s5);
|
|
background: var(--surface);
|
|
color: var(--ink);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
|
|
}
|
|
|
|
.confirm-dialog::backdrop {
|
|
background: rgb(0 0 0 / 0.55);
|
|
}
|
|
|
|
.confirm-dialog h2 {
|
|
margin: 0 0 var(--s2);
|
|
font-size: var(--text-lg);
|
|
}
|
|
|
|
.confirm-dialog p {
|
|
margin: 0 0 var(--s5);
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.confirm-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: var(--s2);
|
|
}
|
|
|
|
button.danger-solid {
|
|
background: var(--danger);
|
|
border-color: var(--danger);
|
|
color: var(--danger-ink);
|
|
}
|
|
|
|
button.danger-solid:hover:not(:disabled) {
|
|
background: var(--danger);
|
|
border-color: var(--danger);
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
/* Policy and name chips in tables: neutral, with EnvBao-managed policies tinted. */
|
|
.chips.plain li {
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.chips.plain li.managed {
|
|
background: var(--accent-soft);
|
|
border-color: transparent;
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Capability label on a policy -> path edge. */
|
|
.edge-label {
|
|
position: absolute;
|
|
pointer-events: all;
|
|
padding: 1px 6px;
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
color: var(--ink-soft);
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.edge-label-selected,
|
|
.edge-label-linked {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.edge-label-dim {
|
|
opacity: 0.25;
|
|
}
|
|
|
|
/* Inline "Grant access" form inside the secret detail card. */
|
|
.grant-here {
|
|
max-width: none;
|
|
margin: 0 0 var(--s4);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.caps {
|
|
grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
|
|
}
|
|
|
|
.caps legend {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.note-ok {
|
|
padding: var(--s2) var(--s3);
|
|
background: var(--accent-soft);
|
|
border-radius: var(--radius);
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ---------- Dynamic engines ---------- */
|
|
|
|
.engine-view {
|
|
min-width: 0;
|
|
}
|
|
|
|
.creds-issued {
|
|
margin: var(--s4) 0;
|
|
padding: var(--s4);
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.creds-issued dl {
|
|
margin: var(--s3) 0;
|
|
}
|
|
|
|
.creds-issued dt {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.creds-issued dd {
|
|
margin: 0 0 var(--s3);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.creds-issued code {
|
|
font-family: var(--mono);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* Top of the Secrets page: New, then the engine picker with its actions, then (KV) the breadcrumbs. */
|
|
.mount-new {
|
|
margin-bottom: var(--s4);
|
|
}
|
|
|
|
.mount-bar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--s3);
|
|
margin-bottom: var(--s2);
|
|
}
|
|
|
|
.mount-pick {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--s2);
|
|
min-width: 0;
|
|
}
|
|
|
|
.mount-pick label {
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mount-pick select {
|
|
min-width: 12rem;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.mount-actions {
|
|
display: flex;
|
|
gap: var(--s2);
|
|
}
|
|
|
|
.mount-bar + .crumbs,
|
|
.mount-dialog + .crumbs {
|
|
margin-top: var(--s2);
|
|
}
|
|
|
|
.mount-dialog {
|
|
margin: 0 0 var(--s4);
|
|
padding: var(--s4);
|
|
background: var(--surface-sunken);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|