.ra-cmp-copy {
  margin: 0;
}

.ra-skim-miss {
  background: var(--fam-del-bg);
  color: var(--fam-del-ink);
  border-radius: 5px;
  padding: 1px 5px;
  text-decoration: underline wavy var(--ef-mark-spelling);
  text-underline-offset: 3px;
}

.ra-cmp-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: var(--ef-r-pill);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 18px;
  font-weight: 500;
}

[data-theme="dark"] .ra-cmp-pill {
  background: rgba(245, 244, 239, 0.08);
  color: var(--text-body);
}

.ra-cmp-w {
  display: inline;
  padding: 1px 3px;
  margin: 0 -1px;
  border-radius: 5px;
  transition: background-color 110ms ease;
}

.ra-cmp-w.is-on {
  background: var(--ef-word-hl);
  color: var(--text-ink);
}

.ra-sheet-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.ra-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-main);
  flex-wrap: wrap;
}

.ra-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--accent);
  min-width: 0;
}

.ra-tool-badge-ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--bg-sage);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ra-tool-badge-ico svg {
  width: 14px;
  height: 14px;
}

.ra-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ra-quiet-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: var(--ef-r-pill);
  border: 1px solid var(--border-main);
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ra-quiet-btn:hover {
    background: var(--bg-sage);
    border-color: var(--border-sage);
    color: var(--text-ink);
  }
}

.ra-quiet-btn--accent {
  background: var(--bg-sage);
  border-color: var(--border-sage);
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .ra-quiet-btn--accent:hover {
    background: var(--bg-tint);
    color: var(--text-ink);
  }
}

.ra-editor-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 174px;
  border-radius: 18px;
  background: var(--bg-linen);
  padding: 16px 18px;
}

[data-theme="dark"] .ra-editor-stage {
  background: #1d2821;
}

.ra-textarea,
.ra-rich-view {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  font-family: var(--df);
  font-size: 19.5px;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: var(--text-ink);
  overflow-y: auto;
  word-break: break-word;
}

.ra-textarea {
  resize: none;
  outline: none;
}

.ra-textarea:focus,
.ra-textarea:focus-visible {
  outline: none;
}

.ra-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.72;
}

.ra-rich-view {
  white-space: pre-wrap;
  cursor: text;
}

.ef-mini-w {
  display: inline;
  padding: 1px 4px;
  margin: 0 -1px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 110ms ease, color 110ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ef-mini-w:hover {
    background: var(--bg-sage);
  }
}

.ef-mini-w.is-on {
  background: var(--ef-word-hl);
  color: var(--text-ink);
}

.ra-footer-bar {
  padding-top: 12px;
  border-top: 1px solid var(--border-main);
}

.h3-clara-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.h3-clara-capsule {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 8px;
  border-radius: var(--ef-r-pill);
  background: #ffffff;
  border: 1px solid rgba(38, 36, 31, 0.09);
  box-shadow: 0 10px 24px -10px rgba(27, 36, 30, 0.14), 0 2px 6px rgba(27, 36, 30, 0.05);
}

[data-theme="dark"] .h3-clara-capsule {
  background: #233028;
  border-color: rgba(245, 244, 239, 0.14);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.45);
}

.h3-clara-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--ef-r-pill);
  background: var(--bg-sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.h3-clara-mark img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.h3-clara-play {
  width: 38px;
  height: 38px;
  border-radius: var(--ef-r-pill);
  border: 0;
  background: #506957;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  touch-action: manipulation;
  transition: background-color 140ms ease;
}

[data-theme="dark"] .h3-clara-play {
  background: #5f7263;
}

@media (hover: hover) and (pointer: fine) {
  .h3-clara-play:hover { background: #3b5546; }
  [data-theme="dark"] .h3-clara-play:hover { background: #4e5f53; }
}

.h3-clara-play svg {
  width: 15px;
  height: 15px;
}

.h3-clara-mid {
  flex: 1;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h3-clara-name {
  font-size: 12.5px;
  line-height: 15px;
  font-weight: 600;
  color: var(--text-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h3-clara-track {
  width: 100%;
  height: 5px;
  border-radius: var(--ef-r-pill);
  background: var(--bg-sage);
  overflow: hidden;
}

.h3-clara-fill {
  width: 100%;
  height: 100%;
  background: #506957;
  border-radius: var(--ef-r-pill);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 200ms linear;
}

[data-theme="dark"] .h3-clara-fill {
  background: #9ec2a7;
}

.h3-speed-btn {
  height: 34px;
  min-width: 56px;
  padding: 0 10px;
  border-radius: var(--ef-r-pill);
  border: 0;
  background: rgba(38, 36, 31, 0.06);
  color: var(--text-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  flex: none;
  touch-action: manipulation;
  transition: background-color 140ms ease;
}

[data-theme="dark"] .h3-speed-btn {
  background: rgba(245, 244, 239, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .h3-speed-btn:hover { background: rgba(38, 36, 31, 0.13); }
  [data-theme="dark"] .h3-speed-btn:hover { background: rgba(245, 244, 239, 0.18); }
}

.ra-soft-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  height: 40px;
  padding: 0 15px;
  border-radius: var(--ef-r-pill);
  border: 1px solid var(--border-sage);
  background: var(--bg-sage);
  color: var(--text-ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, border-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ra-soft-pill:hover {
    background: var(--bg-tint);
    border-color: var(--accent);
  }
}

.ra-soft-pill svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.ra-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ra-sheet-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ra-hl-chip {
  background: var(--ef-word-hl);
  color: var(--text-ink);
  padding: 1px 6px;
  border-radius: 6px;
}

.ra-mini-progress {
  margin-top: 18px;
  width: 100%;
  height: 6px;
  border-radius: var(--ef-r-pill);
  background: var(--bg-sage);
  overflow: hidden;
}

.ra-mini-fill {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: var(--ef-r-pill);
  background: var(--accent);
}

.ra-speed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ra-speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--bg-linen);
  font-size: 14.5px;
  color: var(--text-ink);
}

.ra-speed-row strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.ra-speed-row span {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: right;
}

.ra-speed-row.is-active {
  background: var(--ef-card-sage);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.ra-grammar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-main);
  font-size: 13px;
  color: var(--text-muted);
}

.ra-legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ra-legend-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.sp-faq-item summary h3 {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.ef-faq-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .efd-step-detail {
    min-height: 224px;
  }
  .ra-editor-stage {
    height: 184px;
    padding: 14px;
  }
  .ra-textarea,
  .ra-rich-view {
    font-size: 17px;
    line-height: 27px;
  }
}

@media (max-width: 360px) {
  .efd-step-detail {
    min-height: 252px;
  }
}

@media (max-width: 520px) {
  .h3-clara-row {
    flex-direction: column;
    align-items: stretch;
  }
  .h3-clara-capsule {
    flex: none;
    width: 100%;
  }
  .ra-soft-pill {
    width: 100%;
  }
}
