/* Meeting-context combobox + internal-event modal (subset of marketing-app.css) */

.met-ctx-wrap { position: relative; }
.met-ctx-wrap input[type="text"] { padding-right: 36px; }
.met-ctx-chevron {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: #888; font-size: 10px; line-height: 1;
}
.met-ctx-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 40;
  display: none; max-height: 280px; overflow-y: auto;
  background: #fff; border: 1px solid #d9d9d9;
  box-shadow: 0 10px 28px rgba(32, 32, 32, 0.14);
}
.met-ctx-list.open { display: block; }
.met-ctx-item {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0;
  font-family: inherit;
}
.met-ctx-item:last-child { border-bottom: none; }
.met-ctx-item:hover, .met-ctx-item.focused { background: rgba(233, 42, 44, 0.08); }
.met-ctx-item-title {
  font-size: 14px; font-weight: 600; color: #202020; line-height: 1.3;
  margin: 0 0 3px;
}
.met-ctx-item-meta {
  font-size: 11px; color: #666; line-height: 1.35;
}
.met-ctx-badge {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 1px 6px; margin-right: 6px;
  background: rgba(32, 32, 32, 0.08); color: #404040; vertical-align: 1px;
}
.met-ctx-badge.internal { background: #5c4d7a; color: #fff; }
.met-ctx-badge.new-cal { background: rgba(233, 42, 44, 0.12); color: #A71F23; }
.met-ctx-badge.lead-type { background: rgba(31, 77, 15, 0.1); color: #1F4D0F; }
.met-ctx-group {
  padding: 7px 12px 4px;
  font-family: "neue-haas-grotesk-display", "Arial Black", Arial, sans-serif;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #666; background: #f4f4f4; border-bottom: 1px solid #ececec;
  position: sticky; top: 0;
}
.met-ctx-new {
  font-weight: 700; color: #A71F23; border-top: 1px solid #eee;
}
.met-ctx-new .met-ctx-item-title { color: #A71F23; }
.met-ctx-empty {
  padding: 12px; font-size: 13px; color: #888; text-align: center;
}
.met-ctx-status {
  font-size: 11px; color: #888; margin-top: 6px; min-height: 1em;
}

.mie-modal {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(32, 32, 32, 0.62); align-items: flex-start; justify-content: center;
  padding: 24px 12px; overflow: auto;
}
.mie-modal.open { display: flex; }
.mie-card {
  background: #fff; border: 1px solid #d9d9d9;
  box-shadow: 0 16px 48px rgba(32, 32, 32, 0.18);
  width: min(680px, 96vw); margin: auto; border-radius: 2px; overflow: hidden;
}
.mie-hdr {
  background: #202020; color: #e6e6e6; position: relative; padding: 0;
}
.mie-hdr::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #E92A2C, #A71F23);
}
.mie-hdr-inner { padding: 18px 22px 16px; }
.mie-hdr h3 {
  margin: 0 0 6px; font-family: "neue-haas-grotesk-display", "Arial Black", Arial, sans-serif;
  font-weight: 800; font-size: 18px; letter-spacing: -0.03em; text-transform: uppercase;
  color: #e6e6e6; line-height: 1.15;
}
.mie-lede { font-size: 11px; color: #bfbfbf; margin: 0; line-height: 1.45; letter-spacing: 0.02em; }
.mie-body { padding: 18px 22px 22px; background: #fff; }
.mie-field {
  display: block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #666; margin-bottom: 12px;
}
.mie-input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 5px;
  font-size: 13px; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 2px;
  font-weight: 400; text-transform: none; letter-spacing: 0; color: #202020;
  background: #fff;
}
.mie-input:focus {
  outline: none; border-color: #E92A2C; box-shadow: 0 0 0 1px rgba(233, 42, 44, 0.25);
}
.mie-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mie-flags { display: flex; flex-wrap: wrap; gap: 16px; margin: 2px 0 8px; }
.mie-check {
  font-size: 13px !important; text-transform: none !important; display: flex !important;
  align-items: center; gap: 8px; color: #404040 !important; font-weight: 500 !important;
  letter-spacing: 0 !important; margin: 0 !important;
}
.mie-hint {
  font-size: 11px; color: #888; margin: 0 0 14px; line-height: 1.45;
  padding: 8px 10px; background: #f4f4f4; border-left: 3px solid #E92A2C; border-radius: 0 2px 2px 0;
}
.mie-section-title {
  font-family: "neue-haas-grotesk-display", "Arial Black", Arial, sans-serif;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  color: #202020; margin: 16px 0 8px; display: flex; align-items: center; gap: 10px;
}
.mie-section-title::before {
  content: ""; width: 16px; height: 3px; background: linear-gradient(135deg, #E92A2C, #A71F23);
  transform: skewX(-26deg); flex-shrink: 0;
}
.mie-resources-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin: 0 0 8px;
}
.mie-resources-sub { font-size: 11px; color: #888; }
.mie-section-title-spaced { margin-top: 22px; }
.mie-person-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 28px; gap: 6px; margin-bottom: 6px;
}
.mie-equip-row {
  display: grid; grid-template-columns: 1fr 1fr 28px; gap: 6px; margin-bottom: 6px;
}
.mie-person-row input, .mie-equip-row input {
  font-size: 12px; padding: 6px 8px; border: 1px solid #d9d9d9; border-radius: 2px;
}
.mie-field-picker { position: relative; min-width: 0; }
.mie-field-picker input { width: 100%; box-sizing: border-box; }
.mie-modal .person-email-picker { position: relative; }
.mie-modal .person-email-drop {
  position: absolute; top: calc(100% + 3px); left: 0; right: 0; z-index: 120;
  display: none; max-height: 220px; overflow-y: auto;
  background: #fff; border: 1px solid #d9d9d9; border-radius: 2px;
  box-shadow: 0 10px 28px rgba(32, 32, 32, 0.14);
}
.mie-modal .person-email-drop.open { display: block; }
.mie-modal .person-email-option {
  padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  border-bottom: 1px solid #f0f0f0;
}
.mie-modal .person-email-option:last-child { border-bottom: none; }
.mie-modal .person-email-option:hover,
.mie-modal .person-email-option.focused { background: rgba(233, 42, 44, 0.08); }
.mie-modal .person-email-name { font-size: 13px; font-weight: 600; color: #202020; }
.mie-modal .person-email-addr { font-size: 10px; color: #888; }
.mie-remove-row { padding: 2px 6px !important; min-width: 0; color: #202020 !important; }
.mie-msg { font-size: 12px; color: #888; min-height: 18px; margin-top: 8px; }
.mie-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid #eee;
}
.mie-modal .btn-nav:not(.btn-nav-primary) {
  color: #202020 !important; border-color: #d9d9d9 !important; background: #fff !important;
}
.mie-modal .btn-nav:not(.btn-nav-primary):hover { border-color: #E92A2C !important; }
.mie-modal .btn-nav-primary {
  background: linear-gradient(135deg, #E92A2C, #A71F23) !important;
  border: none !important; color: #fff !important;
}
.mie-modal .btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #d9d9d9; background: #fff; color: #202020;
  padding: 8px 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; border-radius: 0;
}
.owner-chip-field { display: block; }
.owner-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.owner-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 4px 3px 9px; font-size: 12px; line-height: 1.4;
  background: #f1f1f1; border: 1px solid #d8d8d8; color: #202020; border-radius: 2px;
}
.owner-chip-add {
  background: transparent; border: 1px dashed #c8c8c8; color: #A71F23; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px;
  padding: 4px 9px; border-radius: 2px;
}
.owner-add-row { margin-top: 8px; position: relative; max-width: 340px; }
.owner-add-input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 13px;
  padding: 7px 10px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff;
}
@media (max-width: 720px) {
  .mie-person-row, .mie-equip-row { grid-template-columns: 1fr; }
  .mie-row { grid-template-columns: 1fr; }
}
