#modal.rod-dialog-standard { width: min(36rem, calc(100% - 2rem)); }
#modal.rod-dialog-wide { width: min(45rem, calc(100% - 2rem)); }

.rod-dialog {
  --rd-sage: color-mix(in srgb, var(--surface) 90%, var(--green));
  --rd-sage-line: color-mix(in srgb, var(--line) 72%, var(--green));
  --rd-warm: color-mix(in srgb, var(--surface) 38%, var(--paper));
  --rd-rust: #8e382c;
  --rd-rust-line: color-mix(in srgb, var(--line) 76%, var(--rd-rust));
  display: grid;
  gap: 1.2rem;
  min-width: 0;
  color: var(--ink);
  font-family: var(--sans);
}

.rod-dialog [hidden] { display: none !important; }
.rod-dialog :is(p, h3, h4) { margin: 0; overflow-wrap: anywhere; }
.rod-dialog .rd-error { align-self: start; scroll-margin-block: 1rem; }
.rod-dialog .rd-error:focus { outline: 2px solid var(--rd-rust); outline-offset: 2px; }
.rod-dialog .field { min-width: 0; margin: 0; }
.rod-dialog .field :is(input, select, textarea) { width: 100%; min-width: 0; max-width: 100%; }
.rod-dialog .field textarea { resize: vertical; }
.rod-dialog .btn { gap: .45rem; justify-content: center; max-width: 100%; }
.rod-dialog .btn svg { flex: none; }
.rod-dialog .rd-lead, .rod-dialog .rd-description { font-size: .93rem; line-height: 1.5; }
.rod-dialog .rd-lead { color: var(--muted); }
.rod-dialog .rd-description { white-space: pre-wrap; }
.rod-dialog .rd-optional { margin-inline-start: .25rem; font-size: .74rem; font-weight: 400; color: var(--muted); }
.rod-dialog .rd-flow { display: grid; gap: 1rem; min-width: 0; }
.rod-dialog .rd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rd-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rd-sage-line);
  border-radius: .55rem;
  background: var(--rd-sage);
  color: var(--green);
}

.rd-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.rd-choices legend { margin: 0 0 .5rem; padding: 0; font-size: .85rem; font-weight: 650; }
.rd-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.rd-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
  cursor: pointer;
}
.rd-choice > input { grid-column: 3; grid-row: 1; align-self: start; margin: .16rem 0 0; accent-color: var(--green); }
.rd-choice > .rd-mark { grid-column: 1; grid-row: 1; }
.rd-choice > span:last-child { grid-column: 2; grid-row: 1; }
.rd-choice strong, .rd-choice small { display: block; overflow-wrap: anywhere; }
.rd-choice strong { font-size: .88rem; line-height: 1.25; }
.rd-choice small { margin-top: .23rem; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.rd-choice:hover { border-color: var(--rd-sage-line); }
.rd-choice:has(input:checked) { border-color: var(--green); background: var(--rd-sage); box-shadow: inset 0 0 0 1px var(--green); }
.rd-choice:has(input:checked) .rd-mark { background: var(--surface); }
.rd-choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

.rd-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  min-width: 0;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.rd-account-footer { justify-content: space-between; }
.rd-account-footer > [data-rd-action="close"] { margin-inline-start: auto; }
.rd-summary, .rd-note, .rd-section-head, .rd-confirm { display: flex; align-items: flex-start; gap: .7rem; min-width: 0; }
.rd-summary > div, .rd-note > div, .rd-section-head > div, .rd-confirm > p { flex: 1; min-width: 0; }
.rd-summary {
  align-items: center;
  padding: .82rem;
  border: 1px solid var(--rd-sage-line);
  border-radius: .65rem;
  background: var(--rd-sage);
}
.rd-summary .rd-mark { height: 2.65rem; width: 2.65rem; background: var(--surface); }
.rd-summary strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--green);
  font: 550 clamp(1.25rem, 4.2vw, 1.6rem)/1.15 var(--serif);
}
.rd-summary p, .rd-note p, .rd-section-head p { margin-top: .18rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.rd-note {
  align-items: center;
  padding: .75rem;
  border: 1px dashed var(--line);
  border-radius: .65rem;
  background: var(--rd-warm);
}
.rd-note .rd-mark { width: 2.05rem; height: 2.05rem; border: 0; }
.rd-note strong { display: block; font-size: .86rem; line-height: 1.3; }
.rd-badge {
  flex: none;
  max-width: 100%;
  padding: .24rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.2;
}
.rd-badge-accent { border-color: var(--rd-sage-line); color: var(--green); }
.rd-section { display: grid; gap: .65rem; min-width: 0; padding-top: .95rem; border-top: 1px solid var(--line); }
.rd-section-head { align-items: center; }
.rd-section-head h3 { font: 550 1.33rem/1.15 var(--serif); }
.rd-subsection { display: grid; gap: .46rem; min-width: 0; }
.rd-subsection h4, .rd-danger h3 { font-size: .9rem; font-weight: 650; line-height: 1.3; }
.rd-hint { color: var(--muted); font-size: .79rem; line-height: 1.45; }

.rd-list {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
  list-style: none;
}
.rd-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; min-width: 0; padding: .59rem .68rem; }
.rd-row + .rd-row { border-top: 1px solid var(--line); }
.rd-row-glyph { display: grid; flex: none; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .45rem; background: var(--rd-warm); color: var(--green); }
.rd-row-main { flex: 1 1 8rem; min-width: 0; }
.rd-row-main strong { display: block; font-size: .87rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.rd-row-main p { margin-top: .12rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.rd-token-title { display: flex; flex-wrap: wrap; align-items: center; gap: .22rem .45rem; }
.rd-token-title .rd-badge { max-width: 100%; font-size: .69rem; }
.rd-row-actions, .rd-role-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .32rem; min-width: 0; }
.rd-row-actions { margin-inline-start: auto; }
.rod-dialog .rd-role-form .field select { min-height: 2.1rem; padding-block: .25rem; font-size: .81rem; }
.rod-dialog .rd-row .rd-small { min-height: 2.1rem; padding: .27rem .52rem; font-size: .76rem; }
.rod-dialog .rd-icon-button { width: 2.15rem; min-width: 2.15rem; height: 2.15rem; min-height: 2.15rem; padding: 0; }
.rod-dialog .rd-remove { color: var(--rd-rust); }
.rod-dialog .rd-remove:hover { background: color-mix(in srgb, var(--surface) 91%, var(--rd-rust)); }

.rd-compose {
  display: grid;
  align-items: end;
  gap: .65rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--rd-warm);
}
.rd-inline-form { grid-template-columns: minmax(0, 1fr) auto; }
.rd-token-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-token-form > .btn { justify-self: start; }
.rd-scope-hint { grid-column: 1 / -1; margin-block: -.2rem .05rem; }
.rd-empty-action { justify-self: start; }

.rd-danger, .rd-confirm {
  padding: .8rem;
  border: 1px solid var(--rd-rust-line);
  border-radius: .65rem;
  background: color-mix(in srgb, var(--surface) 94%, var(--rd-rust));
}
.rd-danger { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.rd-danger > div { flex: 1 1 13rem; min-width: 0; }
.rd-danger h3 { color: var(--rd-rust); }
.rd-danger p { margin-top: .2rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.rd-confirm { align-items: center; }
.rd-confirm .rd-mark { border-color: var(--rd-rust-line); background: var(--surface); color: var(--rd-rust); }
.rd-confirm p { font-size: .91rem; line-height: 1.5; }
.rd-confirm.rd-guest-confirm { display: grid; flex: 1 0 100%; gap: .55rem; min-width: 0; }
.rd-guest-confirm .rd-footer { border-top-color: var(--rd-rust-line); }

.rd-reveal {
  display: grid;
  gap: .65rem;
  min-width: 0;
  padding: .82rem;
  border: 1px solid var(--rd-sage-line);
  border-radius: .65rem;
  background: var(--rd-sage);
}
.rd-reveal .rd-mark { background: var(--surface); }
.rd-copy-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.rod-dialog .rd-copy-line input { font: 400 .84rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; }
.rd-copy-status { color: var(--green); font-size: .8rem; line-height: 1.35; }
.rd-copy-status:empty { display: none; }
.rod-dialog[aria-busy="true"] :is(button, select, input, textarea):disabled { cursor: progress; }

@media (max-width: 36rem) {
  #modal.rod-dialog-standard, #modal.rod-dialog-wide { width: calc(100% - 1rem); }
  .rod-dialog { gap: .95rem; }
  .rod-dialog .field :is(input, select, textarea) { font-size: 16px; }
  .rod-dialog .rd-role-form .field select { font-size: 1rem; }
  .rd-choice { gap: .5rem; padding: .65rem; }
  .rd-choice-grid, .rd-token-form { grid-template-columns: minmax(0, 1fr); }
  .rd-choice > input { align-self: center; }
  .rd-summary, .rd-note, .rd-row, .rd-reveal, .rd-compose { padding: .64rem; }
  .rd-row-actions { justify-content: flex-start; }
  .rd-scope-hint { grid-column: auto; }
}

@media (max-width: 29rem) {
  .rd-copy-line, .rd-inline-form { grid-template-columns: minmax(0, 1fr); }
  :is(.rd-copy-line, .rd-inline-form, .rd-token-form) > .btn { justify-self: stretch; }
  .rd-row:has(.rd-row-actions) > .rd-row-main { flex-basis: 100%; }
  .rd-row-actions { margin-inline-start: 0; }
  .rd-choice > .rd-mark, .rd-note > .rd-mark { width: 2rem; height: 2rem; }
  .rd-summary { flex-wrap: wrap; }
  .rd-summary .rd-badge { margin-inline-start: auto; }
  .rd-danger > .btn { width: 100%; }
}

.rd-download-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 11px;margin-top:8px}
.rd-download-line small{flex:1 1 185px;color:var(--muted);font-size:13px;line-height:1.35}
