.ops-product {
    --orange: #003018;
    --orange-hover: #002414;
    --orange-pressed: #00150c;
    --danger: #C62828;
    --danger-hover: #B71C1C;
    --danger-pressed: #8E0000;
    --dark: #0b0b0b;
    --accent: #e8b800;
    --warning: #F5C518;
    --gray: #8a8a8a;
    --light: #f3f3f3;
    --white: #ffffff;
    --green: #39FF14;
    --dot-off: #d2d0d1;
    --secondary-pressed: #E8EEE9;
    --font: "Segoe UI", Tahoma, sans-serif;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ops-product .app-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ops-product .product-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    padding: 10px 20px;
    background: var(--white);
    border-bottom: 1px solid #ececec;
    flex-shrink: 0;
}

.ops-product .product-bar .brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-self: start;
}

.ops-product .product-bar .brand-name {
    color: var(--dark);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.ops-product .product-bar .brand-admin {
    margin-top: 0;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
}

.ops-product .product-bar .mode-label {
    justify-self: center;
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 700;
}

.ops-product .product-bar .service-status {
    justify-self: end;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.ops-product .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
}

.ops-product .dot.ok { background: var(--green); }
.ops-product .dot.warn { background: var(--warning); }
.ops-product .dot.off { background: var(--danger); }

.ops-product .workspace {
    padding: 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    min-height: 0;
    flex: 1;
}

.ops-product .card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 16px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ops-product .side-title {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
}

.ops-product .side-sub {
    margin: 0 0 16px;
    font-size: 0.75rem;
    color: var(--orange);
}

.ops-product .channel-list {
    flex: 1;
    overflow: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.ops-product .channel-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    background: transparent;
}

.ops-product .channel-item:hover { background: var(--light); }

.ops-product .channel-item.selected {
    background: var(--orange);
    color: var(--white);
}

.ops-product .channel-item.selected .meta,
.ops-product .channel-item.selected .hint {
    color: rgba(255,255,255,0.9);
}

.ops-product .dots-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.ops-product .dot-lg {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ops-product .dot-active { background: var(--green); }
.ops-product .dot-inactive { background: var(--dot-off); }
.ops-product .dot-warn { background: var(--warning); }

.ops-product .ch-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 2px;
}

.ops-product .ch-name.inactive-weight { font-weight: 400; }

.ops-product .hint {
    font-size: 0.7rem;
    opacity: 0.72;
    margin: 0 0 4px;
}

.ops-product .meta {
    font-size: 0.7rem;
    color: var(--gray);
    margin: 0;
}

.ops-product .live-pill {
    background: var(--green);
    color: var(--dark);
    font-size: 0.56rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.ops-product .live-pill.hung {
    background: var(--warning);
    color: var(--dark);
}

.ops-product .live-pill.system {
    background: #eceff1;
    color: #455a64;
}

.ops-product .side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.ops-product .btn {
    border-radius: 6px;
    height: 42px;
    padding: 0 14px;
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.875rem;
}

.ops-product .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ops-product .btn i {
    font-size: 1em;
    line-height: 1;
}

.ops-product .btn-secondary {
    background: var(--white);
    color: var(--orange);
    border-color: var(--orange);
}

.ops-product .btn-secondary:hover:not(:disabled) { background: var(--light); }

.ops-product .btn-secondary:active:not(:disabled) { background: var(--secondary-pressed); }

.ops-product .btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.ops-product .btn-danger:hover:not(:disabled) { background: var(--danger-hover); border-color: var(--danger-hover); }

.ops-product .btn-danger:active:not(:disabled) { background: var(--danger-pressed); border-color: var(--danger-pressed); }

.ops-product .main-card {
    padding: 12px 16px 16px;
}

.ops-product .section-title {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
}

.ops-product .section-sub {
    margin: -10px 0 16px;
    font-size: 0.75rem;
    color: var(--orange);
}

.ops-product .main-card .meta {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.ops-product .main-card .hint {
    font-size: 0.875rem;
    opacity: 1;
    margin: 0;
    color: var(--gray);
}

.ops-product .empty-state {
    background: var(--light);
    border-radius: 6px;
    padding: 48px 32px;
    text-align: center;
}

.ops-product .empty-state .icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.ops-product .empty-state strong { display: block; margin-bottom: 4px; }
.ops-product .empty-state p { margin: 0; color: var(--orange); font-size: 0.9rem; }
.ops-product .channel-list .empty-state.list-empty { padding: 24px 12px; }

.ops-product .footerbar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ops-product .msg {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
}

.ops-product .msg-error { background: #ffebee; color: #b71c1c; }
.ops-product .msg-ok { background: #eaf7ee; color: #155724; }

.ops-product .confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 11, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.ops-product .confirm-dialog {
    background: var(--white);
    border: 2px solid var(--orange);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    width: min(450px, 100%);
    max-width: 450px;
    padding: 20px;
}

.ops-product .confirm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ops-product .confirm-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--danger);
}

.ops-product .confirm-close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.ops-product .confirm-close:hover {
    background: var(--light);
    color: var(--danger);
}

.ops-product .confirm-message {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.45;
}

.ops-product .confirm-instruction {
    margin: 0 0 4px;
    font-size: 0.78rem;
    color: var(--dark);
    font-weight: 500;
}

.ops-product .confirm-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 20px;
}

.ops-product .confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ops-product .confirm-busy {
    margin: 12px 0 0;
    text-align: center;
    color: var(--orange);
    font-weight: 600;
}

@media (max-width: 980px) {
    .ops-product .workspace { grid-template-columns: 1fr; }
}
