/* ==========================================================================
   取件码小助手 · 移动端样式
   约定：所有输入控件字号 >= 16px —— iOS Safari 在 input 字号 < 16px 时聚焦会
   强制放大整个页面，体验很差，这条是硬要求。
   ========================================================================== */

:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --line: #e6e8ef;
  --text: #16181d;
  --muted: #6b7280;
  --faint: #9aa1ad;
  --primary: #2f6bff;
  --primary-soft: #eaf0ff;
  --danger: #e0453f;
  --danger-soft: #fdecec;
  --ok: #12a150;
  --warn: #ea7317;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.05);
  --tabbar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

.noscript {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.app {
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
}

.app.no-tabbar {
  padding-bottom: calc(var(--safe-b) + 16px);
}

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(var(--safe-t) + 12px) 16px 12px;
  background: rgba(244, 245, 249, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.topbar.bordered {
  border-bottom-color: var(--line);
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar h1 {
  flex: 1;
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.topbar .sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.topbar-back {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 17px;
  color: var(--text);
  cursor: pointer;
}

/* ---------------------------------------------------------------- 布局 */
.page {
  padding: 0 16px 8px;
}

.section {
  margin: 16px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.section-head .hint {
  flex: 1;
  font-size: 12px;
  color: var(--faint);
  text-align: right;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 10px;
}

.pad {
  padding: 14px;
}

.announce {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff8e6;
  color: #8a5a00;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

/* ---------------------------------------------------------------- 看板 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px 6px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.stat.is-primary b {
  color: var(--primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips.scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chips.scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.chip.tiny {
  padding: 3px 8px;
  font-size: 11.5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tag.code {
  background: var(--primary-soft);
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tag.nocode {
  background: #fff2e0;
  color: #a75c00;
}

.tag.done {
  background: #e8f7ee;
  color: var(--ok);
}

.tag.gray {
  background: #eef0f4;
  color: var(--muted);
}

/* ---------------------------------------------------------------- 快递卡片 */
.swipe {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.swipe + .swipe {
  margin-top: 9px;
}

.swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 1;
}

.swipe-actions .act {
  width: 78px;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.act.done {
  background: var(--ok);
}

.act.del {
  background: var(--danger);
}

.act.share {
  background: var(--primary);
}

.swipe-body {
  position: relative;
  z-index: 2;
  background: var(--surface);
  padding: 12px 14px;
  transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.swipe-body.dragging {
  transition: none;
}

.pc-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-main {
  flex: 1;
  min-width: 0;
}

.pc-station {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.pc-station .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.pc-station .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.15;
  word-break: break-all;
}

.pc-code.nocode {
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--warn);
}

.pc-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-note {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 5px 8px;
  word-break: break-word;
}

.pc-pick {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.6px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
  background: var(--surface);
}

.check.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------------------------------------------------------------- 表单 */
.field + .field {
  margin-top: 13px;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.label .opt {
  font-weight: 400;
  color: var(--faint);
  font-size: 11.5px;
  margin-left: 5px;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 11px 12px;
  font-size: 16px; /* 关键：不得小于 16px，否则 iOS 聚焦会放大页面 */
  font-family: inherit;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.input.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  padding: 14px 12px;
}

.field-hint {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.45;
}

.field-hint.err {
  color: var(--danger);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.switch-row .txt {
  flex: 1;
}

.switch-row .txt b {
  display: block;
  font-size: 14px;
}

.switch-row .txt span {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--faint);
}

.switch {
  position: relative;
  width: 46px;
  height: 27px;
  flex: none;
  border-radius: 999px;
  background: #d8dbe3;
  transition: background 0.18s;
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s;
}

.switch.on {
  background: var(--primary);
}

.switch.on::after {
  transform: translateX(19px);
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.06s;
}

.btn:active {
  transform: scale(0.985);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger);
}

.btn-ghost {
  background: transparent;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 7px 11px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-row {
  display: flex;
  gap: 9px;
}

.btn-row .btn {
  flex: 1;
}

.seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #e9ebf1;
  border-radius: 11px;
}

.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
}

.seg button.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.09);
}

/* ---------------------------------------------------------------- 列表行 */
.rows {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  cursor: pointer;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row .ic {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.row .tx {
  flex: 1;
  min-width: 0;
}

.row .tx b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 只作用于 .tx 的**直接子** span（副标题那一行）。
   早先写成 `.row .tx span`（不加 >），特异性 0,2,1 会压过 `.tag` 的 0,1,0，
   把嵌在 <b> 里的标签也强制成 display:block —— 表现是「管理员」「我」这类标签
   各自撑满一整行竖着堆起来。加了 > 之后标签恢复成行内小胶囊。 */
.row .tx > span {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .ar {
  flex: none;
  font-size: 12px;
  color: var(--faint);
}

.row.static {
  cursor: default;
}

/* ---------------------------------------------------------------- 空状态 */
.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--faint);
}

.empty .em {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.65;
}

.empty p {
  margin: 0 0 4px;
  font-size: 13.5px;
}

.empty .mini {
  font-size: 12px;
  color: var(--faint);
  opacity: 0.85;
}

/* ---------------------------------------------------------------- 底部 Tab */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}

.tabbar button {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}

.tabbar button .ti {
  font-size: 19px;
  line-height: 1;
  /* 原来是彩色 emoji，要靠 grayscale 滤镜压成单色；
     换成 Font Awesome 后图标本身就跟 currentColor（已是 --muted），
     所以滤镜全部去掉，未选中态只用透明度区分。 */
  opacity: 0.7;
}

.tabbar button.on {
  color: var(--primary);
  font-weight: 600;
}

.tabbar button.on .ti {
  opacity: 1;
}

.tabbar .dot-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ---------------------------------------------------------------- 操作条 */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-b));
  z-index: 35;
  display: flex;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.actionbar .btn {
  flex: 1;
  padding: 9px 8px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- 弹层 */
.layer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 28, 0.42);
  animation: fade 0.18s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  animation: slideUp 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
  padding-bottom: var(--safe-b);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  flex: none;
}

.sheet-head h3 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.sheet-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px;
}

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}

.dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100vw - 48px));
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 18px 14px;
  animation: pop 0.18s ease;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.97);
  }
}

.dialog h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 700;
}

.dialog p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
}

.dialog .acts {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.dialog .acts .btn {
  flex: 1;
}

/* ---------------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px);
  z-index: 90;
  transform: translateX(-50%);
  max-width: calc(100vw - 48px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.92);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
  animation: fade 0.16s ease;
  word-break: break-word;
}

.toast.ok {
  background: rgba(15, 122, 62, 0.95);
}

.toast.err {
  background: rgba(190, 45, 40, 0.95);
}

/* ---------------------------------------------------------------- 其它 */
.kv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.kv + .kv {
  border-top: 1px solid var(--line);
}

.kv .k {
  flex: none;
  width: 76px;
  font-size: 13px;
  color: var(--muted);
}

.kv .v {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  word-break: break-all;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
}

.token-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px dashed var(--line);
}

.token-box code {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  word-break: break-all;
  line-height: 1.5;
}

.steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
}

.steps li {
  margin-bottom: 6px;
}

.steps li::marker {
  color: var(--primary);
  font-weight: 700;
}

.steps code,
.tip code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.tip {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.spin {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot 0.7s linear infinite;
}

.spin.dark {
  border-color: rgba(47, 107, 255, 0.25);
  border-top-color: var(--primary);
}

@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 0;
  color: var(--faint);
  font-size: 13.5px;
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.nowrap {
  white-space: nowrap;
}

.right {
  text-align: right;
}

/* 登录页 */
.auth {
  min-height: 100vh;
  padding: calc(var(--safe-t) + 46px) 22px 30px;
  display: flex;
  flex-direction: column;
}

.auth-logo {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  background: linear-gradient(135deg, #2f6bff, #5b8cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  box-shadow: 0 8px 22px rgba(47, 107, 255, 0.28);
}

.auth h1 {
  margin: 18px 0 6px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.auth .lead {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.auth .form {
  flex: 1;
}

.auth .foot {
  margin-top: 20px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.6;
  text-align: center;
}

.link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

@media (min-width: 560px) {
  .page,
  .topbar,
  .actionbar {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .auth {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   追加组件
   ========================================================================== */

/* hidden 属性必须真的隐藏：类选择器里的 display 会盖掉浏览器默认的 [hidden] 规则 */
[hidden] {
  display: none !important;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.group-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.group-head em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--faint);
  margin-left: auto;
}

/* 非多选状态下的「⋯」占位 */
.check.plain {
  border-color: transparent;
  background: transparent;
  color: var(--faint);
  font-size: 16px;
  letter-spacing: 1px;
}

.actionbar.dense .btn {
  padding: 9px 4px;
  font-size: 12.5px;
  gap: 3px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-card .avatar {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f6bff, #5b8cff);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card .who {
  flex: 1;
  min-width: 0;
}

.profile-card .who b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card .who span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 卡片上的操作按钮在滑动露出后会盖住文字，给它一点内边距 */
.swipe-actions .act:first-child {
  border-radius: 0;
}
