.rote-priority-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  overflow: hidden;
  border-color: rgba(84, 184, 214, .3);
  background: radial-gradient(circle at 88% 0%, rgba(43, 123, 156, .14), transparent 32%), linear-gradient(180deg, rgba(7, 18, 33, .98), rgba(5, 12, 24, .99));
}

.rote-priority-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rote-priority-head > div { display: grid; gap: 4px; }
.rote-priority-head span,
.rote-priority-summary span,
.rote-priority-filters label {
  color: #6edfee;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .09em;
}
.rote-priority-head h3 { margin: 0; color: #f0f7ff; font-size: 1.05rem; }
.rote-priority-head p { max-width: 760px; margin: 0; color: #8ca0bc; font-size: .64rem; line-height: 1.45; }
.rote-priority-head > b {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(103, 237, 182, .28);
  border-radius: 999px;
  background: rgba(16, 69, 54, .18);
  color: #a4f1ce;
  font-size: .56rem;
}

.rote-priority-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.rote-priority-summary article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #213752;
  border-radius: 10px;
  background: rgba(4, 13, 25, .7);
}
.rote-priority-summary strong { color: #edf6ff; font-size: .95rem; }
.rote-priority-summary small { color: #8195b1; font-size: .5rem; line-height: 1.35; }

.rote-priority-evidence {
  padding: 8px 10px;
  border: 1px solid rgba(233, 191, 89, .28);
  border-radius: 9px;
  background: rgba(103, 76, 16, .12);
  color: #c9b178;
  font-size: .55rem;
  line-height: 1.5;
}
.rote-priority-evidence strong { color: #f0d590; }

.rote-priority-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(120px, .72fr)) auto;
  align-items: end;
  gap: 7px;
  padding: 9px;
  border: 1px solid #1d324c;
  border-radius: 10px;
  background: rgba(5, 15, 29, .76);
}
.rote-priority-filters label { display: grid; gap: 4px; }
.rote-priority-filters input,
.rote-priority-filters select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #29435f;
  border-radius: 7px;
  outline: none;
  background: #071425;
  color: #dce9f8;
  font-size: .61rem;
}
.rote-priority-filters input:focus,
.rote-priority-filters select:focus { border-color: #64d7e8; }
.rote-priority-filters > span { padding: 0 2px 9px; color: #90a5c0; font-size: .56rem; font-weight: 800; white-space: nowrap; }

.rote-priority-list { display: grid; gap: 7px; }
.rote-priority-row {
  display: grid;
  grid-template-columns: 34px minmax(170px, .9fr) minmax(150px, .7fr) minmax(280px, 1.35fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #203752;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(8, 22, 39, .95), rgba(5, 14, 27, .92));
}
.rote-priority-row:hover { border-color: rgba(92, 201, 222, .48); }
.rote-priority-rank { color: #68809f; font-size: .62rem; font-weight: 900; text-align: center; }
.rote-priority-unit { display: grid; gap: 2px; min-width: 0; }
.rote-priority-unit strong { overflow: hidden; color: #edf5ff; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.rote-priority-unit span { color: #9eb1c9; font-size: .53rem; }
.rote-priority-unit small { color: #ffbaad; font-size: .5rem; font-weight: 800; }

.rote-priority-impact { display: flex; flex-wrap: wrap; gap: 4px; }
.rote-priority-impact span {
  padding: 4px 6px;
  border: 1px solid #2a405d;
  border-radius: 999px;
  background: #091729;
  color: #9eb2ca;
  font-size: .48rem;
  white-space: nowrap;
}
.rote-priority-impact b { color: #eaf5ff; }

.rote-priority-missions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}
.rote-priority-mission {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #243d5b;
  border-radius: 7px;
  background: rgba(7, 20, 36, .82);
  color: inherit;
  text-align: left;
}
.rote-priority-mission:hover { border-color: #61d7e7; }
.rote-priority-mission span { color: #66d8e9; font-size: .44rem; font-weight: 900; }
.rote-priority-mission strong { overflow: hidden; color: #dbe7f6; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.rote-priority-more { align-self: center; color: #768ba7; font-size: .47rem; }

.rote-priority-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.rote-priority-actions button {
  padding: 7px 8px;
  border: 1px solid #37637e;
  border-radius: 8px;
  background: #0a2135;
  color: #dbf7fb;
  font-size: .51rem;
  font-weight: 900;
  white-space: nowrap;
}
.rote-priority-actions button:hover { border-color: #69dce9; }
.rote-priority-actions button[data-rote-priority-plan] { border-color: rgba(103, 237, 182, .4); color: #baf3d5; }

.rote-priority-empty,
.rote-priority-loading {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px dashed #29415f;
  border-radius: 10px;
  color: #8499b5;
  font-size: .62rem;
  text-align: center;
}
.rote-priority-loading strong { color: #e6f0fb; }
.rote-priority-loading.danger { border-color: rgba(239, 110, 120, .4); color: #efaaa8; }

@media (max-width: 1180px) {
  .rote-priority-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rote-priority-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rote-priority-row { grid-template-columns: 32px minmax(170px, 1fr) minmax(150px, .8fr) auto; }
  .rote-priority-missions { grid-column: 2 / -1; }
}

@media (max-width: 720px) {
  .rote-priority-head { flex-direction: column; }
  .rote-priority-summary,
  .rote-priority-filters { grid-template-columns: 1fr; }
  .rote-priority-row { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
  .rote-priority-impact,
  .rote-priority-missions,
  .rote-priority-actions { grid-column: 2 / -1; }
  .rote-priority-missions { grid-template-columns: 1fr; }
  .rote-priority-actions { justify-content: stretch; }
  .rote-priority-actions button { flex: 1 1 auto; }
}
