.pu-dialog{width:min(620px,calc(100% - 24px));max-height:min(90dvh,850px);padding:0;border:1px solid #bbd1c3;border-radius:16px;color:#173a2a;background:#fff;box-shadow:0 28px 96px #112e2870;overflow:auto}
.pu-dialog::backdrop{background:#142a2490}
.pu-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 15px;
  border-bottom: 1px solid #dce8e1;
  background: #fff;
  color: #173a2a;
}
.pu-head > div:first-child { min-width: 0; }
.pu-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.pu-dialog h2,.pu-dialog h3{margin:0}
.pu-dialog h2 { font-size: clamp(17px, 4.7vw, 21px); line-height: 1.25; letter-spacing: -.025em; }
.pu-dialog h2:focus { outline: none; }
.pu-dialog h3{font-size:14px;margin-bottom:8px}
.pu-head p { margin: 5px 0 0; color: #4a6458; font-size: 12px; line-height: 1.42; overflow-wrap: anywhere; }
.pu-dialog .pu-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce7e0;
  border-radius: 11px;
  background: #f2f7f4;
  color: #234e40;
  cursor: pointer;
}
.pu-close:hover { background: #e8f2eb; }
.pu-close:focus-visible { outline: 2px solid #397967; outline-offset: 2px; }
.pu-close span { display: grid; place-items: center; width: 18px; height: 18px; }
.pu-close span::before, .pu-close span::after {
  content: "";
  grid-area: 1 / 1;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.pu-close span::after { transform: rotate(-45deg); }
.pu-body{padding:14px 20px 20px;font-size:13px}
.pu-body section,.pu-body details{padding:14px 0;border-bottom:1px solid #dbe7df}
.pu-body summary{cursor:pointer;font-weight:650}
.pu-body p,.pu-report{color:#4d6659;font-size:12px;line-height:1.55;margin:6px 0}
.pu-body label{display:block;font-weight:600;margin:8px 0 4px}
.pu-body .pu-check{display:flex;align-items:center;gap:7px;margin-top:12px}
.pu-body :is(.fan-input,.fan-select){width:100%}
.pu-status{padding:10px 12px;border:1px solid #d6e6dd;border-radius:8px;background:#edf6ef;overflow-wrap:anywhere;line-height:1.55}
.pu-error{background:#fff0ef;color:#812c24;border-color:#f3d3cd}
.pu-body progress{width:100%;accent-color:#267c50}
.pu-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}
.pu-dialog [data-up]{min-height:36px}
@media(max-width:520px){.pu-head,.pu-body{padding-inline:12px}.pu-dialog [data-up]{min-height:44px}}
#pu-season,#pu-apply{scroll-margin-top:88px}
.pu-season-controls{display:grid;grid-template-columns:minmax(72px,1fr) minmax(140px,2fr);gap:8px;max-width:420px}
.pu-season-list{max-height:235px;overflow:auto;margin:10px 0 0;padding:0;list-style:none;border:1px solid #dbe7df;border-radius:8px}
.pu-season-list li{display:grid;gap:3px;padding:8px 10px}
.pu-season-list li+li{border-top:1px solid #e6eee7}
.pu-season-list a{color:#24543d;font-weight:600}
.pu-season-list small{color:#4d6659}
.pu-dialog [hidden]{display:none!important}
#pu-ai-status{margin:10px 0 0}
