.v167-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 24, 43, .56);
}
.v167-dialog {
  display: flex;
  width: min(1240px, 98vw);
  max-height: 94vh;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(7, 20, 38, .28);
}
.v167-dialog > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #d9e4ec;
}
.v167-dialog > header span {
  color: #4f94c5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.v167-dialog > header h2 {
  margin: 4px 0;
  color: #142441;
  font-family: Cinzel, Georgia, serif;
  font-weight: 500;
}
.v167-dialog > header p,
.v167-summary span {
  margin: 0;
  color: #75879a;
  font-size: 12px;
}
.v167-dialog > header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #eef4f8;
  color: #29465e;
  font-size: 22px;
  cursor: pointer;
}
.v167-summary {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  background: #f6f9fb;
}
.v167-list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 14px 24px 20px;
}
.v167-list > article {
  border: 1px solid #d5e2eb;
  border-radius: 11px;
  padding: 12px;
}
.v167-main {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 12px;
}
.v167-main time {
  color: #5f7387;
  font-weight: 700;
}
.v167-main b {
  color: #1e3550;
  font-size: 13px;
}
.v167-main small {
  display: block;
  margin-top: 3px;
  color: #8191a1;
}
.v167-main strong.in { color: #23815b; }
.v167-main strong.out { color: #9c354e; }
.v167-decision {
  display: grid;
  grid-template-columns: .9fr 1.35fr 1fr 1.25fr;
  gap: 10px;
  margin-top: 11px;
}
.v167-decision label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #60748a;
  font-size: 11px;
  font-weight: 700;
}
.v167-decision select,
.v167-decision input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c5d7e3;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}
.v167-candidate {
  opacity: .62;
}
.v167-candidate.active {
  opacity: 1;
}
.v167-candidate.empty {
  opacity: .45;
}
.v167-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 24px;
  border-top: 1px solid #d9e4ec;
}
.v167-cancel-imported {
  border-color: #d9a9b6 !important;
  color: #8b3552 !important;
}
@media (max-width: 850px) {
  .v167-main,
  .v167-decision { grid-template-columns: 1fr; }
}