#palleon-text-input {
    width: 100% !important;
    min-height: 120px !important;
    resize: vertical !important;
    line-height: 1.45 !important;
}

/* Users should only see their own uploads. Admins retain the complete library. */
#library-all-images,
[data-target="#library-all-images"] {
    display: none !important;
}

#palleon-icon-menu [data-target="#palleon-frames"],
#palleon-frames {
    display: none !important;
}

.tbef-asset-warning {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100000;
    max-width: min(90vw, 520px);
    transform: translateX(-50%);
    padding: 11px 16px;
    border-radius: 8px;
    background: #242932;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
}

@media (max-width: 767px) {
    #palleon-text-input { min-height: 105px !important; }
}

/* Keep Fabric's Canva-style selection frame crisp above the artwork. */
.upper-canvas { touch-action: none; }

/* Professional, separated image controls. Add-on panels use the same visual
   language without changing their existing event handlers. */
.tbef-image-section,#tb-bg-panel,#tb-retouch-panel{margin:0 0 12px!important;padding:13px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:10px!important;background:rgba(255,255,255,.035)!important;box-shadow:0 4px 14px rgba(0,0,0,.08)!important;box-sizing:border-box}
.tbef-image-section-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#f3f4f6;font-size:13px;font-weight:700}
.tbef-image-section-title .material-icons{color:#ff6a00;font-size:18px}
.tbef-image-section>.palleon-control-wrap:first-of-type{margin-top:0}.tbef-image-section>.palleon-control-wrap:last-child{margin-bottom:0}
#tb-bg-panel .tb-bg-title,#tb-retouch-panel .tb-retouch-title{color:#f3f4f6!important;font-size:13px!important;letter-spacing:.01em!important}
#tb-bg-panel .tb-bg-title .material-icons,#tb-retouch-panel .tb-retouch-title .material-icons{color:#ff6a00!important}
@media(max-width:767px){.tbef-image-section,#tb-bg-panel,#tb-retouch-panel{padding:11px!important}}

/* Layer-aware brush controls. */
#tbef-eraser-modes button{min-height:30px;padding:5px 8px;border:1px solid #5d6974;border-radius:5px;background:#232e37;color:#fff;cursor:pointer;font-size:11px}
#tbef-eraser-modes button:hover,#tbef-eraser-modes button.active{border-color:#ff6a00;color:#ffb57d}
.tbef-tool-actions{display:flex;gap:7px;flex-wrap:wrap}
#tbef-eraser-modes{padding:10px 0;color:#e3e8ec;font-size:12px}
#tbef-eraser-modes[hidden]{display:none}
#tbef-eraser-modes label{display:block;margin-bottom:8px;font-weight:600}
#tbef-eraser-modes small{display:block;margin-top:8px;color:#aebcc6;line-height:1.4}
#palleon-download-as-json{display:none!important}
