.shortcut-card {
  width: min(100%, 360px);
  margin: 14px auto 18px;
  padding: 14px 16px 4px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.shortcut-card .shortcut-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  text-align: left;
}
.shortcut-intro img { flex: none; }
.shortcut-intro p { margin: 0; }
.shortcut-card .shortcut-dismiss { min-height: 36px; font-size: 12px; }

.shortcut-dialog {
  width: min(440px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 18px 20px 20px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.shortcut-dialog::backdrop { background: #3d2b1f60; }
.shortcut-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shortcut-dialog header button { font-size: 24px; }
.shortcut-dialog ol { margin: 8px 0 14px; padding-inline-start: 1.5em; }
.shortcut-dialog li + li { margin-top: 8px; }
.shortcut-dialog .helper { margin: 8px 0; font-size: 13px; }
.shortcut-dialog input[hidden],
.shortcut-dialog [role="status"]:empty { display: none; }

.shortcut-wechat {
  position: fixed;
  inset: 0 0 auto auto;
  width: min(100%, 380px);
  max-height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) 20px;
  border: 0;
  color: #fff9ef;
  background: transparent;
}
.shortcut-wechat::backdrop { background: #15110ee6; }
.shortcut-wechat[data-shortcut-fallback] {
  z-index: 30;
  background: #27211d;
  box-shadow: 0 0 0 150vmax #15110ee6;
}
.shortcut-wechat-arrow {
  position: relative;
  width: 68px;
  height: 64px;
  margin-inline-start: auto;
  color: #ffc578;
}
.shortcut-wechat-arrow::before,
.shortcut-wechat-arrow::after {
  content: "";
  position: absolute;
}
.shortcut-wechat-arrow::before {
  top: 10px;
  right: 2px;
  width: 65px;
  height: 6px;
  border-radius: 6px;
  background: currentColor;
  transform: rotate(-47deg);
  transform-origin: right center;
}
.shortcut-wechat-arrow::after {
  top: 10px;
  right: 2px;
  width: 23px;
  height: 23px;
  border-top: 6px solid;
  border-right: 6px solid;
  border-radius: 3px;
}
.shortcut-wechat h2 { font-size: 25px; line-height: 1.35; }
.shortcut-wechat .shortcut-wechat-next {
  margin: 5px 0 0;
  color: #ffc578;
  font-size: 22px;
  font-weight: 700;
}
.shortcut-wechat .helper { color: #e6d9cb; }
.shortcut-wechat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shortcut-wechat-actions .button {
  min-height: 44px;
  color: #fff9ef;
  border-color: #fff9ef70;
  background: #fff9ef12;
}
.shortcut-wechat-actions .button:hover:not(:disabled) { background: #fff9ef25; }
.shortcut-wechat :focus-visible { outline-color: #ffc578; }
