#cytograph-wrap {
    margin: 12px 0;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

#ticket-cy-container {
    width: 100%;
    height: calc(100vh - 360px);
    min-height: 480px;
    background: #ffffff;
}

#cytograph-toolbar {
    padding: 5px 10px;
    background: #f2f2f2;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

#cytograph-toolbar button {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.6;
    color: #333;
}

#cytograph-toolbar button:hover {
    background: #e8e8e8;
    border-color: #999;
}

#cytograph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 8px;
}

/* Inline ticket widget */
.cytograph-widget-panel {
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.cytograph-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #f2f2f2;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 13px;
}

.cytograph-fullgraph-link {
    font-weight: normal;
    font-size: 12px;
}

#ticket-cy-inline {
    width: 100%;
    height: 320px;
    background: #ffffff;
}

.cytograph-legend-item {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    border: 2px solid transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}
