/* Agent Knowledge Graph Update Architecture
 * Layout: title on top, wide-and-short graph in the middle, status line,
 * then the controls at the bottom. Alice blue page background.
 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: aliceblue;
    color: #1a1a1a;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    padding: 6px 10px 6px 10px;
    gap: 4px;
}

.title-bar { flex: 0 0 auto; text-align: center; }
.title { font-size: 20px; font-weight: bold; }

#network {
    flex: 0 0 auto;
    height: clamp(260px, 46vw, 400px);
    background-color: aliceblue;
}

.status {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 5px 10px;
    font-size: 15px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #b0c4de;
    border-radius: 6px;
}

.controls {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 2px;
}

.controls button {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.evt {
    color: #ffffff;
    border: 2px solid transparent;
    font-weight: bold;
}
.evt .dir { font-weight: normal; font-size: 13px; opacity: 0.95; }
.evt-budget { background: #1565c0; }
.evt-nsf    { background: #9a5b00; }
.evt-policy { background: #7b1fa2; }

.reset { background: #ffffff; color: #1a1a1a; border: 2px solid #607d8b; }

.controls button:hover:not(:disabled) { filter: brightness(1.12); }
.controls button:focus-visible { outline: 3px solid #000000; outline-offset: 2px; }
.controls button:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 640px) {
    .title { font-size: 16px; }
    .controls button { font-size: 13px; padding: 6px 8px; }
    .status { font-size: 13px; }
}
