:root{
  --bg:#f3efe6;
  --panel:#c7a07a;
  --text:#2b2b2b;
  --muted:#6b6b6b;
  --border:rgba(0,0,0,.08);
  --border2:rgba(0,0,0,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.08);
  --radius:16px;
  --radius2:18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;

  background:
    linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)), /* 👈 soft fade layer */
    url('/smoke-bg.jpg'),                                             /* 👈 your image */
    radial-gradient(1200px 900px at 20% 0%, rgba(0,0,0,.06), transparent 60%),
    radial-gradient(900px 700px at 80% 10%, rgba(0,0,0,.05), transparent 60%),
    linear-gradient(180deg, #efe9de 0%, #e2dacb 100%);

  background-size: cover, cover, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;

  color:var(--text);
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:22px 16px 40px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  margin-bottom:14px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.logo{
  height:52px;
}

.panel{
  background: linear-gradient(180deg, #ebe3d7 0%, #ddd2c4 100%);
  border-radius: var(--radius2);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    0 12px 40px rgba(0,0,0,.08),
    0 0 0 1px rgba(255,255,255,.4) inset;
}

.panelHead{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}

.controls{
  padding:14px 16px;
}

input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border2);
}

.list{
  padding:12px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:12px;
}

.event {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}

.eventName{
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
}

.event:hover .eventName{
  opacity: 0.75;
}

.eventThumb{
  width:100%;
  aspect-ratio:3/2;
  border-radius:10px;
  overflow:hidden;
  background:#eee;
  margin-bottom: 10px;
}

.eventThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ===== EVENT PAGE FIXES ===== */

/* cards */
.card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  color: var(--text);
}

/* file names */
.fileName{
  color: var(--text);
}

/* sidebar rows */
.kvRow{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
}

.kvRow .k{
  color: var(--muted);
}

.kvRow .v{
  color: var(--text);
}

/* pills */
.pill{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.10);
  color: var(--text);
}

/* select bar */
.selectBar{
  background: #f4efe6;
  border: 1px solid rgba(0,0,0,.08);
}

/* inputs */
input[type="text"],
select{
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(0,0,0,.12);
}

/* non-image placeholders */
.card div[style*="background"]{
  background: #f2f2f2 !important;
  color: #666 !important;
}

/* badges */
.badge{
  background: #eee;
  border: 1px solid rgba(0,0,0,.1);
  color: var(--text);
}

/* remove link styling everywhere */
a,
a:visited,
a:hover,
a:active{
  color: inherit;
  text-decoration: none;
}

.eventActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.archive-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: #2b2b2b;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.archive-btn:hover {
  background: #000;
}