.ttb-upc-overlay { position: fixed !important; inset: 0 !important; background: rgba(17,24,39,.58); z-index: 99999 !important; display: none; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.ttb-upc-overlay.is-open { display: flex !important; }
.ttb-upc-modal { width: 100%; max-width: 720px; background: #fff; border-radius: 18px; overflow: hidden; margin: auto 0; box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: ttbUpcIn .25s ease-out; }
@keyframes ttbUpcIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ttb-upc-head { background: #fff; padding: 18px 22px 16px; border-bottom: 4px solid #c1000f; display: flex; align-items: center; gap: 12px; }
.ttb-upc-head-l { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ttb-upc-icon { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg,#c1000f,#8b0000); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 3px 10px rgba(193,0,15,.28); }
.ttb-upc-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; color: #c1000f; text-transform: uppercase; }
.ttb-upc-h { font-size: 19px; font-weight: 900; color: #111827 !important; margin: 2px 0 0; letter-spacing: -.3px; }
.ttb-upc-close { background: #fff; border: 1.5px solid #e5e7eb; color: #6b7280; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.ttb-upc-close:hover { background: #fef2f2; color: #c1000f; border-color: #fee2e2; transform: rotate(90deg); }

.ttb-upc-body { max-height: 74vh; overflow-y: auto; padding: 18px 22px 22px; background: #f8f9fa; display: flex; flex-direction: column; gap: 10px; }
.ttb-upc-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; transition: transform .12s, box-shadow .12s, border-color .12s; }
.ttb-upc-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); border-color: #fee2e2; }
.ttb-upc-date { background: linear-gradient(135deg,#fef2f2,#fff); border: 1.5px solid #fee2e2; border-radius: 10px; padding: 8px 4px 6px; min-width: 62px; text-align: center; flex-shrink: 0; }
.ttb-upc-date-d { font-size: 22px; font-weight: 900; line-height: 1; color: #c1000f; display: block; letter-spacing: -.5px; font-family: 'Playfair Display', Georgia, serif; }
.ttb-upc-date-m { font-size: 10.5px; font-weight: 800; color: #c1000f; margin-top: 4px; letter-spacing: 1.4px; display: block; }
.ttb-upc-date-y { font-size: 9.5px; font-weight: 700; color: #6b7280; margin-top: 2px; display: block; letter-spacing: 1px; }
.ttb-upc-info { flex: 1; min-width: 0; }
.ttb-upc-name { font-size: 14px; font-weight: 900; color: #111827; line-height: 1.25; margin: 0 0 3px; }
.ttb-upc-meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #6b7280; }
.ttb-upc-meta svg { color: #c1000f; flex-shrink: 0; }
.ttb-upc-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.ttb-upc-btn-p, .ttb-upc-btn-s { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; text-decoration: none !important; letter-spacing: .3px; }
.ttb-upc-btn-p { background: linear-gradient(135deg,#16a34a,#15803d); color: #fff !important; }
.ttb-upc-btn-p:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,163,74,.3); }
.ttb-upc-btn-s { background: #fff; color: #c1000f !important; border: 1.5px solid #fee2e2; }
.ttb-upc-btn-s:hover { background: #fef2f2; }

@media (max-width: 640px) {
    .ttb-upc-head { padding: 14px 16px 12px; }
    .ttb-upc-h { font-size: 16px; }
    .ttb-upc-body { padding: 14px 14px 18px; }
    .ttb-upc-item { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
    .ttb-upc-date { min-width: 54px; padding: 6px 4px 5px; }
    .ttb-upc-date-d { font-size: 19px; }
    .ttb-upc-date-m { font-size: 10px; }
    .ttb-upc-date-y { font-size: 9px; }
    .ttb-upc-info { flex: 1 1 auto; min-width: 0; }
    .ttb-upc-name { font-size: 13px; }
    .ttb-upc-actions { flex: 1 1 100%; margin-top: 2px; }
    .ttb-upc-btn-p, .ttb-upc-btn-s { flex: 1; justify-content: center; padding: 8px 10px; font-size: 11.5px; }
}