.rd-dialog {
  --rd-ink: #17253d;
  --rd-muted: #63738a;
  --rd-line: #dfe6ee;
  --rd-action: #3066e8;
  width: min(460px, calc(100vw - 32px));
  max-width: 100vw;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  color: var(--rd-ink);
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 19px;
  box-shadow:
    0 28px 100px #10284338,
    0 4px 18px #1228411c;
  font:
    14px/1.6 'Inter',
    'Microsoft YaHei UI',
    'PingFang SC',
    system-ui,
    sans-serif;
}
.rd-dialog::backdrop {
  background: rgb(15 30 50 / 37%);
  backdrop-filter: blur(2px);
}
.rd-dialog[open]:not(.rd-auth) {
  display: flex;
  flex-direction: column;
  animation: rd-enter 0.14s ease-out;
}
@keyframes rd-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}
.rd-dialog *,
.rd-dialog *::before,
.rd-dialog *::after {
  box-sizing: border-box;
}
.rd-dialog [hidden] {
  display: none !important;
}
.rd-dialog button,
.rd-dialog input,
.rd-dialog textarea {
  font: inherit;
}
.rd-dialog button {
  cursor: pointer;
}
.rd-dialog button:disabled,
.rd-dialog input:disabled {
  cursor: wait;
  opacity: 0.65;
}
.rd-dialog :is(button, input, textarea):focus-visible {
  outline: 3px solid #81aaf7;
  outline-offset: 2px;
}
.rd-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--rd-line);
  flex: none;
}
.rd-head h2,
.rd-auth h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rd-ink);
}
.rd-head h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.rd-head p,
.rd-meta,
.rd-auth-inner > p {
  color: var(--rd-muted);
}
.rd-head p {
  margin: 3px 0 0;
  font-size: 12px;
}
.rd-icon-btn {
  height: 32px;
  width: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #596c83;
  background: transparent;
}
.rd-icon-btn:hover {
  background: #f1f5f9;
  color: var(--rd-ink);
}
.rd-icon-btn.rd-close {
  margin-left: auto;
}
.rd-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 21px 24px 24px;
  min-height: 0;
  scrollbar-width: thin;
}
.rd-dialog svg {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.rd-form,
.rd-field {
  display: grid;
}
.rd-form {
  gap: 17px;
}
.rd-field {
  gap: 6px;
  text-align: left;
}
.rd-field > span,
.rd-fieldset legend {
  font-size: 13px;
  font-weight: 650;
}
.rd-field input,
.rd-field textarea,
.rd-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d2dbe7;
  border-radius: 9px;
  background: white;
  color: var(--rd-ink);
  box-shadow: 0 1px 2px #192c4807;
}
.rd-field input {
  height: 43px;
}
.rd-field input[readonly] {
  color: #385980;
  background: #f7f9fc;
}
.rd-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.6;
  max-height: 240px;
}
.rd-field small,
.rd-person-info small,
.rd-meta,
.rd-identity small,
.rd-help {
  color: var(--rd-muted);
}
.rd-field small,
.rd-meta {
  font-size: 12px;
}
.rd-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 11px;
  color: var(--rd-muted);
  background: #f6f8fb;
  border-color: #e8edf3;
}
.rd-search:focus-within {
  outline: 2px solid #9cbfff;
}
.rd-search input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  border: none;
  outline: none !important;
  box-shadow: none;
  color: var(--rd-ink);
  background: transparent;
}
.rd-dialog ::placeholder {
  color: #78879b;
}
.rd-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.15s;
}
.rd-btn.rd-primary {
  background: var(--rd-action);
  color: #fff;
}
.rd-btn.rd-primary:hover {
  background: #2458cc;
}
.rd-btn.rd-secondary,
.rd-btn.rd-outline {
  background: white;
  border-color: var(--rd-line);
  color: var(--rd-ink);
}
.rd-btn.rd-secondary:hover,
.rd-btn.rd-outline:hover,
.rd-btn.rd-plain:hover {
  background: #f3f6fb;
}
.rd-btn.rd-danger {
  background: #b03838;
  color: white;
}
.rd-btn.rd-danger:hover {
  background: #982e2e;
}
.rd-btn.rd-plain,
.rd-btn.rd-danger-plain {
  background: transparent;
}
.rd-btn.rd-plain {
  color: #375c96;
}
.rd-btn.rd-danger-plain {
  color: #a93838;
  padding-inline: 0;
}
.rd-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
}
.rd-actions .rd-btn:only-child {
  margin-left: auto;
}
.rd-error {
  border: 1px solid #f0d0d1;
  border-radius: 7px;
  background: #fff3f3;
  color: #8f2f32;
  padding: 8px 10px;
  font-size: 13px;
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.rd-dialog .rd-error:not([hidden]) + .rd-btn {
  margin-top: 6px;
}
.rd-identity,
.rd-person,
.rd-action,
.rd-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rd-identity {
  margin-bottom: 17px;
  padding: 4px 0 13px;
}
.rd-identity > div,
.rd-person-info {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}
.rd-identity strong,
.rd-person-info strong,
.rd-person-info small {
  overflow-wrap: anywhere;
}
.rd-identity strong {
  font-size: 19px;
  line-height: 1.4;
}
.rd-person-info strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.rd-person-info small,
.rd-identity small {
  font-size: 12px;
  font-weight: 400;
}
.rd-person-info {
  flex: 1;
}
.rd-face,
.rd-group-symbol,
.rd-action-icon,
.rd-link-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
}
.rd-face {
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--rd-tone) 14%, white);
  color: color-mix(in srgb, var(--rd-tone) 74%, #0d2342);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.rd-face.rd-large,
.rd-group-symbol {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  font-size: 20px;
}
.rd-group-symbol,
.rd-link-icon,
.rd-action-icon {
  color: #3566d1;
  background: #edf2fd;
}
.rd-link-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.rd-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.rd-person,
.rd-action {
  width: 100%;
  padding: 11px 2px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: var(--rd-ink);
}
.rd-action {
  min-height: 59px;
}
.rd-action-list {
  display: grid;
}
.rd-action-list .rd-action + .rd-action,
.rd-people .rd-person + .rd-person {
  border-top: 1px solid #edf0f5;
  border-radius: 0;
}
.rd-person-button:hover,
.rd-choice:hover,
.rd-action:hover {
  background: #f4f7fc;
}
.rd-person > svg:last-child,
.rd-action > svg:last-child {
  color: #7b8ba0;
  margin-right: 3px;
}
.rd-people {
  margin-top: 8px;
}
.rd-role {
  color: var(--rd-muted);
  font-size: 12px;
}
.rd-add {
  color: var(--rd-action);
  font-size: 13px;
}
.rd-empty,
.rd-wait {
  color: var(--rd-muted);
  text-align: center;
  padding: 18px 8px;
  font-size: 13px;
}
.rd-choice {
  cursor: pointer;
  text-align: left;
}
.rd-choice input {
  width: 17px;
  height: 17px;
  margin: 0 4px 0 0;
  accent-color: var(--rd-action);
}
.rd-fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
  margin: 0;
}
.rd-fieldset legend {
  margin-bottom: 7px;
}
.rd-select-list {
  max-height: min(30dvh, 225px);
  overflow: auto;
}
.rd-rule,
.rd-toggle {
  border-top: 1px solid var(--rd-line);
  margin-top: 13px;
  padding-top: 13px;
}
.rd-toggle {
  cursor: pointer;
  position: relative;
}
.rd-toggle input {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 37px;
  height: 23px;
  cursor: pointer;
}
.rd-switch {
  width: 37px;
  height: 22px;
  border-radius: 20px;
  background: #c2ccd8;
  padding: 3px;
  pointer-events: none;
  flex: none;
  transition: background 0.15s;
}
.rd-switch::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #18314d3b;
  transition: transform 0.15s;
}
.rd-toggle input:checked + .rd-switch {
  background: var(--rd-action);
}
.rd-toggle input:checked + .rd-switch::after {
  transform: translateX(15px);
}
.rd-toggle input:focus-visible + .rd-switch {
  outline: 3px solid #81aaf7;
  outline-offset: 2px;
}
.rd-ann {
  background: #f2f6ff;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 11px;
}
.rd-ann h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3c60a9;
  font-size: 12px;
  margin: 0;
}
.rd-ann p {
  margin: 5px 0 0;
  color: #334d72;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rd-help {
  white-space: pre-line;
  margin: 0 0 16px;
}
.rd-link-icon + .rd-help {
  margin-top: 13px;
}
.rd-meta {
  margin: 7px 0 19px;
}
.rd-dialog.rd-auth {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.rd-auth-grid {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(400px, 1.12fr);
}
.rd-brand-panel {
  background: #182846;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  padding: clamp(30px, 5.6vw, 100px);
  position: relative;
}
.rd-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.rd-brand-lockup strong {
  font:
    650 30px/1 'Inter',
    system-ui,
    sans-serif;
  letter-spacing: -1.7px;
}
.rd-brand-art {
  pointer-events: none;
  position: absolute;
  inset: 20% -22% 8% 10%;
  display: grid;
  place-items: center;
  transform: rotate(-22deg) skew(4deg);
}
.rd-brand-art span {
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  border: clamp(15px, 2.25vw, 48px) solid #86a9ee;
  border-radius: 25% 25% 25% 3%;
}
.rd-brand-art span:first-child {
  transform: translate(-46%, -38%);
  border-color: #354e79;
}
.rd-brand-art span:nth-child(2) {
  transform: translate(-17%, -8%);
  border-color: #5374a7;
}
.rd-brand-art span:nth-child(3) {
  transform: translate(12%, 22%);
}
.rd-brand-caption {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0.08em;
  position: relative;
}
.rd-auth-form {
  padding: 48px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rd-auth-inner {
  width: min(100%, 350px);
}
.rd-auth-inner > p {
  margin: 9px 0 29px;
}
.rd-auth h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
.rd-auth .rd-form {
  gap: 19px;
}
.rd-auth .rd-form .rd-btn {
  margin-top: 5px;
}
.rd-auth-inner > .rd-btn {
  width: 100%;
  margin-top: 12px;
}
@media (max-width: 680px) {
  .rd-auth-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .rd-brand-panel {
    padding: 23px 26px;
    min-height: 102px;
    justify-content: center;
  }
  .rd-brand-art {
    inset: -130% -3% -100% 48%;
  }
  .rd-brand-caption {
    display: none;
  }
  .rd-auth-form {
    padding: 38px 26px;
    align-items: flex-start;
  }
  .rd-auth-inner {
    width: min(100%, 400px);
  }
  .rd-dialog:not(.rd-auth) {
    max-height: calc(100dvh - 24px);
  }
  .rd-head {
    padding: 18px 19px 15px;
  }
  .rd-body {
    padding: 17px 19px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rd-dialog *,
  .rd-dialog[open] {
    animation: none !important;
    transition: none !important;
  }
}
