/* =======================================================
   MOC UI ADMIN — CLEANED & ORGANIZED
   =======================================================
   Sections:
   1. Global vars & base
   2. Unified nav (desktop + mobile)
   3. More drawer
   4. Calendar (single + main wrappers)
   5. Messages, threads, inbox
   6. OTA matrix view
   7. Booking pills
   8. Layout utilities (grids, flex, gaps)
   9. Mini calendar (mc-)
   10. Buttons, pills, badges
   11. Accordions, pages, work pane
   12. Dashboards, stats, metrics
   13. Sidebars
   14. Modal shell
   15. Media upload, manager, gallery
   16. Threads & messaging composer
   17. Toolbar, table rows, generic-users
   18. moc-calendar (full month grid)
   19. Header / dashboard-header
   20. Property dashboard
   21. Filter panel & modern media cards
   22. Action dock, popover
   23. Media manager (alt)
   24. Media split view (uploader)
   25. Stat tab btn
   26. Command center grid
   27. Payment card
   28. Smart toolbar, sheet modal
   29. Generic grid buttons
   30. Mobile/desktop trigger flips
   31. Hero fading groups + 3-col grid
   32. Event grids
   33. Search results dropdown
   34. Autos dashboard
   35. Campaigns UI
   36. User console campaigns card
   37. Universal Dashboard V3 (uv3-)
   38. Pulse strip + drawer + mini week
   39. More drawer grouped list
   40. Nav FAB buttons
   41. Mobile responsive overrides (LAST — wins cascade)
   ======================================================= */


/* ============================================
   1. GLOBAL VARIABLES & BASE
   ============================================ */
:root {
    --h: 60px;
    --gap: clamp(8px, 1.2vw, 16px);
    --radius: 8px;
    --row-height-modern: 70px;
    --header-height: 70px;
    --cell-width: 65px;
    --sidebar-width: 200px;
    --row-height: 40px;
    --pill-height: 28px;
    --moc-green: #157575;
    --moc-orange: #F26C36;
    --primary: #157575;
    --secondary: #0b4a5a;
    --accent: #f39c12;
    --ink: #1b2327;
    --ink-2: #5e6b72;
    --ink-grey: #808080;
    --text-main: #333333;
    --text-muted: #888888;
    --paper: #fff;
    --bg: #f7f9fa;
    --bg-light: #f4f5f7;
    --surface: #ffffff;
    --line: #e7edf0;
    --border: #e2e8f0;
    --grid-border: #f0f0f0;
    --booked-color: #2ecc71;
    --closed-color: #444;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-2: 0 12px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    background-color: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
}
.form-group { margin-bottom: .5rem !important; }


/* ============================================
   2. UNIFIED NAV BAR (DESKTOP)
   ============================================ */
.moc-unified-nav {
    position: fixed; top: 15px; left: 20px; right: 20px;
    background: #ffffff;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 20px;
    z-index: 10500;
}
.moc-unified-nav .nav-group { display: flex; align-items: center; gap: 4px; }
.moc-unified-nav .nav-left { justify-self: start; display: flex; }
.moc-unified-nav .nav-center { justify-self: center; gap: 6px !important; display: flex; }
.moc-unified-nav .nav-right { justify-self: end; gap: 8px; display: flex; }
.moc-unified-nav .drawer-item { gap: 0 !important; }
.moc-unified-nav .nav-left .menu-wrapper {
    display: flex;
    align-items: flex-start;
}
.moc-unified-nav .icon-btn-150 {
    width: auto !important; min-width: 50px; padding: 4px !important; margin: 0 !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    background: transparent !important; border: none !important; box-shadow: none !important;
    text-decoration: none;
}
.moc-unified-nav .icon-circle {
    width: 36px !important; height: 36px !important; border-radius: 50% !important;
    background: #fff !important; border: 1px solid transparent !important;
    display: flex !important; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #475569; transition: 0.2s; box-shadow: none !important;
}
.moc-unified-nav .drawer-item:hover .icon-circle {
    background: #f1f5f9 !important; color: var(--moc-green) !important;
}
.moc-unified-nav .dock-label {
    font-size: 0.65rem; font-weight: 800; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Generic nav helpers (used elsewhere) */
.nav-section { display: flex; align-items: center; gap: 5px; }
.center-search { flex: 1; justify-content: center; max-width: 600px; margin: 0 auto; gap: 15px; }
.nav-search-wrapper { position: relative; max-width: 350px; }
.nav-search-input { width: 100%; padding: 10px 15px 10px 35px; border-radius: 20px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 0.9rem; outline: none; transition: 0.2s; color: #333; }
.nav-search-input:focus { border-color: var(--moc-orange); background: #fff; box-shadow: 0 0 0 3px rgba(242,108,54,0.1); }
.nav-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.9rem; }
.nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #475569; padding: 4px 10px; border-radius: 12px; min-width: 55px; transition: 0.2s; border: 1px solid transparent; }
.nav-btn:hover { background: #f1f5f9; color: var(--moc-green); }
.nav-btn i { font-size: 1.2rem; margin-bottom: 3px; }
.nav-btn span { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-icon-circle { width: 42px; height: 42px; border-radius: 50%; background: #f1f5f9; color: #64748b; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.2rem; transition: 0.2s; border: 1px solid transparent; }
.nav-icon-circle:hover { background: #e2e8f0; color: #0f2a24; }
.nav-icon-only { width: 38px; height: 38px; border-radius: 50%; background: #f8fafc; color: #64748b; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.1rem; transition: 0.2s; border: 1px solid transparent; cursor: pointer; }
.nav-icon-only:hover { background: #e2e8f0; color: var(--moc-green); }

/* Visibility helpers */
.show-mobile-only { display: none !important; }
.nav-desktop-only { display: flex; }
.nav-mobile-only { display: none !important; }
.desktop-hide { display: none !important; }
.nav-mobile-search-overlay { display: none !important;; }
.drawer-item .btn-icon { position: relative; }

.nav-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--moc-orange);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;   /* white ring so it pops off the circle */
    pointer-events: none;          /* badge never eats the circle's click */
}
/* ============================================
   3. MORE DRAWER (sidebar)
   ============================================ */
.admin-sidebar {
    position: absolute; top: calc(100% + 20px); left: 0; right: auto;
    width: 360px; max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px -10px rgba(0,0,0,0.15);
    z-index: 100;
    transform-origin: top left;
}
.admin-sidebar.popup-container { min-width: 460px; max-width: 95vw; }

.more-menu-header { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; letter-spacing: 0.5px; padding: 15px 20px 10px; margin: 0; }
.more-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 15px 15px; }
.more-app-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; border-radius: 12px; cursor: pointer; text-decoration: none; transition: all 0.2s ease; border: 1px solid transparent; background: #fff; }
.more-app-card:hover { background: #f8fafc; border-color: #e2e8f0; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.app-icon-wrap { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 8px; transition: 0.2s; }
.more-app-card:hover .app-icon-wrap { transform: scale(1.05); }
.app-label { font-size: 0.65rem; font-weight: 700; color: #334155; text-align: center; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.3px; }

.ic-blue { background: #eff6ff; color: #3b82f6; }
.ic-green { background: #f0fdf4; color: #22c55e; }
.ic-orange { background: #fff7ed; color: #f97316; }
.ic-purple { background: #faf5ff; color: #a855f7; }
.ic-slate { background: #f1f5f9; color: #64748b; }
.ic-rose { background: #fff1f2; color: #e11d48; }

.more-menu-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 0 0 16px 16px;
    width: 100%;
    box-sizing: border-box;
}
.utility-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
}
.utility-flex .util-circle {
    flex-shrink: 0;
}

.util-circle img { width: 16px; height: 16px; object-fit: contain; }
.util-circle:hover { border-color: #cbd5e1; transform: translateY(-2px); color: #0f2a24; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }

/* MORE drawer 2-col grouped list */
.more-drawer-groups { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 8px 12px; }
.more-drawer-group { padding: 6px 0; break-inside: avoid; }
.more-drawer-group-header { font-size: 0.65rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; margin-top: 4px; }
.more-drawer-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 44px; text-decoration: none; font-size: 0.95rem; font-weight: 700; color: #334155; transition: background 0.15s; border-radius: 8px; }
.more-drawer-link:hover { background: #f1f5f9; color: var(--primary, #0f2a24); text-decoration: none; }
.more-drawer-link .mdl-icon { width: 22px; color: #64748b; font-size: 1.05rem; text-align: center; }
.more-drawer-link:hover .mdl-icon { color: var(--primary, #0f2a24); }
.more-drawer-divider { height: 1px; background: #e2e8f0; margin: 6px 12px; }
.util-item { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; text-decoration: none; cursor: pointer; }
.util-item:hover { text-decoration: none; }
.util-item:hover .util-circle { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.util-item:hover .util-label { color: var(--moc-green); }
.util-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; line-height: 1; white-space: nowrap; }
/* More drawer doc links: Google colors by type (holding pen) */
/* Google-doc-type icon colors (Drive folder / Sheet / Doc) */
.gd-folder { color: #F4B400; }
.gd-sheet  { color: #0F9D58; }
.gd-doc    { color: #4285F4; }
/* Second dock row (team docs) under the utility strip */
.utility-flex-docs { margin-top: 10px; padding-top: 10px; padding-left: 10px; padding-right: 10px; border-top: 1px solid #e2e8f0; }
.admin-sidebar .more-drawer-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.admin-sidebar .more-drawer-divider { grid-column: 1 / -1; }
@media (max-width: 768px) {
    .admin-sidebar .more-drawer-groups { grid-template-columns: 1fr; }
}
/* ============================================
   4. CALENDAR — SINGLE + MAIN WRAPPERS
   ============================================ */
.single-cal-wrapper .months-grid-wrapper { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.single-cal-wrapper .cal-row,
.single-cal-wrapper .day-names-row { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; width: 100% !important; border-bottom: none !important; }
.single-cal-wrapper .day-names-row { background: #f9f9f9; border-bottom: 1px solid #e0e0e0; padding: 5px 0; }
.single-cal-wrapper .day-name-cell { text-align: center; font-size: 0.75rem; font-weight: 600; color: #999; }
.single-cal-wrapper .cal-cell.single-cell { width: auto !important; height: 75px !important; border-right: 1px solid #f0f0f0 !important; border-bottom: 1px solid #f0f0f0 !important; background: #fff !important; padding: 0 !important; position: relative; }
.single-cal-wrapper .cal-row > .single-cell:nth-child(7n) { border-right: none !important; }
.single-cal-wrapper .cal-cell-inner { display: flex !important; flex-direction: column !important; justify-content: space-between !important; height: 100%; width: 100%; padding: 4px 0; }
.single-cal-wrapper .cell-date-num { text-align: right; font-size: 0.85rem; color: #333; padding-right: 6px; line-height: 1; margin-bottom: 0 !important; }
.single-cal-wrapper .booking-layer.single-view-layer { position: relative !important; top: auto !important; left: auto !important; height: 20px; width: 100%; display: flex; align-items: center; z-index: 10; margin: auto 0; pointer-events: none; }
.daily-data.single-view-price { text-align: right; font-size: 0.75rem; color: #333; font-weight: bold; padding-right: 6px; margin-top: 0; cursor: pointer; line-height: 1; }
.single-cal-wrapper .half-cell { flex: 1; height: 100%; min-width: 0; pointer-events: none; }
.single-cal-wrapper .booking-pill { height: 18px !important; width: 100%; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer !important; pointer-events: auto !important; position: relative; z-index: 20; box-shadow: none; }
.single-cal-wrapper .pill-start { border-radius: 4px 0 0 4px; margin-left: 2px; }
.single-cal-wrapper .pill-end { border-radius: 0 4px 4px 0; margin-right: 2px; }
.single-cal-wrapper .pill-mid { border-radius: 0; }
@media (max-width: 1200px) { .single-cal-wrapper .months-grid-wrapper { grid-template-columns: 1fr; } }

.calendar-wrapper { display: flex; flex-direction: column; width: 100%; flex: 1; overflow: hidden; background: #fff; border-top: 1px solid #e0e0e0; }
.calendar-scroll-area { overflow: auto; position: relative; flex: 1; }
.cal-row { display: flex; width: max-content; }
.cal-row:hover { background-color: #fcfcfc; }
.cal-cell { width: var(--cell-width); min-width: var(--cell-width); height: var(--row-height-modern); border-right: 1px solid var(--grid-border); position: relative; padding: 0; box-sizing: border-box; }
.cal-cell.weekend { background-color: #fafafa; }
.cal-cell.sidebar-cell { position: sticky; left: 0; width: var(--sidebar-width); min-width: var(--sidebar-width); background: #fff; z-index: 30; border-right: 2px solid #e0e0e0; display: flex; flex-direction: column; justify-content: center; padding: 0 15px; }
.muted { color: #999; }
.hub-header { background: #eef2f7; padding: 8px 15px; font-weight: 800; color: #2c3e50; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; cursor: pointer; font-size: 0.85rem; letter-spacing: 0.5px; position: sticky; left: 0; z-index: 25; width: 100%; display: flex; align-items: center; gap: 10px; }
.prop-name { font-weight: 700; color: #2c3e50; font-size: 0.95rem; line-height: 1.2; text-decoration: none; }
.prop-sub { font-size: 0.75rem; color: #95a5a6; margin-top: 3px; font-weight: 500; }
.past-date { display: none; }


/* ============================================
   5. MESSAGES, LISTS & INBOX
   ============================================ */
a.message-item { text-decoration: none; color: inherit; display: flex; width: 100%; box-sizing: border-box; padding: 12px 15px; border-bottom: 1px solid #f0f0f0; gap: 12px; align-items: flex-start; transition: background 0.15s ease; position: relative; }
a.message-item:hover { background: #f9fbfb; }
.dashboard-grid-wrapper { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 20px; transition: all 0.3s ease; }
.dashboard-grid-wrapper .dash-card { height: 100%; margin-bottom: 0; display: flex; flex-direction: column; }
.dashboard-grid-wrapper .card-body { flex: 1; overflow-y: auto; max-height: 800px; }
.dash-card.flex-grow { min-height: 0; }
.legend-item { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 30px; transition: all 0.2s ease; border: 1px solid transparent; }
.legend-item:hover { background-color: var(--bg-light); border-color: #eee; }
.legend-item.active { background-color: #f0f7f7; border-color: #dae3e3; font-weight: 600; color: #333; }
.legend-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.legend-text { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.count-badge { margin-right: 4px; font-weight: bold; }
.date-month-label { font-size: 0.7rem; color: #999; text-transform: uppercase; line-height: 1.1; margin-bottom: 2px; }
.date-day-label { font-size: 0.9rem; font-weight: bold; line-height: 1.1; color: #333; }
.message-header-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: #fff; border-bottom: 1px solid #eee; min-height: 68px; }
.msg-header-title { font-weight: 700; color: var(--secondary); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.message-click-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; text-decoration: none; }

/* msg-avatar — base size for inbox lists, gets overridden in dashboard-grid section */
.msg-avatar { position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5; color: #555; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; border: 1px solid #eee; }
.msg-content { flex: 1; min-width: 0; }
.msg-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.meta-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.unit-badge { font-size: 0.7rem; font-weight: 800; color: var(--moc-green); background: #e0f2f1; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.msg-guest-name { font-size: 0.9rem; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { font-size: 0.8rem; font-weight: 600; color: #333; background: #f4f5f7; padding: 2px 6px; border-radius: 4px; }
.msg-preview-text { font-size: 0.85rem; color: #666; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-type-label { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; margin-right: 4px; }
.type-booking { color: var(--moc-orange); }
.type-closed { color: #444; }


/* ============================================
   6. OTA MATRIX VIEW
   ============================================ */
.ota-matrix-wrapper { background: #fff; border-top: 1px solid var(--border); overflow-x: auto; display: none; flex: 1; }
.ota-row { display: grid; grid-template-columns: 250px repeat(3, 1fr); border-bottom: 1px solid #f0f0f0; align-items: center; }
.ota-row:hover { background: #f9fbfb; }
.ota-header { background: #f8f9fa; font-weight: 700; color: #666; border-bottom: 2px solid #e0e0e0; position: sticky; top: 0; z-index: 10; }
.ota-cell { padding: 12px 15px; text-align: center; border-right: 1px solid #f8f8f8; position: relative; }
.ota-cell.unit-name { text-align: left; font-weight: 600; color: #333; border-right: 2px solid #eee; background: #fff; }
.status-thumb { font-size: 1.2rem; cursor: pointer; transition: transform 0.2s; display: inline-block; }
.status-thumb:hover { transform: scale(1.2); }
.thumb-active { color: var(--moc-green); }
.thumb-inactive { color: #eee; cursor: default; }
.thumb-paused { color: var(--moc-orange); }


/* ============================================
   7. BOOKING PILLS
   ============================================ */
.booking-layer { height: 50%; display: flex; align-items: flex-end; width: 100%; position: relative; padding-bottom: 4px; }
.booking-pill { height: var(--pill-height); width: 100%; display: flex; align-items: center; font-size: 0.75rem; color: #fff; cursor: pointer; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,0.1); white-space: nowrap; overflow: hidden; transition: opacity 0.2s; }
.booking-pill:hover { opacity: 0.9; }
.pill-mid { border-radius: 0; margin: 0 -1px; z-index: 1; }
.pill-start { border-top-left-radius: 99px; border-bottom-left-radius: 99px; padding-left: 8px; margin-left: 2px; z-index: 2; }
.pill-end { border-top-right-radius: 99px; border-bottom-right-radius: 99px; margin-right: 2px; z-index: 2; }
.status-active { background-color: var(--booked-color) !important; opacity: 0.8; }
.status-longTerm { background-color: slategrey !important; }
.status-checkIn { background-color: var(--booked-color) !important; }
.status-checkOut { background-color: red !important; opacity: 0.8; }
.status-closed { background-color: var(--closed-color) !important; background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,0.1) 5px, rgba(255,255,255,0.1) 10px); }
.pill-text { font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,0.1); pointer-events: none; padding-right: 5px; color: #fff; }
.daily-data { height: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #bdc3c7; border-top: 1px dotted transparent; }
.add-booking-trigger { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; opacity: 0; transition: all 0.2s; }
.cal-cell:hover .add-booking-trigger:not(.mode-end) { opacity: 1; background: #e0f2f1; color: var(--moc-green); transform: scale(1.1); }
.add-icon { font-size: 14px; font-weight: bold; line-height: 1; }
.cal-row.selection-active .cal-cell { opacity: 0.5; }
.cal-row.selection-active .cal-cell.in-range { opacity: 1; background: #f0fdf4; }
.add-booking-trigger.mode-end { opacity: 1 !important; background: var(--moc-orange) !important; color: white !important; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.cal-cell.is-booked .add-booking-trigger { display: none !important; }


/* ============================================
   8. LAYOUT UTILITIES
   ============================================ */
.panel { background: #fff; padding: 12px; }
.moc-admin { display: block; background: #fff; width: 100%; }
.grids { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: flex-start; padding: 5px; }
.grid > :last-child { margin-left: auto; }
.row-grids { display: grid; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 12px; background: #fff; transition: background 0.2s ease; }
.row-grids:hover { background: #f9fbfa; }
.media-grids-small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.gift-card-grid { grid-template-columns: 75px 150px 100px 50px 50px 75px 1fr 1fr 75px; }
.booking-row-grids { grid-template-columns: 30px 1fr 50px 20px 1fr; }
.grid { min-width: 0; }
.grid.w50 { width: 80px; }
.grid.w150 { width: 150px; }
.grid.w250 { width: 250px; }
.gap5 { gap: 5px; } .gap10 { gap: 10px; } .gap15 { gap: 15px; } .gap20 { gap: 20px; } .gap25 { gap: 25px; } .gap30 { gap: 30px; }
.asset-wrapper { width: 100%; }
.asset-tabs-layout { margin-bottom: 20px; }
.asset-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 0; }
.asset-tabs a { display: block; text-align: center; padding: 10px 0; border-radius: 8px; background: #efefef; border: 1px solid #ccc; font-size: 14px; }
.asset-tabs a.active { background: var(--moc-green); color: #fff; border-color: var(--moc-green); }
.asset-panel { border: 1px solid #ddd; padding: 10px 5px; border-radius: 10px; margin-top: 10px; }
.asset-panel.active { display: block; }
.asset-grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.asset-card { border-radius: 12px; border: 1px solid #ddd; overflow: hidden; }
.asset-card-header { background: #e5e5e5; padding: 14px 16px; font-weight: 600; font-size: 1.2rem; }
.asset-card-body { padding: 16px; }

.flexCenter { display: flex; justify-content: space-evenly; align-content: center; gap: 5px; flex-wrap: wrap; }
.flexLeft { display: flex; align-items: center; justify-content: flex-start; gap: 5px; flex-wrap: wrap; }
.flexRight { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.flex1 { flex: 1; } .flex2 { flex: 2; } .flex3 { flex: 3; } .flex4 { flex: 4; } .flex5 { flex: 5; } .flex6 { flex: 6; }
.flex-left { display: flex; align-items: stretch; justify-content: flex-start; gap: 20px; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.h-100 { height: 100%; }
.scroll-y { overflow-y: auto; height: 100%; }
.flex-grow { flex-grow: 1; }


/* ============================================
   9. MINI CALENDAR (mc-)
   ============================================ */
.mini-cal { --day-size: 42px; --gap: 10px; font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; color: #0f2a24; }
.mini-cal .mc-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.mini-cal .mc-title { font-weight: 600; font-size: 16px; }
.mini-cal .mc-weekdays, .mini-cal .mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--gap); }
.mini-cal .mc-weekdays { font-size: 12px; color: #4b635b; margin: 6px 0 12px; text-align: center; }
.mini-cal .mc-day { display: flex; align-items: center; justify-content: center; width: var(--day-size); height: var(--day-size); margin: 0 auto; border: 1px solid #d9e3df; border-radius: 50%; background: #fff; font-weight: 500; font-size: 14px; cursor: default; }
.mini-cal .mc-day.is-muted { color: #b7c3be; background: #f8f9f8; }
.mini-cal .mc-day.is-today { box-shadow: inset 0 0 0 2px #0f2a24; }
.mini-cal .mc-day.is-disabled { color: #c7d4d0; background: #f7faf9; }
.mini-cal .mc-day.has-slots { cursor: pointer; font-weight: 600; }
.mini-cal .mc-day.has-slots:hover { background: #ecf3f1; }
.mini-cal .mc-day.is-selected { font-weight: 800; border: 2px solid #0f2a24; background: #ecf3f1; }
.mini-cal .mc-nav { display: inline-block; padding: 6px 10px; border-radius: 10px; }
.mini-cal .mc-nav:hover { background: #ecf3f1; }


/* ============================================
   10. BUTTONS, PILLS, BADGES
   ============================================ */
.green-btn { display: inline-block; padding: 12px 24px; background: var(--moc-green); color: #fff; font-weight: 700; border-radius: 999px; transition: background .2s ease; }
.green-btn:hover { background: var(--moc-orange); }
.orange-btn { display: inline-block; padding: 12px 24px; background: var(--moc-orange); color: #fff; font-weight: 700; border-radius: 999px; transition: background .2s ease; }
.orange-btn:hover { background: var(--moc-green); }
.subtext { font-size: .9rem; font-weight: 400; }
.italic { font-style: italic; }

.icon-btn { padding: 6px; margin: 2px; max-width: 120px; min-width: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.02) inset; transition: border-color .15s ease, transform .06s ease; cursor: pointer; }
.icon-btn-150 { padding: 6px; margin: 2px; width: 150px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.02) inset; transition: border-color .15s ease, transform .06s ease; cursor: pointer; }
.icon-btn.moc-green, .icon-btn-150.moc-green { border: 2px solid var(--moc-green); color: var(--ink) !important; }
.icon-btn.moc-orange, .icon-btn-150.moc-orange { border: 2px solid var(--moc-orange); color: var(--ink) !important; }
.icon-btn:hover, .icon-btn-150:hover { border-color: #157575; }
.icon-btn:active, .icon-btn-150:active { transform: translateY(1px); }

.cal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; line-height: 1; padding: 3px 6px; border-radius: 999px; background: #e9e9e9; }
.badge.blue { background: #E7F0FB; }
.badge.corner { position: absolute; top: 6px; right: 6px; padding: 2px 6px; pointer-events: none; }
.badge-green { background: #10b981; color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }

.event-count { font-size: .9rem; color: #333; vertical-align: middle; position: relative; top: -1px; margin-left: 2px; font-weight: 500; }
.slot-section-header { font-size: 0.65rem; font-weight: 700; color: #aaa; text-transform: uppercase; margin-top: 4px; margin-bottom: 2px; letter-spacing: 0.5px; }
.mini-slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.mini-slot-item { background: #fdfdfd; border: 1px solid #eee; border-radius: 3px; padding: 2px 4px; font-size: 0.7rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; overflow: hidden; }
.mini-slot-item:hover { border-color: #ccc; background: #f4f4f4; }
.color-slot { color: #9C27B0; font-weight: 700; }
.wkcell { align-items: center; justify-content: center; border: 1px dashed #e5e7eb; border-radius: 10px; background: #f9fafb; min-height: 68px; font-weight: 700; font-size: 12px; }
.wkcell a { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; color: inherit; }

.wm-table { display: grid; grid-template-columns: repeat(var(--wm-cols), minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.wm-cell { min-height: 40px; padding: 2px; border: 1px dashed #e5e7eb; border-radius: 8px; background: #fafafa; display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-size: 13px; }
.wm-cell--head { background: #f3f4f6; font-weight: 700; }
.wm-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; color: inherit; }
.wm-week { background: #f9fafb; }
.inline-metrics { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.inline-metrics .sep, .inline-metrics .ppl { color: #6b7280; font-size: 14px; font-weight: 800; }
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; height: 100%; }
.tri-link { display: flex; align-items: center; justify-content: center; min-height: 36px; text-decoration: none; color: inherit; border-radius: 6px; }
.tri-link:hover { background: #fff; }
.tri-link.disabled { pointer-events: none; }
.tri-num { min-width: 14px; text-align: center; }
.tri-dash { color: #6b7280; }
.tri-link.moc .tri-num { color: #B24E39; }
.tri-link.baseCamp .tri-num { color: #1D4ED8; }

.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================
   11. ACCORDIONS, PAGES, WORK PANE
   ============================================ */
.accordion-sec { border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 6px; }
.accordion-head { display: flex; align-items: center; justify-content: space-between; background: #f9fafb; border-bottom: 1px solid #eee; padding: 4px 8px; font-size: 1.5; font-weight: bold; }
.accordion-head .toggle { display: flex; align-items: center; gap: 6px; font-size: 1.6rem; font-weight: 600; white-space: nowrap; }
.accordion-head .count { font-weight: 700; font-size: 1.6rem; color: #222; }
.accordion-sec .accordion-body { display: block; padding: 10px; }
.is-collapsed .accordion-body { display: none; }
.is-collapsed .accordion-head i { transform: rotate(-90deg); transition: transform .15s ease; }
.page-list { list-style: none; margin: 0; padding: .4rem; max-height: 62vh; overflow: auto; }

.pages-screen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; width: 100%; min-height: calc(100vh - var(--h)); }
.pages-pane { background: #fff; padding: 5px; overflow-y: auto; max-height: calc(100vh - var(--h) - 40px); }
.work-pane { background: #fff; min-height: 400px; display: flex; flex-direction: column; padding: 1rem; }
.work-head { padding: .6rem .8rem; display: flex; align-items: center; justify-content: space-between; }

.title-link { color: #0b4a5a; text-decoration: none; font-weight: 600; }
.title-link:hover { text-decoration: underline; }
.slug { font-weight: 800; font-size: .92rem; color: #333; }
.form-grid { display: grid; align-items: start; width: 100%; margin-top: 5px; gap: 10px; }
.form-grid-full { grid-template-columns: 1fr; }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }

.metrics { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.metric { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: .28rem .45rem; border: 1px solid #e6eaf0; border-radius: 999px; background: #f8fafc; color: #334155; text-decoration: none; }
.metric:hover { background: #f3f6f8; }
.metric i { font-size: .9rem; }
.metric.missing { opacity: .55; background: #fbfbfb; border-style: dashed; }

.controls { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: .5rem; color: black !important; }
.controls-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.controls-right { display: flex; align-items: center; gap: 10px; margin-left: auto; justify-content: flex-end; }
.control-btn { border: 1px solid #dfe3e8; background: #fff; padding: .45rem .6rem; border-radius: 999px; cursor: pointer; font-size: .92rem; color: #0b4a5a; }
.control-btn i { margin-right: .35rem; }

.dropdown { position: relative; }
.hamburger { border: 1px solid #dfe3e8; background: #fff; font-size: 1.4rem; padding: .4rem .6rem; border-radius: 999px; cursor: pointer; color: #0b4a5a; display: inline-flex; align-items: center; gap: .35rem; }
.dropdown-menu { position: absolute; top: 42px; left: 0; min-width: 220px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: .4rem; box-shadow: 0 8px 24px rgba(0,0,0,.08); display: none; z-index: 30; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .5rem .6rem; border-radius: 8px; color: #0b4a5a; text-decoration: none; }
.dropdown-menu a:hover { background: #f6f9fb; }

.oyster-detail .panel-sec { border-top: 1px solid #f1f1f1; padding: 1rem 0; }
.oyster-detail .panel-sec h3 { font-size: 2rem; font-weight: 700; margin-bottom: .6rem; color: #0b4a5a; }
.oyster-detail .grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.oyster-detail .actions { display: flex; gap: 8px; align-items: center; }
.coms-user { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.coms-name { font-weight: 600; color: #0b4a5a; text-decoration: none; }

.moc-admin .page-item { display: block; padding: .6rem .8rem; border-top: 1px solid #f1f1f1; }
.moc-admin .page-item:first-child { border-top: none; }
.moc-admin .object-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.moc-admin .title-link { font-weight: 800; font-size: 1.1rem; color: #0b4a5a; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.moc-admin .title-link:hover { text-decoration: underline; }
.moc-admin .coms-icons { display: inline-flex; align-items: center; gap: 10px; }
.moc-admin .object-metrics, .moc-admin .metrics { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.moc-admin .object-metrics { display: inline-flex; align-items: center; gap: 10px; min-width: 90px; }
.moc-admin .object-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.moc-admin .metric { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: .28rem .45rem; border: 1px solid #e6eaf0; border-radius: 999px; background: #f8fafc; color: #334155; text-decoration: none; font-size: .9rem; }
.moc-admin .metric:hover { background: #f3f6f8; }
.moc-admin .metric.missing { opacity: .55; background: #fbfbfb; border-style: dashed; }
.moc-admin .page-item .object-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.moc-admin .page-item .title-link { font-weight: 700; font-size: 1.2rem; color: #0b4a5a; text-decoration: none; }
.moc-admin .page-item .slug { font-size: 1.2rem; color: #6b7280; font-weight: 500; }
.moc-admin .object-main .title-link { font-size: 1.15rem; font-weight: 800; color: #0b4a5a; }
.moc-admin .batch-links { display: flex; gap: 10px; margin-top: 2px; }
.moc-admin .batch-links a { font-size: .8rem; font-weight: 600; color: #157575; text-decoration: none; text-transform: lowercase; }
.moc-admin .batch-links a:hover { text-decoration: underline; }


/* ============================================
   12. METRIC PANELS & CARDS
   ============================================ */
.metric-detail-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 15px; margin: 10px 0 20px 0; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.metric-detail-panel h4 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: #157575; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.metric-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.month-block { border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; padding: 8px; }
.month-header { font-size: 1.3rem; font-weight: bold; text-align: center; margin-bottom: 6px; }
.month-metrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.metric-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: all 0.2s ease; }
.metric-card:hover { background: #f9fafb; transform: translateY(-2px); }
.metric-value { font-size: 1.6rem; font-weight: 800; color: #157575; margin-bottom: 4px; }
.metric-label { font-size: .85rem; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }
.metric-card.orange .metric-value { color: #f26c36; }
.metric-card.blue .metric-value { color: #1d4ed8; }
.metric-card.grey .metric-value { color: #374151; }
.metric-card-small { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; text-align: center; padding: 8px 10px; width: 110px; flex: 0 0 auto; }
.metric-card-small .metric-value { font-size: 1.5rem; font-weight: 700; color: #157575; }
.metric-card-small .metric-label { font-size: .9rem; color: #555; }
.metric-card-large { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; text-align: center; padding: 8px 10px; width: 160px; flex: 0 0 auto; }
.metric-card-large .metric-value { font-size: 1.7rem; font-weight: 700; color: #157575; }
.metric-card-large .metric-label { font-size: .9rem; color: #555; }


/* ============================================
   13. SIDEBARS
   ============================================ */
.sidebar-left { position: fixed; top: 75px; bottom: 0; left: 0; width: 350px; background: #fff; border-right: 1px solid var(--line, #e5e7eb); z-index: 999; box-shadow: var(--shadow-2, 0 12px 32px rgba(0,0,0,.12)); padding: 10px; overflow-y: auto; }
.sidebar-right { position: fixed; top: 75px; bottom: 0; right: 0; width: 350px; background: #fff; border-right: 1px solid var(--line, #e5e7eb); z-index: 999; box-shadow: var(--shadow-2, 0 12px 32px rgba(0,0,0,.12)); padding: 10px; overflow-y: auto; }
.sidebar-inner { display: flex; flex-direction: column; gap: 5px; }
.sidebar-header { border-bottom: 1px solid var(--line, #e5e7eb); padding-bottom: 10px; }
.sidebar-title { font-size: 18px; margin: 0; }
.sidebar-sub { margin: 4px 0 0; font-size: 12px; color: var(--ink-2, #6b7280); }
.sidebar-close { font-size: 30px; line-height: 1; text-decoration: none; color: var(--ink-2, #4b5563); padding: 0 4px; }


/* ============================================
   14. ADMIN CARD & FORMS
   ============================================ */
.moc-admin-card { margin: 0 auto; border-radius: 12px; overflow: hidden; padding: 10px; text-align: left; }
.card-header { background: var(--bg); border-bottom: 2px solid var(--moc-green); padding: 10px 16px; margin-bottom: 20px !important; }
.card-header h2 { font-size: 2.2rem; color: var(--moc-green); font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.subheading { font-size: 1.6rem; color: var(--moc-green); font-weight: 600; text-transform: uppercase; margin: 4px 0 0 0 !important; }
.subsubheading { font-size: 1.2rem; color: var(--ink); font-weight: 600; text-transform: uppercase; margin: 4px 0 0 0 !important; }
.card-body { padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; }
select, input[type="text"], input[type="date"], input[type="number"] { padding: 5px 8px; border-radius: 6px; width: 100%; }
label { font-size: 0.8rem; color: var(--ink-2); margin-bottom: 2px; display: block; }
.button-save { background: var(--moc-green); color: #fff; font-size: 1rem; padding: 10px 20px; border-radius: 20px; border: none; cursor: pointer; transition: background 0.2s ease; }
.button-save:hover { background: var(--moc-orange); }

.moc-list-row { display: flex; padding: 10px 14px; border-bottom: 1px solid #eee; font-size: 14px; align-items: center; }
.lr-col { flex: 1; }
.lr-main { flex: 2; }
.lr-action { text-align: right; }
.lr-view { color: var(--moc-green); font-weight: 500; }


/* ============================================
   15. DASHBOARD STAT CARDS
   ============================================ */
.user-name { font-size: 1.2rem; color: #555; }
.moc-admin-dashboard { padding: 20px; }
.dashboard-section-title { margin: 40px 0 12px; font-size: 20px; font-weight: 600; color: #333; }

.moc-stat-card { background: #fff; border-radius: 10px; padding: 12px; border: 1px solid #eee; display: flex; flex-direction: column; font-family: Inter, sans-serif; position: relative; }
.msc-header { margin-bottom: 6px; }
.msc-title { font-weight: 500; color: #333; }
.msc-value { font-size: 2rem; font-weight: 600; color: var(--moc-green, #00897b); line-height: 1.1; }
.msc-value .fa { font-size: 1.2rem; }
.msc-footer { position: absolute; top: 5px; right: 15px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.msc-footer a { background-color: #f5f7fa; padding: 2px 6px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: #555; text-decoration: none; transition: all 0.2s ease; border: 1px solid transparent; }
.msc-footer a:hover { background-color: #e0f2f1; border-color: var(--moc-green); cursor: pointer; }
.msc-footer .grey { color: #888; font-weight: 400; margin-right: 3px; }

.type-badge { padding: 3px 8px; font-size: 11px; border-radius: 4px; color: #fff; }
.type-events { background: #3b82f6; }
.type-orders { background: #16a34a; }
.type-bookings { background: #ef4444; }


/* ============================================
   16. MODAL SHELL
   ============================================ */
.moc-modal-shell { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; transform: scale(0.97); pointer-events: none; transition: all .2s ease; backdrop-filter: blur(2px); }
.moc-modal-shell.active { opacity: 1; transform: scale(1); pointer-events: all; }
.moc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: mocFadeIn .25s ease forwards; }
.moc-modal-inner { position: relative; z-index: 1; background: #fff; border-radius: 18px; overflow: hidden; max-width: 960px; width: 92%; animation: mocPopIn .25s ease forwards; transform: scale(0.96); opacity: 0; max-height: calc(100vh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.moc-modal-shell.active .moc-modal-inner { transform: scale(1); opacity: 1; }
@keyframes mocPopIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes mocFadeIn { from { opacity: 0; } to { opacity: 1; } }
body.modal-open { overflow: hidden; }

.moc-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.modal-title { font-weight: 700; color: var(--moc-green); text-transform: uppercase; font-size: 0.85rem; }
.modal-close-btn { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-grey); transition: all 0.2s; }
.modal-close-btn:hover { background: var(--moc-orange); color: white; }


/* ============================================
   17. MEDIA UPLOAD & FORMS (modern-upload)
   ============================================ */
.modern-upload-container { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.media-stream-container { background: #f4f4f4; padding: 15px; max-width: 600px; margin: 0 auto; }
.media-card { background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 15px; display: flex; gap: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.quick-save-input { width: 100%; border: none; border-bottom: 1px dashed #ccc; padding: 5px 0; background: transparent; transition: all 0.2s; }
.quick-save-input:focus { outline: none; border-bottom: 1px solid #fca311; background: #fffef0; }
.quick-click-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; align-items: center; }
.click-tag-pill { font-size: 11px; background: #fff; border: 1px solid #ddd; color: #555; padding: 2px 8px; border-radius: 12px; cursor: pointer; transition: all 0.2s; user-select: none; }
.click-tag-pill:hover { border-color: #fca311; color: #fca311; }
.click-tag-pill.added { background: #d4edda; border-color: #c3e6cb; color: #155724; pointer-events: none; }


/* ============================================
   18. THREAD COMPOSER & MESSAGES
   ============================================ */
.composer-container { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 25px; position: relative; }
.composer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f5f5f5; }
.modern-textarea { width: 100%; border: 1px solid #eee; border-radius: 6px; padding: 12px; font-size: 14px; resize: vertical; min-height: 80px; outline: none; background: #fafafa; }
.modern-textarea:focus { background: #fff; border-color: #ddd; }
.send-btn { background: #fca311; color: white; border: none; padding: 8px 24px; border-radius: 20px; font-weight: bold; font-size: 13px; cursor: pointer; text-transform: uppercase; }
.send-btn:hover { background: #e08e00; }
.user-toggle { cursor: pointer; user-select: none; position: relative; margin-bottom: 5px; transition: transform 0.1s; }
.user-toggle:active { transform: scale(0.95); }
.user-toggle input { display: none; }
.user-toggle input:checked + .user-avatar { background: #fca311; color: white; border-color: #e08e00; transform: scale(1.1); }
.reminder-sms-toggle { cursor: pointer; user-select: none; position: relative; margin-bottom: 5px; transition: transform 0.1s; }
.reminder-sms-toggle:active { transform: scale(0.95); }
.reminder-sms-toggle input { display: none; }
.reminder-sms-toggle input:checked + .user-avatar { background: #157575; color: white; border-color: #e08e00; transform: scale(1.1); }

.thread-stream { display: flex; flex-direction: column; gap: 20px; }
.thread-group { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.thread-main { background: #fff; position: relative; }
.thread-replies { background: #fbfbfb; border-top: 1px solid #eee; }
.reply-item { border-bottom: 1px solid #f0f0f0; padding-left: 15px; }
.reply-item:last-child { border-bottom: none; }
.future-thread { opacity: 0.5; }

.split-view-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.composer-column { flex: 1; }
.history-column { flex: 1; border-left: 1px solid #eee; padding-left: 15px; }
.split-view-container.full-width .composer-column { flex: 100%; }
.split-view-container.full-width .history-column { display: none; }

.message-wrap { display: flex; gap: 15px; padding: 15px 10px; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; align-items: flex-start; position: relative; }
.message-wrap:hover { background-color: #fafafa; }
.message-wrap.unread { border-left: none; }
.message-left-col { display: flex; align-items: center; gap: 12px; justify-content: center; flex-shrink: 0; min-width: 60px; }
.archive-btn { position: absolute; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #d1d5db; color: #d1d5db; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; text-decoration: none; }
.archive-btn:hover { border-color: #10b981; background-color: #10b981; color: #fff; transform: scale(1.1); }
.archive-btn i { font-size: 10px; }
.message-avatar { width: 38px; height: 38px; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 14px; flex-shrink: 0; position: relative; z-index: 5; }
.mini-avatar { position: absolute; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px; line-height: 20px; text-align: center; border: 2px solid #fff; z-index: 10; font-weight: bold; }
.mini-pos-0 { bottom: -2px; left: 2px; }
.mini-pos-1 { bottom: -2px; right: 2px; }
.message-body { flex-grow: 1; min-width: 0; }
.message-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.message-author { font-weight: 700; color: #2d3748; font-size: 15px; text-decoration: none; }
.message-time { font-weight: 700; color: #2d3748; font-size: 15px; text-decoration: none; }
.message-content { color: #4a5568; line-height: 1.5; word-wrap: break-word; }
.context-badge { display: inline-block; background: #edf2f7; color: #4a5568; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.reply-count { font-size: 11px; color: #718096; background: #edf2f7; padding: 2px 6px; border-radius: 10px; margin-left: auto; }

.avatar-user-1 { background-color: #e53e3e !important; color: white !important; }
.avatar-user-26 { background-color: #3182ce !important; color: white !important; }
.avatar-user-5178 { background-color: #38a169 !important; color: white !important; }
.avatar-default { background-color: #a0aec0 !important; }
.avatar-sent { background-color: #4a5568; }
.avatar-received { background-color: #a0aec0; }


/* ============================================
   19. TOOLBAR, TABLE ROWS, GENERIC USERS
   ============================================ */
.active-type { background: #157575 !important; color: #fff !important; border: 1px solid #0e5e5e; }
.stats-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; background: #fff; padding: 15px; border: 1px solid #e5e7eb; border-top: none; margin-bottom: 20px; border-radius: 0 0 12px 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); }
.stat-item { text-align: center; border-right: 1px solid #f3f4f6; }
.stat-item:last-child { border-right: none; }
.stat-label { font-size: 10px; text-transform: uppercase; color: #9ca3af; font-weight: 700; letter-spacing: 0.5px; }
.stat-val { font-size: 18px; font-weight: 700; color: #1f2937; margin-top: 4px; }
.form-inline-flex { display: flex; gap: 8px; align-items: center; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.type-separator { margin-left: 15px; padding-left: 15px; border-left: 1px solid #e0e0e0; }
.preset-btn { text-decoration: none; font-size: 14px; font-weight: 500; color: #4b5563; padding: 6px 12px; border-radius: 6px; background: #f3f4f6; transition: all 0.2s; cursor: pointer; }
.preset-btn:hover { background: #e5e7eb; color: #111827; }
.period-toggle { display: flex; background: #e5e7eb; border-radius: 6px; padding: 2px; }
.period-btn { padding: 4px 12px; font-size: 14px; font-weight: 600; border: none; background: transparent; border-radius: 4px; cursor: pointer; color: #6b7280; }
.period-btn.active { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.toolbar-form input[type="date"] { border: 1px solid #d1d5db; border-radius: 6px; padding: 5px 8px; font-size: 14px; color: #374151; outline: none; }
.btn-go { background: #157575; color: white; border: none; border-radius: 6px; padding: 6px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-refresh { padding: 8px; border-radius: 50%; color: #6b7280; cursor: pointer; }
.table-row { display: grid; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f3f4f6; transition: background 0.1s; }
.row-hover:hover { background-color: #f8fafc; }
.mode-comms .cell-comm { display: block; }
.mode-history .cell-hist { display: block; }
.cell-base { font-size: 16px; color: #111827; }
.cell-num { font-family: 'Courier New', monospace; font-weight: 600; }
.header-row { background: #f9fafb; border-bottom: 2px solid #e5e7eb; position: sticky; top: 0; z-index: 20; }
.head-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #6b7280; cursor: pointer; display: flex; align-items: center; gap: 4px; user-select: none; }
.head-lbl:hover { color: #111827; }
.head-lbl.cell-chk { justify-content: center; }
.totals-row { background: #ecfdf5; border-bottom: 2px solid #10b981; position: sticky; top: 43px; z-index: 15; font-weight: 700; }
.totals-row .cell-num { font-size: 15px; }
.view-toggles { display: flex; gap: 4px; background: #f3f4f6; padding: 4px; border-radius: 8px; }
.view-btn { color: var(--moc-green); font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: 6px; border: none; background: transparent; cursor: pointer; }
.view-btn.active { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.toggle-wrapper { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; user-select: none; }
.toggle-checkbox { accent-color: #157575; width: 16px; height: 16px; }
.data-group-previous { display: none; }

.bulk-action-bar { background: #e0f2f1; border: 1px solid #157575; padding: 10px 20px; margin-bottom: 15px; border-radius: 8px; align-items: center; justify-content: space-between; animation: fadeIn 0.3s; }
.bulk-btn { background: #157575; color: white; border: none; padding: 8px 16px; border-radius: 4px; font-weight: 600; cursor: pointer; margin-left: 10px; }
.bulk-btn:hover { background: #0e5e5e; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.generic-users-container { width: 100%; font-family: sans-serif; }
.bulk-count-label { font-weight: bold; color: #157575; }
.gen-header-row { background: #f9fafb; border-bottom: 2px solid #e5e7eb; font-weight: 700; color: #6b7280; font-size: 11px; text-transform: uppercase; }
.col-stat-head { text-align: center; }
.sortable-row:hover { background-color: #f8fafc; }
.col-name { font-weight: 600; color: #111827; }
.name-link { color: #111827; text-decoration: none; }
.col-contact { display: flex; justify-content: flex-start; }
.email-text { font-size: .9rem; color: #4b5563; }
.phone-text { font-size: .9rem; color: #9ca3af; margin-top: 2px; }
.col-stat { text-align: center; font-family: 'Courier New', monospace; font-weight: 600; }
.stat-link { color: #157575; text-decoration: none; border-bottom: 1px dotted #157575; }
.col-id { text-align: right; font-size: 10px; color: #9ca3af; }


/* ============================================
   20. MOC-CALENDAR (full month grid)
   ============================================ */
.moc-calendar { --day-size: 80px; --border-color: #e5e7eb; --bg-light: #fafafa; --bg-hover: #f2fefc; --bg-today: #f3fef9; --bg-selected: #e7f0fb; }
.moc-calendar .cal-header { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; font-size: 1.7rem; }
.moc-calendar .month-label { font-weight: 700; color: var(--moc-green); }
.moc-calendar .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.moc-calendar .cal-weekdays div { text-align: center; font-weight: 500; font-size: 0.9rem; padding: 4px 0; border-bottom: 1px solid var(--line); color: #444; }
.moc-calendar .cal-day { position: relative; min-height: var(--day-size); border: 1px solid var(--border-color); background: var(--bg-light); padding: 6px 4px; transition: background 0.15s ease, border 0.15s ease; font-size: 0.9rem; cursor: pointer; }
.moc-calendar .cal-day:hover { background: var(--bg-hover); border-color: var(--moc-green); }
.moc-calendar .cal-day.empty { background: transparent; border: none; pointer-events: none; }
.moc-calendar .cal-day.today { border: 1px solid var(--moc-green); background: var(--bg-today); }
.moc-calendar .cal-day.selected { border-color: #1d4ed8; box-shadow: inset 0 0 0 2px #1d4ed8; background: var(--bg-selected); }
.moc-calendar .cal-day .num { font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }
.moc-calendar .cal-day a { display: inline-block; margin: 1px 3px; font-size: 1rem; font-weight: 700; color: var(--moc-green); text-decoration: none; }
.moc-calendar .cal-day a:hover { opacity: 0.85; }
.moc-calendar .cal-day i { font-size: 1rem; line-height: 1; }
.moc-calendar .cal-day i.fa-plus { color: var(--moc-green); }
.moc-calendar .cal-day i.fa-circle { color: purple; }
.moc-calendar .cal-day i.fa-calendar { color: var(--moc-orange); }
.moc-calendar .cal-day i.fa-check { color: var(--moc-green); }
.moc-calendar .cal-day .badges { position: absolute; top: 4px; right: 4px; display: flex; gap: 3px; }
.moc-calendar .cal-day .badge { font-size: 0.8rem; padding: 2px 6px; border-radius: 8px; background: #e9f8f3; color: var(--moc-green); font-weight: 700; }
.moc-calendar .cal-day .badge.orange { background: #fff3e6; color: var(--moc-orange); }


/* ============================================
   21. DASHBOARD HEADER
   ============================================ */
.dashboard-header { background: var(--surface); padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.05); flex-shrink: 0; position: relative; }
.projections { font-size: .8rem; color: grey !important; font-style: italic; }
.dashboard-header .dropdown { position: absolute; top: 60px; left: 20px; background: #fff; border: 1px solid #ccc; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border-radius: 6px; z-index: 2000; width: max-content; max-width: 95vw; padding: 15px; overflow-x: auto; }
.btn-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.2s; cursor: pointer; text-decoration: none; }
.btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }


/* ============================================
   22. DASHBOARD GRID + DASH CARD + BOOKING CARD
   ============================================ */
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dash-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.card-body { flex: 1; overflow-y: auto; padding: 0; gap: 2px; }
.message-item { padding: 10px 15px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; display: flex; gap: 12px; align-items: center; }
.message-item:hover { background: #f9fafb; }
.msg-top { display: flex; justify-content: space-between; margin-bottom: 2px; }
.msg-name { font-weight: 600; color: var(--text-main); }
.msg-preview { font-size: .9rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-tabs { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 15px; background: #fff; border-bottom: 1px solid #eee; gap: 5px; }
.tab-btn { flex: 1; text-align: center; padding: 6px; font-size: .9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.tab-btn:hover { background: #e2e8f0; }
.tab-btn.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.booking-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 5px; padding: 10px; }
.booking-card { border: 1px solid var(--border); border-radius: 6px; padding: 10px; background: #fff; display: flex; align-items: center; gap: 10px; }
.booking-card.checkIn-card { border-left: 12px solid #2ecc71; }
.booking-card.checkOut-card { border-left: 12px solid #e74c3c; }
.booking-card.ongoing-card { border-left: 12px solid #333333; }
.b-date { display: flex; flex-direction: column; align-items: center; min-width: 35px; padding-right: 8px; border-right: 1px solid #eee; }
.b-day { font-size: 16px; font-weight: 800; color: #333; line-height: 1; }
.b-month { font-size: .9rem; text-transform: uppercase; color: #888; margin-top: 2px; }
.b-info { flex: 1; overflow: hidden; }
.b-title { font-weight: 700; font-size: .9rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-sub { font-size: .8rem; color: #666; display: flex; align-items: center; gap: 5px; white-space: nowrap; }

.dashboard-grid.modern-split { display: grid; grid-template-columns: 275px 1fr; gap: 10px; padding: 5px; align-items: start; height: calc(100vh - 70px); overflow: hidden; }
.dash-card-message { border-radius: 0; box-shadow: none; border: 0; }
.trip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
.trip-box { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 5px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.trip-label { font-size: 0.85rem; text-transform: uppercase; color: #888; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; }
.trip-val { font-weight: 800; color: var(--secondary); font-size: 1.1rem; line-height: 1; }
.trip-sub { font-size: 0.85rem; color: #aaa; margin-top: 3px; }

.access-grid { display: flex; flex-direction: column; gap: 8px; }
.access-box { background: #fff; border: 1px solid #d7dfe0; border-radius: 6px; padding: 10px 12px; position: relative; transition: all 0.2s ease; cursor: pointer; }
.access-box:hover { border-color: var(--moc-green); background: #f0fdfa; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.access-box:hover .copy-icon { color: var(--moc-green); opacity: 1; }
.access-label { font-size: 0.9rem; text-transform: uppercase; color: #999; font-weight: 700; display: block; margin-bottom: 4px; }
.access-value-large { font-family: 'Courier New', monospace; font-size: 1.2rem; font-weight: 700; color: #333; letter-spacing: 1px; }
.wifi-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; margin-bottom: 2px; }
.copy-icon { position: absolute; top: 10px; right: 10px; color: #ccc; opacity: 0.5; transition: all 0.2s; }
.fin-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px dashed #eee; }
.fin-row:last-child { border-bottom: none; }
.fin-label { color: var(--text-muted); }
.fin-val { font-weight: 600; color: var(--text-main); }
.compose-tabs { display: inline-flex; background: #e9ecef; padding: 4px; border-radius: 8px; gap: 5px; }
.compose-tab { padding: 6px 16px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; color: #666; cursor: pointer; text-decoration: none; transition: all 0.2s; display: flex; align-items: center; gap: 6px; border: 1px solid transparent; }
.compose-tab:hover { color: #333; }
.compose-tab.active { background: #fff; color: var(--moc-green); box-shadow: 0 2px 4px rgba(0,0,0,0.08); border-color: #ddd; }
.section-title { margin: 20px 0 5px; border-bottom: 1px solid #eee; font-weight: 600; font-size: 1.2rem; color: var(--moc-green); }


/* ============================================
   23. PILL NAV, SELECTION GRID, TASK ROW
   ============================================ */
.pill-nav { display: flex; background: #f4f5f7; border-radius: 20px; padding: 4px; }
.pill-btn { padding: 6px 16px; font-weight: 600; color: #666; border-radius: 16px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.2s; border: 1px solid transparent; }
.pill-btn:hover { color: #333; background: rgba(0,0,0,0.05); }
.pill-btn.active { background: #fff; color: var(--primary, #007bff); box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-weight: 700; }
.selection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.selection-card-label { display: block; cursor: pointer; position: relative; height: 100%; }
.selection-card-label input[type="radio"] { opacity: 0; position: absolute; width: 0; height: 0; pointer-events: none; }
.selection-card-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px; background: #fff; border: 1px solid var(--border); border-radius: 8px; transition: all 0.2s ease; text-align: center; height: 100%; color: var(--text-muted); }
.selection-card-label input:checked + .selection-card-visual { border: 2px solid var(--moc-orange); background: #fff8e1; color: var(--moc-orange); box-shadow: 0 4px 10px rgba(242, 108, 54, 0.2); transform: translateY(-2px); }
.task-row-modern { display: grid; grid-template-columns: 50px 1fr auto; gap: 15px; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); transition: background 0.2s; align-items: start; }
.task-row-modern:hover { background: #fafafa; }
@media print {
    .no-print { display: none !important; }
    .task-row-modern { page-break-inside: avoid; border: 1px solid #ccc; margin-bottom: 10px; }
}


/* ============================================
   24. PROPERTY DASHBOARD (prop-dashboard)
   ============================================ */
.prop-dashboard { background: #f4f6f9; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; position: relative; }
.dashboard-layout { display: grid; gap: 5px; align-items: start; grid-template-columns: 3fr 2fr; }
.layout-main { min-width: 0; }
.layout-sidebar { width: 100%; }
.prop-header { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 20px; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.prop-title { font-size: 1.2rem; font-weight: 800; color: #2c3e50; margin: 0; display: flex; align-items: center; gap: 10px; }
.prop-actions { display: flex; gap: 10px; align-items: center; }
.tab-nav { display: flex; gap: 5px; margin-bottom: 15px; border-bottom: 2px solid #e0e0e0; }
.tab-link { padding: 10px 15px; font-weight: 600; color: #777; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; text-transform: uppercase; font-size: 0.85rem; }
.tab-link:hover { color: #333; background: #eaecf0; border-radius: 4px 4px 0 0; }
.tab-link.active { color: #007bff; border-bottom-color: #007bff; background: #fff; }
.tab-pane { animation: fadeIn 0.3s; }
.card-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.card-title { font-size: 1.1rem; font-weight: 700; color: #2c3e50; margin-bottom: 5px; padding-bottom: 5px; }
.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.row-split { display: flex; gap: 15px; }
.w-50 { width: 50%; }


/* ============================================
   25. DROP ZONE / PREVIEW / TAGS / UPLOAD
   ============================================ */
.drop-zone { border: 2px dashed #ddd; border-radius: 8px; padding: 40px 20px; text-align: center; color: #999; transition: all 0.2s; background: #fafafa; position: relative; cursor: pointer; margin-bottom: 20px; }
.drop-zone:hover, .drop-zone.dragover { border-color: #007bff; background: #f0f8ff; color: #007bff; }
.drop-zone input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.preview-area { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.preview-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #eee; }
.tag-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag-pill { padding: 5px 12px; background: #eee; border-radius: 15px; font-size: 11px; cursor: pointer; color: #555; transition: all 0.2s; user-select: none; border: 1px solid transparent; }
.tag-pill:hover { background: #ddd; }
.tag-pill.active { background: #007bff; color: #fff; }
.modern-input, .modern-select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; background: #fdfdfd; }
.upload-btn-lg { width: 100%; padding: 12px; background: #27ae60; color: #fff; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 14px; margin-top: 10px; }
.upload-btn-lg:hover { background: #219150; }
.user-selector { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; background: #ccc; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; cursor: pointer; border: 2px solid transparent; }
.user-toggle input:checked + .user-avatar { border-color: #27ae60; background: #27ae60; }
.media-sidebar-sticky { position: sticky; top: 20px; }
.media-grid-sidebar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; max-height: 80vh; overflow-y: auto; padding-right: 5px; }
.media-item { position: relative; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid #ddd; cursor: move; }
.media-thumb { width: 100%; height: 110px; object-fit: cover; display: block; }
.media-actions { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,0.9); border-radius: 4px; padding: 3px 6px; opacity: 0; transition: opacity 0.2s; }
.media-item:hover .media-actions { opacity: 1; }
.popup-close-fixed { position: fixed; top: 20px; left: 20px; z-index: 9999; }
.fin-grid-table { width: 100%; border-collapse: collapse; }
.fin-grid-table th { text-align: left; background: #f8f9fa; padding: 10px; color: #666; font-size: 0.85rem; text-transform: uppercase; }
.fin-grid-table td { padding: 10px; border-bottom: 1px solid #eee; color: #333; font-weight: 500; }
.moc-black { color: #333; }


/* ============================================
   26. MEDIA-RELATED EXTRAS
   ============================================ */
.btn-download-all { font-size: 11px; background: #3498db; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; margin-right: 5px; text-decoration: none; }
.btn-download-all:hover { background: #2980b9; color: white; }
.media-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #fff; border-radius: 4px; color: #555; margin-left: 3px; transition: all 0.2s; }
.media-action-icon:hover { color: #3498db; background: #f0f8ff; }
.media-action-icon.danger:hover { color: #e74c3c; background: #fff0f0; }

.edit-layout-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.edit-hero-image img { width: 100%; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 10px; }
.file-path-box { background: #f1f1f1; padding: 8px; font-size: 10px; word-break: break-all; border-radius: 4px; color: #666; margin-top: 5px; }
.filter-panel { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 15px 20px; margin-bottom: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.filter-group-title { font-size: 0.75rem; text-transform: uppercase; color: var(--ink-grey, #888); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }
.filter-pill { display: inline-block; padding: 6px 14px; border-radius: 20px; background: #f1f3f5; color: var(--ink, #333); font-size: 0.85rem; font-weight: 500; text-decoration: none; margin-right: 6px; margin-bottom: 6px; transition: all 0.2s ease; border: 1px solid transparent; }
.filter-pill:hover { background: #e2e6ea; color: var(--moc-green); transform: translateY(-1px); }
.filter-pill.active { background: var(--moc-green); color: #fff; box-shadow: 0 2px 5px rgba(21, 117, 117, 0.3); }

.media-grids { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.modern-media-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; height: 100%; display: flex; flex-direction: column; }
.modern-media-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: var(--moc-green); transform: translateY(-2px); }
.card-img-wrapper { position: relative; padding-top: 75%; background: #f4f5f7; overflow: hidden; }
.card-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.modern-media-card:hover .card-img-wrapper img { transform: scale(1.05); }
.quick-edit-wrapper { margin-top: 8px; }
.quick-edit-wrapper form { display: flex; align-items: center; gap: 5px; }
.quick-edit-wrapper input, .quick-edit-wrapper textarea { border: 1px solid transparent; background: transparent; font-size: 0.9rem; font-weight: 600; color: #333; padding: 4px; border-radius: 4px; width: 100%; transition: all 0.2s; }
.quick-edit-wrapper input:hover, .quick-edit-wrapper input:focus { background: #f9f9f9; border-color: #ddd; }
.quick-edit-wrapper input:focus { outline: none; border-color: var(--moc-orange); background: #fff; }
.quick-edit-wrapper button, .quick-edit-wrapper input[type="submit"] { font-size: 0.7rem; padding: 4px 8px; background: var(--moc-green); color: white; border: none; border-radius: 4px; cursor: pointer; text-transform: uppercase; }


/* ============================================
   27. ACTION DOCK & POPOVER
   ============================================ */
.moc-action-dock { display: flex; justify-content: flex-start; gap: 12px; padding: 5px; flex-wrap: wrap; background: #fff; }
.dock-item { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; padding: 8px 4px; text-decoration: none !important; border-radius: 12px; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; border: 1px solid transparent; }
.dock-item:hover { background: var(--bg-light); transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.dock-item .icon-circle { width: 40px; height: 40px; background: #f0f2f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--ink-2); margin-bottom: 6px; transition: background 0.2s, color 0.2s; }
.dock-item:hover .icon-circle { background: var(--moc-green); color: #fff; }
.dock-item .icon-circle.ghost { background: transparent; border: 1px dashed var(--ink-grey); }
.dock-item:hover .icon-circle.ghost { background: var(--ink); border-style: solid; }
.dock-label { font-size: 0.75rem; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.5px; }
.dock-item > * { pointer-events: none; }

.popover-wrapper { position: relative; display: inline-block; }
.popover-links { display: none; position: absolute; top: 110%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 15px rgba(0,0,0,0.15); border-radius: 6px; padding: 10px; z-index: 100; min-width: 160px; text-align: left; }
.popover-links a { align-items: center; gap: 8px; padding: 8px 10px; color: #555; text-decoration: none; font-size: 0.85rem; border-radius: 4px; white-space: nowrap; }
.popover-links a:hover { background: #f0f7f7; color: #2d7a7a; }
.popover-wrapper.active .popover-links { display: block; }


/* ============================================
   28. MEDIA MANAGER
   ============================================ */
.media-manager { background: #fff; border-radius: 8px; border: 1px solid #e0e0e0; overflow: hidden; }
.media-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #f9f9f9; }
.media-upload-wrapper { padding: 15px; background: #fff; border-bottom: 1px solid #eee; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; padding: 15px; }
.media-manager .media-card,
.media-grid .media-card { position: relative; border-radius: 6px; overflow: hidden; background: #f0f0f0; aspect-ratio: 1 / 1; border: 1px solid #ddd; transition: all 0.2s ease; padding: 0; margin: 0; display: block; }
.media-manager .media-card:hover,
.media-grid .media-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.15); border-color: #bbb; }
.media-manager .media-thumb,
.media-grid .media-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.2s; display: flex; flex-direction: column; justify-content: space-between; padding: 5px; }
.media-card:hover .media-overlay { opacity: 1; }
.overlay-top { display: flex; justify-content: space-between; }
.move-handle { color: #fff; cursor: grab; font-size: 12px; padding: 2px 4px; background: rgba(0,0,0,0.3); border-radius: 3px; }
.overlay-bottom { display: flex; justify-content: flex-end; gap: 5px; }
.action-btn { width: 24px; height: 24px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #555; font-size: 11px; cursor: pointer; transition: background 0.1s; text-decoration: none; }
.action-btn:hover { background: #f0f0f0; color: #333; }
.action-btn.danger:hover { background: #fee; color: #c0392b; }
.section-label { font-size: 0.75rem; font-weight: 700; color: #999; text-transform: uppercase; margin: 10px 0 5px; padding-left: 15px; }
.confirm-pop { position: absolute; bottom: 30px; right: 0; background: #fff; border: 1px solid #c0392b; padding: 6px; border-radius: 4px; z-index: 20; font-size: 10px; width: 120px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.media-uploader-card { background: #fff; border-radius: 8px; position: relative; font-family: 'Inter', system-ui, sans-serif; }


/* ============================================
   29. MEDIA SPLIT VIEW (uploader)
   ============================================ */
.media-split-view { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; padding: 5px; }
.ms-left-col { min-width: 0; }
.ms-right-col.primary-id-grid { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; display: flex !important; flex-direction: column !important; gap: 12px; }
.sidebar-input-row { margin-bottom: 5px; }
.sidebar-label { font-size: 0.75rem; font-weight: 700; color: #999; text-transform: uppercase; margin-bottom: 4px; display: block; }
.primary-id-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 15px; background: #f9fbfb; border-bottom: 1px solid #eee; border-radius: 8px 8px 0 0; }
.gallery-link { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #ddd; border-radius: 6px; color: #f39c12; height: 38px; text-decoration: none; transition: all 0.2s; }
.gallery-link:hover { border-color: #f39c12; background: #fffdf5; }
.drop-zone-modern { border: 2px dashed #dbe4e8; border-radius: 8px; padding: 30px 20px; text-align: center; background: #fcfdfd; color: #7f8c8d; transition: all 0.2s; cursor: pointer; position: relative; margin: 15px; }
.drop-zone-modern:hover { border-color: #3498db; background: #f0f7fb; color: #3498db; }
.drop-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.section-label-sm { font-size: 0.75rem; font-weight: 700; color: #95a5a6; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.tag-area { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 15px; }
.tag-chip { background: #eef2f5; color: #555; font-size: 0.8rem; padding: 4px 10px; border-radius: 15px; cursor: pointer; transition: background 0.2s; border: 1px solid transparent; }
.tag-chip:hover { background: #e0e6ed; color: #333; }
.tag-chip.add-new { background: #fff; border-color: #ddd; color: #3498db; }
.tag-chip.add-new:hover { border-color: #3498db; background: #f0f7fb; }
.meta-inputs { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.submit-area { padding: 0 15px 15px; }
.btn-submit-media { width: 100%; background: #34495e; color: white; border: none; padding: 12px; border-radius: 6px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-submit-media:hover { background: #2c3e50; }
.preview-thumbs { display: flex; gap: 10px; padding: 0 15px 15px; overflow-x: auto; }
.p-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }


/* ============================================
   30. STAT TAB BTN
   ============================================ */
.stat-tab-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 8px; font-size: 1rem; cursor: pointer; border-radius: 4px; transition: background 0.2s; border-right: 1px solid #eee; text-decoration: none !important; color: var(--text-muted); }
.stat-tab-btn:last-child { border-right: none; }
.stat-tab-btn:hover { background-color: #e2e8f0; }
.st-main { font-weight: 700; font-size: 1.1rem; color: var(--moc-green); margin-bottom: 2px; }
.st-foot { display: flex; gap: 8px; font-size: 0.85rem; color: #888; }
.st-foot span, .st-foot a { display: flex; align-items: center; gap: 3px; color: #666; }
.st-main i, .st-foot i { margin-left: 3px; }


/* ============================================
   31. COMMAND CENTER GRID
   ============================================ */
.command-center-grid { display: grid; grid-template-columns: 100px 1fr; gap: 10px; background: var(--bg-light); overflow: hidden; }
.cc-sidebar { display: flex; flex-direction: column; align-items: center; }
.dock-vertical { background: #fff; border: 1px solid var(--line); align-items: center; width: 95%; border-radius: 16px; padding: 5px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow); height: 100%; }
.cc-main { min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.cc-right { display: flex; flex-direction: column; gap: 15px; height: 100%; }
.metrics-grid-header { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.metric-card-visual { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; transition: all 0.2s ease; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; height: 70px; }
.metric-card-visual:hover { transform: translateY(-2px); border-color: var(--moc-green); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.mc-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--ink-2); text-transform: uppercase; font-weight: 700; }
.mc-val { font-size: 2.2rem; font-weight: 800; color: var(--ink-grey); line-height: 1; }
.mc-val.active-count { color: var(--moc-green); }
.admin-desktop { display: grid; grid-template-columns: 1fr 350px; }
.full-click > * { pointer-events: none; }
.full-click { display: block; text-decoration: none; cursor: pointer; }


/* ============================================
   32. PAYMENT CARD
   ============================================ */
.pay-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.pay-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.pay-status-strip { width: 6px; }
.pay-body { flex: 1; padding: 10px 15px; }
.pay-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.pay-controls { display: flex; gap: 10px; align-items: center; }
.pay-input-group { width: 85px; }
.pay-input-group label { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; margin-bottom: 2px; display: block; }
.pay-input-group input, .pay-input-group select { width: 100%; padding: 4px; font-size: 13px; border: 1px solid #ccc; border-radius: 4px; height: 30px; }
.btn-square-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid #e0e0e0; border-radius: 4px; background: #fff; color: #555; transition: all 0.2s; text-decoration: none; }
.btn-square-icon:hover { border-color: #bbb; background: #f9f9f9; color: #333; }
.pay-info { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8fcf8; border-radius: 6px; padding: 4px 12px; border: 1px dashed #dbece2; }
.pay-amount-lg { font-size: 1.2rem; font-weight: 800; color: var(--moc-green); line-height: 1.1; }
.pay-meta { text-align: right; font-size: 11px; color: #888; line-height: 1.3; }
.pay-meta .ord-num { font-weight: 700; color: #333; font-size: 12px; }
.pay-details { background: #fafafa; border-top: 1px solid #eee; padding: 15px; display: none; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.moc-dashboard-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 600px; }


/* ============================================
   33. SMART TOOLBAR
   ============================================ */
.dashboard-toolbar { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; }
.toolbar-group { display: flex; align-items: center; gap: 8px; }
.drawer-item { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 50px; position: relative; }
.drawer-label { font-size: 10px; color: #888; font-weight: 700; text-transform: uppercase; line-height: 1; text-align: center; white-space: nowrap; }
.preset-pill { font-size: 13px; font-weight: 600; color: #555; background: #f1f5f9; padding: 6px 12px; border-radius: 20px; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; cursor: pointer; }
.preset-pill:hover, .preset-pill.active { background: #e0f2f1; color: var(--moc-green); border-color: #b2dfdb; }
.preset-pill.blue { color: #1565c0; background: #e3f2fd; }
.preset-pill.blue:hover { background: #bbdefb; }


/* ============================================
   34. SHEET MODAL
   ============================================ */
.sheet-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(2px); }
.sheet-modal-overlay.active { opacity: 1; visibility: visible; }
.sheet-modal-content { position: fixed; bottom: 0; left: 0; right: 0; background: #ffffff; border-top-left-radius: 24px; border-top-right-radius: 24px; padding: 20px 20px 40px 20px; z-index: 10000; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1); max-height: 85vh; overflow-y: auto; max-width: 600px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); }
.sheet-modal-overlay.active .sheet-modal-content { transform: translateY(0); }
.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.sheet-title { font-size: 1.2rem; font-weight: 800; color: #333; margin: 0; display: flex; align-items: center; gap: 10px; }
.sheet-close-btn { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #555; cursor: pointer; transition: background 0.2s; }
.sheet-close-btn:hover { background: #e2e8f0; color: #000; }
.sheet-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-action-btn { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: all 0.2s; text-decoration: none !important; color: #333; }
.sheet-action-btn:hover, .sheet-action-btn:active { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-2px); }
.sheet-action-btn i { font-size: 1.6rem; color: var(--moc-green); }
.sheet-action-btn span { font-size: 0.85rem; font-weight: 700; text-align: center; }
.sheet-action-btn.highlight { border: 2px solid var(--moc-green); background: #f0fdf4; }


/* ============================================
   35. GENERIC GRID BUTTONS
   ============================================ */
.moc-btn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; }
.moc-grid-btn { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); cursor: pointer; transition: all 0.2s ease; text-decoration: none !important; color: #333333; }
.moc-grid-btn:hover { transform: translateY(-2px); background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 6px 15px rgba(0,0,0,0.08); }
.moc-grid-btn:active { transform: scale(0.96); box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.moc-grid-btn i { font-size: 1.8rem; color: var(--moc-green, #157575); }
.moc-grid-btn span { font-size: 0.85rem; font-weight: 700; text-align: center; line-height: 1.2; }
.moc-grid-btn.span-2 { grid-column: span 2; flex-direction: row; padding: 15px; }
.moc-grid-btn.highlight { border: 2px solid var(--moc-green, #157575); background: #f0fdf4; }
.moc-grid-btn.danger i { color: #e74c3c; }


/* ============================================
   36. MOBILE/DESKTOP TRIGGER FLIPS
   ============================================ */
.mobile-trigger { display: none !important; }
.desktop-trigger { display: flex !important; }


/* ============================================
   37. HERO FADING GROUPS + 3-COL GRID
   ============================================ */
.portal-slogans { position: relative; width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; }
.fade-group { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; }
.fade-group.item-1 { animation: fadeOne 15s infinite ease-in-out; }
.fade-group.item-2 { animation: fadeTwo 15s infinite ease-in-out; }
.fade-group.item-3 { animation: fadeThree 15s infinite ease-in-out; }
.fade-text-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: #ffffff !important; margin: 0 0 10px 0; text-shadow: 0 4px 15px rgba(0,0,0,0.8); text-align: center; line-height: 1.1; }
.fade-text-tagline { font-family: system-ui, -apple-system, sans-serif; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 4px; color: #9ae6b4 !important; font-weight: 700; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.8); text-align: center; }
@keyframes fadeOne { 0% { opacity: 0; transform: translateY(10px); filter: blur(2px); } 3%, 30% { opacity: 1; transform: translateY(0); filter: blur(0); } 33%, 100% { opacity: 0; transform: translateY(-10px); filter: blur(2px); } }
@keyframes fadeTwo { 0%, 33% { opacity: 0; transform: translateY(10px); filter: blur(2px); } 36%, 63% { opacity: 1; transform: translateY(0); filter: blur(0); } 66%, 100% { opacity: 0; transform: translateY(-10px); filter: blur(2px); } }
@keyframes fadeThree { 0%, 66% { opacity: 0; transform: translateY(10px); filter: blur(2px); } 69%, 96% { opacity: 1; transform: translateY(0); filter: blur(0); } 100% { opacity: 0; transform: translateY(-10px); filter: blur(2px); } }
.moc-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }


/* ============================================
   38. EVENT GRIDS
   ============================================ */
.event-grid { align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 15px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.users-list-event-grid { grid-template-columns: 100px 60px 60px 60px 1fr 130px 90px; }
.console-list-event-grid { grid-template-columns: 100px 60px 60px 60px 1fr 130px 90px; }
.class-list-event-grid { grid-template-columns: 100px 50px 50px 1fr 50px; }
.standard-list-event-grid { grid-template-columns: 100px 60px 60px 1fr 130px 90px; }


/* ============================================
   39. SEARCH RESULTS DROPDOWN
   ============================================ */
#searchResultsDashboard {
    display: none; position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 600px;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 9999; padding: 20px;
    max-height: 80vh; overflow-y: auto;
    border-radius: 16px; margin-top: 10px;
}
.close-search { float: right; cursor: pointer; font-size: 20px; color: #666; }
.search-grid { display: grid; grid-template-columns: 30% 70%; gap: 20px; }
.search-section h4 { border-bottom: 2px solid orange; padding-bottom: 5px; color: #333; text-transform: uppercase; font-size: 14px; margin-bottom: 15px; }
.search-item { display: block; padding: 10px; background: white; border: 1px solid #eee; margin-bottom: 8px; border-radius: 4px; cursor: pointer; text-decoration: none; color: #333; transition: all 0.2s; }
.search-item:hover { background: #fff3cd; border-color: orange; transform: translateX(5px); }
.search-item .type-badge { font-size: 10px; background: #eee; padding: 2px 5px; border-radius: 3px; color: #666; margin-right: 5px; }
.other-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.ui-autocomplete-category { font-weight: bold; padding: 5px 10px; margin: 5px 0 2px 0; color: #e67e22; background-color: #f8f9fa; border-bottom: 1px solid #ddd; text-transform: uppercase; font-size: 11px; line-height: 1.5; }
.ui-menu-item .item-wrapper { display: flex; flex-direction: column; padding: 2px 0; }
.ui-menu-item .item-name { font-weight: 600; font-size: 13px; color: #333; }
.ui-menu-item .item-meta { font-size: 11px; color: #999; }


/* ============================================
   40. AUTOS DASHBOARD
   ============================================ */
.autos-dashboard { max-width: 1100px; margin: 0 auto; padding: 15px; font-family: inherit; }
.dash-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #e5e5e5; margin-bottom: 15px; }
.dash-header-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-header-right { display: flex; align-items: center; gap: 10px; }
.dash-title { margin: 0; font-size: 18px; font-weight: 600; color: #2a2a2a; }
.dash-title i { margin-right: 6px; color: #157575; }
.dash-date-nav { display: flex; align-items: center; gap: 8px; }
.dash-date-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #e0e0e0; border-radius: 4px; color: #555; text-decoration: none; transition: all 0.15s; }
.dash-date-btn:hover { background: #f5f5f5; color: #157575; }
.dash-date-btn.disabled { opacity: 0.3; cursor: default; }
.dash-date-label { font-weight: 600; font-size: 14px; min-width: 80px; text-align: center; color: #333; }
.dash-date-picker { border: 1px solid #e0e0e0; border-radius: 4px; padding: 4px 8px; font-size: 12px; }
.dash-run-btn-group { position: relative; display: flex; }
.dash-run-btn { background: #157575; color: white; border: none; padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 4px 0 0 4px; cursor: pointer; transition: background 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dash-run-btn:hover { background: #0e5454; color: white; text-decoration: none; }
.dash-run-caret { background: #157575; color: white; border: none; border-left: 1px solid rgba(255,255,255,0.2); padding: 8px 10px; border-radius: 0 4px 4px 0; cursor: pointer; }
.dash-run-caret:hover { background: #0e5454; }
.dash-run-menu { position: absolute; top: 100%; right: 0; background: white; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); min-width: 150px; z-index: 100; margin-top: 4px; }
.dash-run-menu-item { display: block; padding: 8px 12px; color: #333; text-decoration: none; font-size: 13px; }
.dash-run-menu-item:hover { background: #f5f5f5; color: #157575; }
.dash-status-strip { display: flex; flex-wrap: wrap; gap: 20px; padding: 10px 15px; background: #fafafa; border-radius: 6px; margin-bottom: 20px; font-size: 13px; }
.dash-status-item { display: inline-flex; align-items: center; gap: 6px; }
.dash-status-item.green { color: #2a7a2a; }
.dash-status-item.red { color: #b63535; }
.dash-panel { background: white; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.dash-panel-header { padding: 12px 16px; background: #f8f8f8; border-bottom: 1px solid #e8e8e8; }
.dash-panel-title { font-weight: 700; font-size: 12px; letter-spacing: 1px; color: #555; }
.dash-panel-body { padding: 8px 0; }
.dash-subsection-label { padding: 6px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #999; font-weight: 600; }
.dash-metric-row { display: grid; grid-template-columns: 180px 1fr 160px; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid #f5f5f5; transition: background 0.15s; }
.dash-metric-row:hover { background: #fafafa; }
.dash-metric-row:last-child { border-bottom: none; }
.dash-metric-label { font-size: 13px; font-weight: 500; color: #333; }
.dash-metric-label i { color: #888; margin-right: 6px; width: 14px; }
.dash-metric-bar-wrap { background: #f0f0f0; height: 8px; border-radius: 4px; overflow: hidden; }
.dash-metric-bar { background: linear-gradient(90deg, #2da8a8, #157575); height: 100%; border-radius: 4px; transition: width 0.3s; }
.dash-metric-stats { font-size: 12px; text-align: right; }
.dash-metric-detail { background: #fafafa; padding: 4px 16px 12px 16px; border-bottom: 1px solid #f0f0f0; }
.dash-recipient-row { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 12px; border-bottom: 1px dashed #e8e8e8; }
.dash-recipient-row:last-child { border-bottom: none; }
.dash-recipient-time { min-width: 60px; }
.dash-recipient-name { font-weight: 600; flex: 1; }
.dash-empty-state { text-align: center; padding: 60px 20px; color: #999; }
.dash-empty-state p { margin-top: 12px; }
.dash-range-select { position: relative; display: inline-block; margin-left: 10px; }
.dash-range-btn { background: white; color: #555; border: 1px solid #e0e0e0; border-radius: 4px; padding: 6px 12px; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.dash-range-btn:hover { background: #f5f5f5; border-color: #ccc; color: #157575; }
.dash-range-btn i.fa-calendar { margin-right: 4px; color: #888; }
.dash-range-btn i.fa-caret-down { margin-left: 4px; }
.dash-range-menu { position: absolute; top: 100%; left: 0; background: white; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); min-width: 160px; z-index: 100; margin-top: 4px; }
.dash-range-item { display: block; padding: 8px 14px; color: #333; text-decoration: none; font-size: 13px; }
.dash-range-item:hover { background: #f5f5f5; color: #157575; }
.dash-range-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.dash-day-group { margin-bottom: 24px; }
.dash-day-label { font-size: 13px; font-weight: 700; color: #666; padding: 8px 4px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #e8e8e8; margin-bottom: 12px; }


/* ============================================
   41. CAMPAIGNS UI
   ============================================ */
.campaigns-display, .campaign-display { width: 100%; max-width: 1600px; margin: 0 auto; padding: 24px 28px; box-sizing: border-box; }
.camp-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; }
.camp-header-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.camp-title { margin: 0; font-size: 20px; font-weight: 700; color: #2a2a2a; }
.camp-title i { margin-right: 8px; color: #157575; }
.camp-filter-pills { display: flex; gap: 6px; }
.camp-pill { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #f0f0f0; color: #555; text-decoration: none; transition: all 0.15s; }
.camp-pill:hover { background: #e0e0e0; color: #157575; }
.camp-pill.active { background: #157575; color: white; }
.camp-pill-small { padding: 3px 10px; font-size: 11px; }
.camp-btn-primary { background: #157575; color: white; border: none; padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s; }
.camp-btn-primary:hover { background: #0e5454; color: white; text-decoration: none; }
.camp-btn-small { background: white; color: #555; border: 1px solid #e0e0e0; padding: 5px 10px; font-size: 12px; border-radius: 4px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s; }
.camp-btn-small:hover { background: #f5f5f5; color: #157575; border-color: #157575; text-decoration: none; }
.camp-btn-cancel { background: #f0f0f0; color: #555; border: none; padding: 8px 16px; font-size: 13px; border-radius: 6px; cursor: pointer; }
.camp-btn-secondary { background: white; color: #157575; border: 1px solid #157575; padding: 8px 14px; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s; }
.camp-btn-secondary:hover { background: #f0f8f8; color: #0e5454; text-decoration: none; }
.camp-btn-test { background: #fff7e8; color: #8a5a00; border: 1px solid #fce8c2; padding: 5px 12px; font-size: 12px; border-radius: 4px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s; }
.camp-btn-test:hover { background: #fce8c2; color: #6d4700; border-color: #e8a33d; text-decoration: none; }
.camp-btn-test i { color: #e8a33d; }
.camp-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-right: 4px; }
.camp-badge.green { background: #d4edda; color: #155724; }
.camp-badge.blue { background: #cce5ff; color: #004085; }
.camp-badge.yellow { background: #fff3cd; color: #856404; }
.camp-badge.red { background: #f8d7da; color: #721c24; }
.camp-badge.grey { background: #e9ecef; color: #555; }
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.camp-card { background: white; border: 1px solid #e8e8e8; border-radius: 10px; padding: 16px; transition: box-shadow 0.2s; }
.camp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.camp-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.camp-card-title { font-size: 15px; font-weight: 700; color: #2a2a2a; line-height: 1.3; }
.camp-card-title a { color: #2a2a2a; text-decoration: none; }
.camp-card-title a:hover { color: #157575; }
.camp-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #666; padding-bottom: 10px; border-bottom: 1px dashed #eee; margin-bottom: 10px; }
.camp-card-meta i { margin-right: 4px; }
.camp-card-desc { font-size: 12px; color: #555; line-height: 1.5; margin-bottom: 12px; }
.camp-card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; background: #fafafa; border-radius: 6px; margin-bottom: 12px; }
.camp-stat { text-align: center; }
.camp-stat-num { font-size: 18px; font-weight: 700; color: #157575; line-height: 1; }
.camp-stat-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }
.camp-card-actions { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.camp-detail-header { margin-bottom: 24px; }
.camp-back { color: #666; text-decoration: none; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.camp-back:hover { color: #157575; }
.camp-detail-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.camp-detail-title { margin: 0; font-size: 22px; font-weight: 700; }
.camp-detail-actions { display: flex; gap: 6px; }
.camp-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.camp-detail-desc { padding: 12px 16px; background: #fafafa; border-left: 3px solid #157575; border-radius: 4px; font-size: 13px; color: #555; line-height: 1.5; }
.camp-panel { background: white; border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 24px; overflow: hidden; }
.camp-panel-header { padding: 14px 20px; background: #f8f8f8; border-bottom: 1px solid #e8e8e8; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.camp-panel-title { font-weight: 700; font-size: 12px; letter-spacing: 1px; color: #555; }
.camp-sub-count-badges { margin-left: 10px; }
.camp-panel-body { padding: 6px 0; }
.camp-empty-subpanel { padding: 30px 16px; text-align: center; color: #999; font-size: 13px; }
.camp-touchpoint-row { display: grid; grid-template-columns: 40px 1fr 80px 80px; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #f5f5f5; }
.camp-touchpoint-row:last-child { border-bottom: none; }
.camp-tp-position { width: 30px; height: 30px; background: #157575; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.camp-tp-name { font-weight: 600; font-size: 14px; color: #333; margin-bottom: 4px; }
.camp-tp-name i { color: #888; margin-right: 6px; }
.camp-tp-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #666; }
.camp-tp-timing { background: #f0f8f8; padding: 2px 8px; border-radius: 3px; }
.camp-tp-condition { background: #fff4e0; padding: 2px 8px; border-radius: 3px; color: #8a5a00; }
.camp-tp-subject { margin-top: 4px; }
.camp-tp-stats { text-align: center; }
.camp-tp-sent { font-size: 18px; font-weight: 700; color: #157575; line-height: 1; }
.camp-tp-sent-label { font-size: 10px; color: #888; text-transform: uppercase; }
.camp-tp-actions { display: flex; gap: 8px; justify-content: flex-end; }
.camp-tp-actions a { color: #666; padding: 4px; transition: color 0.15s; }
.camp-tp-actions a:hover { color: #157575; }
.camp-tp-actions a.red:hover { color: #b63535; }
.camp-sub-table { width: 100%; border-collapse: collapse; }
.camp-sub-table th { text-align: left; padding: 12px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; font-weight: 600; background: #fafafa; border-bottom: 1px solid #e0e0e0; }
.camp-sub-table td { padding: 12px 20px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.camp-sub-filter { display: flex; gap: 4px; }
.camp-form-wrap { padding: 20px; max-width: 700px; margin: 0 auto; }
.camp-form-title { margin: 0 0 20px 0; font-size: 18px; }
.camp-form-title i { color: #157575; margin-right: 8px; }
.camp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.camp-form-field { display: flex; flex-direction: column; }
.camp-form-field-full { grid-column: 1 / -1; }
.camp-form-field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; font-weight: 600; margin-bottom: 6px; }
.camp-form-field input, .camp-form-field select, .camp-form-field textarea { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; font-family: inherit; }
.camp-form-field input:focus, .camp-form-field select:focus, .camp-form-field textarea:focus { outline: none; border-color: #157575; box-shadow: 0 0 0 2px rgba(21,117,117,0.1); }
.camp-form-section-header { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #555; font-weight: 700; padding: 10px 0 4px 0; border-bottom: 1px solid #eee; margin-top: 8px; }
.camp-form-section-header i { color: #157575; margin-right: 6px; }
.camp-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 20px; margin-top: 16px; border-top: 1px solid #eee; }
.camp-empty-state { text-align: center; padding: 60px 20px; color: #999; }
.camp-empty-state p { margin-top: 12px; }
.tp-form-section { padding: 14px 10px; border-bottom: 1px solid #f0f0f0; margin-bottom: 4px; }
.tp-form-section:last-child { border-bottom: none; }
.tp-section-header { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #157575; font-weight: 700; margin-bottom: 10px; }
.tp-section-header i { margin-right: 6px; }
.tp-section-condition { background: #fffaf0; border-left: 3px solid #e8a33d; border-radius: 4px; margin: 10px; padding: 14px; }
.tp-merge-hints { padding: 10px 14px; background: #f0f8f8; border-left: 3px solid #157575; border-radius: 4px; font-size: 12px; margin-bottom: 10px; }
.tp-merge-tag { display: inline-block; background: white; color: #157575; border: 1px solid #c8e0e0; border-radius: 3px; padding: 1px 7px; font-family: monospace; font-size: 11px; margin: 2px 4px 2px 0; cursor: pointer; transition: all 0.15s; }
.tp-merge-tag:hover { background: #157575; color: white; border-color: #157575; }
.tp-merge-tag.copied { background: #2a7a2a; color: white; border-color: #2a7a2a; }
.camp-group { margin-bottom: 20px; background: white; border-radius: 6px; overflow: hidden; }
.camp-group-header { padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.06); }
.camp-group-label { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.camp-group-label i { margin-right: 6px; }
.camp-table { width: 100%; border-collapse: collapse; background: white; }
.camp-table th { padding: 12px 16px; font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; text-align: left; background: #fafafa; border-bottom: 1px solid #e8e8e8; }
.camp-table th.text-center { text-align: center; }
.camp-table th.text-right { text-align: right; }
.camp-table td { padding: 12px 16px; border-bottom: 1px solid #f5f5f5; font-size: 13px; vertical-align: middle; }
.camp-table tbody tr:hover { background: #fafafa; }
.camp-row-name { color: #2a2a2a; font-weight: 600; text-decoration: none; }
.camp-row-name:hover { color: #157575; }
.camp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; color: #666; text-decoration: none; margin-left: 2px; transition: all 0.15s; }
.camp-icon-btn:hover { background: #f0f8f8; color: #157575; }


/* ============================================
   42. USER CONSOLE — CAMPAIGNS CARD
   ============================================ */
/* line ~1358 — change overflow: hidden to visible */
.user-campaigns-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 15px; overflow: visible; }

/* add these two lines right after — header corners were relying on the clip */
.ucc-header { border-radius: 11px 11px 0 0; }
.ucc-panel.collapsed .ucc-header { border-radius: 11px; }

.ucc-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: linear-gradient(to right, #f0f8f8, #fff); border-bottom: 1px solid #e2e8f0; }
.ucc-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #157575; display: flex; align-items: center; gap: 8px; }
.ucc-count-badge { background: #157575; color: white; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.ucc-add-wrap { position: relative; }
.ucc-add-btn { background: #157575; color: white; border: none; padding: 5px 12px; font-size: 12px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: background 0.15s; }
.ucc-add-btn:hover { background: #0e5454; }
.ucc-add-btn i { margin-right: 4px; }
.ucc-add-menu { position: absolute; top: 100%; right: 0; background: white; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); min-width: 280px; max-width: 380px; z-index: 100; margin-top: 4px; overflow: hidden; }
.ucc-add-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #333; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
.ucc-add-item:last-child { border-bottom: none; }
.ucc-add-item:hover { background: #f0f8f8; color: #157575; }
.ucc-add-name { font-size: 13px; font-weight: 600; }
.ucc-empty { padding: 14px; text-align: center; font-size: 12px; color: #999; }
.ucc-empty-state { padding: 20px 15px; text-align: center; display: flex; justify-content: center; align-items: center; gap: 8px; }
.ucc-empty-state i { font-size: 16px; }
.ucc-subs-list { padding: 8px; }
.ucc-sub-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 6px; border-radius: 8px; transition: all 0.15s; }
.ucc-sub-row:last-child { margin-bottom: 0; }
.ucc-sub-main { flex: 1; }
.ucc-sub-name { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.ucc-sub-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ucc-sub-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #555; }
.ucc-sub-meta-item { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: inherit; }
.ucc-sub-meta-item i { font-size: 10px; opacity: 0.6; }
.ucc-sub-actions { display: flex; gap: 4px; }
.ucc-sub-action { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 4px; color: #555; text-decoration: none; transition: all 0.15s; background: rgba(255,255,255,0.6); }
.ucc-sub-action:hover { background: white; color: #157575; }
.ucc-sub-action.red:hover { color: #b63535; }


/* ============================================
   47. THREAD UNREAD STYLING
   ============================================ */
.message-wrap.unread .message-content { font-weight: 800 !important; color: #000 !important; }
.message-wrap.unread .message-time { color: var(--moc-orange, #ea580c) !important; font-weight: 800 !important; }
.message-wrap.unread .message-avatar { box-shadow: 0 0 0 2px var(--moc-orange, #ea580c), 0 0 0 4px #fff7ed; }
.message-wrap:not(.unread) .message-content { color: #64748b; font-weight: 500; }
.message-wrap:not(.unread) .message-avatar { opacity: 0.65; }


/* ============================================
   48. NAV FAB BUTTONS (top right)
   ============================================ */
.fab-nav-primary, .fab-nav-secondary { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: transform 0.15s, box-shadow 0.15s; }
.fab-nav-primary:hover, .fab-nav-secondary:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.14); text-decoration: none; }
.fab-nav-primary { background: var(--moc-green, #16a34a); color: #fff; font-size: 1rem; }
.fab-nav-primary:hover { color: #fff; background: #15803d; }
.fab-nav-secondary { background: #fff; color: var(--primary, #0f2a24); border: 2px solid #e2e8f0; font-size: 1rem; }
.fab-nav-secondary:hover { color: var(--primary, #0f2a24); background: #f8fafc; border-color: var(--primary, #0f2a24); }
.nav-group.nav-right { display: flex; gap: 10px; align-items: center; }


/* =======================================================
   ============================================
   MOBILE / RESPONSIVE OVERRIDES (LAST in cascade)
   ============================================
   ======================================================= */

/* Print */
@media print {
    .no-print { display: none !important; }
}

/* Mobile/desktop trigger flip */
@media (max-width: 768px) {
    .desktop-trigger { display: none !important; }
    .mobile-trigger { display: flex !important; }
}

/* Property dashboard mobile */
@media (max-width: 640px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .layout-sidebar { width: 100%; }
    .media-grid-sidebar { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Meta inputs */
@media (max-width: 600px) {
    .meta-inputs { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
}

/* Media split view */
@media (max-width: 768px) {
    .media-split-view { grid-template-columns: 1fr; }
    .ms-right-col.primary-id-grid { order: -1; }
}

/* moc-calendar narrow */
@media (max-width: 700px) {
    .moc-calendar .cal-day { min-height: 60px; font-size: 0.8rem; padding: 4px; }
    .moc-calendar .cal-day .num { font-size: 1rem; }
    .moc-calendar .cal-day a { font-size: 0.85rem; }
    .moc-calendar .cal-weekdays div { font-size: 0.75rem; }
}

/* Standard event grid mobile */
@media (max-width: 768px) {
    .standard-list-event-grid { grid-template-columns: 40px 40px 150px 1fr; }
}

/* Hero fading + 3-col mobile */
@media (max-width: 900px) {
    .moc-3-grid { grid-template-columns: 1fr; }
    .fade-text-title { font-size: 2.2rem; }
    .fade-text-tagline { font-size: 0.9rem; letter-spacing: 2px; }
}

/* Command center narrow */
@media (max-width: 900px) {
    .command-center-grid { display: flex; flex-direction: column; height: auto; overflow: visible; }
    .admin-desktop { display: grid; grid-template-columns: 1fr; }
    .dock-vertical { flex-direction: row; width: 100%; justify-content: space-around; height: auto; }
    .metrics-grid-header { grid-template-columns: repeat(4, 1fr); }
}

/* Modern split + dashboard header mobile */
@media (max-width: 768px) {
    .dashboard-grid.modern-split { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .header-actions { justify-content: space-between; width: 100%; margin-top: 10px; }
    .dashboard-header { flex-direction: column; align-items: flex-start; height: auto; }
}

/* Split view container + message bits + dashboard tweaks */
@media (max-width: 768px) {
    .split-view-container { grid-template-columns: 1fr; }
    .message-header { row-gap: 4px; }
    .context-badge { white-space: nowrap; font-size: 10px; padding: 1px 5px; display: inline-flex; align-items: center; }
    .message-author { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
    .msc-value { font-size: 1.3rem; }
    .msc-footer { flex-direction: unset; position: unset; }
    .dashboard-grid { gap: 8px; }
    .moc-stat-card { padding: 6px; }
    .desktop-only { display: none !important; }
}

/* Autos dashboard mobile */
@media (max-width: 768px) {
    .dash-metric-row { grid-template-columns: 1fr; gap: 6px; }
    .dash-metric-stats { text-align: left; }
    .dash-header { flex-direction: column; align-items: stretch; }
    .dash-header-right { justify-content: flex-end; }
}

/* Campaigns mobile */
@media (max-width: 768px) {
    .camp-form-grid { grid-template-columns: 1fr; }
    .camp-touchpoint-row { grid-template-columns: 40px 1fr; }
    .camp-tp-stats, .camp-tp-actions { grid-column: 2; justify-content: flex-start; }
}

/* User console campaigns mobile */
@media (max-width: 768px) {
    .ucc-sub-row { flex-direction: column; align-items: stretch; }
    .ucc-sub-actions { justify-content: flex-end; margin-top: 6px; }
}





/* Booking include grid narrow */
@media (max-width: 1100px) {
    .booking-include-grid { grid-template-columns: 30px 85px 105px 1fr 70px; gap: 6px; }
    .booking-include-grid .units-stat-item:nth-of-type(2),
    .booking-include-grid .units-booking-id { display: none; }
}

/* UV-drawer half-grid mobile narrow */
@media (max-width: 420px) {
    .uv-drawer-grid-half { grid-template-columns: 1fr; }
}



/* =======================================================
   ============================================
   43. UNIVERSAL DASHBOARD V3 (uv3-)
   v2 — clean rewrite. Consolidates old sections 43-46
        + mobile nav + all patches into one coherent block.

   Structure:
     43A. Wrapper + grid layout
     43B. Inbox tabs
     43C. Tasks card actions (paper plane + cron heart)
     43D. Unified strip (week + pulse merged)
     43E. Mini week day cells
     43F. Pulse tiles
     43G. UV3 drawer (slides over inbox)

   Then:
     44.  Mobile / responsive — dashboard + unified nav
   ============================================
   ======================================================= */


/* ----- 43A. WRAPPER + LAYOUT ----- */

.uv3-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: calc(100vh - 95px);
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
}
.uv3-cell {
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}
.uv3-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.uv3-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    gap: 10px;
}
.uv3-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary, #0f2a24);
    display: flex;
    align-items: center;
    gap: 8px;
}
.uv3-card-title i { color: #64748b; font-size: 0.95rem; }
.uv3-card-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 10px;
    background: #fff;
}
.uv3-count-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #94a3b8;
}
.uv3-count-badge.active { background: var(--moc-orange, #ea580c); color: #fff; }


/* 4-cell strip: today cell + 3 pulse tiles */
.uv3-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex-shrink: 0;
}

/* Today cell scales up to match pulse tile visual weight */
.uv3-today-cell {
    min-height: 88px;
    justify-content: center;
    padding: 14px;
}
.uv3-today-cell .mini-week-day-name { font-size: 0.85rem; }
.uv3-today-cell .mini-week-day-num  { font-size: 2rem; margin-top: 4px; }

/* Tablet/mobile: 2x2 stack */
@media (max-width: 1024px) {
    .uv3-strip-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Inbox + Tasks 2-column layout */
.uv3-grid-v2 {
    flex: 1;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 14px;
    min-height: 0;
}
.uv3-inbox-v2,
.uv3-tasks-v2 {
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}


/* ----- 43B. INBOX TABS ----- */

.uv3-inbox-tabs-header { display: flex; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.uv3-inbox-tabs-track { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; background: #eef2f0; border-radius: 12px; padding: 3px; gap: 2px; }
.uv3-inbox-tabs-header .uv3-inbox-tab { display: flex; justify-content: center; align-items: center; gap: 6px; min-width: 0; padding: 7px 6px; border-radius: 9px; background: transparent; border: none; text-decoration: none; color: #64748b; font-size: 0.78rem; font-weight: 800; transition: all 0.15s; white-space: nowrap; }
.uv3-inbox-tabs-header .uv3-inbox-tab:hover { color: #0f2a24; text-decoration: none; }
.uv3-inbox-tabs-header .uv3-inbox-tab.active { background: #fff; color: var(--primary, #0f2a24); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.uv3-inbox-tabs-header .uv3-inbox-tab i { font-size: 0.85rem; }
.uv3-tab-label { overflow: hidden; text-overflow: ellipsis; }
.uv3-tab-badge { font-size: 0.65rem; font-weight: 800; padding: 1px 6px; border-radius: 8px; background: #e2e8f0; color: #94a3b8; min-width: 18px; text-align: center; }
.uv3-tab-badge.active { background: var(--moc-orange, #ea580c); color: #fff; }

/* Mobile: bigger thumb targets, drop icons, keep labels + counts */
@media (max-width: 768px) {
    .uv3-inbox-tabs-header .uv3-inbox-tab { padding: 10px 4px; font-size: 0.7rem; gap: 4px; }
    .uv3-inbox-tabs-header .uv3-inbox-tab i { display: none; }
}
/* ----- 43C. TASKS CARD ACTIONS (paper plane + cron heart) ----- */

.uv3-tasks-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.uv3-task-action-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #0f2a24);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.15s;
}
.uv3-task-action-btn:hover {
    transform: translateY(-1px);
    background: #f1f5f9;
    border-color: var(--primary, #0f2a24);
    text-decoration: none;
}
.pulse-action-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}


/* ----- 43D. UNIFIED STRIP (week + pulse merged) -----
   Desktop: 7 day cells + 3 pulse tiles in one row
   Pulse tiles take 1.7fr each; days take min(0,1fr) so
   they shrink before pulse does.
*/
.uv3-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)) repeat(3, minmax(150px, 1.7fr));
    gap: 10px;
    flex-shrink: 0;
    align-items: stretch;
}


/* ----- 43E. MINI WEEK DAY CELLS ----- */

.mini-week-day {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    gap: 2px;
    position: relative;
    z-index: 2;
    min-width: 0;
}
.mini-week-day:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
    text-decoration: none;
    transform: translateY(-2px);
}
.mini-week-day.is-today {
    background: var(--moc-green, #16a34a);
    border-color: var(--moc-green, #16a34a);
}
.mini-week-day.is-today .mini-week-day-name,
.mini-week-day.is-today .mini-week-day-num { color: #fff; }
.mini-week-day.is-past { opacity: 0.55; }

.mini-week-day-name {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mini-week-day-num {
    font-size: 1rem;
    font-weight: 800;
    color: #0f2a24;
    line-height: 1.2;
    margin-top: 1px;
}
.mini-week-day-indicators {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.mini-week-count {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    color: #fff;
    min-width: 16px;
    text-align: center;
}
.mini-week-count-event { background: var(--primary, #0f2a24); }
.mini-week-day.is-today .mini-week-count-event {
    background: #fff;
    color: var(--primary, #0f2a24);
}
.mini-week-count-shipping { background: #0284c7; }
.mini-week-day.is-today .mini-week-count-shipping {
    background: #fff;
    color: #0284c7;
}


/* ----- 43F. PULSE TILES ----- */

.pulse-tile-compact {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.15s;
    cursor: pointer;
    gap: 6px;
    min-width: 0;
}
.pulse-tile-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-decoration: none;
}
.pulse-tile-compact.tile-active {
    border-color: var(--primary, #0f2a24);
    box-shadow: 0 0 0 2px var(--primary, #0f2a24);
}
.pulse-tile-compact > * { pointer-events: none; }

.pulse-tile-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pulse-tile-mini-icon {
    color: var(--primary, #0f2a24);
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}
.pulse-tile-label-compact {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f2a24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-tile-row {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    align-items: baseline;
}
.pulse-tile-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.pulse-tile-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f2a24;
    font-family: 'Inter', monospace;
    line-height: 1;
}
.pulse-tile-stat-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pulse-tile-stat-recent .pulse-tile-stat-num {
    color: #64748b;
    font-size: 1rem;
}

.pulse-tile-loc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}
.pulse-loc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
}
.pulse-loc-name {
    color: #64748b;
    font-weight: 700;
    min-width: 60px;
}
.pulse-loc-stat { font-weight: 700; }
.pulse-loc-stat.in { color: #166534; }
.pulse-loc-stat.out { color: #991b1b; }


/* ----- 43G. UV3 DRAWER ----- */

.uv3-drawer-zone {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
}
.uv3-drawer-zone.open {
    display: flex;
    animation: uvDrawerSlide 0.22s ease-out;
}
@keyframes uvDrawerSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.uv-drawer-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.uv-drawer-content.visible { display: flex; }
.uv-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}
.uv-drawer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary, #0f2a24);
    display: flex;
    align-items: center;
    gap: 8px;
}
.uv-drawer-close {
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
}
.uv-drawer-close:hover {
    color: #dc2626;
    background: #fee2e2;
    text-decoration: none;
}
.uv-drawer-body { flex: 1; overflow-y: auto; padding: 4px 0; }
.uv-drawer-empty { padding: 40px; text-align: center; color: #94a3b8; font-weight: 700; }
.uv-drawer-row {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.uv-drawer-row:last-child { border-bottom: none; }
.uv-drawer-row:hover { background: #f8fafc; text-decoration: none; }
.uv-drawer-row-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f2a24;
    display: flex;
    align-items: center;
    gap: 8px;
}
.uv-drawer-row-meta { font-size: 0.78rem; color: #64748b; margin-top: 3px; }
.today-badge-in {
    font-size: 0.62rem;
    font-weight: 800;
    color: #166534;
    background: #dcfce7;
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
}
.today-badge-out {
    font-size: 0.62rem;
    font-weight: 800;
    color: #991b1b;
    background: #fee2e2;
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
}
.uv-drawer-tabs { display: flex; gap: 4px; flex: 1; justify-content: center; }
.uv-drawer-tab {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}
.uv-drawer-tab:hover {
    border-color: var(--primary, #0f2a24);
    color: var(--primary, #0f2a24);
    text-decoration: none;
}
.uv-drawer-tab.active {
    background: var(--primary, #0f2a24);
    color: #fff;
    border-color: var(--primary, #0f2a24);
}
.uv-drawer-view { display: none; }
.uv-drawer-view.visible { display: block; }
.drawer-loc-divider {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
}
.uv-drawer-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}
.booking-include-card {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    transition: background 0.1s;
}
.booking-include-card:hover { background: #f8fafc; }
.booking-include-grid {
    display: grid;
    grid-template-columns: 30px 85px 105px 60px 45px 1fr 70px 60px;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}


/* =======================================================
   44. MOBILE / RESPONSIVE — DASHBOARD + UNIFIED NAV
   All breakpoints for section 43 + the unified nav live
   here in one coherent block, ordered widest to narrowest.
   ======================================================= */

/* ----- 44A. ≤1280px: tighter strip gaps ----- */
@media (max-width: 1280px) {
    .uv3-strip {
        gap: 8px;
        grid-template-columns: repeat(7, minmax(0, 1fr)) repeat(3, minmax(140px, 1.5fr));
    }
}

/* ----- 44B. ≤1024px: cols stack, pulse drops below days ----- */
@media (max-width: 1024px) {
    .uv3-wrapper { height: auto; }
    .uv3-grid-v2 { grid-template-columns: 1fr; }
    .uv3-inbox-v2 { order: 1; min-height: 400px; }
    .uv3-tasks-v2 { order: 2; min-height: 280px; }

    .uv3-strip {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        row-gap: 10px;
    }
    .uv3-strip > :nth-child(8),
    .uv3-strip > :nth-child(9),
    .uv3-strip > :nth-child(10) { grid-row: 2; }
    .uv3-strip > :nth-child(8)  { grid-column: 1 / 3; }
    .uv3-strip > :nth-child(9)  { grid-column: 3 / 6; }
    .uv3-strip > :nth-child(10) { grid-column: 6 / 8; }

    .admin-sidebar.popup-container {
        min-width: auto !important;
        width: calc(100vw - 20px) !important;
    }



}
/* Floating Add FAB — top-left, above all chrome */
.moc-fab-add {
    position: fixed;
    top: 3px;
    left: 3px;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.moc-fab-add:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    color: #fff;
}

/* ----- 44C. ≤768px: pulse stacks full-width ----- */
@media (max-width: 768px) {

    }
    .uv3-wrapper {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 4px;
    }
    .uv3-grid-v2 { max-width: 100%; min-width: 0; }
    .uv3-cell, .uv3-inbox-v2, .uv3-tasks-v2 {
        min-width: 0;
        max-width: 100%;
    }

    .uv3-strip > :nth-child(8),
    .uv3-strip > :nth-child(9),
    .uv3-strip > :nth-child(10) { grid-column: 1 / -1; }
    .uv3-strip > :nth-child(8)  { grid-row: 2; }
    .uv3-strip > :nth-child(9)  { grid-row: 3; }
    .uv3-strip > :nth-child(10) { grid-row: 4; }

    .uv3-strip .mini-week-day { padding: 8px 2px; }
    .uv3-strip .mini-week-day-name { font-size: 0.6rem; }
    .uv3-strip .mini-week-day-num { font-size: 0.85rem; }
    .uv3-strip .mini-week-count {
        font-size: 0.55rem;
        min-width: 14px;
        padding: 0 4px;
    }

    .pulse-tile-compact { padding: 10px; }
    .pulse-tile-row { gap: 12px; }
    .pulse-tile-stat-num { font-size: 1.2rem; }
}

/* ----- 44D. ≤420px: drawer half-grid stacks ----- */
@media (max-width: 420px) {
    .uv-drawer-grid-half { grid-template-columns: 1fr; }
}

/* ----- 44E. ≤380px (iPhone SE etc.): tighten day cells more ----- */
@media (max-width: 380px) {
    .uv3-strip { gap: 6px; }
    .uv3-strip .mini-week-day { padding: 6px 1px; }
    .uv3-strip .mini-week-day-name { font-size: 0.55rem; }
    .uv3-strip .mini-week-day-num { font-size: 0.8rem; }
    .uv3-strip .mini-week-count {
        font-size: 0.5rem;
        min-width: 14px;
        padding: 0 3px;
    }
    .uv3-strip .mini-week-day-indicators {
        gap: 2px;
        padding-top: 4px;
    }
}

/* Unified nav mobile (≤1024px): single row, icons only, expanding search */
@media (max-width: 1024px) {
    .moc-unified-nav {
        top: 10px; left: 10px; right: 10px;
        padding: 6px 8px;
        display: flex;
        justify-content: space-between;
        height: auto !important;
        min-height: 52px;
    }
    .hide-mobile { display: none !important; }
    .show-mobile-only { display: block !important; }
    .nav-desktop-only { display: none !important; }
    .nav-mobile-only { display: flex !important; }
    .desktop-hide { display: block !important; }
    .nav-btn { min-width: 50px; }
    .admin-sidebar {
        position: fixed !important;
        top: 80px !important; right: 10px !important; left: 10px !important;
        width: auto !important; max-width: none !important;
        transform-origin: top center;
    }

    /* Single row: spread icons evenly, kill labels */
    .moc-unified-nav .nav-left { width: 100%; justify-content: space-between; gap: 0; }
    .moc-unified-nav .drawer-item { width: auto; }
    .moc-unified-nav .drawer-label { display: none !important; }

    /* Expanding search overlay — covers the row in place when open */
    .nav-mobile-search-overlay {
        display: none;
        position: absolute; inset: 4px 8px;
        background: #fff; border-radius: 30px;
        align-items: center; gap: 8px;
        padding: 0 14px;
        border: 1px solid var(--moc-orange);
        box-shadow: 0 0 0 3px rgba(242,108,54,0.1);
        z-index: 5;
    }
    .moc-unified-nav.search-open .nav-mobile-search-overlay { display: flex; }
    .nav-mobile-search-icon { color: #94a3b8; font-size: 0.9rem; flex-shrink: 0; }
    .nav-mobile-search-input {
        border: none !important; outline: none;
        background: transparent;
        font-size: 0.95rem; color: #334155; width: 100%;
        padding: 0 !important; font-weight: 600;
    }
    .nav-mobile-search-input.search-loading {
        background: url('/assets/images/spinner.gif') no-repeat right center / 16px;
        padding-right: 22px !important;
    }
    .nav-mobile-search-close { flex-shrink: 0; color: #64748b; font-size: 1.1rem; padding: 6px; text-decoration: none; }

    /* Push content down for single-row mobile nav */
    #contentContainer { margin-top: 75px !important; }
}

/* Keep the mobile search overlay hidden on desktop */
.nav-mobile-search-overlay { display: none; }

/* =======================================================
   FARM VIEW v6.1
   Replaces the whole FARM VIEW block in moc-ui-admin.css
   (make sure no older .farm-grid / .cage-tile rules survive
   further down the file — they'd win on source order).
   ======================================================= */

/* --- Layout: lines left, rail right (stacks under 1200px) --- */
.farm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.farm-rail   { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 1200px) {
    .farm-layout { grid-template-columns: 1fr; }
    .farm-rail   { position: static; max-height: none; overflow: visible; }
}

/* --- Rail widgets: tide (link) + shake mode --- */
.farm-widgets { display: flex; gap: 10px; margin: 0 0 12px; }
.farm-tide {
    flex: 1.6; display: block; padding: 10px 14px 12px;
    background: #fff8e1; border: 1px solid #e8cf85; border-radius: 12px;
    color: #222; text-decoration: none;
}
.farm-tide-label  { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; color: #8a6d1c; }
.farm-tide-row    { display: flex; align-items: baseline; gap: 8px; }
.farm-tide-time   { font-size: 1.4rem; font-weight: 800; line-height: 1.25; color: #222; }
.farm-tide-height { font-size: 1rem; font-weight: 700; color: var(--moc-orange, #F26C36); }

.shake-mode-chip {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 10px 8px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff;
    color: #444; font-size: .8rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.shake-mode-icon { font-size: 1.3rem; line-height: 1; }
.shake-mode-chip.active { background: var(--moc-green, #157575); border-color: var(--moc-green, #157575); color: #fff; }
body.shake-mode-active .farm-grid { background: rgba(21,117,117,.06); border-radius: 8px; padding: 6px; }

/* --- Line cards --- */
.farm-line-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 12px 14px 14px; margin: 0 0 14px;
}
.farm-line-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e5e7eb;
}
.farm-line-left { display: flex; align-items: center; gap: 12px; }
.farm-line-header h2 { margin: 0; font-size: 1.4rem; line-height: 1; color: #333; }
.farm-line-total { color: var(--moc-green, #157575); font-weight: 700; font-size: 1.05rem; }
.farm-line-add   { color: var(--moc-green, #157575); font-size: .85rem; font-weight: 600; text-decoration: none; }
.farm-refresh {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: #f3f8f8; color: var(--moc-orange, #F26C36); font-size: .8rem; text-decoration: none;
}

/* Ten across at ~1000px of width; auto-fill wraps gracefully below that */
.farm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
@media (max-width: 700px) {
    .farm-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Cage tile --- */
.cage-tile {
    position: relative; display: flex; flex-direction: column;
    min-height: 114px; padding: 6px 5px;
    border-radius: 10px; border: 2px solid #ddd; background: #fff;
    cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: transform .08s ease;
}
.cage-tile:active { transform: scale(.97); }
.cage-tile * { pointer-events: none; }   /* CRITICAL — the tile itself is the only click target */

.cage-tile.heat-green  { background: #ecf7ef; border-color: #b8dec1; }
.cage-tile.heat-yellow { background: #fff8e1; border-color: #e8cf85; }
.cage-tile.heat-red    { background: #fde9e9; border-color: #e8a4a4; }
.cage-tile.heat-empty  { background: #f5f5f5; border-color: #ccc; }
.cage-tile.is-full { border-color: var(--moc-orange, #F26C36); border-width: 3px; }
.cage-tile.is-active-sheet { outline: 3px solid var(--moc-orange, #F26C36); outline-offset: 2px; }

.cage-tile-position { font-size: .7rem; font-weight: 700; color: #555; line-height: 1; }
.cage-tile-size {
    margin-top: 6px; min-height: 12px; text-align: center; line-height: 1;
    font-size: .82rem; font-weight: 800; letter-spacing: .3px; color: #777;
}
.cage-tile-size.size-new { color: #2563eb; }
.cage-tile-size.size-unk { color: #888; }
.cage-tile-size.size-pre,
.cage-tile-size.size-premkt,
.cage-tile-size.size-mkt { color: var(--moc-orange, #F26C36); }
.cage-tile-size.size-yr1 { color: var(--moc-green, #157575); }

.cage-tile-dots { display: flex; justify-content: center; gap: 3px; margin-top: 7px; }
.cage-tile-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5d4; }
.cage-tile-dots .dot.filled { background: var(--moc-green, #157575); }

.cage-tile-count { margin-top: 6px; text-align: center; line-height: 1; font-size: 1.25rem; font-weight: 800; color: #222; }

/* One truncated line, pinned to the bottom of the tile; full text is on the tile's title + in the sheet */
.cage-tile-notes {
    margin-top: auto; padding-top: 6px; min-height: 1.2em;
    font-size: .66rem; line-height: 1.2; text-align: center; color: #999;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cage-tile.has-notes .cage-tile-notes { color: var(--moc-orange, #F26C36); font-weight: 700; }

.cage-tile.just-shaken { animation: shakeConfirm .5s ease; }
@keyframes shakeConfirm {
    0%   { box-shadow: 0 0 0 0 rgba(21,117,117,.5); }
    100% { box-shadow: 0 0 0 10px rgba(21,117,117,0); }
}

/* --- Shake toast --- */
.shake-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10000;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 20px; border-radius: 999px;
    background: rgba(15,42,36,.95); color: #fff; font-weight: 600;
}
.shake-toast a { color: var(--moc-orange, #F26C36); text-decoration: underline; }

/* --- Bottom sheet --- */
.cage-sheet-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.35); display: none; }
.cage-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    max-width: 680px; margin: 0 auto;            /* centered on desktop, full width on phones */
    max-height: 60vh; overflow-y: auto;
    padding: 14px 18px 24px; background: #fff;
    border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.2);
    transform: translateY(100%); transition: transform .25s ease;
    display: none;
}
.cage-sheet.open { transform: translateY(0); }
.cage-sheet-handle { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #ccc; }
.cage-sheet-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.cage-sheet-title { font-size: 1.9rem; font-weight: 800; color: #222; line-height: 1; }
.cage-sheet-close { background: none; border: 0; padding: 0 10px; min-height: 44px; font-size: 1.8rem; line-height: 1; color: #888; cursor: pointer; }
.cage-sheet-shake-btn {
    width: 100%; min-height: 56px; margin-bottom: 8px; padding: 16px;
    border: 0; border-radius: 12px; background: var(--moc-green, #157575);
    color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.cage-sheet-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.cage-sheet-row label { min-width: 64px; font-weight: 700; color: #555; }
.cage-sheet-select {
    flex: 1; min-height: 44px; padding: 10px 12px;
    border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
    font-size: 1.05rem; font-weight: 700;
}
.cage-size-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cage-size-pill {
    min-height: 44px; padding: 10px 14px; border: 2px solid transparent; border-radius: 999px;
    background: #f3f4f6; color: #555; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.cage-size-pill.active { background: var(--moc-green, #157575); border-color: var(--moc-green, #157575); color: #fff; }
.cage-open-pills { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; }
.cage-open-pill {
    min-height: 44px; padding: 0; border: 2px solid transparent; border-radius: 8px;
    background: #f3f4f6; color: #555; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.cage-open-pill.active { background: var(--moc-orange, #F26C36); border-color: var(--moc-orange, #F26C36); color: #fff; }
.cage-sheet-notes textarea {
    flex: 1; min-width: 0; min-height: 56px; padding: 10px;
    border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 1rem; resize: vertical;
}
.cage-sheet-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee;
}
.cage-sheet-footer .btn-full-edit { color: #666; font-size: .9rem; text-decoration: underline; }
.cage-sheet-footer .btn-done {
    min-height: 44px; padding: 12px 24px; border: 0; border-radius: 8px;
    background: var(--moc-green, #157575); color: #fff; font-weight: 700; cursor: pointer;
}

/* --- Log card --- */
.farm-log {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 12px 14px 14px;
}
.farm-log-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.farm-log-title  { font-size: 1.1rem; font-weight: 700; color: #333; }
.farm-log-full   { font-size: .8rem; font-weight: 600; color: var(--moc-green, #157575); text-decoration: none; }

.farm-quicklog { display: flex; gap: 6px; margin: 0 0 12px; }
.farm-quicklog input {
    flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px;
    border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: .95rem;
}
.farm-quicklog-btn {
    min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; white-space: nowrap;
    background: var(--moc-green, #157575); color: #fff; font-weight: 700; cursor: pointer;
}

.farm-log-entry { padding: 10px 0; border-bottom: 1px solid #eee; font-size: .9rem; color: #444; }
.farm-log-entry-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.farm-log-entry-date { font-weight: 700; color: #222; text-decoration: none; }
.farm-log-entry-who  { font-size: .85rem; color: #888; }
.farm-log-entry-right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.farm-log-entry-count {
    padding: 1px 8px; border-radius: 999px;
    background: #ecf7ef; color: var(--moc-green, #157575); font-size: .8rem; font-weight: 700;
}
.farm-log-entry-media { color: #bbb; text-decoration: none; }
.farm-log-entry-media.has-media { color: var(--moc-green, #157575); }
.farm-log-entry-notes { white-space: pre-line; line-height: 1.4; }
.farm-log-more { display: block; margin-top: 8px; font-size: .8rem; color: #888; text-decoration: none; cursor: pointer; }

/* ===== MY DAY WIDGET (dashboard right column) ===== */
/* Card hugs its content (base .uv3-card is flex:1 which would split the column 50/50) */
.uv3-myday-card { flex: 0 1 auto; max-height: 45%; margin-bottom: 16px; }

.uv3-myday-toggle { display: inline-flex; background: #eef2f0; border-radius: 20px; padding: 3px; gap: 2px; }
.uv3-myday-tab { padding: 4px 12px; border-radius: 16px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: #64748b; text-decoration: none; transition: 0.15s; }
.uv3-myday-tab:hover { color: #0f2a24; text-decoration: none; }
.uv3-myday-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

.uv3-myday-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 6px; text-decoration: none; transition: 0.15s; background: #fff; }
.uv3-myday-row:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-1px); }
.uv3-myday-time { font-size: 0.8rem; font-weight: 800; color: var(--primary); min-width: 62px; }
.uv3-myday-name { flex: 1; font-size: 0.85rem; font-weight: 700; color: #0f2a24; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uv3-myday-name i { margin-right: 4px; opacity: 0.8; }
.uv3-myday-loc { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; color: #64748b; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.08); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.uv3-myday-people { font-size: 0.9rem; font-weight: 800; color: var(--moc-orange); white-space: nowrap; }
.uv3-myday-people i { font-size: 0.7rem; opacity: 0.8; }

/* Class rows tinted by location (matches the calendar) */
.uv3-myday-row.is-class.loc-moc  { background: #f0fdf4; border-color: #bbf7d0; }
.uv3-myday-row.is-class.loc-base { background: #f0f9ff; border-color: #bae6fd; }

/* Appointment rows tinted by type (matches the new calendar tints) */
.uv3-myday-row.is-appt.t-personal { background: #f1f5f9; border-color: #cbd5e1; border-left: 3px solid #64748b; }
.uv3-myday-row.is-appt.t-social   { background: #f5f3ff; border-color: #ddd6fe; border-left: 3px solid #8b5cf6; }
.uv3-myday-row.is-appt.t-meeting  { background: #f0f9ff; border-color: #bae6fd; border-left: 3px solid #0284c7; }

.uv3-myday-divider { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; padding: 8px 2px 4px; }
.uv3-myday-empty { padding: 16px; text-align: center; color: #94a3b8; font-weight: 700; font-size: 0.82rem; }
@media (max-width: 900px) {
    .farm-secondary { display: none; }/* ===== MY DAY WIDGET (dashboard right column) ===== */
    /* Card hugs its content (base .uv3-card is flex:1 which would split the column 50/50) */
    .farm-secondary.expanded { display: block; }
    .farm-secondary-toggle {
        display: block;
        text-align: center;
        padding: 10px;
        color: var(--moc-green, #157575);
        font-weight: 600;
        cursor: pointer;
        border: 1px dashed #ccc;
        border-radius: 8px;
        margin: 12px 0;
    }
}
@media (min-width: 901px) {
    .farm-secondary-toggle { display: none; }
}
/* ===== USER GRID (shared include: includes/user-grid-include) ===== */
.user-grid .row-act{ width:26px; height:26px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; color:#157575; background:#e0f2f1; font-size:.78rem; }
.user-grid .row-act:hover{ background:#157575; color:#fff; }
.user-grid .mini-ico{ color:#cbd5e1; font-size:.85rem; margin-left:8px; }
.user-grid .mini-ico:hover{ color:#157575; }
.user-grid .mini-ico.moc-green{ color:#157575; }
.user-grid .mini-ico.moc-green:hover{ color:#0f2a24; }
.user-grid .ltv{ color:#157575; font-weight:700; }
.user-grid-empty{ text-align:center; color:#999; padding:28px; }
.user-grid-pagination{ display:flex; gap:6px; padding:12px 0; flex-wrap:wrap; }
.user-grid .row-act.has-reminder-other{ background:#94a3b8; color:#fff; }
.user-grid .row-act.has-reminder-other:hover{ background:#64748b; }
/* ===== INBOX ROWS V2 (dashboard + EE inbox) — full-bleed, clamped, thumb-friendly ===== */

/* Strip the card-in-card chrome: rows become full-width hairline list items */
.universal-inbox-display .thread-group, #ee-inbox-content .thread-group,
.universal-inbox-display .thread-main, #ee-inbox-content .thread-main {
    background: transparent; border: none; border-radius: 0; box-shadow: none; margin: 0; padding: 0;
}
.universal-inbox-display .row-email, #ee-inbox-content .row-email {
    background: transparent; border: none; border-radius: 0; box-shadow: none; margin: 0 !important; padding: 0;
}

.universal-inbox-display .message-wrap, #ee-inbox-content .message-wrap {
    gap: 10px; padding: 12px 14px; margin: 0; background: #fff; border-radius: 0; border-bottom: 1px solid #f1f5f9;
}
.universal-inbox-display .message-wrap:hover, #ee-inbox-content .message-wrap:hover { background: #f8faf9; }

/* Unread: orange left accent joins the existing orange time + avatar ring */
.universal-inbox-display .message-wrap.unread, #ee-inbox-content .message-wrap.unread {
    border-left: 3px solid var(--moc-orange, #ea580c); padding-left: 11px; background: #fffdfa;
}

/* Tame the shout: unread body reads dark + 700 instead of 800 pure black */
.universal-inbox-display .message-wrap.unread .message-content, #ee-inbox-content .message-wrap.unread .message-content {
    font-weight: 700 !important; color: #0f2a24 !important;
}

/* Clamp long messages at 3 lines — tap opens the thread for the rest */
.universal-inbox-display .message-content > a, #ee-inbox-content .message-content > a {
    display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Left column tightens */
.universal-inbox-display .message-left-col, #ee-inbox-content .message-left-col { min-width: 46px; }

/* The thread ✓ (and webContact trash) become real 36px targets */
.universal-inbox-display .reply-count, #ee-inbox-content .reply-count { background: transparent; padding: 0; margin-left: auto; }
.universal-inbox-display .reply-count a.handle-thread, #ee-inbox-content .reply-count a.handle-thread {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
    background: #f1f5f9; border: 1px solid #e2e8f0; color: #94a3b8; text-decoration: none; transition: 0.15s;
}
.universal-inbox-display .reply-count a.handle-thread:hover, #ee-inbox-content .reply-count a.handle-thread:hover {
    background: var(--primary, #157575); border-color: var(--primary, #157575); color: #fff;
}

/* ---- Email include classes (new, only exist in inbox-email-include) ---- */
.msg-sender { color: #0f2a24; font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.msg-sender:hover { color: var(--primary, #157575); text-decoration: none; }
.msg-badge-event { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg-subject { display: block; color: #334155; font-weight: 700; font-size: 0.88rem; text-decoration: none; margin-bottom: 2px; }
.msg-subject:hover { color: var(--primary, #157575); text-decoration: none; }
.msg-body-link { color: #64748b; font-size: 0.85rem; text-decoration: none; line-height: 1.4; }
.msg-note { margin-bottom: 2px; }
.msg-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.msg-actions > a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; text-decoration: none; transition: 0.15s; }
.msg-actions > a:hover { background: var(--primary, #157575); border-color: var(--primary, #157575); color: #fff; }
.msg-actions > a i { font-size: 0.85rem; }
.msg-confirm { color: #dc2626; font-size: 11px; font-weight: 800; text-decoration: none; }

/* Mobile density */
@media (max-width: 768px) {
    .universal-inbox-display .message-wrap, #ee-inbox-content .message-wrap { padding: 10px; gap: 8px; }
    .universal-inbox-display .message-wrap.unread, #ee-inbox-content .message-wrap.unread { padding-left: 7px; }
    .universal-inbox-display .message-avatar, #ee-inbox-content .message-avatar { width: 32px; height: 32px; font-size: 12px; }
    .universal-inbox-display .message-left-col, #ee-inbox-content .message-left-col { min-width: 36px; }
    .universal-inbox-display .message-content, #ee-inbox-content .message-content { font-size: 0.88rem; }
    .msg-actions > a { width: 38px; height: 38px; }
}
/* ===== FOLLOW-UP CLOCK STATES (Home module + shared) ===== */
.fu-clock{ width:26px; height:26px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; font-size:.78rem; flex-shrink:0; }
.fu-clock.overdue{ background:#fdecea; color:#c0392b; }
.fu-clock.today{ background:#fdf3e7; color:#e8842c; }
.fu-clock.future{ background:#e0f2f1; color:#157575; }
.fu-clock:hover{ background:#157575; color:#fff; }
.camp-panel .mini-ico{ color:#cbd5e1; font-size:.85rem; }
.camp-panel .mini-ico:hover{ color:#157575; }

/* header ---------------------------------------------------- */
.camp-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:0 0 18px; }
.camp-head-title { display:flex; align-items:center; gap:10px; margin:0; font-size:22px; font-weight:600; color:#1f2937; }
.camp-head-title .camp-badge { margin:0; }
.camp-head-meta { margin-top:6px; font-size:12px; color:#8a8f98; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.camp-head-meta b { font-weight:500; color:#555; }
.camp-head-meta a { color:#157575; }
.camp-head-actions { display:flex; gap:6px; flex-shrink:0; }
.camp-notice { margin:0 0 16px; padding:8px 12px; background:#e0f2f1; border-left:3px solid #157575; border-radius:0 4px 4px 0; font-size:13px; }

/* stat strip ------------------------------------------------ */
.camp-strip { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:10px; margin:0 0 22px; }
.camp-strip.four { grid-template-columns:repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px){ .camp-strip { grid-template-columns:repeat(3, minmax(0,1fr)); } .camp-strip.four { grid-template-columns:repeat(2, minmax(0,1fr)); } }
.camp-stat2 { background:#fff; border:1px solid #e8e8e8; border-radius:10px; padding:14px 16px 12px; min-height:96px; display:flex; flex-direction:column; }
.camp-stat2-label { font-size:11px; color:#8a8f98; margin-bottom:4px; }
.camp-stat2-num { font-size:26px; font-weight:600; line-height:1.1; color:#0f4c4c; }
.camp-stat2-num small { font-size:13px; font-weight:400; color:#8a8f98; margin-left:4px; }
.camp-stat2-sub { margin-top:auto; padding-top:8px; font-size:12px; color:#8a8f98; }
.camp-stat2-sub.red { color:#c0392b; }
.camp-stat2 .camp-btn-small, .camp-stat2 .camp-btn-go { margin-top:auto; align-self:flex-start; }
.camp-stat2-links a { display:block; font-size:12px; color:#157575; line-height:1.6; }
.camp-btn-go { background:#157575; color:#fff; border:1px solid #157575; padding:6px 11px; border-radius:6px; font-size:12px; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.camp-btn-go:hover { background:#0f4c4c; color:#fff; }
.camp-btn-go.is-running { opacity:.7; cursor:default; }
.camp-progress { grid-column:1 / -1; height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden; display:none; }
.camp-progress i { display:block; height:100%; width:0%; background:#157575; transition:width .3s; }
.camp-progress-status { grid-column:1 / -1; font-size:12px; color:#555; margin-top:-4px; display:none; }

/* touchpoint rows v2 ---------------------------------------- */
.camp-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 18px; border-bottom:1px solid #e8e8e8; background:#fff; }
.camp-bar h3 { margin:0; font-size:13px; font-weight:600; color:#555; }
.camp-tp2 { display:grid; grid-template-columns:34px minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:14px 18px; border-bottom:1px solid #f2f2f2; }
.camp-tp2:last-child { border-bottom:none; }
.camp-tp2-name { font-weight:600; display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:#1f2937; }
.camp-tp2-name a { color:inherit; }
.camp-tp2-when { font-weight:400; color:#8a8f98; font-size:12px; }
.camp-tp2-subject { color:#8a8f98; font-size:12px; margin-top:3px; font-style:italic; }
.camp-tp2-eng { display:flex; gap:14px; font-size:12px; color:#555; white-space:nowrap; }
.camp-tp2-eng b { font-weight:600; color:#0f4c4c; }
.camp-tp2-eng span { display:inline-flex; align-items:center; gap:4px; }
.camp-tp2-eng .red { color:#c0392b; }
.camp-tp2-ops { display:flex; gap:12px; color:#8a8f98; align-items:center; }
.camp-tp2-ops a { color:#8a8f98; font-size:12px; }
.camp-tp2-ops a.test { color:#157575; }
.camp-tp2-ops a.red { color:#c0392b; }

/* subscriber rows with status rail --------------------------- */
.camp-pills { display:flex; gap:4px; flex-wrap:wrap; }
.camp-pills .camp-pill-small.dim { color:#b0b4ba; }
.camp-sub-table .primary { font-weight:600; color:#1f2937; }
.camp-sub-table .secondary { font-size:11px; color:#8a8f98; margin-top:2px; }
.camp-sub-table .ok { color:#157575; font-weight:600; }
.camp-sub-table .ok small { color:#8a8f98; font-weight:400; margin-left:3px; }
.camp-sub-table .ok.warm { color:#e8842c; }
.camp-sub-table .dash { color:#c9ccd1; }
.camp-sub-table .bounce { display:inline-block; font-size:10px; color:#c0392b; background:#fdecea; padding:1px 6px; border-radius:8px; margin-left:4px; vertical-align:1px; }
.camp-sub-table .row-ops { display:flex; gap:10px; justify-content:flex-end; color:#8a8f98; }
.camp-sub-table .row-ops a { color:#8a8f98; }
.camp-sub-table .row-ops a.red { color:#c0392b; }
.camp-sub-row td:first-child { box-shadow:inset 3px 0 0 #c9ccd1; }
.camp-sub-row.is-active td:first-child { box-shadow:inset 3px 0 0 #3fa66b; }
.camp-sub-row.is-completed td:first-child { box-shadow:inset 3px 0 0 #4a90e2; }
.camp-sub-row.is-paused td:first-child { box-shadow:inset 3px 0 0 #e2b33c; }
.camp-sub-row.is-cancelled td { color:#a0a4aa; }
.camp-sub-row.is-cancelled .primary { color:#a0a4aa; text-decoration:line-through; }
.camp-legend { display:flex; gap:16px; font-size:11px; color:#8a8f98; padding:8px 18px; border-top:1px solid #e8e8e8; align-items:center; }
.camp-legend i { display:inline-block; width:10px; height:10px; border-radius:2px; vertical-align:-1px; margin-right:5px; }
.camp-legend .pages { margin-left:auto; display:flex; gap:4px; }
.ch-grid { display:grid; grid-template-columns:2fr 1fr; gap:16px; align-items:start; }
@media (max-width: 1000px){ .ch-grid { grid-template-columns:1fr; } }

/* compact widget strip (sidebar top) */
.ch-widgets { background:#fff; border:1px solid #e8e8e8; border-radius:10px; overflow:hidden; margin-bottom:16px; }
.ch-widget { border-bottom:1px solid #f0f0f0; }
.ch-widget:last-child { border-bottom:none; }
.ch-widget-head { display:flex; align-items:center; gap:10px; padding:11px 14px; cursor:pointer; color:#1f2937; font-size:13px; user-select:none; }
.ch-widget-head:hover { background:#fafbfc; }
.ch-widget-head .ico { width:18px; text-align:center; color:#8a8f98; }
.ch-widget-head .ico.red { color:#dc2626; } .ch-widget-head .ico.yellow { color:#ca8a04; } .ch-widget-head .ico.green { color:#16a34a; }
.ch-widget-head .lbl { font-weight:600; flex:1; }
.ch-widget-head .val { font-size:12px; color:#555; white-space:nowrap; }
.ch-widget-head .val b { color:#157575; font-weight:600; }
.ch-widget-head .val .red { color:#dc2626; font-weight:600; }
.ch-widget-head .caret { color:#c0c4ca; font-size:10px; transition:transform .15s; }
.ch-widget.is-open .ch-widget-head .caret { transform:rotate(90deg); }
.ch-widget-body { display:none; padding:4px 14px 12px; border-top:1px dashed #f0f0f0; }
.ch-widget-row { display:flex; align-items:center; gap:8px; padding:4px 0; font-size:12px; color:#0f2a24; }
.ch-widget-row .grow { flex:1; }
.ch-widget-row .num { font-weight:600; color:#157575; }
.ch-widget-foot { display:flex; justify-content:flex-end; gap:6px; padding-top:8px; }

/* campaigns table, compact */
.ch-camp-table td { vertical-align:middle; }
.ch-camp-stats { font-size:12px; color:#555; white-space:nowrap; }
.ch-camp-stats b { color:#0f4c4c; font-weight:600; }
.ch-camp-stats .sep { color:#c9ccd1; margin:0 4px; }
.ch-camp-row.is-inactive td { color:#a0a4aa; }
.ch-camp-row.is-inactive .camp-row-name { color:#a0a4aa; }
.ch-chip { display:inline-block; background:#e0f2f1; color:#0b4f4a; border-radius:10px; padding:2px 9px; font-size:11px; white-space:nowrap; }

/* audiences inside the widget */
.ch-aud-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid #f5f7f8; font-size:12px; }
.ch-aud-row:last-child { border-bottom:none; }
.ch-aud-row .num { font-weight:600; color:#157575; }
.ch-aud-row .num.unsub { color:#c0392b; font-weight:400; font-size:11px; margin-right:6px; }

/* ============================================================
   BATCH E — append AFTER the Batch C ch- block in moc-ui-admin.css.
   ============================================================ */

/* comms home: campaign rows v2 */
.ch-crow { display:flex; align-items:center; gap:12px; padding:11px 16px; border-bottom:1px solid #f2f2f2; flex-wrap:wrap; }
.ch-crow:last-child { border-bottom:none; }
.ch-crow .ico { width:16px; text-align:center; flex-shrink:0; }
.ch-crow .main { flex:1; min-width:180px; }
.ch-crow .name { font-weight:600; }
.ch-crow .sub { margin-top:3px; }
.ch-crow .stats { text-align:right; font-size:12px; color:#555; white-space:nowrap; }
.ch-crow .stats b { color:#0f4c4c; }
.ch-crow .stats .l2 { color:#8a8f98; font-size:11px; margin-top:2px; }
.ch-crow.is-inactive .name, .ch-crow.is-inactive .stats { color:#a0a4aa; }

/* comms home: kiosk rows as mini-tiles */
.ch-krow { display:flex; align-items:center; gap:12px; padding:10px 16px; border-bottom:1px solid #f5f7f8; }
.ch-krow:last-child { border-bottom:none; }
.ch-krow .main { flex:1; min-width:0; }
.ch-krow .name { font-weight:600; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ch-krow .line2 { display:flex; gap:8px; align-items:center; margin-top:4px; flex-wrap:wrap; }
.ch-krow .num { text-align:right; flex-shrink:0; }
.ch-krow .num .lbl { font-size:10px; color:#8a8f98; }
.ch-krow .num .n { font-size:22px; font-weight:600; color:#0f4c4c; line-height:1.1; }
.ch-krow .num .n a { color:inherit; }
.ch-krow .num .wk { font-size:11px; color:#157575; }
.ch-krow .num .wk.none { color:#b0b4ba; }

/* comms home: calendar day cells become add-links */
.ch-cal-day { position:relative; cursor:pointer; }
.ch-cal-day:hover { background:#f1f5f9; }
.ch-cal-day:hover::after { content:'+'; position:absolute; right:4px; top:1px; font-size:11px; color:#157575; font-weight:600; }

/* campaign page: touchpoint cards */
.camp-tp3 { padding:12px 18px; border-bottom:1px solid #f2f2f2; }
.camp-tp3:last-child { border-bottom:none; }
.camp-tp3-l1 { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.camp-tp3-l1 .camp-tp-position { flex-shrink:0; }
.camp-tp3-name { font-weight:600; color:#1f2937; }
.camp-tp3-name a { color:inherit; }
.camp-tp3-when { color:#8a8f98; font-size:12px; }
.camp-tp3-ops { margin-left:auto; display:flex; gap:12px; font-size:12px; align-items:center; }
.camp-tp3-ops a { color:#8a8f98; }
.camp-tp3-ops a.test { color:#157575; }
.camp-tp3-ops a.red { color:#c0392b; }
.camp-tp3-subject { color:#8a8f98; font-size:12px; font-style:italic; margin:4px 0 0 38px; }
.camp-tp3-chips { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 0 38px; }
.camp-chip { background:#f4f6f7; border-radius:8px; padding:3px 9px; font-size:11px; color:#555; white-space:nowrap; }
.camp-chip b { color:#0f4c4c; }
.camp-chip.red { background:#fdecea; color:#c0392b; }
.camp-chip.red b { color:#c0392b; }

/* campaign page: sortable headers */
.camp-sub-table th a { color:#8a8f98; }
.camp-sub-table th a.on { color:#157575; }
.camp-sub-table th a.on::after { content:' ▾'; }

/* mobile ---------------------------------------------------- */
@media (max-width: 640px){
    .camp-head { flex-direction:column; gap:8px; }
    .camp-head-title { font-size:18px; }
    .camp-head-actions { flex-wrap:wrap; }
    .camp-strip, .camp-strip.four { grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
    .camp-stat2 { min-height:70px; padding:10px 12px 8px; }
    .camp-stat2-num { font-size:20px; }
    .camp-tp3-subject, .camp-tp3-chips { margin-left:0; }
    .camp-tp3-ops { margin-left:0; width:100%; justify-content:flex-end; }
    .camp-sub-table .col-anchor, .camp-sub-table .col-replied { display:none; }
    .camp-sub-table td, .camp-sub-table th { padding:8px 8px; }
    .ch-crow .stats { text-align:left; width:100%; padding-left:28px; }
    .ch-crow .stats .l2 { display:inline; margin-left:6px; }
    .user-grid th:nth-child(4), .user-grid td:nth-child(4) { display:none; }   /* Joined column off on phones */
}
/* user grid: unsubscribed rows get a rail instead of a tint --- */
.user-grid tr.is-unsubscribed td:first-child { box-shadow:inset 3px 0 0 #c0392b; }
.user-grid tr.is-unsubscribed td { color:#a0a4aa; }
.user-grid tr.is-unsubscribed .camp-row-name { color:#a0a4aa; text-decoration:line-through; }
.user-grid .ug-unsub { color:#c0392b; font-size:11px; }
/* ============================================================
   BATCH G — append after the Batch E ch- block in moc-ui-admin.css.
   Campaign card line 2: audience (list) + entry points (kiosks).
   ============================================================ */
.ch-crow .sub{display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:5px;}
.ch-entry{display:inline-flex; align-items:center; gap:6px; border-radius:10px; padding:3px 9px; font-size:11px; white-space:nowrap; line-height:1.2; text-decoration:none;}
.ch-entry.list{background:#e0f2f1; color:#0b4f4a;}
.ch-entry.kiosk{background:#fdf1e6; color:#8a4b12; padding-right:7px;}
.ch-entry.kiosk a{color:inherit; display:inline-flex; align-items:center; gap:6px; text-decoration:none;}
.ch-entry.kiosk .ext{color:#b58a5c; margin-left:2px;}
.ch-entry.kiosk .ext:hover{color:#e8842c;}
.ch-entry .n{font-weight:700;}
.ch-entry .off{color:#c0392b;}
.ch-entry .mono{font-family:ui-monospace, Menlo, monospace; font-size:10.5px;}
.ch-entry.add{background:#fff; border:1px dashed #cfd5da; color:#8a8f98;}
.ch-entry.add:hover{border-color:#e8842c; color:#e8842c;}
.ch-entry.other{background:#f1f3f5; color:#555;}
.ch-crow.is-inactive .ch-entry{opacity:.6;}

/* ===== EMAIL ROWS v2 — two-line + explicit view/reply ===== */
.eml-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.eml-head .message-time, .eml-head .msg-sender, .eml-head .context-badge { flex-shrink: 0; }
.eml-subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #0f2a24; text-decoration: none; }
.eml-subject:hover { color: #157575; text-decoration: none; }
.eml-actions { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; margin-left: auto; }
.eml-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 10px; font-weight: 600; color: #64748b; text-decoration: none; white-space: nowrap; transition: all .15s; }
.eml-pill:hover { border-color: #94a3b8; color: #0f2a24; text-decoration: none; }
.eml-pill-reply { background: var(--moc-green, #157575); border-color: var(--moc-green, #157575); color: white; }
.eml-pill-reply:hover { background: #0e5454; border-color: #0e5454; color: white; }

@media (max-width: 768px) {
    .eml-pill-label { display: none; }          /* icons only on mobile, per your call */
    .eml-pill { padding: 4px 8px; }
    .eml-head { font-size: 11px; }
    .eml-head .msg-sender { display: none; }    /* sender yields to subject on small screens */
}

/* ===== SYSTEM PAGE (Batch K) ===== */
.dash-shell-head{width:100%;max-width:1600px;margin:0 auto;padding:18px 28px 0;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.dash-shell-head .camp-head-title{margin:0;}
sys-pulse .ch-grid > div:last-child
.sys-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 14px;}
.sys-pills{display:flex;gap:6px;flex-wrap:wrap;}
.sys-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;border:1px solid #e3e7ea;background:#fff;color:#334155;font-size:.8rem;font-weight:700;text-decoration:none;}
.sys-pill:hover{border-color:#157575;color:#157575;}
.sys-pill.active{background:#0f2a24;border-color:#0f2a24;color:#fff;}
.sys-health-row{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid #f1f4f5;cursor:pointer;}
.sys-health-row:hover{background:#fafbfc;}
.sys-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.sys-dot.green{background:#16a34a;} .sys-dot.yellow{background:#ca8a04;} .sys-dot.red{background:#dc2626;} .sys-dot.grey{background:#cbd5e1;}
.sys-health-main{flex:1;min-width:0;}
.sys-health-name{font-weight:800;font-size:.92rem;color:#0f2a24;}
.sys-health-meta{font-size:.74rem;color:#64748b;margin-top:2px;}
.sys-runs{display:flex;gap:3px;flex-shrink:0;}
.sys-runs i{width:7px;height:7px;border-radius:50%;display:inline-block;background:#cbd5e1;}
.sys-runs i.ok{background:#16a34a;} .sys-runs i.failed{background:#dc2626;} .sys-runs i.skipped{background:#ca8a04;} .sys-runs i.running{background:#3b82f6;}
.sys-counts{font-size:.76rem;color:#334155;white-space:nowrap;min-width:150px;text-align:right;}
.sys-counts b{color:#0f2a24;}
.sys-health-detail{display:none;padding:6px 14px 12px 36px;background:#fafbfc;border-top:1px solid #f1f4f5;font-size:.76rem;color:#475569;}
.sys-run-line{display:flex;gap:10px;padding:3px 0;border-bottom:1px dashed #eef1f3;flex-wrap:wrap;}
.sys-run-line .t{min-width:110px;color:#64748b;}
.sys-run-line .s{min-width:56px;font-weight:700;text-transform:uppercase;font-size:.66rem;letter-spacing:.03em;}
.sys-run-line .s.ok{color:#16a34a;} .sys-run-line .s.failed{color:#dc2626;} .sys-run-line .s.skipped{color:#ca8a04;} .sys-run-line .s.running{color:#3b82f6;}
@media (max-width:760px){ .sys-counts{display:none;} .sys-runs{display:none;} }
.sys-problems{padding:10px 14px;background:#fef2f2;border-bottom:1px solid #fecaca;}
.sys-problems-title{font-size:.78rem;font-weight:800;color:#b91c1c;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;}
.sys-problem{padding:6px 0;border-top:1px dashed #fecaca;}
.sys-problem:first-of-type{border-top:0;}
.sys-problem-head{font-size:.82rem;color:#7f1d1d;}
.sys-problem-notes{margin:4px 0 0;padding:6px 8px;background:#fff;border-radius:6px;font:.78rem/1.45 ui-monospace,Menlo,monospace;color:#334155;white-space:pre-wrap;word-break:break-word;max-height:160px;overflow:auto;}
/* ============================================================
   MOC MEDIA LIBRARY v2.1 - append to moc-ui-admin.css
   Only the dedicated host and mlb-* classes. No new <link> tag.
   ============================================================ */
#mediaLibraryContainer.mlb-host{ position:fixed!important; top:12px!important; right:12px!important; bottom:12px!important; left:12px!important; margin:0!important; width:auto!important; min-width:0!important; max-width:none!important; height:auto!important; max-height:none!important; padding:0!important; border:1px solid #d5dfdc!important; border-radius:16px!important; overflow:hidden!important; background:#fff!important; box-shadow:0 22px 70px #12352f55!important; z-index:31000!important }
body.mlb-scroll-lock{ overflow:hidden!important }
.mlb{ --mlb-ink:#153c37; --mlb-muted:#607670; --mlb-line:#dde6e2; --mlb-green:var(--moc-green,#157575); --mlb-orange:var(--moc-orange,#F26C36); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:14px; line-height:1.4; color:var(--mlb-ink); background:#fff; display:flex; flex-direction:column; width:100%; height:100%; min-height:0; min-width:0; position:relative; text-align:left }
.mlb,.mlb *,.mlb *::before,.mlb *::after{ box-sizing:border-box }
.mlb [hidden]{ display:none!important }
.mlb button,.mlb input,.mlb select,.mlb a{ font:inherit; letter-spacing:normal; text-transform:none; float:none }
.mlb button,.mlb a{ cursor:pointer; text-decoration:none; color:inherit; -webkit-tap-highlight-color:transparent }
.mlb button{ margin:0; box-shadow:none }
.mlb button:disabled{ opacity:.4; cursor:not-allowed }
.mlb :is(button,a,input,select):focus-visible{ outline:3px solid #f4a87c; outline-offset:2px }
.mlb h1,.mlb h2,.mlb p{ font-family:inherit; margin:0; padding:0; text-transform:none; letter-spacing:normal; color:inherit }
.mlb h1{ font-size:27px; line-height:1.2; font-weight:750 }
.mlb h2{ font-size:19px; line-height:1.25; font-weight:700; overflow-wrap:anywhere }
.mlb-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 24px 17px; border-bottom:1px solid var(--mlb-line); flex-shrink:0 }
.mlb-eyebrow{ font-size:10px; text-transform:uppercase; letter-spacing:1.5px; color:var(--mlb-muted); margin-bottom:5px; font-weight:650 }
.mlb-head-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0 }
.mlb .mlb-btn{ display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:8px 14px; border:1px solid var(--mlb-line); border-radius:9px; background:#fff; font-size:13px; font-weight:600; line-height:1.2; white-space:nowrap; text-decoration:none }
.mlb .mlb-btn:hover:not(:disabled){ border-color:var(--mlb-green); background:#f0f7f4 }
.mlb .mlb-primary{ color:#fff; background:var(--mlb-orange); border-color:var(--mlb-orange) }
.mlb .mlb-primary:hover{ color:#fff; background:#d75527 }
.mlb .mlb-green{ background:var(--mlb-green); border-color:var(--mlb-green); color:#fff }
.mlb .mlb-green:hover:not(:disabled){ background:#0e6060; color:#fff }
.mlb .mlb-icon{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; border:0; background:transparent; color:var(--mlb-muted); font-size:24px; line-height:1; border-radius:8px; padding:0 }
.mlb .mlb-icon:hover{ background:#edf4f1; color:var(--mlb-ink) }
.mlb-toolbar{ padding:16px 24px 12px; display:flex; align-items:center; gap:10px; flex-shrink:0 }
.mlb-search{ display:flex; gap:10px; align-items:center; flex:1; min-width:100px; margin:0; border:1px solid var(--mlb-line); border-radius:9px; background:#f6f9f7; padding:0 12px; height:42px }
.mlb-search>span[aria-hidden]{ font-size:26px; color:#647d74 }
.mlb input,.mlb select{ border:1px solid var(--mlb-line); background:#fff; border-radius:8px; color:var(--mlb-ink); font-size:14px; max-width:100%; height:42px; padding:8px 10px; margin:0; min-width:0; outline-offset:1px }
.mlb .mlb-search input{ padding:0; border:0; background:transparent; flex:1; width:100%; height:38px }
.mlb .mlb-date,.mlb .mlb-sort{ margin:0; display:block; font-weight:400; font-size:13px; color:inherit }
.mlb-date input{ width:167px }
.mlb-sort select{ width:139px }
.mlb-tag-browser{ margin:0 24px 8px; padding:12px; background:#f5f9f6; border:1px solid var(--mlb-line); border-radius:10px; max-height:205px; overflow:auto; flex-shrink:0 }
.mlb-tag-browser-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px }
.mlb-tag-browser-head .mlb-icon{ height:28px; min-width:36px }
.mlb-tag-browser input{ width:100%; max-width:370px }
.mlb-tag-options{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px }
.mlb .mlb-chip{ display:inline-flex; align-items:center; gap:5px; padding:6px 10px; min-height:34px; border:1px solid #cbded5; background:#fff; border-radius:20px; color:#315a4c; font-size:12px; max-width:100%; overflow-wrap:anywhere; text-align:left }
.mlb .mlb-chip:hover{ background:#e7f2ec }
.mlb-nav{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 24px; border-bottom:1px solid var(--mlb-line); flex-shrink:0 }
.mlb-tabs{ display:flex; gap:22px; min-width:0 }
.mlb .mlb-tab{ border:0; border-bottom:3px solid transparent; padding:12px 0 11px; border-radius:0; background:transparent; color:var(--mlb-muted); font-size:13px; font-weight:650; white-space:nowrap }
.mlb .mlb-tab[aria-pressed=true]{ color:var(--mlb-green); border-bottom-color:var(--mlb-green) }
.mlb-view-options{ display:flex; gap:5px }
.mlb .mlb-small{ font-size:11px; min-height:30px; padding:5px 9px }
.mlb .mlb-small[aria-pressed=true]{ background:#eaf4ee; border-color:#bcd6c9; color:#246250 }
.mlb-scope-row{ display:flex; gap:10px; align-items:center; padding:12px 24px 10px; font-size:12px; background:#f8faf8; flex-shrink:0 }
.mlb-scope-row strong{ max-width:55%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.mlb-scope-row [data-mlb-count]{ margin-left:auto; color:var(--mlb-muted); font-size:11px; white-space:nowrap }
.mlb .mlb-link{ border:0; border-radius:0; background:none; padding:4px 0; color:var(--mlb-green); font-size:12px; text-decoration:underline; min-height:28px }
.mlb-workspace{ display:flex; position:relative; flex:1; min-height:0; min-width:0; background:#f8faf8 }
.mlb-results{ min-width:0; flex:1; overflow:auto; overscroll-behavior:contain; padding:4px 24px 20px }
.mlb-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:15px; align-items:start }
.mlb.mlb-compact .mlb-grid{ grid-template-columns:repeat(auto-fill,minmax(142px,1fr)); gap:11px }
.mlb-card{ border:1px solid #dbe4df; border-radius:11px; overflow:hidden; background:#fff; min-width:0; position:relative; transition:box-shadow .15s,border-color .15s }
.mlb-card:hover{ border-color:#99bdae; box-shadow:0 3px 12px #1636290d }
.mlb-card.is-selected{ border-color:var(--mlb-green); box-shadow:0 0 0 2px var(--mlb-green) }
.mlb .mlb-card-preview{ display:block; background:transparent; border:0; border-radius:0; padding:0; width:100%; color:inherit; text-align:left; overflow:hidden }
.mlb-thumb{ display:block; position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:#eef3ef }
.mlb-placeholder{ display:flex; position:absolute; inset:0; flex-direction:column; gap:7px; align-items:center; justify-content:center; text-align:center; padding:10px; color:#60786e; background:linear-gradient(135deg,#e9f0ed,#f5f7f2); font-size:11px }
.mlb-placeholder-icon{ font-size:34px; line-height:1; color:#829a8f }
.mlb .mlb-thumb img{ position:absolute; inset:0; display:block; width:100%; max-width:none; height:100%; max-height:none; object-fit:contain; background:#f4f7f4; border:0; margin:0; padding:0 }
.mlb.mlb-fill .mlb-thumb img{ object-fit:cover }
.mlb-video-mark{ position:absolute; bottom:8px; left:8px; background:#163c31d9; color:#fff; border-radius:50%; width:27px; height:27px; display:grid; place-items:center; font-size:17px }
.mlb-card-name{ display:block; padding:10px 12px 0; font-size:13px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.mlb-card-meta{ display:block; padding:4px 12px 0; font-size:10px; letter-spacing:.2px; color:var(--mlb-muted) }
.mlb-card-bottom{ display:flex; align-items:center; justify-content:space-between; gap:4px; padding:2px 5px 3px 12px; min-width:0 }
.mlb-card-tags{ font-size:10px; color:#476859; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0 }
.mlb .mlb-more-button{ height:36px; min-width:40px; letter-spacing:2px; font-size:12px; color:#577167 }
.mlb-more{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; padding:22px 0 5px }
.mlb-more>span{ font-size:11px; color:var(--mlb-muted) }
.mlb-empty{ padding:60px 20px; text-align:center }
.mlb-empty strong,.mlb-empty span{ display:block; margin-bottom:8px }
.mlb-empty span{ font-size:13px; color:var(--mlb-muted) }
.mlb-inspector{ background:#fff; border-left:1px solid var(--mlb-line); width:350px; max-width:45%; flex-shrink:0; overflow:auto; overscroll-behavior:contain; padding:16px 18px 22px }
.mlb-detail-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; font-size:11px; color:var(--mlb-muted) }
.mlb-detail-visual{ position:relative; display:flex; align-items:center; justify-content:center; min-height:130px; background:#eff4ef; border-radius:10px; overflow:hidden; margin-bottom:15px }
.mlb .mlb-detail-visual img{ display:block; width:100%; height:auto; max-height:310px; object-fit:contain; padding:10px }
.mlb .mlb-detail-visual video{ display:block; width:100%; max-height:310px; background:#14291f }
.mlb-detail-visual .mlb-placeholder{ position:relative; width:100%; min-height:165px }
.mlb-detail-meta{ color:var(--mlb-muted); font-size:11px; margin:8px 0 15px; overflow-wrap:anywhere }
.mlb-detail-actions{ display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:15px 0 }
.mlb-detail-actions .mlb-btn{ font-size:12px; padding:9px 7px; white-space:normal; text-align:center }
.mlb-detail-tags{ padding:15px 0; border-top:1px solid var(--mlb-line) }
.mlb-detail-tags>strong{ font-size:12px; display:block; margin-bottom:10px }
.mlb-attached-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:13px }
.mlb-tag-token{ font-size:12px; padding:2px 4px 2px 10px; border-radius:18px; background:#eef5ef; display:inline-flex; align-items:center; max-width:100%; gap:4px; overflow-wrap:anywhere }
.mlb .mlb-tag-remove{ display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0; border:0; background:transparent; color:#927170; font-size:17px; border-radius:50% }
.mlb .mlb-tag-remove:hover{ background:#ffe6df; color:#a63326 }
.mlb-inspector input{ width:100% }
.mlb-muted{ color:var(--mlb-muted); font-size:12px }
.mlb-detail-bottom{ border-top:1px solid var(--mlb-line); padding-top:15px; margin-top:5px; display:flex; justify-content:space-between; gap:10px }
.mlb .mlb-danger{ color:#b2362a; border-color:#eaccc7; background:#fff }
.mlb .mlb-danger:hover{ color:#9e251c; background:#fff0eb; border-color:#d8887d }
.mlb-picker{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 24px; background:#eef5f0; border-top:1px solid #cbded4; flex-shrink:0 }
.mlb-picker>div{ min-width:0; font-size:12px; overflow-wrap:anywhere }
.mlb-picker span{ display:block; color:var(--mlb-muted); font-size:11px; margin-top:3px }
.mlb-footer{ display:flex; align-items:center; justify-content:space-between; padding:9px 24px; border-top:1px solid var(--mlb-line); font-size:10px; color:var(--mlb-muted); flex-shrink:0 }
.mlb-message{ padding:9px 24px; color:#286150; background:#e8f5ed; border-bottom:1px solid var(--mlb-line); font-size:12px; flex-shrink:0 }
.mlb-message.is-error{ color:#9a3026; background:#fff0eb }
.mlb-dialog-layer{ position:absolute; inset:0; background:#15332b66; z-index:5; display:flex; align-items:center; justify-content:center; padding:20px }
.mlb-dialog{ background:white; padding:22px; border-radius:14px; width:100%; max-width:430px; box-shadow:0 14px 40px #12312644; max-height:90%; overflow:auto }
.mlb-dialog-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px }
.mlb-dialog p{ font-size:13px; line-height:1.6; margin-bottom:18px; overflow-wrap:anywhere }
.mlb-dialog-actions{ display:flex; gap:8px; justify-content:flex-end }
.mlb-action-list{ display:flex; flex-direction:column; gap:7px }
.mlb-action-list .mlb-btn{ justify-content:flex-start; min-height:44px }
.mlb-sr{ position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important }
.mlb.is-loading [data-mlb-grid-target]{ opacity:.45; pointer-events:none }
@media(max-width:1000px){ .mlb-grid{ grid-template-columns:repeat(auto-fill,minmax(155px,1fr)) }.mlb-inspector{ width:315px; max-width:46% }.mlb-head{ padding:16px 18px }.mlb-toolbar{ padding:12px 18px }.mlb-nav{ padding:0 18px }.mlb-results{ padding:4px 18px 18px }.mlb-scope-row{ padding:11px 18px }.mlb-sort select{ width:127px }.mlb-tabs{ gap:17px } }
@media(max-width:700px){ #mediaLibraryContainer.mlb-host{ inset:0!important; border:0!important; border-radius:0!important }.mlb-head{ padding:13px 14px }.mlb h1{ font-size:22px }.mlb-eyebrow{ font-size:8px; letter-spacing:1px }.mlb-head-actions{ gap:4px }.mlb-head-actions .mlb-btn{ font-size:12px; padding:8px 10px }.mlb-refresh span{ display:none }.mlb-toolbar{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:11px 14px }.mlb-search{ grid-column:1/2; width:100% }.mlb-toolbar .mlb-btn{ grid-column:2/3 }.mlb-date{ grid-column:1/2 }.mlb-date input{ width:100%; min-height:38px }.mlb-sort{ grid-column:2/3 }.mlb-sort select{ width:124px; height:38px }.mlb input,.mlb select,.mlb .mlb-search input{ font-size:16px }.mlb-sort select{ font-size:12px }.mlb-nav{ padding:0 14px; gap:5px }.mlb-tabs{ gap:15px }.mlb .mlb-tab{ font-size:12px }.mlb-view-options .mlb-small{ font-size:10px; padding:5px 6px }.mlb-view-options [data-mlb-action=fit]{ display:none }.mlb-scope-row{ padding:10px 14px; font-size:11px; gap:6px }.mlb-scope-row [data-mlb-count]{ font-size:10px }.mlb-results{ padding:4px 14px 15px }.mlb-grid,.mlb.mlb-compact .mlb-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px }.mlb-card-name{ font-size:12px; padding-left:10px; padding-right:10px }.mlb-card-meta{ padding-left:10px }.mlb-card-bottom{ padding-left:10px }.mlb-inspector{ position:absolute; inset:0; max-width:none; width:100%; border-left:0; z-index:3; padding:10px 18px 24px }.mlb.has-detail .mlb-results{ visibility:hidden }.mlb-detail-visual img{ max-height:280px!important }.mlb-detail-top{ position:sticky; top:-10px; background:#fff; z-index:2; padding:4px 0 }.mlb-picker{ padding:10px 14px; align-items:center }.mlb-picker .mlb-btn{ font-size:12px; padding:10px }.mlb-picker strong{ font-size:11px }.mlb-picker span{ font-size:10px }.mlb-footer{ padding:8px 14px; font-size:9px }.mlb-footer>span:last-child{ display:none }.mlb-tag-browser{ margin:0 14px 6px; max-height:180px }.mlb-message{ padding:8px 14px }.mlb .mlb-dialog-layer{ padding:14px }.mlb .mlb-icon{ min-width:36px }.mlb .mlb-more-button{ min-width:40px } }
@media(max-width:370px){ .mlb-head-actions .mlb-refresh{ display:none }.mlb-tabs{ gap:12px }.mlb-view-options{ display:none }.mlb h1{ font-size:20px }.mlb-head-actions .mlb-primary{ font-size:11px }.mlb-grid{ gap:8px }.mlb-picker{ flex-wrap:wrap }.mlb-picker .mlb-btn{ width:100% } }
@media(prefers-reduced-motion:reduce){ .mlb *{ transition:none!important; scroll-behavior:auto!important } }
.mlb.is-saving [data-mlb-external]{ pointer-events:none; opacity:.45 }
.mlb.is-saving .mlb-dialog-actions button{ pointer-events:none; opacity:.45 }
/* The existing edit/upload forms live in sibling overlays, not in the grid or
   the calling thread popup. Their own field styles and handlers remain intact. */
.mlb-legacy-layer.popup-container-background{ position:fixed!important; inset:0!important; display:flex; align-items:flex-start; justify-content:center; overflow:auto!important; overscroll-behavior:contain; background:#16393066; padding:28px 16px!important; margin:0!important; width:auto!important; height:auto!important }
.mlb-legacy-frame{ background:#fff; min-width:0; width:100%; max-width:850px; min-height:130px; border-radius:13px; box-shadow:0 20px 60px #102a3055; overflow:hidden }
.mlb-legacy-head{ display:flex; align-items:center; justify-content:space-between; padding:10px 18px; border-bottom:1px solid #dce7e0; background:#f4f8f5; font:600 14px/1.4 Inter,system-ui,sans-serif; color:#153c37 }
.mlb-legacy-head button{ display:grid; place-items:center; width:42px; height:40px; border:0; border-radius:8px; background:transparent; font-size:25px; color:#315849; cursor:pointer }
.mlb-legacy-content.popup-container{ display:block; position:relative!important; inset:auto!important; min-width:0!important; width:100%!important; max-width:100%!important; max-height:none!important; height:auto!important; margin:0!important; padding:14px!important; box-shadow:none!important; border:0!important; overflow:auto!important; background:#fff }
.mlb [data-mlb-danger]{ color:#b2362a }
@media(max-width:700px){ .mlb-legacy-layer.popup-container-background{ padding:0!important }.mlb-legacy-frame{ border-radius:0; min-height:100%; max-width:none }.mlb-legacy-content.popup-container{ padding:10px!important } }
@media(max-width:700px){ .mlb.has-detail .mlb-toolbar,.mlb.has-detail .mlb-nav,.mlb.has-detail .mlb-scope-row,.mlb.has-detail .mlb-tag-browser{ display:none!important } }
/* ============================================================
   MOC MEDIA LIBRARY v2.2 - tag-first search ONLY
   Append once AFTER the existing media-library CSS in moc-ui-admin.css.
   Keep the existing v2.1 media-library CSS. No new stylesheet include.
   ============================================================ */
.mlb-tag-first .mlb-tag-browser-head{ margin-bottom:0; font-size:12px }
.mlb-tag-first .mlb-tag-suggestions .mlb-tag-options{ margin-top:6px }
.mlb-tag-first .mlb-tag-suggestions .mlb-chip{ min-height:44px }
.mlb-tag-first .mlb-tag-id{ color:var(--mlb-muted); font-size:10px; white-space:nowrap }
.mlb-tag-first .mlb-chip.mlb-tag-highlight{ background:#e7f2ec; border-color:var(--mlb-green); box-shadow:0 0 0 1px var(--mlb-green) }
.mlb-tag-first [data-mlb-tag-status]:empty{ display:none }
@media(max-width:700px){
    .mlb-tag-first .mlb-search{ grid-column:1 / -1; min-width:0; width:100% }
    .mlb-tag-first .mlb-tag-suggestions{ max-height:220px; max-height:min(220px,32vh) }
}
/* END MOC MEDIA LIBRARY v2.2 TAG SEARCH */

/* END MOC MEDIA LIBRARY v2.1 */
/* Media worksheet v1.0 — APPEND to moc-ui-admin.css. */
.mws-sheet, .mws-sheet * { box-sizing: border-box; }
.mws-sheet {
    --mws-preview-width: 290px; --mws-preview-height: 176px;
    width: 100%; min-width: 0; max-width: 100%; padding: 18px;
    background: #fff; color: #233b43; font: 14px/1.45 'Inter', system-ui, sans-serif;
    border: 1px solid #dce5e7; border-radius: 12px;
}
.mws-sheet.is-large { --mws-preview-width: 400px; --mws-preview-height: 280px; }
.mws-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.mws-heading h2 { margin: 0; color: #0b4a5a; font: 700 23px/1.2 'Inter', system-ui, sans-serif; }
.mws-heading h2 span { font-size: 11px; font-weight: 500; color: #7c8e94; }
.mws-heading p { margin: 5px 0 0; font-size: 12px; color: #6b7d84; }
.mws-toolbar, .mws-filterbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.mws-filterbar { margin: 10px 0 14px; gap: 10px 20px; color: #52666f; font-size: 12px; }
.mws-filterbar label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.mws-sheet input[type="search"], .mws-sheet input[type="month"], .mws-sheet select {
    height: 39px; padding: 7px 10px; border: 1px solid #ccdadd; border-radius: 7px;
    background: #fff; color: #233b43; font: inherit; margin: 0; width: auto;
}
.mws-sheet input[type="search"] { flex: 1 1 260px; min-width: 180px; }
.mws-sheet input[type="month"] { height: 33px; font-size: 12px; }
.mws-sheet input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #157575; }
.mws-types { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #f0f4f5; }
.mws-type, .mws-button, .mws-copy, .mws-tag {
    appearance: none; cursor: pointer; width: auto; margin: 0; text-transform: none;
    font: 600 13px/1.3 'Inter', system-ui, sans-serif; letter-spacing: normal;
    border: 1px solid #d3dfe1; border-radius: 7px; padding: 9px 12px;
    background: #fff; color: #157575; box-shadow: none; text-decoration: none;
}
.mws-type { padding: 8px 13px; background: transparent; border-color: transparent; }
.mws-type.is-active { background: #157575; color: #fff; }
.mws-button.mws-primary { background: #157575; border-color: #157575; color: #fff; }
.mws-button:hover:not(:disabled), .mws-copy:hover, .mws-tag:hover { border-color: #157575; }
.mws-sheet button:disabled { opacity: .38; cursor: default; }
.mws-size[aria-pressed="true"] { background: #e1f1ee; border-color: #157575; }
.mws-sheet :focus-visible { outline: 2px solid #f26c36; outline-offset: 2px; }
.mws-feedback { color: #52666f; margin-left: auto; }
.mws-feedback.is-error { color: #a12b2b; }
.mws-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-top: 1px solid #e5ecee; font-size: 12px; }
.mws-pagination > div { display: flex; align-items: center; gap: 10px; }
.mws-pagination .mws-button { padding: 6px 10px; font-size: 12px; }
.mws-results { width: 100%; max-height: 72vh; min-height: 220px; overflow: auto; border: 1px solid #dce5e7; border-radius: 8px; }
.mws-table { width: 100%; min-width: 1050px; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: #233b43; font-size: 13px; }
.mws-table th { position: sticky; top: 0; z-index: 2; background: #eaf3f2; text-align: left; font-weight: 700; padding: 11px 14px; border-bottom: 1px solid #cfdedd; }
.mws-table td { padding: 14px; border-bottom: 1px solid #e4ebed; border-right: 1px solid #edf1f2; vertical-align: top; background: #fff; }
.mws-table tr:nth-child(even) td { background: #fafcfc; }
.mws-table tr:last-child td { border-bottom: 0; }
.mws-table th.mws-preview-col, .mws-table td.mws-preview-col { width: var(--mws-preview-width); }
.mws-table th.mws-name-col, .mws-table td.mws-name-col { width: 225px; }
.mws-table th.mws-tags-col, .mws-table td.mws-tags-col { width: 190px; }
.mws-preview { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; height: var(--mws-preview-height); overflow: hidden; border: 1px solid #dbe4e6; border-radius: 7px; background-color: #fff; background-image: repeating-conic-gradient(#edf1f2 0% 25%, #fff 0% 50%); background-size: 18px 18px; }
.mws-preview > a { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; }
.mws-preview img, .mws-preview video { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; border: 0; border-radius: 0; margin: 0; }
.mws-preview video, .mws-video-preview { background: #132b33; }
.mws-no-preview { padding: 18px; text-align: center; color: #60767e; background: #f5f8f8; width: 100%; }
.mws-video-preview .mws-no-preview { background: #132b33; color: #c4d5dc; }
.mws-preview-error { position: absolute; left: 8px; right: 8px; top: 10px; padding: 8px; border-radius: 4px; background: #fff2e8; color: #7d411b; font-size: 12px; }
.mws-sheet [hidden] { display: none !important; }
.mws-name { display: block; margin: 11px 0 5px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.mws-id { background: #e7f3f0; border-color: #c7e2dc; font-size: 13px; padding: 6px 9px; }
.mws-small { font-size: 12px; color: #70828a; margin-top: 5px; line-height: 1.4; }
.mws-filename { font-size: 11px; color: #70828a; margin-top: 8px; overflow-wrap: anywhere; }
.mws-link { display: inline-block; margin-top: 11px; color: #157575; text-decoration: underline; font-size: 12px; font-weight: 600; }
.mws-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.mws-tag { background: #fff; padding: 5px 8px; color: #46646b; font-size: 12px; text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.mws-field-label { display: block; font: 11px/1.4 monospace; color: #7b8c92; margin-bottom: 4px; }
.mws-storage code { display: block; padding: 0; margin: 0; background: transparent; color: #36525a; font: 12px/1.55 ui-monospace, monospace; white-space: normal; overflow-wrap: anywhere; }
.mws-record-actions { margin-top: 12px; }
.mws-record-actions .mws-button { padding: 6px 9px; font-size: 12px; }
.mws-record { margin-top: 11px; }
.mws-record summary { cursor: pointer; font-size: 12px; color: #60767e; }
.mws-record-text { width: 100%; height: 260px; min-height: 180px; padding: 9px; margin-top: 8px; border: 1px solid #d4e0e3; border-radius: 5px; font: 11px/1.5 ui-monospace, monospace; color: #314e57; background: #f7fafb; resize: vertical; }
.mws-table td.mws-empty { padding: 48px 24px; text-align: center; color: #647b84; }
.mws-sheet.is-busy .mws-results { opacity: .5; }
.mws-sheet.is-busy .mws-form { pointer-events: none; }
@media (max-width: 650px) {
    .mws-sheet { padding: 12px; }
    .mws-heading { align-items: flex-start; }
    .mws-heading h2 { font-size: 20px; }
    .mws-toolbar input[type="search"] { flex-basis: 100%; }
    .mws-feedback { margin-left: 0; }
    .mws-results { max-height: 65vh; }
}
