.tabbed-panel-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.panel-header-tabs {
    padding: 0;
    margin: 0;
    border-bottom: none;
    display: flex;
    align-items: flex-end;
    width: 100%;

    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: var(--bg-header-tabs);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    position: relative;
    transition: color 0.2s;
    z-index: 1;

    background: transparent;
    color: var(--text-dim);

    border-radius: 12px 12px 0 0;
    border: none;
}

.tab-btn:hover {
    color: var(--text-main);
    background: var(--border-lighter);
}

.tab-btn.active {
    color: var(--text-pure);
    z-index: 10;
    background: rgba(var(--bg-panel-rgb), 0.7);
    opacity: 1;
}

.tab-btn.active::before,
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    z-index: 2;
    display: none;
}

.tab-btn.active:not(:first-child)::before {
    display: block;
    left: -20px;
    background-image: radial-gradient(circle at 0 0, transparent 20px, rgba(var(--bg-panel-rgb), 0.7) 20px);
}

.tab-btn.active:not(:last-child)::after {
    display: block;
    right: -20px;
    background-image: radial-gradient(circle at 100% 0, transparent 20px, rgba(var(--bg-panel-rgb), 0.7) 20px);
}

.tab-content { display: none; flex-direction: column; flex: 1; min-height: 0; animation: fadeIn 0.2s ease-out; }
.tab-content.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }