.tool-shell-toolbar {
    padding: 0.65rem 0.75rem 0.45rem;
    border-bottom: 1px solid #242424;
}

.tool-shell-search {
    width: 100%;
    min-width: 0;
    height: 2.2rem;
    padding: 0 0.7rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    color: #eee;
}

.tool-shell-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.tool-shell-modes button {
    min-width: 0;
    height: 1.85rem;
    padding: 0 0.35rem;
    border: 1px solid #303030;
    border-radius: 4px;
    background: transparent;
    color: #888;
    font-size: 0.75rem;
}

.tool-shell-modes button.active {
    border-color: #777;
    color: #eee;
    background: #202020;
}

.tool-favorite {
    flex: 0 0 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 1rem;
    line-height: 1;
}

.tool-favorite.active {
    color: #f3d36a;
}

#toolList li:not(.ai-tools-only) .lock-icon,
.tool-panel:not(.ai-tools-only) .login-overlay {
    display: none !important;
}

.tool-favorite + .lock-icon {
    margin-left: 0.25rem;
}

.tool-list li .tool-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suite-workbench {
    display: grid;
    gap: 0.9rem;
}

.suite-toolbar,
.suite-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.suite-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #aaa;
    font-size: 0.85rem;
}

.suite-toolbar input,
.suite-toolbar select {
    width: auto;
    min-width: 7rem;
}

.suite-tabs button.active {
    border-color: #aaa;
    color: #fff;
    background: #252525;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.suite-section {
    min-width: 0;
    padding-top: 0.8rem;
    border-top: 1px solid #292929;
}

.suite-section h3 {
    margin: 0 0 0.65rem;
    color: #ddd;
    font-size: 0.95rem;
    font-weight: 400;
}

.suite-output {
    min-height: 3rem;
    padding: 0.75rem;
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    background: #101010;
    color: #ccc;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.suite-output[data-state="error"] { color: #f88; }
.suite-output[data-state="success"] { color: #8f8; }
.suite-output[data-state="working"] { color: #ff8; }

.suite-table-wrap {
    max-width: 100%;
    overflow: auto;
    border: 1px solid #292929;
}

.suite-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.suite-table th,
.suite-table td {
    max-width: 18rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #292929;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suite-table th {
    position: sticky;
    top: 0;
    background: #1b1b1b;
    color: #ddd;
}

.suite-file-list {
    display: grid;
    gap: 0.45rem;
}

.suite-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #242424;
}

.suite-file-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.suite-canvas {
    display: block;
    width: 100%;
    max-height: 34rem;
    object-fit: contain;
    background: #0c0c0c;
    border: 1px solid #2b2b2b;
}

.suite-hidden { display: none !important; }

.tool-load-status {
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--ui-line);
    border-radius: 8px;
    color: var(--ui-muted);
    background: var(--ui-surface-soft);
    font-size: 0.82rem;
}
.tool-load-status[data-state="working"] { color: var(--ui-accent); }
.tool-load-status[data-state="error"] { color: var(--ui-danger); }

@media (max-width: 700px) {
    .tool-shell-toolbar {
        width: 15rem;
        flex: 0 0 15rem;
        border-right: 1px solid #242424;
        border-bottom: 0;
    }

    .suite-grid {
        grid-template-columns: 1fr;
    }

    .suite-toolbar {
        align-items: stretch;
    }

    .suite-toolbar label {
        width: 100%;
        justify-content: space-between;
    }

    .suite-toolbar input,
    .suite-toolbar select {
        min-width: 0;
        flex: 1;
    }
}
