.renewal-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #ded8cd;
  border-radius: 18px;
  background: #fffdf8;
  color: #302c26;
  box-sizing: border-box;
}
.renewal-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.renewal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.renewal-heading h2 { margin: 0; font-size: 20px; }
.renewal-dialog p { line-height: 1.6; overflow-wrap: anywhere; }
.renewal-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.renewal-inbox { width: min(680px, calc(100vw - 32px)); }
.renewal-item { flex-wrap: wrap; gap: 12px; padding: 18px 0; border-top: 1px solid #ded8cd; }
.renewal-item strong { overflow-wrap: anywhere; }
.renewal-item p { margin: 0; font-size: 13px; }
.renewal-item .admin-grant-form { display: flex; align-items: center; gap: 8px; }
.renewal-item .admin-grant-form input { width: 76px; box-sizing: border-box; }
.renewal-item > [role="status"] { flex-basis: 100%; }
.renewal-feedback { color: #754819; }
.renewal-notice.has-pending { color: #8a381d; font-weight: 700; }
/* Keep management and renewal entries on the home page, including during polling. */
body:not(.home-view) #adminModeButton,
body:not(.home-view) #renewalNotice {
  display: none !important;
}
.renewal-dialog button { min-height: 44px; }
.expired-authorization { padding: 24px; border: 1px solid #ded8cd; border-radius: 16px; background: #fffdf8; }
.expired-authorization p { line-height: 1.7; }
.expired-authorization button { min-height: 44px; padding: 10px 20px; }
@media (max-width: 600px) {
  .renewal-dialog { padding: 18px; }
  .renewal-notice { max-width: 150px; white-space: normal; }
}
