#sheet {
  width: min(100% - 32px, 510px);
  max-width: none;
  max-height: min(88dvh, 820px);
  box-sizing: border-box;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9e1da;
  border-radius: 22px;
  background: #fdfefb;
  color: #193b32;
  font: inherit;
  text-align: left;
  box-shadow: 0 22px 90px #102c3240;
}
#sheet::backdrop { background: #112e26a6; }
#sheet *, #sheet *::before, #sheet *::after { box-sizing: border-box; }
#sheet button, #sheet input, #sheet textarea, #sheet select { font: inherit; }
#sheet :is(input, textarea, select, button):focus-visible {
  outline: 3px solid #11705f;
  outline-offset: 2px;
}
.rd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 13px;
}
.rd-heading { margin: 4px 0; font-size: clamp(1.35rem, 3vw, 1.72rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 750; }
.rd-heading:focus { outline: 0; }
.rd-icon-button, .rd-button, .rd-text-button { cursor: pointer; }
.rd-icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  margin-top: -3px;
  border-radius: 50%;
  border: 1px solid #dde3dc;
  color: #335347;
  background: #f4f6f1;
}
.rd-icon-button svg { width: 18px; height: 18px; }
.rd-body { display: grid; gap: 16px; padding: 0 26px 22px; }
.rd-body p, .rd-body dl, .rd-body fieldset { margin: 0; }
.rd-copy { font-size: .955rem; line-height: 1.5; color: #4d6057; overflow-wrap: anywhere; }
.rd-field { display: grid; gap: 6px; }
.rd-label, .rd-group-title { font-size: .875rem; font-weight: 680; color: #2e493c; }
.rd-optional { margin-left: 6px; color: #607169; font-weight: 400; font-size: .8rem; }
.rd-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #b8c6bb;
  border-radius: 10px;
  color: #1e392e;
  background: #fff;
}
textarea.rd-control { min-height: 67px; resize: vertical; }
.rd-control::placeholder { color: #69796e; opacity: 1; }
.rd-control:disabled { background: #eef2eb; color: #526559; }
.rd-money-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rd-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
  border-top: 1px solid #e1e6de;
  padding: 16px 26px 20px;
  background: #f6f8f3;
}
.rd-button {
  min-height: 45px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #bfcac0;
  background: #fff;
  color: #254438;
  font-weight: 670 !important;
  line-height: 1.2;
}
.rd-button:hover { background: #edf3ec; }
.rd-button:active { transform: translateY(1px); }
.rd-button.rd-primary { border-color: #163f32; background: #163f32; color: #fff; }
.rd-button.rd-primary:hover { background: #245643; }
.rd-button:disabled { opacity: .6; cursor: default; }
.rd-text-button {
  justify-self: start;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #24664a;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}
.rd-error { padding: 11px 13px; color: #8d311b; border: 1px solid #ebbdac; background: #fff2ed; border-radius: 9px; }
.rd-error[hidden] { display: none; }
.rd-callout { display: grid; gap: 4px; border-radius: 12px; padding: 13px 15px; background: #eff3ec; }
.rd-callout small, .rd-facts dt { color: #516457; font-size: .8rem; }
.rd-callout strong { font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.rd-callout span { color: #485e4e; font-size: .9rem; }
.rd-facts { display: grid; grid-template-columns: minmax(92px, .72fr) minmax(0, 1.4fr); align-items: baseline; gap: 10px 14px; }
.rd-facts dd { margin: 0; color: #283e32; font-size: .94rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.rd-section { display: grid; gap: 10px; }
.rd-section-title { margin: 0; font-size: .94rem; color: #254438; }
.rd-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rd-history li { display: flex; align-items: center; gap: 9px; color: #56655b; font-size: .84rem; }
.rd-history li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4b8966; }
.rd-history time { margin-left: auto; }
.rd-choice-list { display: grid; gap: 8px; padding: 0; border: none; }
.rd-choice-list legend { padding: 0 0 7px; }
.rd-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid #d7e0d7;
  border-radius: 11px;
  color: #213e32;
  font-weight: 570;
  cursor: pointer;
}
.rd-choice:has(input:checked) { border-color: #3d765b; background: #eff6ee; }
.rd-choice input { accent-color: #266449; width: 18px; height: 18px; flex-shrink: 0; }
.rd-avatar { border-radius: 50%; width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; background: #dce9da; color: #263f33; font-size: .75rem; font-weight: 730; }
.rd-choice span:last-child { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 480px) {
  #sheet { width: calc(100% - 16px); max-height: 94dvh; border-radius: 16px; }
  .rd-head { padding: 18px 16px 12px; }
  .rd-body { padding: 0 16px 16px; }
  .rd-actions { padding: 12px 16px 15px; }
  .rd-button { flex: 1 1 110px; }
  .rd-money-group { grid-template-columns: 1fr; gap: 14px; }
}
.rd-order-links{display:flex;flex-wrap:wrap;gap:8px}
.rd-order-links a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.45rem .8rem;border:1px solid #cdd9ca;border-radius:8px;background:#f2f6ef;color:#244d35;font-size:.88rem;font-weight:650;text-decoration:none}
.rd-order-links a:hover{background:#e5eddf}
