.rh-work-change-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: min(90dvh, 900px);
  padding: 0;
  margin: auto;
  border: 1px solid #d3e1ed;
  border-radius: 16px;
  color: #17344e;
  background: #f8fafc;
  box-shadow: 0 22px 55px rgba(9, 35, 56, .25);
}
.rh-work-change-dialog::backdrop { background: rgba(7, 25, 40, .58); }
.rh-change-shell { max-height: min(90dvh, 900px); overflow: auto; overscroll-behavior: contain; }
.rh-change-header {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 18px;
  background: #fff; border-bottom: 1px solid #e4ebf2;
}
.rh-change-header h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.rh-change-close {
  flex-shrink: 0; min-width: 70px; min-height: 44px; border: 1px solid #cad8e4;
  border-radius: 9px; background: #fff; color: #244f70;
  font: inherit; font-weight: 700; cursor: pointer;
}
.rh-change-footer {
  position: sticky; bottom: 0; z-index: 2; display: flex;
  padding: 12px 18px max(12px,env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #d9e4ed;
}
.rh-change-footer-close {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #bfd1df; border-radius: 10px; background: #eff5fa;
  color: #234f6d; font: inherit; font-weight: 800; cursor: pointer;
}
.rh-change-footer-close:focus-visible { outline: 3px solid #16699b; outline-offset: -3px; }
.rh-change-intro { margin: 0; padding: 14px 18px 6px; color: #596c80; font-size: 13px; line-height: 1.65; }
.rh-change-loading { padding: 16px 18px; color: #516a82; font-size: 13px; }
.rh-change-options { display: grid; gap: 11px; padding: 12px 18px 20px; }
.rh-change-option { min-width: 0; padding: 0; border-radius: 12px; border: 1px solid #cbdce9; background: #fff; overflow: hidden; }
.rh-change-option-button {
  width: 100%; display: grid; gap: 5px; text-align: left;
  min-height: 82px; padding: 14px 16px; background: #f0f6fa; color: #174b70;
  border: 0; font: inherit; cursor: pointer;
}
.rh-change-option-button strong { font-size: 16px; }
.rh-change-option-button span { font-size: 13px; line-height: 1.4; }
.rh-change-option-button:not(:disabled):active { background: #ddeef8; }
.rh-change-option-button:focus-visible, .rh-change-close:focus-visible { outline: 3px solid #16699b; outline-offset: -3px; }
.rh-change-option-button:disabled { color: #6e8090; background: #f2f3f5; cursor: not-allowed; }
.rh-change-option-reason { margin: 0; padding: 9px 14px 12px; font-size: 12px; line-height: 1.55; color: #596a7c; }
.rh-change-history { border-top: 1px solid #dce5ee; padding: 18px; }
.rh-change-history h3 { margin: 0 0 12px; font-size: 15px; }
.rh-change-history-list { display: grid; gap: 9px; }
.rh-change-history-item { min-width: 0; background: #fff; border: 1px solid #e0e7ef; border-radius: 10px; padding: 12px; }
.rh-change-history-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.rh-change-history-head strong { font-size: 13px; }
.rh-change-history-item p { margin: 8px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rh-change-history-item small { font-size: 11px; color: #667788; }
.rh-change-state { flex-shrink: 0; padding: 4px 7px; border-radius: 6px; background: #eef2f5; color: #516375; font-size: 11px; font-weight: 800; }
.rh-change-state-pending { background: #fff3d9; color: #925a12; }
.rh-change-state-approved { background: #e4f4ea; color: #1e6b44; }
.rh-change-note { color: #46647b; }
.rh-change-empty { font-size: 12px; line-height: 1.6; color: #6b7e90; }
.rh-change-error { margin: 0; color: #a02d28; font-size: 12px; line-height: 1.55; }
@media (max-width: 380px) {
  .rh-change-header { padding: 14px; }
  .rh-change-options { padding: 12px 14px 16px; }
  .rh-change-history { padding: 14px; }
}