browsec/trustlab/ui/styles.css

322 lines
9.2 KiB
CSS

:root {
color: #eef4f7;
background: #091014;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-synthesis: none;
--ink-muted: #9baeb8;
--panel: #111c22;
--panel-raised: #17252d;
--line: #2c3c45;
--cyan: #75d9e9;
--cyan-dark: #123d48;
--amber: #f0b85b;
--red: #ff8178;
--green: #7bddad;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
background:
radial-gradient(circle at 75% -20%, #173843 0, transparent 42rem),
#091014;
}
button, select, input { font: inherit; }
.browser-frame {
position: sticky;
z-index: 10;
top: 0;
display: flex;
align-items: center;
gap: 0.85rem;
min-height: 4.4rem;
padding: 0.75rem 1.25rem;
border-bottom: 3px solid var(--cyan);
background: #071319f2;
box-shadow: 0 0.5rem 2rem #0008;
backdrop-filter: blur(12px);
}
.browser-frame strong, .browser-frame span { display: block; }
.browser-frame span { color: var(--ink-muted); font-size: 0.78rem; }
.brand-mark {
display: grid;
width: 2.45rem;
height: 2.45rem;
place-items: center;
border: 1px solid var(--cyan);
border-radius: 50%;
color: #071319;
background: var(--cyan);
font-weight: 900;
}
.frame-seal {
margin-left: auto;
padding: 0.38rem 0.6rem;
border: 1px solid #3d6975;
border-radius: 0.25rem;
color: var(--cyan);
font: 700 0.66rem/1.1 ui-monospace, monospace;
letter-spacing: 0.12em;
}
main {
display: grid;
grid-template-columns: minmax(14rem, 19rem) minmax(0, 60rem);
gap: clamp(1rem, 4vw, 4rem);
max-width: 88rem;
margin: 0 auto;
padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3vw, 3rem) 8rem;
}
.controls {
align-self: start;
padding: 1.2rem;
border: 1px solid var(--line);
border-radius: 0.5rem;
background: #0c171c;
}
.controls label:not(.toggle) {
display: block;
margin: 0.8rem 0 0.4rem;
color: var(--ink-muted);
font-size: 0.78rem;
}
select {
width: 100%;
padding: 0.7rem;
border: 1px solid #3b515c;
border-radius: 0.3rem;
color: inherit;
background: #142229;
}
.probe-form { margin-top: 1rem; padding-top: 0.2rem; border-top: 1px solid var(--line); }
.probe-row { display: flex; gap: 0.45rem; }
.probe-row input {
min-width: 0;
width: 100%;
padding: 0.7rem;
border: 1px solid #3b515c;
border-radius: 0.3rem;
color: inherit;
background: #142229;
}
.probe-row .button { padding-inline: 0.8rem; }
.probe-message { min-height: 1.2em; margin: 0.45rem 0 0; color: var(--ink-muted); font-size: 0.72rem; }
.probe-message.error { color: var(--red); }
.toggle {
display: flex;
gap: 0.65rem;
align-items: center;
margin-top: 1.2rem;
color: #cfdae0;
font-size: 0.85rem;
}
.toggle input { accent-color: var(--cyan); }
.simulation-note {
margin: 1.5rem 0 0;
padding-top: 1rem;
border-top: 1px solid var(--line);
color: var(--ink-muted);
font-size: 0.75rem;
line-height: 1.55;
}
.workspace { min-width: 0; }
.status-card, .panel {
margin-bottom: 1rem;
border: 1px solid var(--line);
border-radius: 0.5rem;
background: linear-gradient(145deg, #142129, #0f191e);
box-shadow: 0 1.1rem 2.5rem #0003;
}
.status-card {
position: relative;
overflow: hidden;
padding: clamp(1.5rem, 4vw, 2.6rem);
}
.status-card::before {
position: absolute;
inset: 0 auto 0 0;
width: 0.35rem;
background: var(--amber);
content: "";
}
.status-card[data-state="trusted"]::before { background: var(--green); }
.status-card[data-state="not-trusted"]::before { background: var(--red); }
.status-card h1 {
max-width: 22ch;
margin: 0.3rem 0 0.65rem;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(1.8rem, 4vw, 3.2rem);
font-weight: 500;
line-height: 1.04;
}
.status-detail { max-width: 62ch; color: var(--ink-muted); line-height: 1.55; }
.panel { padding: clamp(1.1rem, 3vw, 2rem); }
.section-heading h2 { margin: 0.2rem 0 1.3rem; font-size: 1.15rem; }
.eyebrow {
margin: 0;
color: var(--cyan);
font: 700 0.68rem/1.3 ui-monospace, monospace;
letter-spacing: 0.13em;
text-transform: uppercase;
}
.identity-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
margin: 0;
border-top: 1px solid var(--line);
}
.identity-grid div { padding: 1rem 1rem 0 0; }
.identity-grid dt { color: var(--ink-muted); font-size: 0.72rem; }
.identity-grid dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.chain { margin: 0; padding: 0; list-style: none; }
.certificate {
position: relative;
display: grid;
grid-template-columns: minmax(9rem, 0.7fr) minmax(12rem, 1fr) minmax(10rem, 1fr);
gap: 0.35rem 1rem;
padding: 1rem;
border: 1px solid #31434d;
border-radius: 0.35rem;
background: var(--panel-raised);
}
.certificate + .certificate { margin-top: 1.8rem; }
.certificate + .certificate::before {
position: absolute;
top: -1.85rem;
left: 2rem;
width: 1px;
height: 1.8rem;
background: #54707c;
content: "";
}
.certificate + .certificate::after {
position: absolute;
top: -0.4rem;
left: 1.78rem;
color: #78919b;
content: "▾";
}
.certificate.failed { border-color: #a45250; background: #2b1c1d; }
.certificate-role { grid-column: 1; color: var(--ink-muted); font-size: 0.72rem; }
.certificate strong { grid-column: 1; }
.certificate code { grid-column: 2; color: #afc1ca; overflow-wrap: anywhere; }
.edge-label { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--green); font-size: 0.78rem; }
.failed .edge-label { color: var(--red); }
.der-explorer { grid-column: 1 / -1; margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.der-explorer > summary, .der-tree > summary { color: var(--cyan); cursor: pointer; font-size: 0.78rem; }
.der-actions { margin: 0.8rem 0; }
.der-actions a { display: inline-block; color: inherit; text-decoration: none; font-size: 0.72rem; }
.der-derived { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin: 0.8rem 0; }
.der-derived div { padding: 0.65rem; background: #0b151a; }
.der-derived dt { color: var(--ink-muted); font-size: 0.68rem; }
.der-derived dd { margin: 0.25rem 0 0; font-size: 0.76rem; overflow-wrap: anywhere; }
.der-extensions { display: grid; gap: 0.45rem; }
.der-extensions article { display: grid; grid-template-columns: minmax(10rem, 1fr) auto; gap: 0.25rem 0.8rem; padding: 0.65rem; border-left: 2px solid #46616c; background: #0b151a; }
.der-extensions article.critical { border-color: var(--amber); }
.der-extensions article.unknown { border-color: var(--red); }
.der-extensions span, .der-extensions pre { grid-column: 1 / -1; }
.der-extensions span { color: var(--ink-muted); font-size: 0.68rem; }
.der-extensions pre { max-height: 12rem; margin: 0.25rem 0 0; overflow: auto; color: #b8cad2; font-size: 0.68rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.der-tree { margin-top: 0.8rem; }
.der-tree ul { margin: 0.3rem 0 0; padding-left: 1.15rem; list-style: none; border-left: 1px solid #304751; }
.der-tree code { color: #9db1ba; font-size: 0.66rem; }
.journal { display: grid; gap: 0.65rem; }
.journal-entry {
display: grid;
grid-template-columns: 5rem 1fr auto;
gap: 0.15rem 0.9rem;
align-items: baseline;
padding: 0.9rem 1rem;
border-left: 3px solid #54707c;
background: #0c161b;
}
.journal-entry.kind-warning { border-color: var(--amber); }
.journal-entry.kind-vote { border-color: #9b8bea; }
.journal-entry.kind-resolution { border-color: var(--cyan); }
.journal-entry h3, .journal-entry p { margin: 0; }
.journal-entry h3 { font-size: 0.86rem; }
.journal-entry p { grid-column: 2; color: var(--ink-muted); font-size: 0.8rem; }
.journal-entry code { grid-column: 3; grid-row: 1; color: #78919b; font-size: 0.68rem; }
.entry-kind { color: var(--cyan); font: 700 0.62rem ui-monospace, monospace; text-transform: uppercase; }
.empty { color: var(--ink-muted); }
.decision-bar {
position: fixed;
z-index: 20;
right: 0;
bottom: 0;
left: 0;
display: flex;
gap: 0.7rem;
align-items: center;
min-height: 5rem;
padding: 0.85rem clamp(1rem, 3vw, 3rem);
border-top: 1px solid #38525e;
background: #081116f5;
box-shadow: 0 -1rem 3rem #0008;
backdrop-filter: blur(14px);
}
.decision-bar div { margin-right: auto; }
.decision-bar strong, .decision-bar span { display: block; }
.decision-bar span { margin-top: 0.2rem; color: var(--ink-muted); font-size: 0.72rem; }
.button {
padding: 0.72rem 1rem;
border: 1px solid transparent;
border-radius: 0.3rem;
color: #eef4f7;
background: #26363e;
cursor: pointer;
}
.button:hover { filter: brightness(1.13); }
.button:focus-visible { outline: 3px solid white; outline-offset: 2px; }
.button.trust { color: #071319; background: var(--green); font-weight: 800; }
.button.reject { border-color: #985653; background: #321e1e; }
.button.quiet { border-color: #3d515b; background: transparent; }
@media (max-width: 760px) {
main { grid-template-columns: 1fr; }
.controls { position: static; }
.identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.certificate { grid-template-columns: 1fr; }
.certificate code, .edge-label { grid-column: 1; grid-row: auto; }
.der-derived { grid-template-columns: 1fr; }
.journal-entry { grid-template-columns: 4.5rem 1fr; }
.journal-entry code { display: none; }
.decision-bar { flex-wrap: wrap; }
.decision-bar div { flex-basis: 100%; }
.button { flex: 1; }
}