﻿:root {
  --bg: #0b0b0d;
  --bg-2: #151518;
  --ink: #f5f1ec;
  --muted: #bdb5ad;
  --line: rgba(245, 241, 236, 0.16);
  --panel: rgba(20, 20, 23, 0.92);
  --panel-solid: #17171a;
  --brand: #c41f32;
  --brand-dark: #8f1724;
  --accent: #d8b45f;
  --accent-2: #f0d487;
  --warn: #d8902e;
  --soft: rgba(196, 31, 50, 0.12);
  --green: #20a15a;
  --yellow: #e2b93b;
  --red: #d83244;
  --hero-image: url("https://static.wixstatic.com/media/61e3ee_5a961ed6bb4f4e65b22d82ee4e46f62b%7Emv2.png/v1/fit/w_2500,h_1330,al_c/61e3ee_5a961ed6bb4f4e65b22d82ee4e46f62b%7Emv2.png");
  --type-main: HelveticaNeueW01-45Ligh, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --type-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--type-main);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.82), rgba(8, 8, 10, 0.94) 46%, #0b0b0d 100%),
    var(--hero-image) center top / cover fixed no-repeat,
    #0b0b0d;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 4%, rgba(196, 31, 50, 0.18), transparent 30%), linear-gradient(90deg, rgba(0,0,0,0.45), transparent 36%, rgba(0,0,0,0.55));
}
button, input, select, textarea { font: inherit; }
button, .download {
  border: 1px solid rgba(216, 180, 95, 0.38);
  background: linear-gradient(180deg, #d62b40, #9f1b2b);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
button:hover, .download:hover { background: linear-gradient(180deg, #ec3650, #b61e31); border-color: var(--accent); }
.hidden { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--type-head); font-size: 42px; line-height: 1.02; margin-bottom: 12px; font-weight: 800; color: #fff; }
h2 { color: #fff; }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: 12px; }
.muted, .hint { color: var(--muted); }
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 54px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
  position: relative;
  z-index: 1;
}
.loginLogo { width: min(360px, 78vw); display: block; margin: 0 0 24px; filter: drop-shadow(0 18px 28px rgba(0,0,0,0.55)); }
.panel, .workspace, dialog form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}
.panel { padding: 24px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(245, 241, 236, 0.18);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(216, 180, 95, 0.45); border-color: var(--accent); }
textarea { resize: vertical; }
.login form { display: grid; gap: 14px; }
.workspace {
  margin: 20px;
  padding: 20px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22,22,25,0.96), rgba(13,13,15,0.96));
}
.topbar, .filters, .summary, .tableActions, .content { max-width: 1500px; margin-left: auto; margin-right: auto; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 6px 0 18px; border-bottom: 1px solid rgba(216, 180, 95, 0.28); }
.topbar h1 { font-size: 30px; margin: 0; }
.brandLockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brandLogo { width: 154px; max-width: 34vw; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55)); }
.userbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.userbox span { color: #e6ded5; min-width: 140px; text-align: right; }
.filters { display: grid; grid-template-columns: 110px 150px 190px 120px 160px minmax(240px, 1fr); gap: 12px; align-items: end; margin-top: 18px; }
.summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.summaryCard { border: 1px solid rgba(216, 180, 95, 0.20); background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)); border-radius: 8px; padding: 14px; display: grid; gap: 4px; text-align: left; min-height: 82px; box-shadow: none; color: var(--ink); }
.summary strong { font-size: 28px; color: var(--accent-2); line-height: 1; }
.summary span { color: var(--muted); font-size: 13px; font-weight: 500; }
.summaryCard:hover { background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(216,180,95,0.08)); border-color: rgba(216, 180, 95, 0.42); }
.summaryCard.active { border-color: var(--accent); background: linear-gradient(180deg, rgba(216,180,95,0.18), rgba(255,255,255,0.05)); }
.summaryCard.active span { color: #f0d487; }
.content { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; margin-top: 10px; }
.calendar, .tableWrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: rgba(13, 13, 15, 0.86); align-self: start; }
.month { border-bottom: 1px solid var(--line); }
.month:last-child { border-bottom: 0; }
.month h3 { margin: 0; padding: 12px 14px; background: linear-gradient(90deg, rgba(196,31,50,0.35), rgba(216,180,95,0.10)); color: #fff; font-size: 15px; }
.day { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.dayTime { color: var(--accent); font-size: 12px; font-weight: 800; }
.dayTitle { font-weight: 800; line-height: 1.25; color: #fff; }
.tableArea { display: grid; gap: 10px; align-self: start; }
.tableActions { display: flex; justify-content: center; align-items: center; margin-top: 18px; }
.tableActions #newBtn { min-width: 170px; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0; color: var(--accent); background: rgba(255, 255, 255, 0.05); }
td { color: #eee7df; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.035); }
.monthBreak td { padding: 10px 12px; background: rgba(196, 31, 50, 0.18); color: var(--accent-2); font-weight: 800; border-top: 2px solid rgba(216,180,95,0.34); border-bottom: 1px solid var(--line); }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.13); color: #fff; font-size: 12px; white-space: nowrap; }
.badge.hot { color: #fff; background: var(--brand); }
.badge.warn { color: #1b1204; background: var(--accent); }
.badge.green { color: #fff; background: var(--green); }
.badge.yellow { color: #251a02; background: var(--yellow); }
.badge.red { color: #fff; background: var(--red); }
tr.green td:first-child, .day.green { box-shadow: inset 4px 0 0 var(--green); }
tr.yellow td:first-child, .day.yellow { box-shadow: inset 4px 0 0 var(--yellow); }
tr.red td:first-child, .day.red { box-shadow: inset 4px 0 0 var(--red); }
.rowTitle { font-weight: 800; color: #fff; }
.sub { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.linkBtn { background: transparent; color: var(--accent-2); padding: 4px 0; min-height: auto; border: 0; box-shadow: none; }
.linkBtn:hover { background: transparent; color: #fff; }
.monthSheets { display: flex; gap: 8px; flex-wrap: wrap; }
.sheetBtn { background: rgba(255,255,255,0.08); color: var(--ink); min-height: 34px; padding: 7px 10px; border-color: var(--line); box-shadow: none; }
.sheetBtn:hover, .sheetBtn.active { background: var(--brand); color: #fff; border-color: var(--accent); }
dialog { border: 0; padding: 0; width: min(980px, calc(100vw - 24px)); background: transparent; }
dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); }
dialog form { padding: 18px; background: #151518; }
dialog header, dialog footer { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
dialog header button { background: rgba(255,255,255,0.10); color: var(--ink); width: 40px; padding: 0; border-color: var(--line); box-shadow: none; }
.formGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.wide { grid-column: 1 / -1; }
dialog footer { grid-template-columns: auto 1fr auto auto; }
.danger { background: linear-gradient(180deg, #b52032, #7d1421); }
.danger:hover { background: linear-gradient(180deg, #d02a3f, #951827); }
.error { color: #ff8c9a; min-height: 18px; }
.tabs { max-width: 1500px; margin: 16px auto 0; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.tab { background: transparent; color: var(--muted); border-radius: 0; padding: 12px 14px; min-height: 0; border: 0; border-bottom: 3px solid transparent; box-shadow: none; }
.tab:hover { background: rgba(255,255,255,0.06); color: #fff; }
.tab.active { color: var(--accent-2); border-bottom-color: var(--brand); }
.usersPanel, .contactsPanel, .myCalendarPanel, .conflictsPanel { max-width: 1500px; margin: 18px auto 0; }
.editorLayout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 18px; align-items: start; }
.editorForm { padding: 18px; }
.editorForm h2 { font-size: 20px; margin-bottom: 14px; }
.twoCols { grid-template-columns: repeat(2, 1fr); }
.usersTable table { min-width: 680px; }
button[disabled], input[disabled], select[disabled], textarea[disabled] { opacity: 0.72; cursor: not-allowed; }
.actionCell { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.dangerText { color: #ff8c9a; }
.dangerText:hover { color: #fff; }
.contactOverview { display: grid; gap: 12px; }
.inlineCheck { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.inlineCheck input { width: auto; }
.contactToolbar { display: flex; justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap; }
.artistAutomationStatus { color: var(--muted); border: 1px solid rgba(216,180,95,0.24); background: rgba(255,255,255,0.055); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 800; }
.contactSearchGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .contactSearchGrid { grid-template-columns: 1fr; } }
.contactCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-items: stretch; }
.contactCard { display: grid; gap: 4px; text-align: left; background: rgba(255,255,255,0.075); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 92px; align-content: start; box-shadow: none; }
.contactCard:hover { background: rgba(196,31,50,0.18); color: #fff; border-color: var(--accent); }
.contactCard span { color: var(--muted); font-size: 12px; }
.contactCard .matchReason { color: var(--accent-2); font-weight: 800; }
.contactDetail { padding: 18px; max-width: 980px; }
.contactDetail header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contactDetail h2 { font-size: 20px; margin: 0; }
.contactDetail h3 { font-size: 15px; margin: 16px 0 8px; color: var(--accent); }
.contactDetail footer { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 16px; }
.contactDetail footer.contactTopActions { margin: 8px 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(216,180,95,0.18); }
.contactDetail footer span { flex: 1; }
#backToContacts, #backToContactsBottom, #resetUserForm, #resetAbsenceBtn, #cancelBtn { background: rgba(255,255,255,0.10); color: var(--ink); border-color: var(--line); box-shadow: none; }
#backToContacts:hover, #backToContactsBottom:hover, #resetUserForm:hover, #resetAbsenceBtn:hover, #cancelBtn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.eventList { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.eventList li { line-height: 1.25; color: var(--ink); }
.teamCalendar { display: grid; gap: 12px; }
.teamTools { padding: 14px; display: grid; gap: 8px; }
.availabilityBox { align-self: end; border: 1px solid var(--line); border-radius: 6px; padding: 10px; min-height: 40px; color: var(--muted); background: rgba(255,255,255,0.06); font-size: 13px; }
.availabilityBox.green { color: #bff7d5; background: rgba(32,161,90,0.16); border-color: rgba(32,161,90,0.55); }
.availabilityBox.yellow { color: #ffe596; background: rgba(226,185,59,0.16); border-color: rgba(226,185,59,0.62); }
.availabilityBox.red { color: #ffc0c8; background: rgba(216,50,68,0.18); border-color: rgba(216,50,68,0.62); }
.availabilityBox.unknown { color: var(--muted); }
.conflictsPanel { display: grid; gap: 12px; }
.conflictHeader { padding: 16px; }
.conflictHeader h2 { margin-bottom: 4px; font-size: 20px; }
.day.absence { box-shadow: inset 4px 0 0 #8792a2; background: rgba(255,255,255,0.035); }
.dashboard { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.notifications { display: none; }
.notice { border: 1px solid rgba(216, 180, 95, 0.20); background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)); color: var(--accent-2); border-radius: 8px; min-height: 54px; padding: 12px 16px; box-shadow: none; font-size: 16px; font-weight: 800; }
.notice:hover { background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(216,180,95,0.08)); color: #fff; border-color: rgba(216, 180, 95, 0.42); }
.notice.good { background: linear-gradient(180deg, rgba(32,161,90,0.14), rgba(255,255,255,0.035)); color: #bff7d5; border-color: rgba(32,161,90,0.38); }
.miniFilters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.miniFilters label { min-width: 180px; }
.eventHistory { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.eventHistory h3 { margin: 0 0 8px; font-size: 15px; color: var(--accent); }
@media (max-width: 1100px) { .filters, .summary, .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } .searchFilter { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .login, .content, .filters, .summary, .editorLayout, .twoCols { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .userbox { justify-content: flex-start; }
  .userbox span { text-align: left; }
  .formGrid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .brandLockup { align-items: flex-start; flex-direction: column; gap: 8px; }
  .brandLogo { width: 190px; max-width: 78vw; }
}
@media (max-width: 700px) { .dashboard { grid-template-columns: 1fr; } .workspace { margin: 0; border-radius: 0; } .login { padding: 22px; } h1 { font-size: 34px; } }


/* Form fields stay readable on the dark NoRush theme. */
input, select, textarea {
  color: #111111;
  background: rgba(255, 255, 255, 0.96);
}
input::placeholder, textarea::placeholder {
  color: #5f6368;
}
select option {
  color: #111111;
  background: #ffffff;
}

.editorInline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 160px;
}
.editorPill {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  padding: 3px 8px;
  border: 1px solid rgba(216, 180, 95, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Redakteur-Chips sollen Namen nicht abschneiden. */
th:nth-child(6), td:nth-child(6) {
  min-width: 220px;
}
.editorPill {
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.eventContactSuggest { display: grid; grid-template-columns: repeat(2, minmax(180px, max-content)); justify-content: center; gap: 8px; }
.eventContactSuggest #suggestContactBtn, .eventContactSuggest #researchContactBtn { min-width: 220px; }
.eventContactSuggest .eventContactSuggestions { grid-column: 1 / -1; }
.eventContactSuggestions { display: grid; gap: 8px; }
.eventContactSuggestion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.055); }
.eventContactSuggestion strong { color: #fff; }
.eventContactMessage { display: block; text-align: center; color: #ff8c9a; font-weight: 800; border-color: rgba(216,50,68,0.45); background: rgba(216,50,68,0.10); }
@media (max-width: 700px) { .eventContactSuggestion { grid-template-columns: 1fr; } .eventContactSuggestion .linkBtn { justify-self: start; } }
.ticketmasterBox {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0 12px;
  padding: 14px 0;
  display: grid;
  gap: 12px;
}
.ticketmasterBox header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ticketmasterBox h3 {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
}
.ticketmasterGrid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 10px;
}
.ticketmasterKey {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.ticketmasterResults {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.ticketmasterResult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}
.ticketmasterResult.duplicate {
  border-color: rgba(216, 180, 95, 0.45);
}
.ticketmasterResult strong {
  color: #fff;
}
.ticketmasterActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .ticketmasterGrid, .ticketmasterKey, .ticketmasterResult {
    grid-template-columns: 1fr;
  }
  .ticketmasterActions {
    justify-content: flex-start;
  }
}

#ticketmasterSearchBtn {
  min-width: 210px;
  min-height: 46px;
  padding: 12px 18px;
  white-space: nowrap;
}
.profileIntegration {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.profileIntegration h3 {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
}
.profileIntegrationRow {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
@media (max-width: 900px) {
  #ticketmasterSearchBtn,
  .profileIntegrationRow {
    width: 100%;
  }
  .profileIntegrationRow {
    grid-template-columns: 1fr;
  }
}

.dashboardActions {
  max-width: 1500px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dashboardActions > div, .globalSearchResults {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 13, 15, 0.72);
  padding: 12px;
}
.dashboardActions h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
}
.dashboardActionItem {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  text-align: left;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  min-height: 0;
}
.dashboardActionItem:first-child { border-top: 0; }
.dashboardActionItem:hover { background: rgba(255,255,255,0.045); }
.dashboardActionItem strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboardActionItem .sub { grid-column: 2; margin-top: 0; }
.globalSearchResults {
  max-width: 1500px;
  margin: 10px auto 0;
  display: grid;
  gap: 10px;
}
.globalSearchResults > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.globalSearchResults strong { color: var(--accent); margin-right: 4px; }
.searchResultChip {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
  gap: 6px;
}
.searchResultChip span { color: var(--muted); font-size: 12px; }
.searchResultChip.passive { display: inline-flex; cursor: default; }
.flagRow {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.miniFlag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
}
.miniFlag.warn { background: rgba(216,180,95,0.18); color: var(--accent-2); border-color: rgba(216,180,95,0.28); }
.miniFlag.yellow { background: rgba(226,185,59,0.18); color: #ffe596; border-color: rgba(226,185,59,0.28); }
.miniFlag.red { background: rgba(216,50,68,0.20); color: #ffc0c8; border-color: rgba(216,50,68,0.32); }
.miniFlag.green { background: rgba(32,161,90,0.18); color: #bff7d5; border-color: rgba(32,161,90,0.30); }
@media (max-width: 1100px) { .dashboardActions { grid-template-columns: 1fr; } }









.eventFormSection {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.eventFormSection:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.eventFormSection h3,
.eventHistory h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
}
.eventLastChange {
  margin-top: -4px;
  color: var(--accent-2);
}
.contactChipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.contactChip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 95, 0.32);
  background: rgba(216, 180, 95, 0.10);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
}
.myTaskSummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.myTaskCard {
  min-height: 82px;
  padding: 12px;
  display: grid;
  gap: 2px;
  align-content: center;
  text-align: left;
  border: 1px solid rgba(216, 180, 95, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: var(--ink);
  box-shadow: none;
}
.myTaskCard strong {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.myTaskCard span {
  color: var(--ink);
  font-weight: 800;
}
.myTaskCard small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .myTaskSummary {
    grid-template-columns: 1fr;
  }
}

.notifications {
  max-width: 1500px;
  margin: 12px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.notifications.hidden { display: none !important; }
.eventContactInfo {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(216, 180, 95, 0.28);
  border-radius: 8px;
  background: rgba(216, 180, 95, 0.08);
  color: var(--ink);
}
.eventContactInfo strong { color: var(--accent-2); }
.eventContactInfo span,
.eventContactInfo small { color: var(--muted); }
.eventContactInfo a { color: var(--accent-2); font-weight: 800; }
#copyIcsLinkBtn {
  min-height: 40px;
  white-space: nowrap;
}
.dashboardActions {
  margin-top: 12px;
}
.dashboardActions:empty { display: none; }

.importBox {
  display: grid;
  gap: 12px;
}
.importActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
#importPreview .tableWrap {
  max-height: 360px;
  overflow: auto;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}
.checklist input,
.inlineCheck input { width: auto; }
.editorDashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.editorDashCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 13, 15, 0.72);
  padding: 12px;
  min-width: 0;
}
.editorDashCard h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
}
.miniTaskList {
  display: grid;
  gap: 6px;
}
.mergeCandidates {
  display: grid;
  gap: 8px;
}
.mergeCandidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.045);
}
.mergeCandidate strong { color: #fff; }
.mergeCandidate span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.tableWrap a { color: var(--accent-2); font-weight: 800; }
@media (max-width: 1100px) {
  .editorDashboard, .checklist { grid-template-columns: 1fr; }
}


@media (max-width: 760px) {
  .topbar, .filters, .summary, .tableActions, .content { max-width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .summary, .dashboard { grid-template-columns: 1fr; }
  .content { grid-template-columns: 1fr; }
  .calendar { max-height: 380px; overflow: auto; }
  .monthSheets { position: sticky; top: 0; z-index: 3; padding: 8px 0; background: rgba(13,13,15,0.94); }
  .tableWrap { border: 0; background: transparent; overflow: visible; }
  table, thead, tbody, tr, td { display: block; width: 100%; min-width: 0; }
  thead { display: none; }
  tbody tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: rgba(13,13,15,0.92); overflow: hidden; }
  tbody tr.monthBreak { border: 0; border-radius: 0; background: transparent; }
  tbody tr.monthBreak td { background: rgba(196,31,50,0.24); border-radius: 8px; }
  tbody td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; }
  tbody td:last-child { border-bottom: 0; }
  tbody td::before { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; content: ""; }
  tbody td:nth-child(1)::before { content: "Datum"; }
  tbody td:nth-child(2)::before { content: "Event"; }
  tbody td:nth-child(3)::before { content: "Ort"; }
  tbody td:nth-child(4)::before { content: "Kontakt"; }
  tbody td:nth-child(5)::before { content: "Status"; }
  tbody td:nth-child(6)::before { content: "Redaktion"; }
  tbody td:nth-child(7)::before { content: "Bemerkung"; }
  tbody td:nth-child(8)::before { content: "Aktion"; }
  .monthBreak td { display: block; }
  .monthBreak td::before { content: none; }
  .actionCell, .userbox { justify-content: stretch; }
  .userbox button, .userbox a, .tableActions #newBtn { width: 100%; }
  dialog footer { grid-template-columns: 1fr; }
  dialog footer span { display: none; }
}


.attachmentList { display: grid; gap: 8px; }
.attachmentItems { display: flex; flex-wrap: wrap; gap: 8px; }
.attachmentItem { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; border: 1px solid rgba(216,180,95,0.28); border-radius: 8px; color: var(--accent-2); background: rgba(255,255,255,0.07); font-weight: 800; max-width: 100%; overflow-wrap: anywhere; }
.attachmentItem:hover { color: #fff; border-color: var(--accent); background: rgba(196,31,50,0.18); }
.archiveYears { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.archiveBtn { text-decoration: none; display: inline-flex; align-items: center; }


.dashboardDropdown { border: 1px solid var(--line); border-radius: 8px; background: rgba(13,13,15,0.74); overflow: hidden; }
.dashboardDropdown summary { cursor: pointer; list-style: none; padding: 14px 16px; color: var(--accent-2); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dashboardDropdown summary::-webkit-details-marker { display: none; }
.dashboardDropdown summary::before { content: ">"; color: var(--accent); font-size: 13px; transform: translateY(-1px); }
.dashboardDropdown[open] summary { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.dashboardDropdown[open] summary::before { content: "v"; }
.dashboardDropdown summary span { color: var(--muted); font-weight: 800; }
.dashboardDropdown > div { padding: 10px; display: grid; gap: 8px; }



.noticeDialog { border: 0; padding: 0; width: min(420px, calc(100vw - 28px)); background: transparent; }
.noticeDialog form { border: 1px solid rgba(216,180,95,0.34); border-radius: 8px; background: #151518; padding: 22px; display: grid; gap: 12px; box-shadow: 0 24px 70px rgba(0,0,0,0.58); }
.noticeDialog h2 { margin: 0; color: var(--accent-2); font-size: 22px; }
.noticeDialog p { margin: 0; color: var(--ink); }
.noticeDialog button { justify-self: end; }


.artistIndexPanel {
  border: 1px solid rgba(216,180,95,0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(13,13,15,0.70));
  padding: 0;
  overflow: hidden;
}
.artistIndexPanel summary {
  cursor: pointer;
  list-style: none;
  min-height: 54px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-2);
  font-weight: 900;
}
.artistIndexPanel summary::-webkit-details-marker { display: none; }
.artistIndexPanel summary::before { content: ">"; color: var(--accent); font-size: 13px; }
.artistIndexPanel[open] summary { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.035); }
.artistIndexPanel[open] summary::before { content: "v"; }
.artistIndexPanel summary span { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; }
.artistIndexPanel summary b { color: var(--muted); font-size: 14px; }
.artistIndexPanel summary small { color: var(--muted); font-size: 12px; font-weight: 800; }
.artistIndexControls { display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr) auto auto; gap: 12px; align-items: end; padding: 12px 14px 10px; }
#refreshArtistIndexBtn { min-height: 38px; white-space: nowrap; padding-inline: 14px; }
.artistIndexPanel p { margin: 0; font-size: 12px; }
.artistIndexList { display: grid; gap: 6px; max-height: 440px; overflow: auto; padding: 0 14px 14px; }
.artistIndexItem {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(240px, 1fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(216,180,95,0.16);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  box-shadow: none;
}
.artistIndexItem:hover { background: rgba(196,31,50,0.16); border-color: rgba(216,180,95,0.50); color: #fff; }
.artistName { color: #fff; font-size: 17px; font-weight: 900; line-height: 1.15; }
.artistContact { display: grid; gap: 2px; min-width: 0; }
.artistContact strong { color: var(--accent-2); font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.artistContact small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.artistMeta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.artistMeta em { font-style: normal; color: #d9d1c8; background: rgba(255,255,255,0.08); border: 1px solid rgba(216,180,95,0.16); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.artistChipRow { display: flex; flex-wrap: wrap; gap: 8px; }
.artistIndexDetail { min-height: 28px; }
@media (max-width: 900px) { .artistIndexControls, .artistIndexItem { grid-template-columns: 1fr; } #refreshArtistIndexBtn { width: 100%; } .artistMeta { justify-content: flex-start; } .artistIndexList { max-height: 520px; } }

.contactDocumentsSection { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.contactDetailTopBlock { border-top: 1px solid rgba(216,180,95,0.18); margin: 10px 0 12px; padding-top: 10px; }
.contactDetailTopBlock + .contactDetailTopBlock { margin-top: 4px; }
.contactDetailTopBlock h3 { margin-top: 0; }
.documentUploadBox { border: 1px solid rgba(216, 180, 95, 0.18); border-radius: 8px; padding: 12px; background: rgba(255,255,255,0.045); display: grid; gap: 10px; }
.compactGrid { margin: 0; }
.documentList { display: grid; gap: 10px; margin-top: 12px; }
.documentItem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: rgba(255,255,255,0.055); }
.documentItem strong { color: #fff; }
.documentItem p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.documentActions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }

.documentUploadActions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
#cancelContactDocumentUploadBtn { background: rgba(255,255,255,0.10); color: var(--ink); border-color: var(--line); box-shadow: none; }
#showContactDocumentUploadBtn { white-space: nowrap; }


.uploadStatus { min-height: 20px; margin: 0; color: #ff8c9a; font-weight: 800; text-align: center; }
.uploadStatus.ok { color: #bff7d5; }

.artistIndexControls { grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr) auto auto auto auto; }
.artistIndexItem { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(220px, 1fr) auto; gap: 12px; align-items: center; text-align: left; background: rgba(255,255,255,0.065); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; box-shadow: none; }
.artistOpen { display: grid; gap: 2px; background: transparent; border: 0; padding: 0; min-height: 0; box-shadow: none; justify-content: start; text-align: left; color: var(--ink); }
.artistOpen:hover { background: transparent; color: #fff; }
.artistActions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.artistSourceDetail { margin: 10px 14px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: rgba(255,255,255,0.055); }
.artistSourceDetail h3 { margin: 0 0 6px; color: var(--accent); }
#showSuspiciousArtistsBtn.active { background: linear-gradient(180deg, rgba(216,180,95,0.32), rgba(255,255,255,0.08)); color: var(--accent-2); }
@media (max-width: 900px) { .artistIndexControls, .artistIndexItem { grid-template-columns: 1fr; } .artistActions { justify-content: flex-start; } }

.contactReviewBox {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(216, 180, 95, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}
.contactReviewBox h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
}
.reviewSuggestionList {
  display: grid;
  gap: 8px;
}
.reviewSuggestion {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13,13,15,0.72);
  color: var(--ink);
  padding: 10px 12px;
}
.reviewSuggestion strong { color: #fff; }
.reviewSuggestion span { color: var(--muted); font-size: 12px; }
.reviewSuggestion:hover { border-color: rgba(216,180,95,0.5); background: rgba(196,31,50,0.15); }
.contactChip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}
.artistQuality-hoch { border-color: rgba(70, 190, 120, 0.62) !important; }
.artistQuality-mittel { border-color: rgba(216, 180, 95, 0.62) !important; }
.artistQuality-niedrig { border-color: rgba(196, 31, 50, 0.62) !important; }

.contactArtistScanActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.contactArtistScanResults {
  margin-bottom: 12px;
}
.scanResultList {
  display: grid;
  gap: 8px;
}
.scanResultItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(216,180,95,0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  padding: 10px 12px;
}
.scanResultItem.scanResultLearned {
  border-color: rgba(70, 190, 120, 0.58);
  background: rgba(70, 190, 120, 0.09);
}.scanResultItem strong { color: #fff; }
.scanResultItem span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.scanResultActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .scanResultItem { grid-template-columns: 1fr; }
  .scanResultActions { justify-content: flex-start; }
}


.artistIndexItemNew { border-color: rgba(216, 180, 95, 0.72); background: rgba(216,180,95,0.10); }
.artistIndexItemMissing { border-color: rgba(196,31,50,0.48); background: rgba(196,31,50,0.08); opacity: 0.82; }
.artistIndexItemMissing .artistName { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(216,180,95,0.7); }

button.isBusy { position: relative; padding-left: 38px; cursor: wait; opacity: 0.86; }
button.isBusy::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; animation: norushSpin 0.8s linear infinite; }
@keyframes norushSpin { to { transform: rotate(360deg); } }

.helpDialog { width: min(1120px, calc(100vw - 24px)); }
.helpDialog form { max-height: min(86vh, 860px); overflow: auto; }
.helpGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.helpGrid article { border: 1px solid rgba(216,180,95,0.22); border-radius: 8px; background: rgba(255,255,255,0.055); padding: 12px; }
.helpGrid h3 { margin: 0 0 6px; color: var(--accent); font-size: 15px; }
.helpGrid p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 13px; }
.helpIntro { border: 1px solid rgba(216,180,95,0.28); border-radius: 8px; background: rgba(216,180,95,0.08); padding: 12px 14px; margin-top: 14px; }
.helpIntro p { margin: 0 0 8px; color: #e9dfd4; line-height: 1.45; }
.helpIntro p:last-child { margin-bottom: 0; }
.helpGrid article.wideHelp { grid-column: 1 / -1; }
.helpGrid ul, .helpGrid ol { margin: 8px 0 0 18px; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.helpGrid li + li { margin-top: 5px; }
.helpGrid strong { color: #fff; }
.helpExample { margin-top: 10px !important; border-left: 3px solid var(--accent); padding-left: 10px; color: #ead9b6 !important; }
.contactImportPreview { margin-top: 8px; max-height: 280px; overflow: auto; }
.contactSourceQuality { background: rgba(255,255,255,0.035); border: 1px solid rgba(216,180,95,0.16); border-radius: 8px; padding: 10px 12px; }
.contactSourceQuality h3 { margin: 0 0 8px; }
.sourceQualityLine { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.sourceQualityLine strong { border: 1px solid rgba(216,180,95,0.35); border-radius: 999px; padding: 4px 9px; color: #fff; text-transform: uppercase; font-size: 11px; }
.researchLinks .artistActions a { text-decoration: none; }
#helpBtn { background: rgba(255,255,255,0.10); color: var(--ink); border-color: var(--line); box-shadow: none; }
#helpBtn:hover { background: linear-gradient(180deg, rgba(216,180,95,0.22), rgba(255,255,255,0.08)); color: var(--accent-2); }
@media (max-width: 900px) { .helpGrid { grid-template-columns: 1fr; } .eventContactSuggest { grid-template-columns: 1fr; } .eventContactSuggest .eventContactSuggestions { grid-column: auto; } }
.editorReminderPanel {
  border: 1px solid rgba(216,180,95,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  padding: 12px;
  margin-bottom: 12px;
}
.editorReminderPanel h3, .mailTemplateBox h3 { margin: 0 0 10px; color: var(--accent); font-size: 15px; }
.reminderList { display: grid; gap: 8px; }
.reminderItem {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  text-align: left;
  background: rgba(13,13,15,0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  color: var(--ink);
  padding: 10px 12px;
}
.reminderItem strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reminderItem small { grid-column: 2; color: var(--muted); }
.reminderItem.red { border-color: rgba(196,31,50,0.72); }
.reminderItem.warn { border-color: rgba(216,180,95,0.62); }
.mailTemplateBox { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.mailTemplateActions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: -4px; }
.artistWorkshop { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0 14px 12px; }
.artistWorkshopCard {
  display: grid;
  gap: 2px;
  min-height: 62px;
  text-align: left;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(216,180,95,0.20);
  border-radius: 8px;
  box-shadow: none;
  color: var(--ink);
  padding: 10px;
}
.artistWorkshopCard strong { color: var(--accent-2); font-size: 24px; line-height: 1; }
.artistWorkshopCard span { color: var(--muted); font-size: 12px; font-weight: 800; }
.artistWorkshopCard:hover { border-color: rgba(216,180,95,0.55); background: rgba(196,31,50,0.13); }
@media (max-width: 1000px) { .artistWorkshop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .artistWorkshop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mailTemplateActions { justify-content: stretch; }
  .mailTemplateActions button { width: 100%; }
  .reminderItem { grid-template-columns: 1fr; }
  .reminderItem small { grid-column: auto; }
}
.opsChecklist { margin-top: 14px; }
.opsChecklist h2 { margin: 0 0 10px; }
.opsChecklistGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.opsChecklistGrid article { border: 1px solid rgba(216,180,95,0.20); border-radius: 8px; background: rgba(255,255,255,0.045); padding: 12px; }
.opsChecklistGrid h3 { margin: 0 0 6px; color: var(--accent); font-size: 14px; }
.opsChecklistGrid p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 13px; }
@media (max-width: 900px) { .opsChecklistGrid { grid-template-columns: 1fr; } }
#eventDialog { width: min(1040px, calc(100vw - 24px)); }
#eventDialog form {
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding-bottom: 0;
}
#eventDialog footer {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin: 18px -18px 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(21,21,24,0.92), #151518 38%);
  border-top: 1px solid rgba(216,180,95,0.24);
  box-shadow: 0 -14px 32px rgba(0,0,0,0.32);
}
.primaryEventSection {
  border: 1px solid rgba(216,180,95,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  padding: 14px;
}
.primaryEventSection:first-of-type { border-top: 1px solid rgba(216,180,95,0.18); padding-top: 14px; }
.simpleEventGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 0; }
.eventAdvanced {
  border: 1px solid rgba(216,180,95,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.028);
  margin-top: 10px;
  overflow: hidden;
}
.eventAdvanced summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  color: var(--accent-2);
  font-weight: 900;
}
.eventAdvanced summary::-webkit-details-marker { display: none; }
.eventAdvanced summary::before { content: ">"; color: var(--accent); font-size: 13px; }
.eventAdvanced[open] summary { border-bottom: 1px solid rgba(216,180,95,0.18); background: rgba(255,255,255,0.04); }
.eventAdvanced[open] summary::before { content: "v"; }
.eventAdvanced > .formGrid, .eventAdvanced > .ticketmasterGrid, .eventAdvanced > p, .eventAdvanced > div:not(.mailTemplateActions), .eventAdvanced > header { margin-left: 14px; margin-right: 14px; }
.eventAdvanced > .formGrid { margin-top: 14px; }
.eventAdvanced > .formGrid:last-child { margin-bottom: 14px; }
.eventAdvanced .mailTemplateActions { margin: 0 14px 10px; }
.eventAdvanced.ticketmasterBox { padding: 0; }
.eventAdvanced.ticketmasterBox header { margin-top: 12px; }
.eventAdvanced.eventHistory { padding: 0; }
.eventAdvanced.eventHistory .eventLastChange, .eventAdvanced.eventHistory #eventHistory { margin-left: 14px; margin-right: 14px; }
.eventAdvanced.eventHistory #eventHistory { margin-bottom: 14px; }
@media (max-width: 760px) {
  .simpleEventGrid { grid-template-columns: 1fr; }
  #eventDialog footer { grid-template-columns: 1fr; }
  #eventDialog footer button { width: 100%; }
}