/* Widen system notice / announcement modal (天机阁-style wide panel) */
/* Target Semi Modal that hosts .notice-content-scroll */

.semi-modal-wrapper:has(.notice-content-scroll) .semi-modal,
.semi-modal:has(.notice-content-scroll) {
  width: min(960px, 94vw) !important;
  max-width: min(960px, 94vw) !important;
}

.semi-modal-wrapper:has(.notice-content-scroll) .semi-modal-content,
.semi-modal:has(.notice-content-scroll) .semi-modal-content {
  width: 100% !important;
  max-width: 100% !important;
}

.semi-modal-wrapper:has(.notice-content-scroll) .semi-modal-body,
.semi-modal:has(.notice-content-scroll) .semi-modal-body {
  max-width: 100% !important;
}

/* Taller scroll area so image + table fit better */
.notice-content-scroll {
  max-height: min(72vh, 820px) !important;
  max-width: 100% !important;
}

.notice-content-scroll img {
  max-width: 100% !important;
  height: auto !important;
}

.notice-content-scroll table {
  width: 100% !important;
}

/* Fallback if :has unsupported — widen all "large" modals modestly is too broad; skip */

/* Default-theme / radix dialog that contains notice markup */
[role="dialog"]:has(.notice-content-scroll),
[role="dialog"]:has(img[src*="pricing-ratio"]) {
  width: min(960px, 94vw) !important;
  max-width: min(960px, 94vw) !important;
}

/* Announcement shell (通知 / 时间线) — common title bar */
.semi-modal-wrapper:has(.semi-tabs) .semi-modal.semi-modal-large {
  width: min(960px, 94vw) !important;
  max-width: min(960px, 94vw) !important;
}
