/* audit_widget.css */
.rm-audit-cta {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.rm-typedpane {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(32,30,31,.18);
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  padding: 14px 14px 14px 14px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

:root[data-theme="dark"] .rm-typedpane{
  background: rgba(255,255,255,.06);
  border-color: rgba(254,239,221,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.25);
}

.rm-typedpane__top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
  opacity: .85;
  font-size: 12px;
}

.rm-typedpane__dots {
  display:flex; gap:6px; align-items:center;
}
.rm-typedpane__dot { width:10px; height:10px; border-radius:999px; background: rgba(0,0,0,.18); }
:root[data-theme="dark"] .rm-typedpane__dot { background: rgba(255,255,255,.18); }

.rm-typedpane__label {
  font-weight: 600;
  letter-spacing: .2px;
}

.rm-typedpane__line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  display:flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-typedpane__prompt { opacity: .7; }
.rm-typedpane__text { font-weight: 700; }
.rm-typedpane__cursor {
  width: 10px;
  height: 18px;
  border-radius: 4px;
  background: currentColor;
  opacity: .65;
  animation: rmblink 1s step-end infinite;
}
@keyframes rmblink { 50% { opacity: .15; } }

.rm-typedpane__hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
}

.rm-audit-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.rm-audit-modal.is-open { display: block; }

.rm-audit-modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.rm-audit-modal__dialog{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%) scale(.98);
  width: min(560px, calc(100vw - 28px));
  border-radius: 20px;
  border: 1px solid rgba(32,30,31,.18);
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 90px rgba(0,0,0,.35);
  padding: 18px;
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

:root[data-theme="dark"] .rm-audit-modal__dialog{
  background: rgba(18,18,18,.92);
  border-color: rgba(254,239,221,.14);
}

.rm-audit-modal.is-open .rm-audit-modal__dialog{
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

.rm-audit-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.rm-audit-modal__title{
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

:root[data-theme="dark"] .rm-audit-modal__title{
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

:root[data-theme="dark"] .rm-audit-modal__sub{
  color: var(--text);
}

:root[data-theme="dark"] .rm-audit-modal__close{
  color: var(--text);
}

:root[data-theme="dark"] .rm-audit-modal__footnote {
   font-size:12px;
   opacity:.75; 
   color: var(--text);
}

.rm-audit-modal__footnote {
    font-size:12px;
    opacity:.75;
}


.rm-audit-modal__sub{
  font-size: 13px;
  opacity: .8;
  margin-top: 4px;
}

.rm-audit-modal__close{
  appearance:none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor:pointer;
  padding: 8px;
  border-radius: 12px;
}
.rm-audit-modal__close:hover{ background: rgba(0,0,0,.06); }
:root[data-theme="dark"] .rm-audit-modal__close:hover{ background: rgba(255,255,255,.08); }

.rm-audit-modal__form{
  display:grid;
  gap: 10px;
}

.rm-input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(32,30,31,.18);
  background: rgba(255,255,255,.9);
  color: inherit;
  outline: none;
}
.rm-input:focus{
  border-color: rgba(121,73,255,.55);
  box-shadow: 0 0 0 4px rgba(121,73,255,.15);
}
:root[data-theme="dark"] .rm-input{
  background: rgba(255,255,255,.06);
  border-color: rgba(254,239,221,.14);
}

.rm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(32,30,31,.18);
  background: rgba(32,30,31,.92);
  color: #fff;
  cursor:pointer;
  font-weight: 700;
}
.rm-btn:hover{ transform: translateY(-1px); }
.rm-btn:active{ transform: translateY(0px); }
:root[data-theme="dark"] .rm-btn{
  border-color: rgba(254,239,221,.14);
  background: rgba(254,239,221,.14);
  color: rgba(254,239,221,.92);
}

.rm-formerr{
  font-size: 12px;
  color: #b00020;
  display:none;
}
.rm-formerr.is-show{ display:block; }

.rm-sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.hero-arrow-container{ pointer-events: none; }
.hero-arrow-container .rm-typedpane,
.hero-arrow-container .rm-audit-cta,
.hero-arrow-container #rmAuditModal{
  pointer-events: auto;
}

