fastmcp/triage.css

557 lines
8.7 KiB
CSS

:root {
color-scheme: dark;
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
color: #e7e9ef;
background: #141518;
--muted: #a4a8b3;
--line: #34363e;
--purple: #a78bfa;
--teal: #2dd4bf;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
a {
color: inherit;
text-underline-offset: 4px;
}
button {
font: inherit;
color: inherit;
cursor: pointer;
}
button:focus-visible,
a:focus-visible,
#canvas:focus-visible {
outline: 2px solid var(--purple);
outline-offset: 4px;
}
header {
max-width: 1600px;
margin: auto;
padding: 24px 40px;
display: flex;
justify-content: space-between;
border-bottom: 1px solid var(--line);
}
.brand {
text-decoration: none;
font-weight: 800;
letter-spacing: -0.8px;
font-size: 21px;
}
.brand span {
font-weight: 400;
color: var(--muted);
}
nav {
display: flex;
gap: 24px;
align-items: center;
font-size: 13px;
}
nav a {
text-decoration: none;
color: var(--muted);
}
main {
max-width: 1600px;
margin: auto;
padding: 32px 40px;
}
.heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 40px;
margin-bottom: 28px;
}
.eyebrow {
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--muted);
font-size: 10px;
font-weight: 650;
margin: 0 0 10px;
}
h1 {
font-size: 38px;
letter-spacing: -1.3px;
margin: 0;
font-weight: 650;
}
h2 {
font-size: 22px;
letter-spacing: -0.5px;
margin: 0 0 14px;
font-weight: 600;
}
.intro {
max-width: 470px;
font-size: 14px;
line-height: 1.7;
color: #b8bcc7;
margin: 0;
}
.workspace {
border: 1px solid #3b3d46;
border-radius: 12px;
overflow: hidden;
background: #191a1e;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 17px 22px;
border-bottom: 1px solid var(--line);
}
.toolbar h2 {
font-size: 15px;
margin: 0 0 5px;
letter-spacing: 0;
}
.version {
font-size: 11px;
color: var(--muted);
font-family: ui-monospace, monospace;
}
.exports {
display: flex;
gap: 10px;
}
button {
background: #25262c;
border: 1px solid #41434e;
border-radius: 6px;
padding: 7px 11px;
font-size: 12px;
}
button:hover {
background: #34363f;
}
.branches {
display: flex;
align-items: center;
gap: 8px;
padding: 13px 22px;
border-bottom: 1px solid #2a2c34;
flex-wrap: wrap;
}
.branches > span {
font-size: 11px;
color: var(--muted);
margin-right: 8px;
}
.branches button {
font-family: ui-monospace, monospace;
padding: 5px 10px;
font-size: 11px;
background: transparent;
}
.branches button[aria-pressed="true"] {
color: #dfd5ff;
background: #312a45;
border-color: #8064b1;
}
#canvas {
position: relative;
height: 580px;
overflow: hidden;
touch-action: none;
cursor: grab;
background-color: #101114;
background-image: radial-gradient(#393b45 0.8px, transparent 0.8px);
background-size: 22px 22px;
}
#canvas.dragging {
cursor: grabbing;
}
#graph {
display: block;
width: 100%;
height: 100%;
touch-action: none;
user-select: none;
}
.canvas-controls {
position: absolute;
right: 16px;
bottom: 16px;
display: flex;
flex-direction: column;
border: 1px solid #4a4c57;
border-radius: 8px;
overflow: hidden;
}
.canvas-controls button {
border: 0;
border-radius: 0;
width: 36px;
height: 33px;
padding: 0;
font-size: 18px;
background: #25262c;
}
.canvas-controls button + button {
border-top: 1px solid #454752;
}
.canvas-controls #fit {
font-size: 11px;
}
.canvas-caption {
padding: 12px 22px;
display: flex;
gap: 16px;
justify-content: space-between;
color: var(--muted);
font-size: 11px;
border-bottom: 1px solid var(--line);
}
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 2px;
margin: 0 5px 0 15px;
}
.dot:first-child {
margin-left: 0;
}
.agent {
background: var(--purple);
}
.deployment {
background: var(--teal);
}
.diamond {
color: var(--purple);
margin: 0 5px 0 15px;
}
#inspector {
padding: 20px 24px;
min-height: 104px;
display: grid;
grid-template-columns: 260px 1fr;
gap: 24px;
background: #202126;
}
#inspector h3 {
font-size: 15px;
margin: 0 0 7px;
}
#inspector code {
font-size: 11px;
color: var(--muted);
}
#inspector p {
font-size: 13px;
line-height: 1.65;
margin: 0;
color: #c3c6d0;
}
.provenance {
font-size: 11px;
color: #969ba8;
line-height: 1.7;
max-width: 1000px;
margin: 14px 0 40px;
}
.controller {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 65px;
padding: 0 0 38px;
border-bottom: 1px solid var(--line);
}
.controller p,
.incident p {
font-size: 14px;
line-height: 1.75;
color: #b5b9c4;
}
.controller dl {
margin: 0;
display: grid;
gap: 18px;
}
.controller dt {
font-size: 13px;
font-weight: 650;
margin-bottom: 5px;
}
.controller dd {
font-size: 13px;
line-height: 1.75;
color: #b5b9c4;
margin: 0;
}
.controller code {
color: #d8dbe4;
font-size: 12px;
}
.incident {
display: grid;
grid-template-columns: 1.3fr 1fr;
gap: 70px;
padding: 36px 0;
}
.incident h2 {
max-width: 500px;
font-size: 26px;
line-height: 1.3;
}
.incident a {
font-size: 13px;
color: #c7b4ff;
}
.receipt {
border: 1px solid #51452f;
border-radius: 10px;
background: #211e18;
padding: 20px 24px;
align-self: center;
}
.receipt > p {
font-family: ui-monospace, monospace;
font-size: 11px;
color: #c3b28e;
margin: 0 0 18px;
}
.receipt dl {
margin: 0;
}
.receipt dl > div {
display: flex;
justify-content: space-between;
gap: 20px;
padding: 13px 0;
border-top: 1px solid #453c2c;
font-size: 12px;
}
.receipt dd {
margin: 0;
text-align: right;
}
.receipt dt {
color: #bcb5a7;
}
.ok {
color: #5eead4;
}
.warn {
color: #fcd34d;
}
footer {
border-top: 1px solid var(--line);
padding: 15px 0;
color: var(--muted);
font-size: 11px;
}
footer p {
line-height: 1.8;
}
.node {
cursor: pointer;
outline: none;
}
.node .card {
fill: #202126;
stroke: #565a67;
stroke-width: 1.2;
}
.node:hover .card,
.node:focus-visible .card,
.node.selected .card {
stroke: #b9a1f7;
stroke-width: 2;
}
.node .title {
fill: #f2f3f7;
font-size: 15px;
font-weight: 600;
}
.node .kind {
font-size: 10px;
font-weight: 700;
letter-spacing: 1px;
}
.node .subtitle {
fill: #a8adbb;
font-size: 11px;
}
.node .port-label {
fill: #cdd0da;
font:
11px ui-monospace,
monospace;
}
.node .port-bg {
fill: #282a31;
stroke: #434651;
stroke-width: 0.7;
}
.edge {
fill: none;
stroke: #787d8d;
stroke-width: 1.4;
}
.edge.input-edge {
stroke: #575d6d;
stroke-dasharray: 4 4;
}
.muted {
opacity: 0.17;
}
.edge.active {
stroke: #c0a8ff;
stroke-width: 2.5;
}
.node .port {
fill: #9ca3b4;
stroke: #202126;
stroke-width: 1.5;
}
.node .branch-port {
fill: #b39af3;
}
.node .stack-back {
fill: #17181c;
stroke: #454954;
}
.node .input-card {
stroke-dasharray: 5 4;
}
@media (min-width: 1600px) {
#canvas {
height: 650px;
}
}
@media (max-width: 800px) {
header {
padding: 20px;
}
nav {
gap: 14px;
font-size: 11px;
}
main {
padding: 24px 16px;
}
.heading {
display: block;
}
.intro {
margin-top: 16px;
}
h1 {
font-size: 32px;
}
.toolbar {
padding: 14px;
}
.exports {
gap: 6px;
}
.exports button {
font-size: 10px;
padding: 7px;
}
.branches {
padding: 12px 14px;
gap: 6px;
}
.branches > span {
width: 100%;
margin: 0 0 4px;
}
#canvas {
height: 480px;
}
.canvas-caption {
padding: 12px 14px;
display: block;
line-height: 1.7;
}
.canvas-caption > span {
display: block;
}
#inspector {
grid-template-columns: 1fr;
gap: 10px;
padding: 18px;
}
.controller,
.incident {
grid-template-columns: 1fr;
gap: 20px;
}
.provenance {
margin-bottom: 30px;
}
.controller {
padding-bottom: 28px;
}
.incident {
padding: 28px 0;
}
.receipt {
padding: 16px;
}
.receipt dl > div {
font-size: 11px;
}
.heading .eyebrow {
font-size: 9px;
}
}
@media (prefers-reduced-motion: reduce) {
* {
scroll-behavior: auto !important;
}
}
.workspace.expanded {
position: fixed;
inset: 12px;
z-index: 20;
display: flex;
flex-direction: column;
box-shadow: 0 0 0 20px #141518;
}
.expanded #canvas {
height: auto;
flex: 1;
min-height: 0;
}
.expanded #inspector {
display: none;
}
.expanded .toolbar,
.expanded .branches,
.expanded .canvas-caption {
flex-shrink: 0;
}
@media (max-width: 600px) {
.exports {
flex-wrap: wrap;
max-width: 180px;
justify-content: end;
}
.toolbar {
gap: 10px;
}
.workspace.expanded {
inset: 4px;
}
.expanded .canvas-caption > span:last-child {
display: none;
}
}