/* Quick "Create event" dialog (home-create-event.js), on top of auth.css's .ac-dialog / .ac-field.
   Used by the home page and wellcome/community/. Moved here from styles.css (2026-10-22). */
.ac-dialog.hce-dialog { width: min(520px, 100%); }   /* styles.css loads before auth.css, so equal specificity would lose */
.hce-dialog [hidden] { display: none !important; }   /* .ac-field's display:block would beat the hidden attribute */
.hce-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.hce-row input { min-width: 0; }
.hce-form .ac-field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--ac-border); border-radius: 10px; resize: vertical;
  background: var(--ac-surface); color: var(--ac-text); font: inherit;
}
.hce-form .ac-field textarea:focus { outline: 2px solid var(--ac-primary); outline-offset: 0; border-color: var(--ac-primary); }
.hce-form .ac-field input { font: inherit; }
.hce-opt { font-weight: 400; color: var(--ac-muted); }
.hce-card {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px;
  border: 1px solid var(--ac-primary); border-radius: 10px; background: var(--ac-hover);
}
.hce-card-text { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hce-card-text small { color: var(--ac-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hce-venue-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px;
  border: 1px dashed var(--ac-border); border-radius: 10px; background: var(--ac-surface); color: var(--ac-primary);
  font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.hce-venue-btn:hover { border-color: var(--ac-primary); background: var(--ac-hover); }
.hce-venue-btn:focus-visible { outline: 2px solid var(--ac-primary); outline-offset: 0; }
/* the shared location dialog (meet-chat.css: .mac .overlay z-index 200) has to sit above the .ac-overlay (10000) */
/* "Date and time" sits over the form */
.ac-overlay.hce-sub { z-index: 10001; }
.ac-dialog.hce-when-dialog { width: min(400px, 100%); }
.hce-form .ac-field select {
  width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--ac-border); border-radius: 10px;
  background: var(--ac-surface); color: var(--ac-text); font: inherit;
}
.hce-form .ac-field select:focus { outline: 2px solid var(--ac-primary); outline-offset: 0; border-color: var(--ac-primary); }
.hce-hint { margin: -4px 0 14px; color: var(--ac-muted); font-size: 12.5px; min-height: 1em; }
.hce-actions { display: flex; gap: 8px; }
.hce-actions .ac-submit { flex: 1; }
.hce-btn-plain {
  flex: 1; height: 42px; border: 1px solid var(--ac-border); border-radius: 10px; background: var(--ac-surface);
  color: var(--ac-text); font: inherit; font-weight: 600; cursor: pointer;
}
.hce-btn-plain:hover { background: var(--ac-hover); }
.hce-location-host .overlay { z-index: 10001 !important; }   /* <modal> sets an inline z-index */
.ac-root a.hce-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ac-on-primary); }   /* beats .ac-root a's link colour */
