.klb-account-dashboard { max-width:1100px; margin:32px auto; padding:0 20px; }
.klb-account-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:24px; margin:24px 0; }
.klb-account-card { display:flex; flex-direction:column; padding:28px; border:1px solid #e6ddd9; border-radius:12px; color:#292929; text-decoration:none; }
.klb-account-card h3 { font-size:21px; }
.klb-account-card p { flex:1; }
.klb-account-card:hover { border-color:#af3e26; }
.klb-account-card-btn { color:#af3e26; font-weight:600; }
.klb-account-card.is-disabled { opacity:.48; background:#f5f5f5; }
.klb-account-session { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; margin:8px 0 0; color:#555; font-size:15px; }
.klb-account-logout { color:#af3e26; font-weight:600; text-decoration:underline; }
.klb-community-header-dropdown [aria-disabled="true"] { display:block; padding:10px 16px; opacity:.45; cursor:default; }
.klb-venue-edit-form { max-width:860px; margin:24px auto; }
.klb-venue-field { margin-bottom:20px; }
.klb-venue-edit-notice { padding:16px; background:#fff7ef; border-left:4px solid #af3e26; margin:16px 0; }
.klb-venue-edit-notice.is-success { background:#eff8ef; border-color:#35783f; }
.klb-venue-edit-form button[type="submit"], .tribe-community-events .button, .tribe-community-events button:not(.select2-search-choice-close), .tribe-community-events input[type="submit"], .tribe-community-events .tribe-button { background:#af3e26; border-color:#af3e26; color:white; border-radius:5px; }
.tribe-community-events { width:100%; margin:24px auto; padding:0; }
body.tribe_community_edit .tribe-community-events { padding:24px 28px; box-sizing:border-box; }
@media (max-width:600px) { body.tribe_community_edit .tribe-community-events { padding:16px; } }
.tribe-community-events table { width:100%; margin-left:0; }
.tribe-community-events td, .tribe-community-events th { padding:12px; vertical-align:top; }
.tribe-community-events td a { color:#af3e26; }
.klb-event-edit-link { display:inline-block; margin-top:8px; text-decoration:underline; font-size:14px; }
body.tribe_community_list .tribe-community-events-content .tribe-button-primary,
body.tribe_community_list .tribe-community-events-content .tribe-button-active { background: #af3e26 !important; border-color: #af3e26 !important; color: #fff; border-radius: 5px; }
body.tribe_community_list .tribe-community-events-content .add-new { margin-left: 0; }
body.tribe_community_list .tribe-responsive-table-container { max-width: 100%; overflow-x: auto; }
body.tribe_community_list table.tribe-community-events-list { width: 100% !important; table-layout: fixed; }
body.tribe_community_list .tribe-community-events-list th { font-size: 11px; letter-spacing: 0; }
body.tribe_community_list .tribe-community-events-list th,
body.tribe_community_list .tribe-community-events-list td { padding: 12px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; vertical-align: top; }
body.tribe_community_list .tribe-community-events-list .column-header-status { width: 12% !important; }
body.tribe_community_list .tribe-community-events-list .column-header-title { width: 24% !important; }
body.tribe_community_list .tribe-community-events-list .column-header-venue { width: 18% !important; }
body.tribe_community_list .tribe-community-events-list .column-header-start_date,
body.tribe_community_list .tribe-community-events-list .column-header-end_date { width: 14% !important; }
body.tribe_community_list .tribe-community-events-list .column-header-category { width: 12% !important; }
body.tribe_community_list .tribe-community-events-list .column-header-recurring { width: 6% !important; }
body.tribe_community_list .tribe-community-events-list td a { color: #af3e26; }
.klb-event-status { font-size: 12px; }
@media(max-width:767px) { body.tribe_community_list table.tribe-community-events-list { min-width: 740px; } }
.klb-upload-preview { margin:12px 0; }
.klb-upload-preview img { display:block; max-width:100%; width:auto; max-height:260px; object-fit:contain; margin-bottom:8px; }
.klb-upload-preview button { font-size:13px; }
.klb-upload-error { display:flex; align-items:flex-start; gap:12px; margin:12px 0 0; padding:14px !important; color:#7f1d1d; background:#fef2f2; border:1px solid #f87171; border-radius:8px; line-height:1.45; }
.klb-upload-error::before { content:"!"; flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:#af3e26; color:#fff; font-weight:700; font-size:14px; line-height:22px; text-align:center; }
[hidden] { display:none !important; }
@media(max-width:600px) { .tribe-community-events .events-community-post-content { overflow-x:auto; } .klb-account-dashboard { padding:0; } }

/* Native date inputs remain editable after moving them into the KLB grid. */
#klb-event-form .klb-datetime-field { display: flex; align-items: center; min-width: 0; }
#klb-event-form .klb-datetime-field input { min-width: 0; }
#klb-event-form .klb-datetime-grid .ui-datepicker-trigger { flex-shrink: 0; margin: 0 0 0 8px; padding: 5px 10px; min-height: 30px; font-size: 12px; }
body.tribe_community_edit #ui-datepicker-div .ui-datepicker-header { height: auto; min-height: 38px; }
body.tribe_community_edit #ui-datepicker-div .ui-datepicker-title { display: flex; justify-content: center; align-items: center; gap: 4px; }
body.tribe_community_edit #ui-datepicker-div .ui-datepicker-title select { display: inline-block; width: auto; min-width: 0; max-width: 65%; height: 32px; margin: 0; font-size: 14px; }
body.tribe_community_edit #ui-datepicker-div .ui-state-active { background: #af3e26; border-color: #af3e26; color: #fff; }
