/* Function Calling Loop with Tool Choice */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%; height: 100%; overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #1f2937;
}

.toolbar {
    height: 50px;
    padding: 8px 14px;
    background: #37474f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}
.toolbar-title { font-weight: 600; font-size: 15px; }
.toolbar-controls { display: flex; align-items: center; gap: 18px; }
.control-block { display: flex; align-items: center; gap: 6px; }
.control-block select { padding: 3px 6px; font-size: 13px; }
.toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }

.container {
    display: flex;
    width: 100%;
    height: calc(100% - 50px);
}

.diagram-panel {
    width: 65%;
    height: 100%;
    background-color: aliceblue;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8px;
    overflow: auto;
}
.mermaid { width: 100%; }
.mermaid svg { max-width: 100%; height: auto; }

.info-panel {
    width: 35%;
    height: 100%;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 10px 14px;
    overflow: auto;
}
.info-panel h3 {
    font-size: 14px;
    color: #333;
    margin: 4px 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #c1440e;
}
.explain-box, .when-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #334155;
    margin-bottom: 10px;
}
.cost-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #1f2937;
}
.cost-row { display: flex; justify-content: space-between; padding: 2px 0; }
.cost-divider { height: 1px; background: #e2e8f0; margin: 4px 0; }
.cost-row.total { font-weight: 700; color: #c1440e; }
