/* ----------------------------------------------------------
   Existing Poll Styles
---------------------------------------------------------- */
.cw-poll {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cw-poll-title {
    font-weight: 900;
    color: var(--cw-text, #2c3e50);
    margin-bottom: 10px;
    opacity: .9;
}

/* Default (Desktop) - Force single line */
.cw-poll-pills {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.cw-pill {
    appearance: none;
    border: 1px solid rgba(44, 62, 80, 0.14);
    background: #fff;
    color: var(--cw-text, #2c3e50);
    padding: 8px 4px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: transform .05s ease, background .15s ease, border-color .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-pill:active {
    transform: translateY(1px);
}

.cw-pill.is-selected {
    background: rgba(74, 144, 226, 0.10);
    border-color: rgba(74, 144, 226, 0.45);
}

.cw-pill.is-disabled {
    opacity: .55;
    cursor: default;
}

/* Mobile (max-width: 600px approx) - Vertical Stack */
@media (max-width: 600px) {
    .cw-poll-pills {
        flex-direction: column;
        gap: 10px;
    }

    .cw-pill {
        width: 100%;
        flex: auto;
        padding: 8px 12px;
    }
}

.cw-poll-meta {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.cw-poll-result {
    margin-top: 0;
}

.cw-poll-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.cw-poll-label {
    width: 7.2em;
    font-weight: 800;
    opacity: .85;
}

.cw-poll-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    overflow: hidden;
}

.cw-poll-bar>i {
    display: block;
    height: 100%;
    width: 0%;
    background: rgba(74, 144, 226, 0.55);
    border-radius: 999px;
}

.cw-poll-pct {
    width: 3.8em;
    text-align: right;
    font-weight: 900;
    opacity: .75;
}

/* ----------------------------------------------------------
   Answer View Stats Styles (難問ランキング)
---------------------------------------------------------- */
#cw-view-stats {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.cw-stats-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #666;
    margin-bottom: 12px;
}

.cw-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Label Group for Clue Text */
.cw-stats-label-group {
    width: 25%;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

/* Clueがない場合（Mainichi等）は幅を自動調整 */
.cw-stats-label-group:has(.cw-stats-label-main:only-child) {
    width: auto;
    min-width: auto;
}

.cw-stats-label-main {
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
}

.cw-stats-clue {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cw-stats-bar-wrap {
    flex: 1;
    background: #f0f2f5;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    align-self: flex-end;
    margin-bottom: 5px;
}

.cw-stats-bar {
    height: 100%;
    background: #ff9800;
    border-radius: 4px;
    min-width: 2px;
}

/* Note style (Below graph, smaller, right-aligned) */
.cw-stats-note {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    text-align: right;
}