.dock-portal-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.stage-selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.stage-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.stage-meta-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 6px;
}

.stage-portal-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stage-portal-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 800px;
}

.carrier-truck-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 16px;
}

.truck-icon {
    font-size: 1.6rem;
}

.truck-plate {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.truck-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.checkpoint-pills-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

@media (max-width: 900px) {
    .checkpoint-pills-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkpoint-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.checkpoint-pill:hover {
    background: var(--table-hover);
    border-color: var(--text-muted);
}

.checkpoint-pill.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.pill-code {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.pill-text {
    display: flex;
    flex-direction: column;
}

.pill-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pill-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Scanner Grid */
.portal-scanner-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .portal-scanner-grid {
        grid-template-columns: 1fr;
    }
}

.portal-control-card, .portal-feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.card-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.status-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 6px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulse 1.8s infinite;
}

.giant-counter-box {
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px 16px;
}

.counter-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.counter-number {
    font-size: 4.8rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.1;
    margin: 6px 0;
}

.counter-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.antenna-meters-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meters-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.meters-freq {
    color: #10b981;
}

.antenna-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ant-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ant-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ant-meter-bg {
    width: 100%;
    height: 36px;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 2px;
}

.ant-meter-fill {
    width: 100%;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.ant-val {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-primary);
}

.manifest-card-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manifest-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
}

.manifest-prog-track {
    height: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.manifest-prog-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.manifest-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.scan-input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scan-input-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.wedge-input-box {
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.wedge-input-box:focus {
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.35);
}

.demo-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-demo-action {
    flex: 1;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-demo-action:hover {
    background: #1d4ed8;
}

.btn-demo-action.secondary {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-demo-action.reset {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* Right Panel Feed */
.cat-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cat-section-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.cat-count-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.cat-count-badge.green {
    color: #10b981;
}

.cat-pill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-item-pill {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
}

.cat-name {
    color: var(--text-primary);
    font-weight: 600;
}

.cat-qty {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--accent-primary);
}

.stream-table-wrap {
    max-height: 480px;
    overflow-y: auto;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.portal-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-toggle-btn:hover {
    background: var(--table-hover);
}

.audio-toggle-btn.muted {
    color: var(--text-muted);
    opacity: 0.75;
}

.stream-table-wrap table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 5;
}
