/* ═══════════════════════════════════════════════════════════════════
   Security Events Monitor — style.css v8
   Fixes:
   - sticky header overlap
   - full-width flexible columns
   - repaired responsive section
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-base:        #111318;
    --bg-surface:     #181b23;
    --bg-card:        #1d2130;
    --bg-card-hover:  #242840;
    --bg-input:       #13161d;
    --bg-modal:       #1a1d2a;
    --border:         #272c3d;
    --border-light:   #323852;
    --text-primary:   #e6e9f0;
    --text-secondary: #8b91a8;
    --text-muted:     #4e5468;
    --green:          #3ec97a;
    --green-dark:     #2da862;
    --green-glow:     rgba(62,201,122,.18);
    --yellow:         #f0b429;
    --red:            #e8404a;
    --red-glow:       rgba(232,64,74,.18);
    --blue:           #4a9eff;
    --blue-glow:      rgba(74,158,255,.18);
    --purple:         #9b72f5;
    --orange:         #f97316;

    /* Trigger icon colours */
    --icon-motion:    #4a9eff;
    --icon-human:     #3ec97a;
    --icon-intrusion: #e8404a;
    --icon-face:      #9b72f5;
    --icon-vehicle:   #f0b429;
    --icon-loitering: #f97316;
    --icon-tamper:    #e8404a;
    --icon-analytics: #5dcaa5;
    --icon-offline:     #6b7280;
    --icon-car:         #f0b429;
    --icon-audio:       #4a9eff;
    --icon-temperature: #e8404a;
    --icon-default:     #8b91a8;

    --status-new:           #e8404a;
    --status-acknowledged:  #f0b429;
    --status-investigating: #4a9eff;
    --status-resolved:      #3ec97a;
    --status-false-alarm:   #6b7280;

    --row-height: 58px;
    --header-height: 48px;
    --navbar-height: 54px;
    --page-header-height: 54px;
    --sticky-offset: 108px;  /* navbar(54) + page-header(54) */
    --radius-sm: 5px;
    --radius-md: 9px;
    --radius-lg: 13px;
    --radius-xl: 18px;
    --shadow-lift: 0 8px 28px rgba(0,0,0,.65);
    --transition: .18s ease;
    --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--navbar-height);
    background: #0c0e14;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
}

.nav-hamburger {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.nav-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon svg { width: 17px; height: 17px; fill: #0c0e14; stroke: none; }
.nav-logo-text { font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: 1px; }
.nav-spacer { flex: 1; }

.nav-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ws-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
    transition: background .4s, box-shadow .4s;
}

.ws-dot.connected  { background: var(--green); box-shadow: 0 0 7px var(--green); }
.ws-dot.connecting { background: var(--yellow); animation: pulse-dot 1.1s ease-in-out infinite; }
.ws-dot.error      { background: var(--red); }

@keyframes pulse-dot {
    0%,100% { opacity: 1; }
    50% { opacity: .4; }
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--border);
}

/* ── Page header ─────────────────────────────────────────────────────── */
.page-header {
    position: sticky;
    top: 54px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-wrap: nowrap;   /* single row — items shrink rather than wrap */
    min-height: 54px;
}

.page-title { font-size: 16px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* right-side cluster: status + action buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.group-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.group-form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.group-input-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.group-input { width: 120px; min-width: 80px; }
.form-error { width: 100%; font-size: 12px; color: var(--red); margin-top: 4px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform .1s;
    white-space: nowrap;
    text-decoration: none;
}

.btn:active { transform: scale(.97); }

.btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.btn-primary { background: var(--green); color: #0c0e14; }
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ── Form controls ───────────────────────────────────────────────────── */
.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    padding: 7px 13px;
    outline: none;
    transition: border-color var(--transition);
}

.form-input:hover { border-color: var(--border-light); }
.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: var(--text-muted); }

.form-select {
    appearance: none;
    background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234e5468' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    padding: 8px 34px 8px 12px;
    outline: none;
    cursor: pointer;
    width: 100%;
    transition: border-color var(--transition);
}

.form-select:focus { border-color: var(--green); }

.form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    padding: 10px 13px;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition);
}

.form-textarea:focus { border-color: var(--green); }
.form-textarea::placeholder { color: var(--text-muted); }

/* ── Toolbar ─────────────────────────────────────────────────────────── */
/* .toolbar removed — merged into .page-header */

.search-wrapper, 

.search-icon, .date-icon {
    position: absolute;
    left: 10px;
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.search-input { padding-left: 32px; width: 180px; min-width: 120px; }
.date-input { display: none; }

.event-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.active-groups-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.active-groups-label strong { color: var(--green); font-weight: 600; }

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--red-glow);
    border: 1px solid rgba(232,64,74,.35);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: .6px;
    opacity: 0;
    transition: opacity .4s;
}

.live-badge.visible { opacity: 1; }

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse-live 1.4s ease-in-out infinite;
}

@keyframes pulse-live {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.75); }
}

/* ── New events bar ──────────────────────────────────────────────────── */
.new-events-bar {
    background: var(--blue-glow);
    border-bottom: 1px solid rgba(74,158,255,.3);
    color: var(--blue);
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.new-events-bar svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    stroke: none;
    flex-shrink: 0;
}

/* ── Main content ────────────────────────────────────────────────────── */
.main-content {
    padding: 0 0 40px;
    width: 100%;
    overflow-x: hidden;
}

.events-table {
    position: relative;
    width: 100%;
}

.events-list,
.list-header {
    width: 100%;
    min-width: 0;
}

/* ── Shared grid ─────────────────────────────────────────────────────── */
.list-header,
.event-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.35fr)   /* location */
        72px                    /* icon */
        minmax(220px, 1.7fr)    /* camera */
        minmax(140px, 1fr)      /* trigger */
        minmax(190px, 1.15fr)   /* date */
        minmax(120px, 0.8fr);   /* disposition */
    align-items: center;
    width: 100%;
}

/* ── List header ─────────────────────────────────────────────────────── */
.list-header {
    position: sticky;
    top: 108px;
    z-index: 100;
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,.22);
}

.list-header > div {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--bg-surface);
}

.events-list {
    padding-top: 0;
}

/* ── Event row ───────────────────────────────────────────────────────── */
.event-row {
    min-height: var(--row-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
    animation: row-in .25s ease both;
}

@keyframes row-in {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: none; }
}

.event-row:hover { background: var(--bg-card-hover); }

.event-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color, var(--border));
}

.event-row[data-disposition="new"]           { --accent-color: var(--status-new); }
.event-row[data-disposition="acknowledged"]  { --accent-color: var(--status-acknowledged); }
.event-row[data-disposition="investigating"] { --accent-color: var(--status-investigating); }
.event-row[data-disposition="resolved"]      { --accent-color: var(--status-resolved); }
.event-row[data-disposition="false_alarm"]   { --accent-color: var(--status-false-alarm); }

.event-row > div {
    padding: 0 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* NEW badge — position:absolute so it does NOT consume a grid column */
.new-row-indicator {
    position: absolute;
    top: 8px;
    left: 6px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    padding: 2px 6px;
    border-radius: 10px;
    animation: fade-new 5s ease forwards;
    pointer-events: none;
    z-index: 2;
}
@keyframes fade-new { 0%,60%{opacity:1} 100%{opacity:0} }

/* ── Trigger icon column ─────────────────────────────────────────────── */
.col-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px !important;
    overflow: visible !important;
}

.trigger-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition), transform .1s;
    border: 1px solid transparent;
    min-width: 44px;
}

.trigger-icon:hover { transform: scale(1.08); }

/* Icon colours by trigger type */
.trigger-motion    { color: var(--icon-motion);    border-color: rgba(74,158,255,.25);  background: rgba(74,158,255,.08); }
.trigger-human     { color: var(--icon-human);     border-color: rgba(62,201,122,.25);  background: rgba(62,201,122,.08); }
.trigger-intrusion { color: var(--icon-intrusion); border-color: rgba(232,64,74,.25);   background: rgba(232,64,74,.08); }
.trigger-face      { color: var(--icon-face);      border-color: rgba(155,114,245,.25); background: rgba(155,114,245,.08); }
.trigger-vehicle   { color: var(--icon-vehicle);   border-color: rgba(240,180,41,.25);  background: rgba(240,180,41,.08); }
.trigger-loitering { color: var(--icon-loitering); border-color: rgba(249,115,22,.25);  background: rgba(249,115,22,.08); }
.trigger-tamper    { color: var(--icon-tamper);    border-color: rgba(232,64,74,.25);   background: rgba(232,64,74,.08); }
.trigger-analytics { color: var(--icon-analytics); border-color: rgba(93,202,165,.25);  background: rgba(93,202,165,.08); }
.trigger-offline   { color: var(--icon-offline);   border-color: rgba(107,114,128,.25); background: rgba(107,114,128,.08); }
.trigger-car       { color: var(--icon-car);       border-color: rgba(240,180,41,.25);  background: rgba(240,180,41,.08); }
.trigger-audio     { color: var(--icon-audio);     border-color: rgba(74,158,255,.25);  background: rgba(74,158,255,.08); }
.trigger-temperature { color: var(--icon-temperature); border-color: rgba(232,64,74,.25); background: rgba(232,64,74,.08); }

.icon-confidence {
    font-size: 9px;
    font-weight: 600;
    color: inherit;
    opacity: .8;
    line-height: 1;
}

/* ── Trigger text column ─────────────────────────────────────────────── */
.col-trigger-text { font-size: 12px; font-weight: 500; }

.trigger-label { display: block; white-space: nowrap; }
.trigger-label-motion      { color: var(--icon-motion); }
.trigger-label-human       { color: var(--icon-human); }
.trigger-label-intrusion   { color: var(--icon-intrusion); }
.trigger-label-face        { color: var(--icon-face); }
.trigger-label-vehicle,
.trigger-label-car         { color: var(--icon-car); }
.trigger-label-loitering   { color: var(--icon-loitering); }
.trigger-label-tamper      { color: var(--icon-tamper); }
.trigger-label-analytics   { color: var(--icon-analytics); }
.trigger-label-audio       { color: var(--icon-audio); }
.trigger-label-temperature { color: var(--icon-temperature); }
.trigger-label-offline     { color: var(--icon-offline); }

.confidence-inline { font-size: 10px; color: var(--text-muted); margin-left: 2px; }

/* ── Other columns ───────────────────────────────────────────────────── */
.col-nickname { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.nickname-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notes-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.col-location { font-size: 12px; color: var(--text-secondary); }
.location-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-date { font-size: 12px; color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
    border: 1px solid;
}

.badge-new           { background: var(--red-glow);             color: var(--status-new);           border-color: rgba(232,64,74,.3); }
.badge-acknowledged  { background: rgba(240,180,41,.12);        color: var(--status-acknowledged);  border-color: rgba(240,180,41,.3); }
.badge-investigating { background: var(--blue-glow);            color: var(--status-investigating); border-color: rgba(74,158,255,.3); }
.badge-resolved      { background: var(--green-glow);           color: var(--status-resolved);      border-color: rgba(62,201,122,.3); }
.badge-false_alarm   { background: rgba(107,114,128,.12);       color: var(--status-false-alarm);   border-color: rgba(107,114,128,.3); }

/* ── Live view button ────────────────────────────────────────────────── */
.col-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px !important;
}

.live-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 9px;
    border-radius: var(--radius-md);
    background: rgba(62,201,122,.1);
    border: 1px solid rgba(62,201,122,.3);
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background var(--transition), transform .1s;
}

.live-btn:hover {
    background: rgba(62,201,122,.2);
    border-color: var(--green);
    transform: scale(1.05);
}

.live-btn svg { width: 16px; height: 16px; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-muted);
    gap: 12px;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.empty-state p { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.empty-state span { font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════════
   Floating image preview panel
   ═══════════════════════════════════════════════════════════════════════ */
.image-preview-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
    background: var(--bg-modal);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    z-index: 400;
    animation: panel-in .2s ease;
    overflow: hidden;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.image-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.image-preview-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color var(--transition);
}

.image-preview-close:hover { color: var(--text-primary); }

.image-preview-body {
    position: relative;
    min-height: 220px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-body img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    display: block;
}

.image-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    padding: 40px;
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Icon click popup ────────────────────────────────────────────────── */
.event-row.icon-col-active .col-icon {
    background: rgba(255,255,255,.06);
    border-radius: var(--radius-md);
}

.icon-popup {
    position: absolute;
    width: 320px;
    background: var(--bg-modal);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,.7);
    z-index: 600;
    animation: popup-in .15s ease;
    overflow: hidden;
}

@keyframes popup-in {
    from { opacity: 0; transform: scale(.95) translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.icon-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.icon-popup-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-popup-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.icon-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color var(--transition);
}

.icon-popup-close:hover { color: var(--text-primary); }

.icon-popup-body {
    min-height: 180px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-popup-body img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}

.icon-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
}

.icon-popup-noimg {
    color: var(--text-muted);
    font-size: 12px;
    padding: 40px;
    text-align: center;
}

/* ── Review toast ────────────────────────────────────────────────────── */
.review-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1206;
    border: 1.5px solid var(--yellow);
    border-radius: var(--radius-lg);
    padding: 13px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(240,180,41,.12), 0 12px 36px rgba(0,0,0,.7);
    z-index: 700;
    animation: toast-in .2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.review-toast-icon {
    font-size: 20px;
    color: var(--yellow);
    line-height: 1;
    flex-shrink: 0;
}

.review-toast-text { color: var(--text-secondary); }
.review-toast-text strong { color: var(--yellow); font-weight: 700; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.96); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.review-toast-hide { animation: toast-out .4s ease forwards; }

@keyframes toast-out {
    to { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.97); }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .list-header,
    .event-row {
        grid-template-columns:
            minmax(150px, 1.2fr)
            64px
            minmax(170px, 1.35fr)
            minmax(120px, .9fr)
            minmax(170px, 1fr)
            minmax(110px, .8fr);
    }
}

@media (max-width: 900px) {
    .list-header,
    .event-row {
        grid-template-columns:
            64px
            minmax(200px, 1.5fr)
            minmax(130px, 1fr)
            minmax(120px, .9fr);
    }

    .col-location,
    .col-date {
        display: none;
    }
}

@media (max-width: 700px) {
    .list-header,
    .event-row {
        grid-template-columns:
            60px
            minmax(180px, 1fr)
            minmax(120px, .8fr);
    }

    .col-trigger-text,
    .col-location,
    .col-date {
        display: none;
    }
}

@media (max-width: 600px) {
    .page-header { padding: 10px 14px; }
    .page-header-actions { display: none; }
    .nav-logo-text { display: none; }
    .group-form-label { display: none; }
    .image-preview-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
}