.overlay.ff-res-overlay {
  padding: clamp(10px, 3vw, 32px);
}
.overlay .dialog.ff-res-dialog {
  box-sizing: border-box;
  width: min(820px, 100%);
  max-width: 820px;
  max-height: 92dvh;
  padding: 0;
  overflow-y: auto;
  color: #eef7ff;
  background: linear-gradient(150deg, #123b70, #0b244b 54%, #0c3174);
  border: 1px solid #639cdb;
  border-radius: 22px;
  box-shadow: 0 22px 64px #010f2cb8;
}
.ff-res-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(16px, 3vw, 26px);
  background: linear-gradient(112deg, #225c9f96, #14397724);
  border-bottom: 1px solid #79b4ef45;
}
.ff-res-header h2, .ff-res-header p, .ff-res-picker-head h3, .ff-res-picker-head p {
  margin: 0;
}
.ff-res-header p, .ff-res-picker-head p {
  margin-top: 5px;
  color: #c9e2ff;
}
.ff-res-body { padding: clamp(14px, 3vw, 22px); }
.ff-res-dialog .ff-res-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
  margin: 0;
}
.ff-res-meta > div, .ff-res-current, .ff-res-option {
  background: #3680db20;
  border: 1px solid #8cc4fc44;
  border-radius: 12px;
}
.ff-res-meta > div { padding: 9px 11px; }
.ff-res-meta dt, .ff-res-car-ident small, .ff-res-option small {
  color: #bfd9f7;
  font-size: .79rem;
}
.ff-res-dialog .ff-res-meta dd {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin: 2px 0 0;
}
.ff-res-origin, .ff-res-location {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
  color: #c9e2ff;
  font-size: .87rem;
}
.ff-res-origin { margin: 11px 0 18px; }
.ff-res-origin strong, .ff-res-location strong { color: #f3f8ff; }
.ff-res-current, .ff-res-picker { padding: clamp(12px, 2.5vw, 19px); }
.ff-res-picker {
  border: 1px solid #8cc4fc44;
  border-radius: 14px;
  background: #255dad28;
}
.ff-res-car-ident, .ff-res-picker-head, .ff-res-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ff-res-car-ident { justify-content: flex-start; }
.ff-res-car-ident .status { margin-left: auto; }
.ff-res-car-ident h3 { margin: 2px 0 0; font-size: 1.55rem; }
.ff-res-group {
  display: inline-block;
  vertical-align: middle;
  border: 1px solid #76b8ff6b;
  background: #244e86;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 700;
  color: #e6f4ff;
  font-size: .76rem;
}
.ff-res-location, .ff-res-actions { margin-top: 13px; }
.ff-res-next { margin: 8px 0 0; }
.ff-res-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-res-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.ff-res-filters label { display: grid; gap: 4px; color: #d3e8fc; font-size: .83rem; }
.ff-res-filters .textbox { width: 100%; min-width: 0; }
.ff-res-options {
  min-width: 0;
  margin: 0;
  padding: 2px 4px;
  border: 0;
  max-height: min(36dvh, 360px);
  overflow-y: auto;
}
.ff-res-legend { padding: 0; margin-bottom: 7px; color: #d3e8fc; font-size: .86rem; }
.ff-res-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  margin: 0 0 6px;
  cursor: pointer;
}
.ff-res-option:hover, .ff-res-option:has(input:checked) {
  background: #317adc64;
  border-color: #9acbff;
}
.ff-res-option input { accent-color: #69b4ff; }
.ff-res-option small { display: block; margin-top: 3px; }
.ff-res-picker-footer { margin-top: 12px; }
.ff-res-feedback { margin: 9px 0 0; }
.ff-res-feedback:empty { display: none; }
@media (max-width: 530px) {
  .ff-res-filters { grid-template-columns: 1fr 1fr; }
  .ff-res-filters label:last-child { grid-column: 1 / -1; }
  .ff-res-current .ff-res-actions .btn { flex: 1 1 100%; }
}

.ff-res-picker-footer .ff-res-actions { margin-top: 0; }
.ff-res-dialog [hidden] { display: none !important; }

.ff-res-proposal { margin-top: 12px; padding: 12px; background: #3680db20; border: 1px solid #8cc4fc44; border-radius: 12px; }
.ff-res-proposal p { margin: 5px 0 0; }
