.text-color-field {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    border: 1px solid rgba(15, 118, 106, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    overflow: visible;
}

.text-color-field:focus-within {
    border-color: rgba(15, 118, 106, 0.35);
    box-shadow: 0 0 0 2px rgba(15, 118, 106, 0.25);
}

.text-color-field input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
    color: #0f172a;
}

.text-color-field input[type="text"]:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.text-color-field .color-swatch {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.text-color-field .color-swatch::-webkit-color-swatch-wrapper {
    padding: 0;
}

.text-color-field .color-swatch::-webkit-color-swatch {
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.text-color-field .color-swatch::-moz-color-swatch {
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.text-color-field .color-swatch:focus {
    outline: none;
    box-shadow: none;
}

.text-color-field .color-split {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(15, 118, 106, 0.18);
    border-radius: 0;
    overflow: hidden;
    border-top: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
}

.text-color-field .format-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-left: 1px solid rgba(15, 118, 106, 0.18);
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.text-color-field .format-btn:focus {
    outline: none;
    box-shadow: none;
}

.text-color-field .format-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    padding: 0.75rem;
    min-width: 200px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.text-color-field .format-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.text-color-field .format-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-color-field .format-color .color-swatch {
    width: 52px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(15, 118, 106, 0.2);
}

.text-color-field .format-color .color-swatch::-webkit-color-swatch {
    border-radius: 6px;
}

.text-color-field .format-color .color-swatch::-moz-color-swatch {
    border-radius: 6px;
}

.text-color-field .format-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.7);
}

.text-color-field .format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.text-color-field .format-buttons button {
    border: 1px solid rgba(15, 118, 106, 0.2);
    background: rgba(15, 118, 106, 0.08);
    color: #0f172a;
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

.text-color-field .format-buttons button.is-active {
    background: rgba(15, 118, 106, 0.2);
    border-color: rgba(15, 118, 106, 0.45);
}

.text-color-field .format-buttons button:focus {
    outline: none;
}
