.damege-culc-type-value-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.damege-culc-type-value-button:disabled {
    background: #f8fafc;
    cursor: default;
}

.damege-culc-type-value-button:not(:disabled):hover {
    border-color: #9ca3af;
}

.damege-culc-type-value-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.damege-culc-type-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.4em;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.damege-culc-type-badge,
.damege-culc-type-chip {
    --type-color: #9ca3af;
    background: var(--type-color);
    color: #ffffff;
}

.damege-culc-type-badge[data-type-id="1"],
.damege-culc-type-chip[data-type-id="1"] { --type-color: #a8a878; }

.damege-culc-type-badge[data-type-id="2"],
.damege-culc-type-chip[data-type-id="2"] { --type-color: #f08030; }

.damege-culc-type-badge[data-type-id="3"],
.damege-culc-type-chip[data-type-id="3"] { --type-color: #6890f0; }

.damege-culc-type-badge[data-type-id="4"],
.damege-culc-type-chip[data-type-id="4"] { --type-color: #f8d030; }

.damege-culc-type-badge[data-type-id="5"],
.damege-culc-type-chip[data-type-id="5"] { --type-color: #78c850; }

.damege-culc-type-badge[data-type-id="6"],
.damege-culc-type-chip[data-type-id="6"] { --type-color: #98d8d8; }

.damege-culc-type-badge[data-type-id="7"],
.damege-culc-type-chip[data-type-id="7"] { --type-color: #c03028; }

.damege-culc-type-badge[data-type-id="8"],
.damege-culc-type-chip[data-type-id="8"] { --type-color: #a040a0; }

.damege-culc-type-badge[data-type-id="9"],
.damege-culc-type-chip[data-type-id="9"] { --type-color: #e0c068; }

.damege-culc-type-badge[data-type-id="10"],
.damege-culc-type-chip[data-type-id="10"] { --type-color: #a890f0; }

.damege-culc-type-badge[data-type-id="11"],
.damege-culc-type-chip[data-type-id="11"] { --type-color: #f85888; }

.damege-culc-type-badge[data-type-id="12"],
.damege-culc-type-chip[data-type-id="12"] { --type-color: #a8b820; }

.damege-culc-type-badge[data-type-id="13"],
.damege-culc-type-chip[data-type-id="13"] { --type-color: #b8a038; }

.damege-culc-type-badge[data-type-id="14"],
.damege-culc-type-chip[data-type-id="14"] { --type-color: #705898; }

.damege-culc-type-badge[data-type-id="15"],
.damege-culc-type-chip[data-type-id="15"] { --type-color: #7038f8; }

.damege-culc-type-badge[data-type-id="16"],
.damege-culc-type-chip[data-type-id="16"] { --type-color: #705848; }

.damege-culc-type-badge[data-type-id="17"],
.damege-culc-type-chip[data-type-id="17"] { --type-color: #b8b8d0; }

.damege-culc-type-badge[data-type-id="18"],
.damege-culc-type-chip[data-type-id="18"] { --type-color: #ee99ac; }

.damege-culc-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.damege-culc-type-badge[data-type-id="4"],
.damege-culc-type-badge[data-type-id="6"],
.damege-culc-type-badge[data-type-id="9"],
.damege-culc-type-badge[data-type-id="17"],
.damege-culc-type-chip[data-type-id="4"],
.damege-culc-type-chip[data-type-id="6"],
.damege-culc-type-chip[data-type-id="9"],
.damege-culc-type-chip[data-type-id="17"] {
    color: #1f2937;
    text-shadow: none;
}

.damege-culc-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .damege-culc-type-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.damege-culc-type-chip {
    position: relative;
    min-width: 0;
    padding: 0.5rem 0.25rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    opacity: 0.48;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    transition: opacity 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.damege-culc-type-chip[data-active="true"] {
    opacity: 1;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #111827;
}

.damege-culc-type-chip[data-active="true"]::after {
    content: "✓";
    position: absolute;
    top: -0.35rem;
    right: -0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
    text-shadow: none;
    pointer-events: none;
}

.damege-culc-type-overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.damege-culc-type-overlay-actions-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.damege-culc-type-overlay-side-button {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
}

.damege-culc-type-overlay-actions .overlay-confirm-button {
    width: 100%;
    max-width: none;
}
