#textAdvancedPanel .text-advanced-heading { margin-bottom: 10px; color: #1e293b; font-size: 13px; }
#textAdvancedPanel .text-advanced-help { margin: 0 0 18px; color: #78869a; font: 400 11px/1.7 'Montserrat', sans-serif; }
#textAdvancedPanel .text-advanced-field-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
#textAdvancedPanel .text-advanced-field-label svg { width: 18px; height: 18px; flex: 0 0 18px; color: #0051BB; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#textAdvancedPanel .text-advanced-label { margin: 24px 0 7px; color: #26364d; font-size: 12px; font-weight: 600; }
#textAdvancedPanel .text-advanced-align, #textAdvancedPanel .text-curve-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#textAdvancedPanel .text-advanced-align button, #textAdvancedPanel .text-curve-modes button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; min-width: 0; min-height: 68px; padding: 10px 5px;
    border: 1px solid #dfe6ef !important; border-radius: 11px; background: #fff;
    color: #4c5e77; font-size: 10px !important; font-weight: 500; line-height: 1.4;
    box-shadow: none; transform: none;
}
#textAdvancedPanel .text-advanced-align svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#textAdvancedPanel .text-curve-modes svg { width: 30px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
#textAdvancedPanel .text-advanced-align button:hover, #textAdvancedPanel .text-curve-modes button:hover { border-color: #0051BB !important; background: #fff; color: #0051BB; box-shadow: none; transform: none; }
#textAdvancedPanel .text-curve-modes button.active { border-color: #0051BB !important; background: #0051BB; color: #fff; box-shadow: none; transform: none; }
#textAdvancedPanel .text-advanced-reset { min-height: 34px; padding: 6px 9px; border: 1px solid #dfe6ef; border-radius: 8px; background: #fff; color: #0051BB; font-size: 10px; }
#textAdvancedPanel .text-advanced-reset:hover { border-color: #0051BB; background: #fff; }
#textAdvancedPanel :is(button,input):focus-visible { outline: 2px solid #0051BB; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    #textAdvancedPanel button { transition: none; }
}
