/* Star Empire 0.6.78 – Yellow only for real economy/housing problems.
   RED attack state always wins, including mobile and selected planets. */
.game .planet-tabs .planet-pill.planet-has-warning:not(.planet-under-attack){
 position:relative!important;isolation:isolate!important;
 color:#fff4bc!important;
 border:2px solid #eeb92e!important;
 background:linear-gradient(110deg,#544520,#332e25)!important;
 animation:stellar-planet-economy-warning 1.45s ease-in-out infinite!important;
 outline-offset:2px!important;
}
.game .planet-tabs .planet-pill.planet-has-warning:not(.planet-under-attack) .planet-tab-title,
.game .planet-tabs .planet-pill.planet-has-warning:not(.planet-under-attack) .planet-tab-title small{
 color:#fff5cd!important;text-shadow:0 1px 3px #291d0a!important;
}
.game .planet-tabs .planet-pill.planet-has-warning:not(.planet-under-attack):focus-visible{
 outline:3px solid #fff4b8!important;outline-offset:2px!important;
}
@keyframes stellar-planet-economy-warning{
 0%,100%{
  background:linear-gradient(110deg,#544520,#332e25);
  border-color:#d4a731;
  box-shadow:inset 0 0 4px #f1ae3a44,0 0 2px #a17b36;
 }
 50%{
  background:linear-gradient(110deg,#9b711b,#57431a);
  border-color:#fff1a9;
  box-shadow:inset 0 0 12px #efc85b99,0 0 16px #eac038b0;
 }
}
.game .planet-tabs .planet-econ-warning-indicator{
 position:absolute!important;z-index:3!important;right:2px!important;top:2px!important;
 display:grid!important;place-items:center!important;
 width:17px!important;height:17px!important;
 border-radius:50%!important;border:1px solid #fbe8a8!important;
 background:#b77710!important;color:#fff!important;
 font-size:12px!important;font-weight:900!important;
 box-shadow:0 0 7px #f6c44499!important;
 pointer-events:none!important;
}
.game .planet-tabs .planet-pill.planet-has-warning{
 padding-right:22px!important;
}
@media (prefers-reduced-motion:reduce){
 .game .planet-tabs .planet-pill.planet-has-warning:not(.planet-under-attack){
  animation:none!important;
  border-color:#ffdc59!important;
  box-shadow:0 0 0 2px #b89326!important;
 }
}
@media(max-width:760px){
 .game .planet-tabs .planet-econ-warning-indicator{
  width:14px!important;height:14px!important;
  font-size:11px!important;right:2px!important;top:2px!important;
 }
 .game .planet-tabs .planet-pill.planet-has-warning{
  padding-right:18px!important;
 }
}
/* Clicked warning opens the specific owner planet's actionable issue list. */
.planet-econ-warning-list{display:grid;gap:9px;min-width:0;max-width:100%}
.planet-econ-warning-item{
 border:1px solid #a27c30;border-left:4px solid #e8c04a;
 border-radius:10px;background:linear-gradient(120deg,#3c311c,#1d2a3f);
 padding:12px;min-width:0;
}
.planet-econ-warning-item>strong{
 color:#ffe39d;font-size:14px;display:block;margin-bottom:5px;
}
.planet-econ-warning-item>p{
 color:#dae4ef;font-size:13px;line-height:1.5;
 overflow-wrap:anywhere;
}
.planet-econ-warning-item>.actions{margin-top:7px}

/* Vacation controls fit the existing commander profile on PC + mobile. */
.vacation-profile-entry,
.vacation-mode-dialog,
.vacation-admin-dialog{min-width:0;max-width:100%;display:grid;gap:10px}
.vacation-profile-entry{
 border:1px solid #675eae;border-radius:10px;
 padding:13px;background:linear-gradient(120deg,#242243,#172f42);
 margin:13px 0;
}
.vacation-profile-entry h3{margin:0;color:#dcd1ff}
.vacation-profile-status{font-size:13px;font-weight:650;color:#e5d5ff}
.vacation-profile-entry .soft-btn{justify-self:start;max-width:100%}
.vacation-info,.vacation-status{
 border:1px solid #5c769a;border-radius:10px;
 background:linear-gradient(120deg,#1a2e48,#25213e);
 padding:12px;line-height:1.55;min-width:0;overflow-wrap:anywhere;
}
.vacation-status.active{border-color:#4eab8b;background:linear-gradient(120deg,#153a38,#222d42)}
.vacation-status.active>strong{color:#b1ffe4}
.vacation-status.waiting{border-color:#dbb654}
.vacation-mode-dialog label,.vacation-admin-dialog label{
 display:grid;gap:5px;color:#e8e8ff;min-width:0;
}
.vacation-mode-dialog select,.vacation-admin-dialog select{
 box-sizing:border-box;max-width:100%;min-height:42px;
}
.vacation-mode-dialog button,.vacation-admin-dialog button{
 max-width:100%;min-height:38px;white-space:normal;
}
@media(max-width:440px){
 .vacation-mode-dialog,.vacation-admin-dialog{gap:8px}
 .vacation-profile-entry{padding:10px}
 .planet-econ-warning-item{padding:9px}
}
