.event-status {
  min-height:1.4em;
  color:#59706c;
  font-size:.85rem
}
.event-status.error {
  color:#b33333
}
.event-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px
}
.event-card {
  border:1px solid #dde5e2;
  border-radius:16px;
  padding:24px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  color:inherit
}
.event-card:hover {
  border-color:#2e776b;
  box-shadow:0 6px 18px #0a30200a
}
.event-card small {
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#557c71
}
.event-card h3 {
  margin:12px 0 6px
}
.event-card span,.event-card p {
  font-size:.85rem;
  color:#66736e
}
.event-tabs {
  display:flex;
  gap:6px;
  border-bottom:1px solid #dfe6e2;
  margin:24px 0;
  overflow:auto
}
.event-tabs button {
  white-space:nowrap;
  padding:12px 18px;
  border:0;
  border-bottom:3px solid transparent;
  background:transparent;
  color:#65736d;
  cursor:pointer;
  font:inherit;
  font-size:.88rem
}
.event-tabs button.active {
  border-color:#276d5e;
  color:#195747
}
.event-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.event-metric {
  display:grid;
  gap:12px;
  padding:22px;
  background:white;
  border:1px solid #dfe6e2;
  border-radius:14px
}
.event-metric span {
  font-size:.82rem;
  color:#5d7067
}
.event-metric strong {
  font-size:1.8rem;
  line-height:1.2;
  letter-spacing:-.03em
}
.event-metric small {
  font-size:.75rem;
  color:#718178
}
.event-note {
  font-size:.82rem;
  color:#697971;
  line-height:1.7;
  max-width:900px;
  margin:20px 0
}
.event-overview-grid {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:20px
}
.event-section {
  background:white;
  border:1px solid #dfe6e2;
  border-radius:14px;
  padding:24px
}
.event-section h3 {
  margin:0 0 12px;
  font-size:1rem
}
.event-section p {
  color:#6c7972;
  font-size:.82rem
}
.event-question-list {
  list-style:none;
  padding:0
}
.event-question-list li {
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
  border-bottom:1px solid #edf1ed;
  font-size:.87rem
}
.event-question-list strong {
  color:#326858
}
.event-empty {
  padding:28px;
  color:#738078
}
.event-device-list {
  display:grid;
  gap:16px;
  margin-top:20px
}
.event-device input {
  width:100%;
  padding:12px;
  border:1px solid #dce5df;
  border-radius:8px;
  margin:12px 0;
  font:inherit;
  font-size:.82rem;
  background:#f8faf8
}
.event-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px
}
.event-actions a {
  display:inline-flex;
  text-decoration:none;
  align-items:center
}
.event-table-wrap {
  overflow:auto;
  border:1px solid #dfe6e2;
  border-radius:12px;
  background:white;
  margin:20px 0
}
.event-table-wrap table {
  border-collapse:collapse;
  width:100%;
  font-size:.82rem
}
.event-table-wrap th {
  text-align:left;
  background:#f5f8f5;
  color:#697870;
  font-weight:500
}
.event-table-wrap td,.event-table-wrap th {
  padding:16px;
  border-bottom:1px solid #edf1ed;
  min-width:90px
}
.event-table-wrap td {
  max-width:320px;
  overflow-wrap:anywhere
}
.event-pagination {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  font-size:.8rem;
  color:#697870
}
.event-settings {
  max-width:720px;
  display:grid;
  gap:18px
}
.event-settings label {
  display:grid;
  gap:8px;
  font-size:.85rem;
  color:#42584b
}
.event-settings input:not([type=checkbox]),.event-settings textarea,.event-settings select {
  width:100%;
  border:1px solid #d8e2dc;
  border-radius:8px;
  padding:12px;
  font:inherit;
  color:#243f30;
  background:#fff;
  box-sizing:border-box
}
.event-settings label:has(input[type=checkbox]) {
  display:flex;
  flex-direction:row-reverse;
  justify-content:flex-end;
  align-items:center
}
.event-settings input[type=checkbox] {
  accent-color:#28745e;
  width:16px;
  height:16px
}
.event-settings fieldset {
  border:1px solid #d8e2dc;
  border-radius:10px;
  padding:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.event-settings legend {
  font-size:.85rem;
  padding:0 8px
}
.event-settings button[type=submit] {
  justify-self:start
}
.event-dialog {
  border:1px solid #d8e2dc;
  border-radius:18px;
  padding:28px;
  width:min(720px,90vw);
  max-height:85vh;
  overflow:auto;
  color:#253c30;
  background:#fafcf9
}
.event-dialog::backdrop {
  background:#152b2a75
}
.event-dialog header {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:22px
}
.event-dialog h2 {
  font-size:1.25rem
}
.event-turn {
  padding:16px;
  margin:12px 0;
  border-radius:12px;
  background:#eef3ee;
  white-space:pre-wrap
}
.event-turn.visitor {
  background:#dfefe5
}
.event-turn small {
  font-size:.72rem;
  color:#5c7262
}
.event-turn p {
  font-size:.9rem;
  line-height:1.6
}
.event-tabs button:focus-visible,.event-card:focus-visible {
  outline:3px solid #82b9a1;
  outline-offset:3px
}
@media(max-width:900px) {
  .event-metrics {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .event-overview-grid {
    grid-template-columns:1fr
  }
  .event-tabs button {
    padding:12px
  }
  .event-device {
    padding:18px
  }
}
@media(max-width:520px) {
  .event-metrics {
    gap:10px
  }
  .event-metric {
    padding:16px
  }
  .event-metric strong {
    font-size:1.45rem
  }
  .event-settings fieldset {
    grid-template-columns:1fr
  }
  .event-dialog {
    padding:18px
  }
  .event-pagination {
    justify-content:space-between;
    gap:8px
  }
  .event-dialog header {
    align-items:flex-start
  }
  .event-grid {
    grid-template-columns:1fr
  }
}
.event-heading {
  align-items:flex-start;
  gap:20px
}
.event-heading>.event-actions {
  flex-shrink:0
}
.event-dialog-status:empty {
  display:none
}
@media(max-width:600px) {
  .event-heading {
    flex-direction:column
  }
  .event-heading>.event-actions {
    width:100%;
    justify-content:flex-end
  }
  .event-heading h2 {
    overflow-wrap:anywhere
  }
}
