/* RenaSci 学术名片 · 批注层（勘误、修改意见、补充材料、疑问、评论）
   这份样式用在两处：
   1. 页面里（构建时注入 <head>）：只有下面的 ::highlight(...) 对页面起作用——用 CSS Custom Highlight API 标出有批注的文字，不改动页面的 DOM；
   2. 批注界面的 Shadow DOM 里（annot.js 把这里的规则原样复制进去）：入口、选字按钮、写批注的面板、本页批注列表。
   所有选择器都以 rsa- 开头，碰不到页面原有的元素；界面自己设好字体、颜色、行高，不受页面样式影响。 */

/* ---------- 页面上的高亮：别人的、自己的、正在看的（写批注时的引文也用“正在看的”） ---------- */
::highlight(rsa-note) { background-color: rgba(255, 190, 20, .24); text-decoration: underline 2px rgba(222, 146, 0, .85); }
::highlight(rsa-mine) { background-color: rgba(255, 150, 30, .3); text-decoration: underline dashed 2px rgba(214, 104, 0, .95); }
::highlight(rsa-focus) { background-color: #ffd54a; color: #1d1600; text-decoration: none; }
@media print {
  ::highlight(rsa-note) { background-color: transparent; text-decoration: none; }
  ::highlight(rsa-mine) { background-color: transparent; text-decoration: none; }
  ::highlight(rsa-focus) { background-color: transparent; text-decoration: none; }
}

/* ---------- 以下只在批注界面（Shadow DOM）里起作用 ---------- */
.rsa-root {
  display: contents;
  --rsa-paper: #fffdf8; --rsa-paper-2: #f6f2e8; --rsa-ink: #1f1d1a; --rsa-ink-2: #4c473f; --rsa-ink-3: #6b655b;
  --rsa-rule: rgba(31, 29, 26, .13); --rsa-rule-2: rgba(31, 29, 26, .26);
  --rsa-amber: #f5b62c; --rsa-amber-2: #ffc94a; --rsa-amber-soft: #fff4d4; --rsa-amber-ink: #8a4f00; --rsa-ring: #a35f00;
  --rsa-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rsa-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --rsa-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: var(--rsa-sans); font-size: 14.5px; font-weight: 400; font-style: normal; line-height: 1.6; color: var(--rsa-ink);
  letter-spacing: 0; word-spacing: 0; text-align: left; text-transform: none; text-indent: 0; text-shadow: none; white-space: normal;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  /* 页面可能给 body 设了会继承下来的样式（光标、书写方向、字形特性……），这里一并归位 */
  visibility: visible; pointer-events: auto; cursor: auto; direction: ltr; writing-mode: horizontal-tb; text-orientation: mixed;
  font-variant: normal; font-feature-settings: normal; font-kerning: auto; font-stretch: normal; font-size-adjust: none; text-rendering: auto;
  word-break: normal; line-break: auto; overflow-wrap: normal; hyphens: manual; tab-size: 8; list-style: none; quotes: auto;
  caret-color: auto; color-scheme: light; text-decoration: none; text-underline-offset: auto; font-optical-sizing: auto;
}
.rsa-root *, .rsa-root *::before, .rsa-root *::after { box-sizing: border-box; }
.rsa-root [hidden] { display: none !important; }
.rsa-root ::selection { background: #ffd977; color: #1d1600; }
.rsa-root :focus { outline: none; }
.rsa-root :focus-visible { outline: 2px solid var(--rsa-ring); outline-offset: 2px; }
.rsa-ico { flex: none; display: inline-block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- 入口：贴在右边缘、靠下的小书签“批注”，带本页可见批注的数量 ---------- */
.rsa-fab {
  position: fixed; z-index: 1100; margin: 0;
  right: env(safe-area-inset-right, 0px);
  bottom: calc(var(--rsa-fab-b, 24px) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 28px; min-height: 90px; padding: 10px 0 9px;
  border: 1px solid rgba(31, 29, 26, .24); border-right: 0; border-radius: 10px 0 0 10px;
  background: rgba(255, 253, 248, .97); color: var(--rsa-ink);
  font: 600 13px/1 var(--rsa-sans); letter-spacing: 0; cursor: pointer; user-select: none; -webkit-user-select: none;
  box-shadow: -4px 4px 16px -6px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .35);
  transition: bottom .25s var(--rsa-ease), width .18s var(--rsa-ease), border-color .2s, background-color .2s;
}
.rsa-fab:hover { width: 34px; border-color: #c98a12; background: #fffaf0; }
.rsa-fab[aria-expanded="true"] { border-color: #c98a12; }
.rsa-fab .rsa-ico { width: 15px; height: 15px; color: var(--rsa-amber-ink); }
.rsa-fab__t { writing-mode: vertical-rl; letter-spacing: .16em; line-height: 1; }
.rsa-fab__n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: 10px; background: var(--rsa-amber); color: #241800; font: 700 11.5px/1 var(--rsa-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.rsa-dlg .rsa-fab, .rsa-dlg .rsa-selbtn { display: none !important; }

/* ---------- 选中文字后出现的“✎ 批注” ---------- */
.rsa-selbtn {
  position: fixed; z-index: 2147483000; left: 0; top: 0; margin: 0;
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 11px;
  border: 1px solid rgba(60, 40, 0, .35); border-radius: 17px; background: var(--rsa-amber-2); color: #1d1600;
  font: 700 13.5px/1 var(--rsa-sans); letter-spacing: .06em; cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 255, 255, .55);
  animation: rsa-pop .16s var(--rsa-ease);
}
.rsa-selbtn:hover { background: #ffd56e; }
.rsa-selbtn .rsa-ico { width: 15px; height: 15px; }
@keyframes rsa-pop { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- 面板：桌面在右侧，手机是底部抽屉 ---------- */
.rsa-backdrop { position: fixed; inset: 0; z-index: 2147483001; background: rgba(16, 14, 10, .34); animation: rsa-fade .2s ease-out; }
@keyframes rsa-fade { from { opacity: 0; } to { opacity: 1; } }
.rsa-sheet {
  position: fixed; z-index: 2147483002; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--rsa-paper); color: var(--rsa-ink);
  border-left: 1px solid var(--rsa-rule-2); box-shadow: -20px 0 50px -24px rgba(0, 0, 0, .5);
  padding-right: env(safe-area-inset-right, 0px); outline: none;
  transform: none; opacity: 1; transition: transform .26s var(--rsa-ease), opacity .2s;
}
.rsa-sheet.is-off { transform: translateX(104%); opacity: .6; }
.rsa-sheet__grab { display: none; }
.rsa-sheet__h { flex: none; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--rsa-rule); }
.rsa-sheet__t { flex: 1; min-width: 0; margin: 0; font: 700 16px/1.35 var(--rsa-sans); letter-spacing: .02em; color: var(--rsa-ink); }
.rsa-sheet__t small { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--rsa-ink-3); }
.rsa-x {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--rsa-ink-2); cursor: pointer;
}
.rsa-x:hover { background: rgba(31, 29, 26, .07); color: var(--rsa-ink); }
.rsa-x .rsa-ico { width: 18px; height: 18px; }
.rsa-sheet__b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 16px 20px 24px; scrollbar-width: thin; }
.rsa-sheet__f { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--rsa-rule); background: var(--rsa-paper-2); }
.rsa-sheet__f .rsa-spacer { flex: 1; }

@media (max-width: 640px) {
  .rsa-fab { bottom: calc(var(--rsa-fab-b, 112px) + env(safe-area-inset-bottom, 0px)); width: 21px; min-height: 78px; gap: 5px; padding: 9px 0 8px; font-size: 12.5px; border-radius: 9px 0 0 9px; }
  .rsa-fab:hover { width: 21px; }
  .rsa-fab .rsa-ico { width: 13px; height: 13px; }
  .rsa-fab__t { letter-spacing: .12em; }
  .rsa-fab__n { min-width: 17px; height: 17px; padding: 0 2px; font-size: 10px; border-radius: 9px; }
  .rsa-selbtn { height: 40px; padding: 0 16px 0 14px; border-radius: 20px; font-size: 14.5px; }
  .rsa-sheet {
    top: auto; left: 0; right: 0; bottom: var(--rsa-kb, 0px); width: 100%; max-height: min(85vh, calc(var(--rsa-vh, 100vh) * .85));
    border-left: 0; border-top: 1px solid var(--rsa-rule-2); border-radius: 16px 16px 0 0; box-shadow: 0 -16px 46px -18px rgba(0, 0, 0, .55);
    padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  }
  .rsa-sheet.is-off { transform: translateY(104%); opacity: 1; }
  .rsa-sheet__grab { display: block; flex: none; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: rgba(31, 29, 26, .2); }
  .rsa-sheet__h { min-height: 50px; padding: 2px 6px 6px 18px; }
  .rsa-sheet__b { padding: 14px 18px 20px; }
  .rsa-sheet__f { padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .rsa-sheet--list .rsa-sheet__b { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 按钮、表单 ---------- */
.rsa-btn {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; margin: 0; padding: 0 14px; border: 1px solid var(--rsa-rule-2); border-radius: 8px; background: #fff; color: var(--rsa-ink);
  font: 600 14px/1.25 var(--rsa-sans); letter-spacing: .02em; text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.rsa-btn:hover { border-color: rgba(31, 29, 26, .45); background: #fffaf0; }
.rsa-btn--pri { background: var(--rsa-ink); border-color: var(--rsa-ink); color: #fffaf0; }
.rsa-btn--pri:hover { background: #3a3630; border-color: #3a3630; }
.rsa-btn--amber { background: var(--rsa-amber-2); border-color: #d39a1c; color: #1d1600; }
.rsa-btn--amber:hover { background: #ffd56e; border-color: #c98a12; }
.rsa-btn--sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.rsa-btn[aria-expanded="true"] { border-color: #c98a12; background: var(--rsa-amber-soft); }
.rsa-btn--quiet { border-color: transparent; background: transparent; color: var(--rsa-ink-2); }
.rsa-btn--quiet:hover { background: rgba(31, 29, 26, .06); border-color: transparent; }
.rsa-btn--danger { color: #a3261b; }
.rsa-btn--danger.is-armed { background: #a3261b; border-color: #a3261b; color: #fff; }
.rsa-btn:disabled, .rsa-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.rsa-btn .rsa-ico { width: 15px; height: 15px; }
.rsa-link {
  -webkit-appearance: none; appearance: none; display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--rsa-amber-ink);
  font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer;
}
.rsa-link:hover { color: #5e3600; }

.rsa-form { margin: 0; }
.rsa-field { display: block; margin: 0 0 14px; }
.rsa-label { display: block; margin: 0 0 5px; font: 600 13px/1.45 var(--rsa-sans); color: var(--rsa-ink-2); letter-spacing: .02em; }
.rsa-label small { font-weight: 400; color: var(--rsa-ink-3); }
.rsa-input, .rsa-ta {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; margin: 0; padding: 8px 11px;
  border: 1px solid var(--rsa-rule-2); border-radius: 8px; background: #fff; color: var(--rsa-ink);
  font: 400 14.5px/1.6 var(--rsa-sans); letter-spacing: 0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}
.rsa-input { height: 40px; }
.rsa-ta { min-height: 84px; resize: vertical; }
.rsa-input::placeholder, .rsa-ta::placeholder { color: #8f887c; opacity: 1; }
.rsa-input:focus, .rsa-ta:focus { border-color: var(--rsa-ring); outline: 2px solid rgba(163, 95, 0, .35); outline-offset: 0; }
.rsa-field.is-strong .rsa-label { color: var(--rsa-ink); font-size: 14px; }
.rsa-field.is-strong .rsa-ta { border-color: #c98a12; background: #fffdf6; box-shadow: 0 0 0 3px rgba(245, 182, 44, .2); }
.rsa-hint { margin: 5px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--rsa-ink-3); }
.rsa-msg { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: #a3261b; }
.rsa-msg:empty { display: none; }
.rsa-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.rsa-sr { position: fixed !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 类型（单选，做成一排小签） */
.rsa-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.rsa-kinds legend, .rsa-vis legend { float: left; width: 100%; margin: 0 0 6px; padding: 0; font: 600 13px/1.45 var(--rsa-sans); color: var(--rsa-ink-2); }
.rsa-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.rsa-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rsa-chip span {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--rsa-rule-2); border-radius: 16px;
  background: #fff; color: var(--rsa-ink-2); font: 600 13.5px/1 var(--rsa-sans); letter-spacing: .02em; transition: background-color .15s, color .15s, border-color .15s;
}
.rsa-chip:hover span { border-color: rgba(31, 29, 26, .5); }
.rsa-chip input:checked + span { background: var(--rsa-ink); border-color: var(--rsa-ink); color: #fffaf0; }
.rsa-chip input:focus-visible + span { outline: 2px solid var(--rsa-ring); outline-offset: 2px; }
.rsa-vis { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; padding: 0; border: 0; min-width: 0; }

/* 引文 */
.rsa-quote {
  margin: 0 0 16px; padding: 9px 12px; border: 0; border-left: 3px solid var(--rsa-amber); border-radius: 0 6px 6px 0; background: var(--rsa-amber-soft);
  font: 400 14.5px/1.8 var(--rsa-serif); color: var(--rsa-ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 10.5em; overflow-y: auto;
}
.rsa-pagehint { margin: 0 0 16px; padding: 9px 12px; border-radius: 6px; background: var(--rsa-paper-2); font-size: 13.5px; color: var(--rsa-ink-2); overflow-wrap: anywhere; }
.rsa-pagehint b { color: var(--rsa-ink); font-weight: 600; }

/* 身份区 */
.rsa-id { margin: 2px 0 14px; padding: 12px 14px 4px; border: 1px solid var(--rsa-rule); border-radius: 10px; background: #fffefb; }
.rsa-id__as { margin: 0 0 10px; font-size: 14px; color: var(--rsa-ink-2); }
.rsa-id__as b { color: var(--rsa-ink); }
.rsa-id__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; font-size: 13px; color: var(--rsa-ink-3); }
.rsa-id .rsa-field { margin-bottom: 10px; }
.rsa-ok { margin: 0 0 10px; font-size: 13px; color: #26683a; }

/* 账号 */
.rsa-acct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; padding: 10px 12px; border: 1px solid var(--rsa-rule); border-radius: 10px; background: #fffefb; }
.rsa-acct__who { flex: 1 1 auto; min-width: 8em; margin: 0; font-size: 13.5px; color: var(--rsa-ink-2); overflow-wrap: anywhere; }
.rsa-acct__who b { color: var(--rsa-ink); }
.rsa-acct__forms { flex: 1 1 100%; }
.rsa-acct__forms:empty { display: none; }
.rsa-auth { margin: 6px 0 2px; padding: 12px 0 0; border-top: 1px dashed var(--rsa-rule-2); }
.rsa-auth__h { margin: 0 0 10px; font: 700 14px/1.4 var(--rsa-sans); }
.rsa-auth .rsa-field { margin-bottom: 10px; }
.rsa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 8px; }

/* 列表 */
.rsa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.rsa-tip { margin: 0 0 12px; font-size: 12.5px; color: var(--rsa-ink-3); }
.rsa-list { list-style: none; margin: 14px 0 0; padding: 0; }
.rsa-item { position: relative; margin: 0; padding: 14px 12px 12px; border-top: 1px solid var(--rsa-rule); outline: none; border-radius: 2px; }
.rsa-item:focus-visible { outline: 2px solid var(--rsa-ring); outline-offset: -2px; }
.rsa-item.is-active { background: #fff8e4; box-shadow: inset 3px 0 0 var(--rsa-amber); }
.rsa-item.is-pulse { animation: rsa-pulse 1.1s ease-out; }
@keyframes rsa-pulse { 0% { background: #ffe8a3; } 100% { background: #fff8e4; } }
.rsa-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 8px; }
.rsa-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: #eeebe4; color: #4c473f;
  font: 700 12px/1 var(--rsa-sans); letter-spacing: .03em; white-space: nowrap;
}
.rsa-tag--erratum { background: #fde5e1; color: #9f2216; }
.rsa-tag--suggest { background: #e2ecfa; color: #1b4f99; }
.rsa-tag--supplement { background: #dff1e3; color: #23633a; }
.rsa-tag--question { background: #eee4f9; color: #64359f; }
.rsa-tag--comment { background: #ece9e2; color: #4c473f; }
.rsa-tag--st { background: transparent; border: 1px solid currentColor; height: 20px; padding: 0 7px; font-weight: 600; }
.rsa-tag--pending { color: #8a4f00; }
.rsa-tag--approved { color: #23633a; }
.rsa-tag--private { color: #3b4d63; }
.rsa-tag--hidden { color: #6b655b; }
.rsa-tag--resolved { color: #1b4f99; }
.rsa-q {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; margin: 0 0 8px; padding: 6px 10px; border: 0; border-left: 3px solid var(--rsa-amber);
  border-radius: 0 6px 6px 0; background: var(--rsa-amber-soft); color: var(--rsa-ink); font: 400 14px/1.75 var(--rsa-serif); text-align: left; letter-spacing: 0;
  overflow-wrap: anywhere; cursor: pointer;
}
.rsa-q span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.rsa-q:hover { background: #ffe9a6; }
.rsa-q--lost { cursor: default; border-left-style: dashed; background: var(--rsa-paper-2); color: var(--rsa-ink-2); }
.rsa-q--lost:hover { background: var(--rsa-paper-2); }
.rsa-q--page { cursor: default; border-left-color: var(--rsa-rule-2); background: var(--rsa-paper-2); color: var(--rsa-ink-3); font-family: var(--rsa-sans); font-size: 13px; }
.rsa-q--page:hover { background: var(--rsa-paper-2); }
.rsa-lost { margin: -4px 0 8px; font-size: 12px; color: var(--rsa-ink-3); }
.rsa-sugg { margin: 0 0 6px; padding: 0; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rsa-sugg b { margin-right: 4px; font-size: 12.5px; color: var(--rsa-amber-ink); letter-spacing: .04em; }
.rsa-body { margin: 0 0 8px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--rsa-ink); }
.rsa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12.5px; color: var(--rsa-ink-3); }
.rsa-meta b { color: var(--rsa-ink-2); font-weight: 600; overflow-wrap: anywhere; }
.rsa-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; border: 1px solid rgba(35, 99, 58, .45); color: #23633a; font-size: 11.5px; font-weight: 600; line-height: 1; }
.rsa-badge--reg { border-color: rgba(76, 71, 63, .35); color: var(--rsa-ink-2); }
.rsa-meta .rsa-btn { margin-left: auto; }
.rsa-empty { margin: 18px 0 0; padding: 18px 16px; border: 1px dashed var(--rsa-rule-2); border-radius: 10px; color: var(--rsa-ink-2); font-size: 14px; text-align: center; }
.rsa-muted { margin: 18px 0; color: var(--rsa-ink-3); }
.rsa-down { margin: 8px 0 0; padding: 18px 16px; border: 1px solid var(--rsa-rule); border-radius: 10px; background: var(--rsa-paper-2); }
.rsa-down__h { margin: 0 0 6px; font: 700 15.5px/1.4 var(--rsa-sans); }
.rsa-down .rsa-btn { margin-top: 12px; }

/* 提交后的提示 */
.rsa-done { margin: 6px 0 0; padding: 18px 16px; border-radius: 10px; background: #f1f7ee; border: 1px solid rgba(35, 99, 58, .25); outline: none; }
.rsa-done--pending { background: #fff7e2; border-color: rgba(138, 79, 0, .25); }
.rsa-done--private { background: #eef2f7; border-color: rgba(59, 77, 99, .25); }
.rsa-done__h { margin: 0 0 6px; font: 700 16px/1.4 var(--rsa-sans); }
.rsa-done p { margin: 0 0 4px; }

@media (max-width: 640px) {
  .rsa-btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .rsa-btn--sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .rsa-x { width: 44px; height: 44px; }
  .rsa-input, .rsa-ta { font-size: 16px; }
  .rsa-input { height: 44px; }
  .rsa-chip span { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 20px; }
  .rsa-link { display: inline-flex; align-items: center; min-height: 40px; }
  .rsa-q { padding: 8px 10px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .rsa-fab, .rsa-sheet, .rsa-btn, .rsa-chip span { transition: none !important; }
  .rsa-selbtn, .rsa-backdrop, .rsa-item.is-pulse { animation: none !important; }
}
@media print {
  .rsa-fab, .rsa-selbtn, .rsa-sheet, .rsa-backdrop { display: none !important; }
}
