:root {
  color-scheme: light;
  --bg: #f3fbff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(49, 128, 156, 0.16);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --blue: #58b9dc;
  --blue-hover: #45a9cd;
  --red: #ff3b30;
  --green: #8fd7c8;
  --coral: #ef4444;
  --coral-soft: #fff1f2;
  --shark-soft: #c9f3ff;
  --shark-mid: #86d6ef;
  --shark-deep: #58b9dc;
  --shadow: 0 28px 70px rgba(49, 128, 156, 0.13);
  --small-shadow: 0 10px 30px rgba(49, 128, 156, 0.1);
  --lift-shadow: 0 34px 90px rgba(49, 128, 156, 0.18);
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ip-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(88, 185, 220, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ip-filter select {
  min-width: 86px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  outline: none;
}

.creator-note-child td {
  padding: 12px 16px 18px;
  background: rgba(255, 251, 235, 0.72);
}

.creator-note-child.is-empty td {
  color: #9a6b12;
  font-weight: 800;
}

.creator-note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.creator-note-mini {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(205, 159, 55, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 219, 0.8));
}

.creator-note-mini b {
  color: #9a6b12;
  font-size: 12px;
}

.creator-note-mini span {
  color: #1d1d1f;
  font-weight: 900;
}

.creator-note-mini em {
  color: #7f6840;
  font-size: 12px;
  font-style: normal;
}

.creator-note-mini.average {
  background: linear-gradient(135deg, rgba(255, 232, 151, 0.84), rgba(255, 255, 255, 0.8));
}

.institution-seat-modal {
  border-color: rgba(205, 159, 55, 0.34);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 232, 151, 0.42), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 244, 0.98), rgba(255, 248, 225, 0.94));
  box-shadow: 0 38px 120px rgba(132, 85, 8, 0.28);
}

.institution-seat-confirm-body {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 24px 10px;
  text-align: center;
}

.seat-plus-orb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  color: #6a4300;
  background: radial-gradient(circle at 32% 28%, #fff8d9, #ffd76a 68%, #a56a00);
  box-shadow: 0 18px 44px rgba(132, 85, 8, 0.26);
  font-size: 42px;
  font-weight: 950;
  animation: premiumPulse 1.8s ease-in-out infinite;
}

.institution-gold-action,
body.institution-mode .primary,
body.institution-mode .email-login-button,
body.institution-mode .link-mode-group button.selected,
body.institution-mode .feedback-toggle,
body.institution-mode .export-hint.ready {
  background: linear-gradient(135deg, #805300, #d7a331);
  color: #fff;
  border-color: rgba(205, 159, 55, 0.38);
  box-shadow: 0 16px 38px rgba(132, 85, 8, 0.18);
}

body.institution-mode .price-card {
  border-color: rgba(205, 159, 55, 0.32);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 232, 151, 0.38), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 244, 0.96), rgba(255, 247, 219, 0.86));
}

.institution-old-price {
  margin-top: -8px;
  color: #9a6b12;
  font-size: 12px;
  font-weight: 900;
  text-decoration: line-through;
}

body.institution-mode {
  --line-strong: rgba(205, 159, 55, 0.22);
  --blue: #c28a18;
  --blue-hover: #9d6500;
  --shark-soft: #fff0bd;
  --shark-mid: #f2c55c;
  --shark-deep: #c28a18;
  --shadow: 0 28px 76px rgba(132, 85, 8, 0.15);
  --small-shadow: 0 10px 30px rgba(132, 85, 8, 0.11);
  --lift-shadow: 0 34px 90px rgba(132, 85, 8, 0.2);
  --brand: #c68a18;
  --brand-strong: #8a5800;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 232, 151, 0.48), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 215, 103, 0.34), transparent 34%),
    linear-gradient(180deg, #fffaf0, #fffdf7 54%, #fff8df);
}

body.institution-mode .robot-face,
body.institution-mode .feedback-robot {
  border-color: rgba(205, 159, 55, 0.28);
  background:
    url("/assets/dashayu-icon.svg?v=20260616-02") center / 128% no-repeat,
    linear-gradient(135deg, rgba(255, 253, 244, 0.94), rgba(255, 238, 171, 0.74));
}

body.institution-mode .site-footer,
body.institution-mode .ip-filter {
  border-color: rgba(205, 159, 55, 0.28);
  background: linear-gradient(135deg, rgba(255, 253, 244, 0.92), rgba(255, 242, 191, 0.58));
}

body.institution-mode th.preview-column,
body.institution-mode td.preview-column,
body.institution-mode .creator-start,
body.institution-mode .content-start {
  background: rgba(255, 248, 225, 0.92);
  box-shadow: 1px 0 0 rgba(205, 159, 55, 0.18);
}

body.institution-mode .table-wrap::-webkit-scrollbar-thumb,
body.institution-mode .modal-panel::-webkit-scrollbar-thumb {
  background: rgba(205, 159, 55, 0.42);
  background-clip: padding-box;
}

body.institution-mode .platform-switch,
body.institution-mode .top-platform-tabs,
body.institution-mode .link-mode-panel,
body.institution-mode .link-type-summary,
body.institution-mode .guide-bubble,
body.institution-mode .switch-account-panel,
body.institution-mode .quick-email-list,
body.institution-mode .device-bind-hint,
body.institution-mode .result-actions,
body.institution-mode .media-preview,
body.institution-mode .auth-flow-prompt {
  border-color: rgba(205, 159, 55, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 253, 244, 0.9), rgba(255, 242, 191, 0.64)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(132, 85, 8, 0.12);
}

body.institution-mode .ip-filter select,
body.institution-mode .result-actions select,
body.institution-mode .result-actions input,
body.institution-mode .export-format,
body.institution-mode .export-mode,
body.institution-mode .export-range,
body.institution-mode .ghost,
body.institution-mode .login-mode-tabs,
body.institution-mode .login-mode-tabs button,
body.institution-mode .upgrade-toast,
body.institution-mode .refund-toast {
  border-color: rgba(205, 159, 55, 0.24);
  color: #6a4300;
  background: rgba(255, 253, 244, 0.86);
}

body.institution-mode .upgrade-toast,
body.institution-mode .refund-toast {
  box-shadow: 0 24px 64px rgba(132, 85, 8, 0.2);
}

body.institution-mode .guide-bubble p,
body.institution-mode .link-type-summary,
body.institution-mode .quick-email-list > span,
body.institution-mode .switch-account-panel > span,
body.institution-mode .preview-placeholder {
  color: #7a4e00;
}

body.institution-mode .seo-summary,
body.institution-mode .link-draft-list,
body.institution-mode .file-drop,
body.institution-mode .paste-panel,
body.institution-mode .panel,
body.institution-mode .stats,
body.institution-mode .stat,
body.institution-mode .auth-card,
body.institution-mode .modal-panel {
  border-color: rgba(205, 159, 55, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 253, 244, 0.9), rgba(255, 247, 219, 0.68)),
    rgba(255, 255, 255, 0.74);
}

body.institution-mode .seo-summary span,
body.institution-mode .seo-keywords li,
body.institution-mode .status-success,
body.institution-mode .status.ready {
  color: #7a4e00;
}

body.institution-mode .seo-keywords li {
  border-color: rgba(205, 159, 55, 0.24);
  background: rgba(255, 238, 171, 0.56);
}

body.institution-mode .quick-buy-button,
body.institution-mode .email-domain-chips button,
body.institution-mode .quick-email-list button,
body.institution-mode .switch-account-panel button {
  color: #7a4e00;
  background: rgba(255, 238, 171, 0.72);
  box-shadow: inset 0 0 0 1px rgba(205, 159, 55, 0.22);
}

body.institution-mode .login-mode-tabs {
  background: rgba(255, 247, 219, 0.78);
}

body.institution-mode .login-mode-tabs button {
  color: #7a4e00;
}

body.institution-mode .login-mode-tabs button.selected {
  color: #5e3c00;
  background: linear-gradient(135deg, #fff5c8, #ffd66f);
  box-shadow: 0 10px 22px rgba(205, 159, 55, 0.18);
}

body.institution-mode .auth-flow-prompt button {
  background: linear-gradient(135deg, #c28a18, #8a5800);
}

body.institution-mode .modal-backdrop {
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.86), rgba(255, 242, 191, 0.66)),
    rgba(255, 250, 232, 0.72);
}

body.institution-mode .countdown-pill,
body.institution-mode .feedback-card,
body.institution-mode .feedback-type,
body.institution-mode .feedback-card textarea,
body.institution-mode .link-error-body,
body.institution-mode .media-preview,
body.institution-mode .draft-row,
body.institution-mode .link-draft-item {
  border-color: rgba(205, 159, 55, 0.24);
  color: #6a4300;
  background:
    linear-gradient(135deg, rgba(255, 253, 244, 0.94), rgba(255, 244, 204, 0.72)),
    rgba(255, 255, 255, 0.72);
}

body.institution-mode .refund-toast > span,
body.institution-mode .upgrade-avatar {
  color: #7a4e00;
  background: linear-gradient(135deg, rgba(255, 246, 210, 0.96), rgba(255, 218, 105, 0.62));
  box-shadow: 0 12px 28px rgba(205, 159, 55, 0.2);
}

body.institution-mode .feedback-card textarea:focus,
body.institution-mode .feedback-type:focus {
  background: #fffaf0;
  box-shadow: 0 0 0 4px rgba(205, 159, 55, 0.16);
}

body.institution-mode .link-mode-panel strong,
body.institution-mode .auth-step p.status-success {
  color: #7a4e00;
}

body.institution-mode .feedback-robot::before,
body.institution-mode .feedback-robot::after,
body.institution-mode .feedback-robot i {
  display: none;
}

@keyframes premiumPulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.05); filter: saturate(1.18); }
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 251, 255, 0) 34%),
    radial-gradient(ellipse at 50% -18%, rgba(255, 255, 255, 0.98), rgba(201, 243, 255, 0.34) 36%, rgba(243, 251, 255, 0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  opacity: 0.42;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.62), transparent 34%, rgba(201, 243, 255, 0.34) 72%, transparent),
    repeating-linear-gradient(90deg, rgba(88, 185, 220, 0.06) 0 1px, transparent 1px 88px);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  animation: atmosphereDrift 14s ease-in-out infinite alternate;
}

body::after {
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body.institution-mode {
  --panel: rgba(255, 252, 239, 0.78);
  --panel-solid: #fffdf5;
  --line-strong: rgba(180, 127, 28, 0.2);
  --shadow: 0 34px 90px rgba(159, 112, 23, 0.16);
  background:
    radial-gradient(circle at 16% -8%, rgba(255, 239, 179, 0.78), transparent 34%),
    radial-gradient(circle at 86% 2%, rgba(255, 251, 218, 0.9), transparent 32%),
    linear-gradient(180deg, #fffaf0 0%, #fffdf7 48%, #fff4d3 100%);
}

body.institution-mode::before {
  opacity: 0.55;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 30%, rgba(255, 220, 120, 0.28) 58%, transparent 78%),
    repeating-linear-gradient(90deg, rgba(201, 147, 42, 0.08) 0 1px, transparent 1px 92px);
}

::selection {
  color: #0f6179;
  background: rgba(201, 243, 255, 0.92);
}

button,
textarea,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms var(--spring), background 180ms ease, box-shadow 180ms ease, opacity 180ms ease, border-color 180ms ease, color 180ms ease;
  transform: translateZ(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(88, 185, 220, 0.17), 0 0 0 1px rgba(88, 185, 220, 0.38);
}

button:hover:not(:disabled),
.file-button:hover {
  transform: translateY(-1px);
}

button:active,
.file-button:active {
  transform: scale(0.98);
}

.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 42px 0 52px;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100vw - 40px));
  min-height: 66px;
  margin: 0 auto;
  padding: 10px 0;
  border-top: 3px solid var(--coral);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 16px 40px rgba(49, 128, 156, 0.08);
}

.global-nav::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 0;
  z-index: -1;
  width: 100vw;
  height: 100%;
  background: rgba(255, 255, 255, 0.86);
  transform: translateX(-50%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.global-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.global-logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(201, 243, 255, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(88, 185, 220, 0.2), 0 10px 22px rgba(88, 185, 220, 0.13);
}

.global-logo img {
  width: 112%;
  height: 112%;
  object-fit: contain;
}

.global-brand strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.global-links,
.global-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-links {
  justify-content: center;
  flex: 1 1 auto;
}

.global-links a,
.global-links button,
.console-link,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.global-links a:hover,
.global-links button:hover,
.console-link:hover,
.language-toggle:hover {
  color: var(--ink);
  background: rgba(201, 243, 255, 0.42);
}

.global-links a.is-active {
  color: var(--coral);
  background: var(--coral-soft);
}

.language-toggle {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.68);
}

.console-link {
  color: #287792;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff6b6b);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.22);
}

.nav-cta:hover {
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.28);
}

.usage-guide {
  display: grid;
  gap: 22px;
  scroll-margin-top: 132px;
  padding: 18px 0 2px;
}

.usage-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.usage-head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #c83232;
  background: rgba(255, 241, 242, 0.86);
  font-size: 12px;
  font-weight: 850;
}

.usage-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 880;
  line-height: 1.05;
}

.usage-head p {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.usage-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 204px;
  padding: 24px 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(49, 128, 156, 0.08);
  animation: usageCardIn 520ms var(--spring) both;
  animation-delay: calc(var(--step-index, 0) * 80ms);
  transition: transform 220ms var(--spring), box-shadow 220ms ease, border-color 220ms ease;
}

.usage-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 185, 220, 0.22);
  box-shadow: 0 28px 58px rgba(49, 128, 156, 0.13);
}

.usage-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -36% 34%;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 243, 255, 0.42), transparent 70%);
  transition: transform 260ms ease;
}

.usage-card:hover::after {
  transform: translateY(-10px) scale(1.14);
}

.usage-card b {
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(239, 68, 68, 0.12);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.usage-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 241, 242, 0.96);
}

.usage-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid var(--coral);
  border-radius: 50%;
}

.choose-icon::before {
  border-radius: 6px;
  transform: rotate(45deg);
}

.export-icon::before {
  width: 17px;
  height: 13px;
  border-radius: 4px;
  box-shadow: 5px -5px 0 -2px rgba(239, 68, 68, 0.34);
}

.usage-card h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.usage-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.usage-card button {
  justify-self: start;
  width: fit-content;
  min-height: 32px;
  padding: 0;
  color: var(--coral);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.usage-card button:hover {
  color: #d62828;
  background: transparent;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 38px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--soft);
  font-size: 13px;
}

.seo-summary {
  display: grid;
  gap: 14px;
  width: min(1120px, calc(100vw - 40px));
  margin: 18px auto 0;
  padding: 24px;
  border: 1px solid rgba(88, 185, 220, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(238, 251, 255, 0.64)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(49, 128, 156, 0.09);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.seo-summary span {
  color: #287792;
  font-size: 13px;
  font-weight: 850;
}

.seo-summary h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 900;
}

.seo-summary p {
  max-width: 920px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.seo-keywords li {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(88, 185, 220, 0.22);
  border-radius: 999px;
  color: #155d75;
  background: rgba(238, 251, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer strong {
  color: var(--muted);
  font-weight: 750;
}

.hot-page-shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hot-hero {
  display: grid;
  gap: 18px;
  padding: 42px;
  border: 1px solid rgba(88, 185, 220, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 251, 255, 0.72)),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  animation: workspaceReveal 520ms var(--spring) both;
}

.hot-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 6.6vw, 76px);
}

.hot-hero .usage-head {
  justify-items: start;
  text-align: left;
}

.hot-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-grid,
.hot-platforms {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.hot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hot-platforms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hot-card,
.hot-platform-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(49, 128, 156, 0.08);
  animation: usageCardIn 520ms var(--spring) both;
  transition: transform 220ms var(--spring), box-shadow 220ms ease, border-color 220ms ease;
}

.hot-card:hover,
.hot-platform-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 185, 220, 0.22);
  box-shadow: 0 28px 58px rgba(49, 128, 156, 0.13);
}

.hot-card span,
.hot-platform-card span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.hot-card h2,
.hot-platform-card h2 {
  font-size: 20px;
}

.hot-card p,
.hot-platform-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.workspace {
  display: grid;
  gap: 16px;
  animation: workspaceReveal 520ms var(--spring) both;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 4px 16px;
}

.topbar-main {
  display: grid;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 880px;
}

.site-brand {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--small-shadow);
  transition: transform 220ms var(--spring), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.site-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.72) 48%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0;
}

.site-brand:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 185, 220, 0.2);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(49, 128, 156, 0.14);
}

.site-brand:hover::after {
  opacity: 1;
  animation: surfaceSheen 900ms ease;
}

.site-logo-frame {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201, 243, 255, 0.9), rgba(134, 214, 239, 0.42));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 10px 24px rgba(88, 185, 220, 0.18);
}

.site-logo-frame::after {
  content: "";
  position: absolute;
  inset: 6px 8px auto 8px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  filter: blur(2px);
}

.site-logo-frame img {
  display: block;
  width: 112%;
  height: 112%;
  object-fit: contain;
}

.site-brand div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-brand strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 750;
}

.site-brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.platform-heading {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 850;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.brand-title-row {
  display: block;
}

.top-platform-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 12px;
  padding: 6px;
  border: 1px solid rgba(88, 185, 220, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--small-shadow);
}

.top-platform-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  transition: transform 180ms var(--spring), background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.top-platform-tabs button:hover {
  transform: translateY(-1px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.top-platform-tabs button.selected {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  box-shadow: 0 10px 22px rgba(88, 185, 220, 0.2);
}

.brand-app-icon,
.tab-app-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  user-select: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.brand-app-icon {
  display: none;
}

.tab-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 8px;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
}

.xhs-app-icon {
  background: linear-gradient(145deg, #ff2442, #e60023);
}

.douyin-app-icon {
  color: transparent;
  background: #050505 url("/assets/douyin-icon.svg") center / cover no-repeat;
}

.bilibili-app-icon {
  color: transparent;
  background: #ff3f87 url("/assets/bilibili-icon.svg") center / cover no-repeat;
}

.subtitle {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-primary,
.hero-secondary {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 850;
}

.hero-primary {
  min-height: 54px;
  padding: 0 24px;
  font-size: 16px;
  box-shadow: 0 18px 42px rgba(88, 185, 220, 0.26);
}

.guest-preview,
.onboarding-guide,
.capability-card,
.billing-cards article,
.explain-grid article,
.compliance-band {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.onboarding-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
}

.onboarding-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.onboarding-copy span,
.preview-copy-head span {
  color: #287792;
  font-size: 12px;
  font-weight: 900;
}

.onboarding-copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.onboarding-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.onboarding-steps span {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #155d75;
  background: rgba(238, 251, 255, 0.88);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.onboarding-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.guest-preview {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
}

.preview-copy,
.section-headline {
  display: grid;
  gap: 7px;
  align-content: start;
}

.preview-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-copy span,
.section-headline span,
.explain-grid span,
.billing-cards span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.preview-copy strong,
.section-headline strong,
.explain-grid strong,
.billing-cards strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.preview-copy p,
.explain-grid p,
.billing-cards p,
.compliance-band p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sample-table-wrap,
.capability-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.sample-table-wrap table,
.capability-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.sample-table-wrap th,
.sample-table-wrap td,
.capability-table-wrap th,
.capability-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}

.sample-table-wrap th,
.capability-table-wrap th {
  color: var(--muted);
  background: #f8fbfc;
  font-weight: 850;
}

.explain-grid,
.billing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.explain-grid article,
.billing-cards article {
  display: grid;
  gap: 9px;
  padding: 18px;
  border-radius: 20px;
}

.capability-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
}

.device-rule-note,
.purchase-rules {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(88, 185, 220, 0.22);
  border-radius: 16px;
  color: #287792;
  background: rgba(238, 251, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.file-import-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 24px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 185, 220, 0.22);
  border-radius: 14px;
  color: #287792;
  background: rgba(238, 251, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.file-import-status strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-import-status span {
  flex: 0 0 auto;
}

.purchase-rules {
  margin: 0 24px 16px;
  color: var(--muted);
}

.purchase-rules strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.compliance-band {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto 28px;
  padding: 16px 18px;
  border-radius: 20px;
}

.compliance-band strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

h2 {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 650;
}

.stat,
.panel,
.paywall,
.function-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow);
}

.function-switch {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
}

.platform-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(128px, 1fr));
  justify-self: center;
  width: min(100%, 620px);
  margin: 2px 0 -4px;
  padding: 7px;
  border: 1px solid rgba(88, 185, 220, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(231, 249, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(49, 128, 156, 0.13), inset 0 1px rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  animation: platformDockIn 560ms var(--spring) both;
}

.platform-tab {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 780;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms var(--spring);
}

.platform-tab::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 180ms ease;
}

.platform-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
}

.platform-tab:hover::before,
.platform-tab.selected::before {
  opacity: 1;
}

.platform-tab.selected {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(49, 128, 156, 0.16), inset 0 1px rgba(255, 255, 255, 0.94);
  animation: tabPop 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.platform-tab.selected .tab-app-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 10px 24px rgba(88, 185, 220, 0.24);
}

.function-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border-radius: 28px;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--small-shadow);
  transition: transform 240ms var(--spring), box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

.function-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), transparent 36%),
    linear-gradient(180deg, rgba(201, 243, 255, 0.28), transparent 62%);
  transition: opacity 240ms ease;
}

.function-card > * {
  position: relative;
  z-index: 1;
}

.function-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lift-shadow);
}

.function-card:hover::before,
.function-card.selected::before {
  opacity: 1;
}

.function-card span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.function-card strong {
  font-size: 22px;
  font-weight: 650;
}

.function-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.function-card.selected {
  border-color: rgba(88, 185, 220, 0.38);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 64px rgba(88, 185, 220, 0.16);
  animation: cardSettle 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.function-card.selected span {
  color: var(--blue);
}

.function-guide-toggle {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px 16px;
  border: 1px solid rgba(88, 185, 220, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(238, 251, 255, 0.92), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(49, 128, 156, 0.12), inset 0 1px rgba(255, 255, 255, 0.82);
  text-align: center;
}

.function-guide-copy {
  display: grid;
  gap: 5px;
}

.function-guide-copy span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.function-guide-copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
  font-weight: 800;
}

.function-guide-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.function-guide-actions {
  display: grid;
  gap: 7px;
}

.function-guide-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(88, 185, 220, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  transition: transform 180ms var(--spring), color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.function-guide-actions button:hover {
  transform: translateY(-1px);
  color: var(--ink);
  background: #fff;
}

.function-guide-actions button.selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  box-shadow: 0 10px 22px rgba(88, 185, 220, 0.2);
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: sectionIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.account-shell {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.account-entry {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--small-shadow);
}

.account-button:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(49, 128, 156, 0.14);
}

.quick-buy-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(88, 185, 220, 0.28);
  border-radius: 999px;
  color: #155d75;
  background: rgba(238, 251, 255, 0.9);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(88, 185, 220, 0.16);
}

.quick-buy-button:hover {
  background: rgba(217, 245, 255, 0.98);
}

.avatar-chip {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--shark-mid), var(--shark-deep));
  font-size: 15px;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.avatar-chip.has-image {
  color: transparent;
  background: #eefbff;
}

.avatar-chip img {
  display: block;
  width: 118%;
  height: 118%;
  object-fit: cover;
}

.avatar-chip.paid-avatar {
  box-shadow: 0 0 0 3px rgba(255, 229, 140, 0.76), 0 12px 28px rgba(88, 185, 220, 0.28);
  animation: paidAvatarPop 860ms ease;
}

.avatar-chip.institution-avatar {
  position: relative;
  box-shadow: 0 0 0 3px rgba(255, 229, 140, 0.9), 0 14px 32px rgba(190, 137, 30, 0.3);
}

.avatar-chip.institution-avatar::after {
  content: "♛";
  position: absolute;
  top: -8px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #6f4500;
  background: linear-gradient(135deg, #fff8cb, #d99f24);
  box-shadow: 0 8px 16px rgba(169, 114, 18, 0.22);
  font-size: 12px;
}

.large-avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.account-summary {
  display: grid;
  gap: 3px;
  min-width: 86px;
  text-align: left;
}

.account-summary span,
.account-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.account-summary strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  width: 372px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow);
  animation: popoverIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.account-popover.is-closing {
  pointer-events: none;
  animation: popoverOut 170ms ease both;
}

.account-state {
  display: grid;
  gap: 12px;
  align-content: center;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.switch-account-panel,
.quick-email-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(88, 185, 220, 0.2);
  border-radius: 16px;
  background: rgba(238, 251, 255, 0.58);
  animation: guideIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch-account-panel > span,
.quick-email-list > span {
  color: #287792;
  font-size: 12px;
  font-weight: 800;
}

.quick-email-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.switch-account-panel p {
  color: var(--muted);
  font-size: 13px;
}

.switch-account-panel button,
.quick-email-list button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #155d75;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(88, 185, 220, 0.16);
}

.switch-account-panel button {
  width: 100%;
}

.switch-account-panel button em {
  color: var(--soft);
  font-style: normal;
  font-weight: 700;
}

.switch-account-panel button:hover,
.quick-email-list button:hover {
  color: #0f6179;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(88, 185, 220, 0.34), 0 10px 22px rgba(88, 185, 220, 0.12);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-profile div {
  display: grid;
  gap: 4px;
}

.account-profile strong {
  font-size: 22px;
  line-height: 1;
}

.account-profile small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.account-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.1);
}

.account-detail-row strong {
  flex: 1;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.account-detail-row .tiny-button {
  min-width: 50px;
  min-height: 28px;
}

.invite-hero {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #58b9dc, #8fd7c8);
  text-align: left;
  box-shadow: 0 14px 30px rgba(88, 185, 220, 0.22);
}

.invite-hero span {
  font-size: 12px;
  font-weight: 650;
  opacity: 0.86;
}

.invite-hero strong {
  font-size: 15px;
  line-height: 1.35;
}

.referral-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(88, 185, 220, 0.12);
  text-align: left;
}

.referral-toggle span {
  color: #287792;
  font-size: 13px;
  font-weight: 800;
}

.referral-toggle strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.referral-panel {
  max-height: 190px;
  overflow: auto;
  border: 1px solid rgba(88, 185, 220, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.referral-panel table {
  min-width: 0;
  width: 100%;
}

.referral-panel th,
.referral-panel td {
  padding: 10px 12px;
  font-size: 12px;
}

.referral-panel th {
  position: sticky;
  top: 0;
  color: #287792;
  background: rgba(238, 251, 255, 0.94);
}

.referral-panel td:first-child {
  display: grid;
  gap: 2px;
  min-width: 128px;
}

.referral-panel td strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.referral-panel td span {
  color: var(--muted);
  font-size: 11px;
}

.purchase-history,
.search-history {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(118, 118, 128, 0.08);
}

.result-history {
  margin: 14px;
  background: rgba(201, 243, 255, 0.24);
}

.purchase-history-head,
.purchase-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.purchase-history-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.purchase-history-head strong {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.tiny-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.purchase-history-list {
  display: grid;
  gap: 7px;
  max-height: 156px;
  overflow: auto;
}

.purchase-history-list p,
.search-history-list p {
  color: var(--muted);
  font-size: 13px;
}

.search-history-list {
  display: grid;
  gap: 7px;
}

.search-history-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.search-history-record:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 185, 220, 0.22);
  background: #fff;
  box-shadow: 0 10px 22px rgba(88, 185, 220, 0.1);
}

.search-history-record div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-history-record strong,
.search-history-record span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-history-record strong {
  color: var(--ink);
  font-size: 13px;
}

.search-history-record span,
.search-history-record b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.search-history-record em {
  grid-column: 1 / -1;
  color: #287792;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.purchase-record {
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.purchase-record:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 22px rgba(88, 185, 220, 0.1);
}

.purchase-record div {
  display: grid;
  gap: 3px;
}

.purchase-record strong {
  color: var(--ink);
  font-size: 13px;
}

.purchase-record span {
  color: var(--muted);
  font-size: 12px;
}

.purchase-record b {
  color: var(--blue);
  font-size: 13px;
}

.logout-button {
  min-height: 36px;
  border-radius: 999px;
  color: #c21f17;
  background: rgba(255, 59, 48, 0.1);
  font-size: 13px;
  font-weight: 650;
}

.account-state > span,
.account-profile div > span,
.account-detail-row span,
.stat span,
.panel p,
.paywall p {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  border-radius: 28px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.panel:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--lift-shadow);
}

.domain-nudge {
  display: none;
  justify-content: flex-end;
  width: min(100%, 560px);
  max-width: calc(100vw - 48px);
  text-align: right;
  pointer-events: none;
}

.domain-nudge b {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 2px 7px;
  color: transparent;
  background: linear-gradient(105deg, #126983 0%, #1b8aa6 48%, #55bbd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "HanziPen SC", "Kaiti SC", "STKaiti", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
  filter: drop-shadow(0 14px 20px rgba(88, 185, 220, 0.16));
}

.domain-nudge b::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 88%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 185, 220, 0), rgba(88, 185, 220, 0.28), rgba(88, 185, 220, 0));
  transform: skewX(-16deg);
  opacity: 0.86;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-head div {
  display: grid;
  gap: 6px;
}

.result-actions {
  position: sticky;
  top: 72px;
  z-index: 4;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px !important;
  flex-wrap: wrap;
  max-width: min(100%, 780px);
  padding: 8px;
  border: 1px solid rgba(88, 185, 220, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(230, 249, 255, 0.58)),
    rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 34px rgba(88, 185, 220, 0.1);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.result-actions.export-ready {
  border-color: rgba(88, 185, 220, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 42px rgba(88, 185, 220, 0.18);
  animation: exportReadyPulse 820ms var(--spring);
}

.result-actions.export-ready .export-button:not(:disabled) {
  animation: exportButtonReady 1300ms ease-in-out 2;
}

.cancel-collect-button {
  color: #c21f17;
  background: rgba(255, 59, 48, 0.1);
}

.column-toggle-panel {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(238, 251, 255, 0.72);
}

.column-toggle-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.column-toggle-panel label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #155d75;
  font-size: 12px;
  font-weight: 850;
}

body.institution-mode .result-actions.export-ready {
  border-color: rgba(205, 159, 55, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 42px rgba(132, 85, 8, 0.16);
}

.robot-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: min(520px, 100%);
  margin-top: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(88, 185, 220, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(88, 185, 220, 0.1);
}

.robot-message p {
  color: #287792;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.robot-message.working .robot-face {
  animation: sharkNod 980ms ease-in-out infinite;
}

.robot-message.warning {
  border-color: rgba(255, 149, 0, 0.28);
  background: rgba(255, 250, 235, 0.86);
}

.robot-message.warning p {
  color: #966200;
}

.robot-message.success {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(242, 255, 246, 0.86);
}

.robot-message.success p {
  color: #16833a;
}

.robot-message.success .robot-face {
  animation: sharkPop 620ms ease;
}

.robot-message.talk {
  animation: robotTalk 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.export-hint,
.export-format,
.export-mode,
.export-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.export-hint {
  color: #287792;
  background: rgba(232, 249, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.export-hint::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(88, 185, 220, 0.72);
  box-shadow: 0 0 0 5px rgba(88, 185, 220, 0.12);
}

.export-hint.ready {
  color: #0f7694;
  background: rgba(221, 248, 255, 0.98);
  box-shadow: 0 10px 22px rgba(88, 185, 220, 0.14);
}

.export-hint.ready::before {
  background: #34c759;
  box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.14);
}

.export-format {
  border-color: rgba(88, 185, 220, 0.3);
  background: rgba(255, 255, 255, 0.84);
}

.export-format select,
.export-mode select {
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 25px 0 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font: inherit;
}

.export-button {
  min-height: 38px;
  padding: 0 17px;
  border-color: rgba(88, 185, 220, 0.36);
  color: #176d88;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(229, 249, 255, 0.9)),
    rgba(255, 255, 255, 0.86);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(88, 185, 220, 0.14);
}

.export-button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(88, 185, 220, 0.55);
  box-shadow: 0 16px 32px rgba(88, 185, 220, 0.24);
}

.export-button:disabled {
  opacity: 0.54;
}

.export-range input {
  width: 68px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--ink);
  background: #fff;
  outline: none;
  text-align: center;
}

.export-range input:disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.export-range em {
  font-style: normal;
}

.sort-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
}

.sort-head span {
  color: var(--blue);
  font-size: 11px;
}

.sort-head.active {
  color: #176d88;
}

.sort-head:hover span,
.sort-head.active span {
  animation: sortTick 520ms var(--spring);
}

body.institution-mode .sort-head.active {
  color: #7a4e00;
}

body.institution-mode .sort-head span {
  color: #b57b10;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: #277a97;
  background: rgba(88, 185, 220, 0.14);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

body.is-working .countdown-pill {
  animation: softPulse 1200ms ease-in-out infinite;
}

.import-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.file-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(118, 118, 128, 0.12);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms var(--spring), background 180ms ease, box-shadow 180ms ease;
}

.file-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.44) 48%, transparent 74%);
  transform: translateX(-120%);
  opacity: 0;
}

.file-button:hover::after {
  opacity: 1;
  animation: surfaceSheen 820ms ease;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.spec-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(238, 251, 255, 0.36)),
    rgba(255, 255, 255, 0.34);
}

.spec-card p {
  max-width: 620px;
  margin-top: 6px;
  line-height: 1.55;
}

.spec-label {
  display: inline-flex;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.spec-example {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 200ms var(--spring), border-color 200ms ease, box-shadow 200ms ease;
}

.spec-example:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 185, 220, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 26px rgba(88, 185, 220, 0.1);
}

.spec-example span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-mode-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 59, 48, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 246, 246, 0.9), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.36);
  box-shadow: 0 18px 40px rgba(239, 45, 71, 0.08);
}

.mode-under-functions {
  margin: -8px 0 18px;
}

.link-mode-panel > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.link-mode-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.link-mode-panel strong {
  color: #b51d33;
  font-size: 13px;
  line-height: 1.45;
}

.link-mode-group {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 59, 48, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.link-mode-group button {
  min-width: 116px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: #c42038;
  background: transparent;
  font-size: 15px;
  font-weight: 950;
  transition: transform 180ms var(--spring), background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.link-mode-group button:hover {
  transform: translateY(-1px);
  background: rgba(255, 240, 242, 0.94);
}

.link-mode-group button.selected {
  color: #fff;
  background: linear-gradient(135deg, #ff4a5f, #e51d3b);
  box-shadow: 0 12px 24px rgba(239, 45, 71, 0.28);
  animation: filterPop 220ms ease both;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 190px;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.search-form label {
  display: grid;
  gap: 8px;
  transition: transform 180ms var(--spring);
}

.search-form label:focus-within {
  transform: translateY(-1px);
}

.search-form label span,
.search-note span,
.toggle-option span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.search-form input,
.search-form select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms var(--spring);
}

.search-form input:focus,
.search-form select:focus {
  border-color: rgba(88, 185, 220, 0.36);
  box-shadow: 0 0 0 4px rgba(88, 185, 220, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.search-filters {
  display: grid;
  gap: 14px;
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 251, 255, 0.42)),
    rgba(255, 255, 255, 0.34);
}

.search-filters.filters-ready {
  animation: filterPanelIn 360ms ease both;
}

.filter-group {
  display: grid;
  gap: 9px;
}

.filter-group > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-segmented button {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  color: #287792;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(49, 128, 156, 0.06);
  font-size: 13px;
  font-weight: 750;
  transition: transform 180ms var(--spring), background 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-segmented button:hover {
  transform: translateY(-2px);
  background: rgba(238, 251, 255, 0.95);
  box-shadow: 0 12px 26px rgba(49, 128, 156, 0.1);
}

.filter-segmented button.selected {
  color: #fff;
  border-color: rgba(88, 185, 220, 0.44);
  background: linear-gradient(135deg, var(--shark-deep), #287792);
  box-shadow: 0 14px 30px rgba(88, 185, 220, 0.22);
  animation: filterPop 240ms ease both;
}

.filter-segmented button.selected::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.search-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 24px 20px;
}

.search-note p,
.cost-note p {
  line-height: 1.5;
}

.cost-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 24px 20px;
}

.cost-note .toggle-option {
  margin-left: auto;
  white-space: nowrap;
}

.cost-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

textarea {
  display: block;
  width: 100%;
  min-height: 204px;
  padding: 22px 24px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font-size: 15px;
}

textarea::placeholder {
  color: #a1a1a6;
}

textarea:focus {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 2px rgba(88, 185, 220, 0.2);
}

.guide-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 24px 0;
  padding: 12px 14px;
  border: 1px solid rgba(88, 185, 220, 0.24);
  border-radius: 18px;
  background: rgba(238, 251, 255, 0.82);
  box-shadow: 0 16px 34px rgba(88, 185, 220, 0.12);
  animation: guideIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.guide-avatar,
.robot-face {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: transparent;
  background:
    url("/assets/dashayu-icon.svg?v=20260616-02") center / 128% no-repeat,
    linear-gradient(145deg, #ffffff, rgba(201, 243, 255, 0.84));
  box-shadow: inset 0 0 0 1px rgba(88, 185, 220, 0.22), 0 8px 18px rgba(88, 185, 220, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.guide-bubble p {
  flex: 1;
  min-width: 0;
  color: #287792;
  font-size: 13px;
  line-height: 1.5;
}

.guide-bubble .tiny-button {
  background: rgba(255, 255, 255, 0.86);
}

.link-type-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 24px 0;
  padding: 10px 12px;
  border: 1px solid rgba(88, 185, 220, 0.2);
  border-radius: 16px;
  color: #287792;
  background: rgba(238, 251, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
  animation: guideIn 280ms ease both;
}

.link-type-summary strong {
  color: var(--ink);
  font-weight: 900;
}

.link-type-summary span,
.link-type-summary em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-style: normal;
  font-weight: 800;
}

.link-type-summary.is-warning {
  color: #9a4b00;
  border-color: rgba(255, 149, 0, 0.24);
  background: rgba(255, 247, 225, 0.9);
}

.link-type-summary.is-warning em {
  color: #fff;
  background: linear-gradient(135deg, #ff9500, #ff6b35);
}

.link-input-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.link-input-workbench.has-draft {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 340px);
}

.link-input-main {
  min-width: 0;
}

.link-input-main textarea {
  min-height: 228px;
  border-bottom: 0;
}

.link-draft-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-left: 1px solid rgba(88, 185, 220, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(232, 249, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  animation: draftRowIn 240ms ease both;
}

.link-draft-panel.hidden {
  display: none;
}

.link-draft-head {
  display: grid;
  gap: 5px;
}

.link-draft-head span {
  color: #287792;
  font-size: 12px;
  font-weight: 900;
}

.link-draft-head strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.link-draft-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.link-draft-actions,
.link-draft-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-draft-actions .small-button,
.link-draft-row-actions button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.link-draft-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.link-draft-row {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(88, 185, 220, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 22px rgba(88, 185, 220, 0.08);
  animation: draftRowIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.link-draft-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.link-draft-platform,
.link-draft-preview,
.link-draft-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.link-draft-platform {
  color: #155d75;
  background: rgba(238, 251, 255, 0.92);
}

.link-draft-preview {
  color: #137b99;
  background: linear-gradient(135deg, rgba(233, 250, 255, 0.94), rgba(214, 244, 253, 0.72));
}

.link-draft-index {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
}

.link-draft-url {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-draft-detail {
  color: #287792;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.link-draft-edit {
  width: 100%;
  min-height: 66px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid rgba(88, 185, 220, 0.18);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.45;
}

.link-draft-edit:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(88, 185, 220, 0.12);
}

.link-draft-save,
.link-draft-delete,
.link-draft-reason {
  border: 0;
  color: #287792;
  background: rgba(238, 251, 255, 0.9);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.link-draft-save {
  color: #fff;
  background: linear-gradient(135deg, #3eb7dd, #2d9cc2);
}

.link-draft-delete:hover,
.link-draft-reason:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff5b5b, #ff3355);
  transform: translateY(-1px);
}

.link-draft-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(88, 185, 220, 0.2);
}

.link-draft-reason {
  color: #9a4b00;
  background: rgba(255, 244, 214, 0.94);
}

.link-draft-row.is-error {
  border-color: rgba(255, 59, 48, 0.24);
  background: rgba(255, 246, 246, 0.9);
}

.link-draft-row.is-conflict {
  border-color: rgba(255, 149, 0, 0.26);
  background: rgba(255, 248, 231, 0.9);
}

.link-draft-row.is-ready {
  border-color: rgba(52, 199, 89, 0.22);
}

.link-draft-row.is-waiting {
  opacity: 0.78;
}

.link-draft-row.is-error .link-draft-preview,
.link-draft-row.is-error .link-draft-detail {
  color: #d92d20;
  background: rgba(255, 231, 231, 0.95);
}

.link-draft-row.is-conflict .link-draft-preview {
  color: #9a4b00;
  background: rgba(255, 244, 214, 0.94);
}

@keyframes draftRowIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 20px;
}

.input-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.toggle-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.super-option {
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(255, 59, 48, 0.28);
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.96), rgba(239, 45, 71, 0.92));
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 45, 71, 0.22);
  cursor: pointer;
  transition: transform 180ms var(--spring), box-shadow 180ms ease, filter 180ms ease;
}

.super-option span {
  color: #fff;
  font-weight: 800;
}

.super-option input {
  accent-color: #fff;
}

.super-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(239, 45, 71, 0.3);
  filter: saturate(1.06);
}

.super-option.checked,
.super-option:has(input:checked) {
  background: linear-gradient(135deg, #ff2442, #d81938);
  box-shadow: 0 18px 42px rgba(216, 25, 56, 0.36);
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
}

.counter span:first-child {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
}

.button-row {
  display: flex;
  gap: 10px;
}

.collect-cta-stack {
  display: grid;
  gap: 7px;
  justify-items: end;
  min-width: min(100%, 310px);
}

.action-disabled-reason {
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 180, 66, 0.32);
  border-radius: 12px;
  color: #8a5a00;
  background: rgba(255, 247, 226, 0.92);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

#runButton,
#searchButton {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(88, 185, 220, 0.28);
}

.primary,
.ghost,
.dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.small-button {
  min-height: 32px;
  padding: 0 13px;
  font-size: 13px;
}

.icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #43a8cd);
  box-shadow: 0 10px 20px rgba(88, 185, 220, 0.26);
  position: relative;
  overflow: hidden;
}

.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 42%, transparent 72%);
  transform: translateX(-120%);
  opacity: 0;
}

.primary:hover {
  background: linear-gradient(135deg, var(--blue-hover), #2f98bd);
  box-shadow: 0 16px 34px rgba(88, 185, 220, 0.3);
}

.primary:hover::before {
  opacity: 1;
  animation: surfaceSheen 820ms ease;
}

.primary.copied,
.ghost.copied {
  color: #155d75;
  background: rgba(201, 243, 255, 0.92);
  box-shadow: 0 10px 24px rgba(88, 185, 220, 0.18);
}

.primary:disabled,
.ghost:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 42%, transparent 72%);
  transform: translateX(-120%);
  animation: buttonShine 1100ms linear infinite;
}

.ghost {
  color: var(--ink);
  background: rgba(118, 118, 128, 0.12);
  border: 1px solid var(--line);
}

.ghost.needs-clear {
  color: #fff;
  border-color: rgba(255, 149, 0, 0.42);
  background: linear-gradient(135deg, #ffb84d, #ff7a2f);
  box-shadow: 0 16px 36px rgba(255, 122, 47, 0.28);
  animation: clearNudge 1500ms ease-in-out infinite;
}

.ghost.needs-clear::after {
  content: "下一次";
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #9a4b00;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.ghost:hover,
.dark:hover,
.file-button:hover {
  background: rgba(118, 118, 128, 0.18);
}

.dark {
  color: var(--ink);
  background: rgba(118, 118, 128, 0.12);
}

.paywall {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 24px;
  border-color: rgba(255, 59, 48, 0.22);
  background: rgba(255, 245, 245, 0.76);
}

.paywall div {
  display: grid;
  gap: 6px;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(245, 250, 252, 0.84), rgba(232, 247, 252, 0.66)),
    rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  animation: backdropIn 220ms ease both;
}

.modal-backdrop.is-closing {
  pointer-events: none;
  animation: backdropOut 190ms ease both;
}

.modal-panel {
  width: min(560px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 36px 110px rgba(49, 128, 156, 0.22);
  animation: modalIn 260ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transform-origin: center 54%;
  overscroll-behavior: contain;
}

.modal-panel::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.purchase-history-list::-webkit-scrollbar,
.referral-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal-panel::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.purchase-history-list::-webkit-scrollbar-thumb,
.referral-panel::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(88, 185, 220, 0.34);
  background-clip: padding-box;
}

.modal-panel.is-closing {
  animation: modalOut 190ms ease both;
}

.wide-modal {
  width: min(980px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head div {
  display: grid;
  gap: 7px;
}

.login-brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.compact-logo {
  width: 54px;
  height: 54px;
}

.login-grid,
.invite-box {
  display: grid;
  gap: 14px;
}

.login-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 22px 24px 24px;
}

.auth-step {
  position: relative;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.auth-step.verified {
  border-color: rgba(52, 199, 89, 0.42);
  background: rgba(240, 255, 245, 0.78);
}

.auth-step-head {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.auth-step-head span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.auth-step-head strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
}

.auth-step p {
  min-height: 20px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-step p.status-success {
  color: #287792;
  font-weight: 700;
}

.auth-step p.status-error {
  color: #c21f17;
  font-weight: 700;
}

.auth-step.quick-only-mode #emailLoginPane > label.invite-inline,
.auth-step.quick-only-mode .email-domain-chips,
.auth-step.quick-only-mode .code-row,
.auth-step.quick-only-mode #inviteCodeField,
.auth-step.quick-only-mode #emailLoginButton,
.auth-step.quick-only-mode .auth-flow-prompt {
  display: none;
}

.auth-step.quick-only-mode .quick-email-list {
  padding: 14px;
  border-radius: 20px;
}

.auth-step.quick-only-mode .quick-email-list button {
  min-height: 46px;
  padding: 0 16px;
  font-size: 14px;
}

.invite-inline,
.invite-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.email-domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.email-domain-chips button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #287792;
  background: rgba(88, 185, 220, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.email-domain-chips button:hover {
  background: rgba(88, 185, 220, 0.2);
}

.device-bind-hint {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 185, 220, 0.22);
  border-radius: 16px;
  color: #287792;
  background: rgba(88, 185, 220, 0.1);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.device-bind-hint.is-full {
  border-color: rgba(255, 59, 48, 0.22);
  color: #c21f17;
  background: rgba(255, 59, 48, 0.08);
}

.invite-inline span,
.invite-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.invite-inline input,
.invite-box input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.invite-inline input.is-locked {
  border-color: rgba(88, 185, 220, 0.34);
  color: #287792;
  background: linear-gradient(180deg, rgba(236, 250, 255, 0.9), rgba(255, 255, 255, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86);
  cursor: default;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  align-items: end;
}

.code-row .invite-inline {
  margin-bottom: 14px;
}

.code-button {
  min-height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
}

.code-button.is-cooling {
  color: #287792;
  background: rgba(88, 185, 220, 0.12);
  box-shadow: inset 0 0 0 1px rgba(88, 185, 220, 0.14);
}

.email-login-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #58b9dc, #1d1d1f);
  font-weight: 650;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 24px 20px;
}

.balance-alert {
  margin: 12px 24px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 59, 48, 0.22);
  border-radius: 18px;
  color: #c21f17;
  background: rgba(255, 59, 48, 0.08);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.price-card {
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  animation: priceCardIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 32ms);
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 185, 220, 0.32);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(88, 185, 220, 0.14);
}

.price-card:active {
  transform: translateY(-1px) scale(0.985);
}

.price-card:hover .price-card-head > b,
.price-card:hover .institution-badge {
  animation: badgeGleam 780ms ease;
}

.price-card.featured {
  border-color: rgba(88, 185, 220, 0.42);
  box-shadow: 0 18px 44px rgba(88, 185, 220, 0.18);
}

.price-card.institution-price-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(205, 159, 55, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 253, 244, 0.96), rgba(255, 244, 201, 0.86) 52%, rgba(255, 236, 165, 0.78)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 52px rgba(132, 85, 8, 0.18);
}

.price-card.institution-price-card::after {
  content: "";
  position: absolute;
  inset: -45% -35% auto auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 219, 112, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.price-card.institution-price-card:hover {
  border-color: rgba(205, 159, 55, 0.62);
  box-shadow: 0 26px 60px rgba(132, 85, 8, 0.24);
}

.price-card strong {
  font-size: 28px;
  line-height: 1;
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-card-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.discount-badge,
.price-card-head > b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #287792;
  background: rgba(88, 185, 220, 0.14);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.discount-badge.active,
.price-card-head .discount-badge {
  color: #8a5a00;
  background: linear-gradient(135deg, #fff2b8, #ffd36a);
  box-shadow: 0 8px 20px rgba(216, 169, 60, 0.2);
}

.institution-badge,
.price-card-head .institution-badge {
  color: #6a4300;
  background: linear-gradient(135deg, #fff0b8, #d7a331);
  box-shadow: 0 10px 26px rgba(205, 159, 55, 0.24);
}

.discount-pop {
  animation: discountPop 620ms ease;
}

.price-card p b {
  color: var(--ink);
  font-size: 16px;
}

.price-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-card .institution-plan-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(205, 159, 55, 0.22);
  border-radius: 14px;
  color: #6a4300;
  background: rgba(255, 245, 205, 0.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.price-card em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.purchase-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px 0;
}

.purchase-guide div,
.custom-amount-panel {
  border: 1px solid rgba(88, 185, 220, 0.22);
  border-radius: 20px;
  background: rgba(238, 251, 255, 0.72);
}

.purchase-guide div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.purchase-guide span,
.custom-amount-head span,
.custom-amount-body label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.purchase-guide strong {
  color: var(--ink);
  font-size: 17px;
}

.custom-amount-panel {
  display: grid;
  gap: 18px;
  margin: 0 24px 24px;
  padding: 20px;
  border-width: 2px;
  box-shadow: 0 18px 48px rgba(88, 185, 220, 0.12);
}

.custom-amount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.custom-amount-head div {
  display: grid;
  gap: 5px;
}

.custom-amount-head strong {
  font-size: 21px;
}

.custom-amount-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: stretch;
}

.custom-amount-body label {
  display: grid;
  gap: 7px;
}

.custom-amount-body input {
  width: 100%;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.custom-amount-body input.is-invalid {
  border-color: rgba(255, 149, 0, 0.45);
  background: rgba(255, 250, 235, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.1);
}

.custom-amount-summary {
  min-height: 60px;
  padding: 13px 16px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.custom-amount-summary.is-error {
  color: #966200;
  background: rgba(255, 250, 235, 0.92);
}

.custom-amount-summary.institution-summary {
  color: #6a4300;
  background:
    linear-gradient(135deg, rgba(255, 253, 244, 0.95), rgba(255, 242, 191, 0.9)),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(205, 159, 55, 0.18);
}

.custom-amount-summary strong {
  color: var(--ink);
  font-size: 19px;
}

.custom-amount-body #customPurchaseButton {
  min-height: 60px;
  padding: 0 24px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(88, 185, 220, 0.2);
}

body.institution-mode .custom-amount-body #customPurchaseButton {
  color: #fff9df;
  background: linear-gradient(135deg, #7d5300, #b68112 54%, #d8aa35);
  box-shadow: 0 18px 38px rgba(150, 101, 7, 0.28);
}

.institution-custom-saving {
  display: block;
  margin: 4px 0 2px;
  color: #9a6b12;
  font-style: normal;
  font-weight: 900;
}

.institution-account {
  position: relative;
  border-color: rgba(214, 157, 45, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 210, 0.9)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(173, 122, 28, 0.18);
}

.institution-account::after {
  content: "♛";
  position: absolute;
  top: -10px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #7a4e00;
  background: linear-gradient(135deg, #fff6c7, #e5b547);
  box-shadow: 0 12px 24px rgba(190, 137, 30, 0.2);
  font-size: 14px;
}

.institution-popover {
  border-color: rgba(205, 159, 55, 0.24);
  box-shadow: 0 26px 70px rgba(173, 122, 28, 0.18);
}

.institution-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(205, 159, 55, 0.25);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 225, 0.94), rgba(235, 251, 255, 0.82)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(173, 122, 28, 0.12);
}

.institution-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.institution-panel span {
  color: #7a4e00;
  font-size: 13px;
  font-weight: 900;
}

.institution-panel strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: #8a5a00;
  background: linear-gradient(135deg, #fff2b8, #ffd36a);
  font-size: 12px;
}

.institution-panel p {
  color: #7f6840;
  font-size: 12px;
  line-height: 1.45;
}

.institution-jump-button {
  min-height: 34px;
  border-radius: 12px;
  color: #5e3c00;
  background: linear-gradient(135deg, #fff3bb, #f1bd4d);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(190, 137, 30, 0.16);
}

.institution-dashboard {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0 0 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(205, 159, 55, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 235, 160, 0.56), transparent 36%),
    linear-gradient(135deg, rgba(255, 254, 247, 0.96), rgba(255, 245, 210, 0.82) 54%, rgba(255, 236, 174, 0.72)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 92px rgba(159, 112, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  animation: premiumRise 0.7s var(--spring) both;
}

.institution-dashboard.hidden {
  display: none;
}

.institution-dashboard::before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 218, 105, 0.34), transparent 68%);
  animation: goldFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.institution-dashboard-hero,
.institution-kpi-grid,
.institution-admin-layout {
  position: relative;
  z-index: 1;
}

.institution-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.institution-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.institution-crown-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ca, #f8c95d);
  box-shadow: 0 22px 46px rgba(190, 137, 30, 0.22);
}

.institution-crown-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  object-fit: cover;
  background: #fff;
}

.institution-crown-avatar span {
  position: absolute;
  top: -13px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #6f4500;
  background: linear-gradient(135deg, #fff8cb, #d99f24);
  box-shadow: 0 14px 26px rgba(169, 114, 18, 0.22);
}

.institution-eyebrow {
  color: #9a6b12;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.institution-dashboard h2 {
  margin: 4px 0 7px;
  font-size: 30px;
  line-height: 1.1;
}

.institution-dashboard p {
  margin: 0;
  color: #7f6840;
  font-size: 14px;
}

.institution-seat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 154px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, #1d1d1f, #7a4e00 48%, #d39d2d);
  box-shadow: 0 18px 42px rgba(132, 85, 8, 0.24);
  transition: transform 0.22s var(--spring), box-shadow 0.22s var(--spring), filter 0.22s var(--spring);
}

.institution-seat-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 24px 54px rgba(132, 85, 8, 0.3);
}

.institution-seat-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.institution-seat-button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #5e3c00;
  background: #fff4bf;
  font-size: 22px;
  font-weight: 900;
}

.institution-seat-button strong {
  font-size: 14px;
}

.institution-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.institution-kpi-grid article,
.institution-admin-card {
  border: 1px solid rgba(205, 159, 55, 0.2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(159, 112, 23, 0.1);
}

.institution-kpi-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 20px;
}

.institution-kpi-grid span,
.institution-kpi-grid em {
  color: #8a744c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.institution-kpi-grid strong {
  color: #1d1d1f;
  font-size: 24px;
  line-height: 1.08;
}

.institution-admin-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
}

.institution-admin-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
}

.institution-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.institution-card-head div {
  display: grid;
  gap: 4px;
}

.institution-card-head span {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 950;
}

.institution-card-head strong {
  color: #7f6840;
  font-size: 13px;
}

.institution-card-head b {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7a4e00;
  background: rgba(255, 232, 151, 0.78);
  font-size: 12px;
}

.institution-dashboard-accounts {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.institution-account-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr);
  align-items: start;
  gap: 14px 18px;
  padding: 16px;
  border: 1px solid rgba(205, 159, 55, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 253, 244, 0.94), rgba(255, 248, 225, 0.76)), rgba(255, 255, 255, 0.7);
  animation: premiumRise 0.55s var(--spring) both;
  animation-delay: calc(var(--account-index, 0) * 45ms);
}

.institution-account-title,
.institution-password-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.institution-account-title span,
.institution-password-field span {
  color: #9a6b12;
  font-size: 12px;
  font-weight: 900;
}

.institution-account-title strong {
  color: #1d1d1f;
  font-size: 17px;
}

.online-pill {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #8a744c;
  background: rgba(142, 142, 147, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.online-pill.active {
  color: #16784c;
  background: rgba(52, 199, 89, 0.14);
}

.institution-account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.institution-account-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.institution-account-metrics b {
  color: #1d1d1f;
  font-size: 13px;
  white-space: nowrap;
}

.institution-account-metrics em {
  color: #8a744c;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.institution-password-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(205, 159, 55, 0.26);
  border-radius: 13px;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
  outline: none;
}

.institution-password-field input:focus {
  border-color: rgba(205, 159, 55, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 215, 103, 0.18);
}

.institution-password-field small {
  color: #8a744c;
  font-size: 12px;
  line-height: 1.45;
}

.institution-password-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.institution-account-card button {
  grid-column: 2;
  justify-self: end;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 13px;
  color: #5e3c00;
  background: linear-gradient(135deg, #fff1b5, #e9b13e);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(190, 137, 30, 0.14);
}

.institution-password-actions button {
  grid-column: auto;
  justify-self: auto;
}

.institution-usage-log {
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(205, 159, 55, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.institution-usage-log table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.institution-usage-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.institution-usage-section + .institution-usage-section {
  border-top: 1px solid rgba(205, 159, 55, 0.12);
}

.institution-usage-section h4 {
  margin: 0;
  color: #6f4a05;
  font-size: 14px;
  font-weight: 950;
}

.institution-usage-log th,
.institution-usage-log td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(205, 159, 55, 0.12);
  color: #4b4b52;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.institution-usage-log th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #7a4e00;
  background: rgba(255, 249, 228, 0.96);
  font-weight: 950;
}

.institution-usage-log td strong,
.institution-empty-usage strong {
  color: #1d1d1f;
}

.institution-usage-log td span {
  display: block;
  margin-top: 2px;
  color: #9a6b12;
  font-size: 11px;
}

.institution-empty-usage {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  color: #7f6840;
  text-align: center;
}

@keyframes premiumRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes goldFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-34px, 24px, 0) scale(1.08);
  }
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(238, 251, 255, 0.72);
}

.login-mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  color: #287792;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.login-mode-tabs button.selected {
  color: #0f5d76;
  background: linear-gradient(135deg, rgba(235, 251, 255, 0.96), rgba(201, 243, 255, 0.86));
  box-shadow: 0 10px 22px rgba(88, 185, 220, 0.16);
}

.login-mode-tabs button[data-login-mode="institution"].selected {
  color: #5e3c00;
  background: linear-gradient(135deg, #fff5c8, #ffd66f);
  box-shadow: 0 10px 22px rgba(205, 159, 55, 0.18);
}

.login-mode-tabs button[data-login-mode="institution"] {
  color: #8a5b00;
}

.auth-step.institution-auth-mode {
  border-color: rgba(205, 159, 55, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 251, 232, 0.96), rgba(255, 255, 255, 0.9)),
    var(--panel);
}

.institution-login-pane {
  display: grid;
  gap: 12px;
}

.institution-login-pane p {
  color: #8a5a00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.institution-login-button {
  background: linear-gradient(135deg, #ffdf7e, #d69b21);
}

.auth-flow-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 185, 220, 0.18);
  border-radius: 16px;
  color: #287792;
  background: rgba(88, 185, 220, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.auth-flow-prompt button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-hover));
  font-size: 12px;
  font-weight: 900;
}

.institution-auth-mode .auth-flow-prompt {
  display: none;
}

body.institution-mode .function-card.selected,
body.institution-mode .platform-tab.selected {
  border-color: rgba(205, 159, 55, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 250, 225, 0.94), rgba(255, 244, 204, 0.82)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(173, 122, 28, 0.16);
}

body.institution-mode .function-card.selected .feature-tag,
body.institution-mode .platform-tab.selected span:first-child {
  color: #7a4e00;
}

@media (max-width: 1100px) {
  .institution-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institution-admin-layout {
    grid-template-columns: 1fr;
  }

  .institution-account-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .institution-dashboard {
    padding: 18px;
    border-radius: 24px;
  }

  .institution-dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .institution-kpi-grid,
  .institution-account-metrics {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  #purchaseModal {
    max-height: calc(100vh - 32px);
    overflow: hidden;
  }

  #purchaseModal .modal-head {
    padding: 16px 20px;
  }

  #purchaseModal .modal-head div {
    gap: 4px;
  }

  #purchaseModal .modal-head p {
    font-size: 13px;
    line-height: 1.35;
  }

  #purchaseModal .purchase-guide {
    gap: 10px;
    padding: 12px 20px 0;
  }

  #purchaseModal .purchase-guide div {
    gap: 4px;
    padding: 10px 14px;
  }

  #purchaseModal .pricing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 20px 14px;
  }

  #purchaseModal .price-card {
    gap: 7px;
    min-height: 156px;
    padding: 14px;
    border-radius: 18px;
  }

  #purchaseModal .price-card strong {
    font-size: 25px;
  }

  #purchaseModal .price-card p,
  #purchaseModal .price-card em {
    font-size: 12px;
    line-height: 1.35;
  }

  #purchaseModal .price-card-head {
    align-items: flex-start;
  }

  #purchaseModal .price-card-head > span {
    font-size: 12px;
  }

  #purchaseModal .discount-badge,
  #purchaseModal .price-card-head > b {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }

  #purchaseModal .custom-amount-panel {
    gap: 16px;
    margin: 0 20px 18px;
    padding: 18px;
  }

  #purchaseModal .custom-amount-head strong {
    font-size: 20px;
  }

  #purchaseModal .custom-amount-body {
    grid-template-columns: 220px minmax(0, 1fr) 190px;
    gap: 14px;
  }

  #purchaseModal .custom-amount-body input {
    height: 58px;
    font-size: 27px;
  }

  #purchaseModal .custom-amount-summary {
    min-height: 58px;
    padding: 12px 15px;
    font-size: 13px;
  }

  #purchaseModal .customPurchaseButton,
  #purchaseModal #customPurchaseButton {
    min-height: 58px;
  }

  #purchaseModal .balance-alert {
    margin: 10px 20px 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}

.invite-box {
  display: grid;
  gap: 12px;
  padding: 22px 24px 24px;
}

.invite-reward-banner {
  display: grid;
  gap: 6px;
  margin: 22px 24px 0;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #58b9dc, #8fd7c8);
  box-shadow: 0 16px 38px rgba(88, 185, 220, 0.22);
}

.invite-reward-banner span {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.84;
}

.invite-reward-banner strong {
  font-size: 30px;
  line-height: 1;
}

.invite-reward-banner p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

.invite-box strong {
  font-size: 34px;
  letter-spacing: 0.08em;
}

.invite-box input {
  min-height: 52px;
  border-color: rgba(88, 185, 220, 0.36);
  background: #fff;
  color: #155d75;
  font-size: 14px;
  font-weight: 750;
}

.invite-box #copyInviteButton {
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
}

.confirm-modal {
  width: min(460px, 100%);
}

.cost-confirm-body {
  display: grid;
  gap: 8px;
  margin: 18px 24px 0;
  padding: 16px 18px;
  border: 1px solid rgba(88, 185, 220, 0.28);
  border-radius: 18px;
  background: rgba(238, 251, 255, 0.78);
}

.cost-confirm-body strong {
  color: #155d75;
  font-size: 28px;
  line-height: 1;
}

.cost-confirm-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.link-error-modal .modal-head h2 {
  color: #155d75;
}

.link-error-body {
  display: grid;
  gap: 8px;
  margin: 18px 24px 0;
  padding: 16px 18px;
  border: 1px solid rgba(88, 185, 220, 0.28);
  border-radius: 18px;
  background: rgba(88, 185, 220, 0.12);
}

.link-error-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 251, 255, 0.42)),
    var(--panel);
  box-shadow: var(--small-shadow);
  transition: transform 220ms var(--spring), box-shadow 220ms ease, border-color 220ms ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 185, 220, 0.2);
  box-shadow: 0 18px 42px rgba(49, 128, 156, 0.14);
}

.stat strong {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.table-wrap {
  position: relative;
  width: 100%;
  overflow: auto;
  max-height: min(68vh, 720px);
  scroll-behavior: smooth;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0)) left / 28px 100% no-repeat,
    linear-gradient(270deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0)) right / 28px 100% no-repeat;
}

body.institution-mode .table-wrap {
  background:
    linear-gradient(90deg, rgba(255, 253, 244, 0.96), rgba(255, 253, 244, 0)) left / 30px 100% no-repeat,
    linear-gradient(270deg, rgba(255, 248, 225, 0.96), rgba(255, 248, 225, 0)) right / 30px 100% no-repeat;
}

table {
  width: 100%;
  min-width: max(100%, 1780px);
  border-collapse: collapse;
  background: transparent;
}

th.preview-column,
td.preview-column {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 104px;
  min-width: 104px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 1px 0 0 rgba(88, 185, 220, 0.14);
}

th.preview-column {
  z-index: 3;
}

th.email-column,
td.email-column {
  width: 82px;
  min-width: 82px;
  max-width: 118px;
}

th.bio-column,
td.bio-column {
  width: 188px;
  min-width: 148px;
  max-width: 240px;
}

th.bio-contact-column,
td.bio-contact-column {
  width: 150px;
  min-width: 124px;
  max-width: 190px;
}

th.contact-column,
td.contact-column {
  width: 108px;
  min-width: 92px;
  max-width: 146px;
}

td.bio-column,
td.bio-contact-column,
td.email-column,
td.contact-column {
  white-space: normal;
  overflow-wrap: anywhere;
}

td.bio-column.is-empty-cell,
td.bio-contact-column.is-empty-cell,
td.email-column.is-empty-cell,
td.contact-column.is-empty-cell {
  width: 56px;
  min-width: 56px;
  max-width: 72px;
  color: #8f8f95;
  text-align: center;
}

.media-preview {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(88, 185, 220, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 243, 255, 0.56), rgba(255, 255, 255, 0.86));
  box-shadow: 0 10px 26px rgba(49, 128, 156, 0.1);
  transform: translateZ(0);
  transition: transform 220ms var(--spring), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.media-preview img,
.media-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview video {
  opacity: 0;
  transition: opacity 180ms ease;
}

.media-preview.is-playing video {
  opacity: 1;
}

.media-preview:hover {
  transform: translateY(-3px) scale(1.055);
  border-color: rgba(88, 185, 220, 0.42);
  box-shadow: 0 18px 36px rgba(49, 128, 156, 0.18);
}

.media-preview.is-image:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(201, 243, 255, 0.64));
}

.preview-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-110%);
}

.media-preview:hover .preview-sheen {
  opacity: 1;
  animation: previewSheen 920ms ease;
}

.preview-play {
  position: relative;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.preview-play::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-left: 8px solid #287792;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.preview-placeholder {
  position: relative;
  z-index: 1;
  color: #287792;
  font-size: 12px;
  font-weight: 800;
}

.preview-fallback {
  display: none;
}

.media-preview.cover-failed .preview-fallback {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.media-preview.disabled {
  pointer-events: none;
  opacity: 0.72;
}

.preview-type-chip {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 4;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.preview-type-chip.is-video,
.content-type-badge.is-video {
  background: linear-gradient(135deg, #ff2442, #e51d3b);
}

.preview-type-chip.is-image,
.content-type-badge.is-image {
  background: linear-gradient(135deg, #58b9dc, #287792);
}

.content-type-badge.is-empty {
  color: #8f8f95;
  background: rgba(118, 118, 128, 0.12);
}

.content-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

th.preview-column,
td.preview-column {
  width: 96px;
  min-width: 96px;
}

th.type-column,
td.type-column {
  width: 74px;
  min-width: 74px;
  text-align: center;
}

th.creator-start,
td.creator-start {
  border-left: 2px solid rgba(88, 185, 220, 0.42);
  min-width: 132px;
}

td.creator-start,
th.creator-start {
  background: rgba(88, 185, 220, 0.055);
}

th.active-column,
td.active-column {
  min-width: 118px;
}

.head-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  border-radius: 999px;
  color: #7a4e00;
  background: rgba(255, 232, 151, 0.78);
  font-size: 11px;
  font-weight: 950;
  cursor: help;
}

.head-help::after {
  content: "近 15 天发布过新笔记，判断为活跃博主。";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  width: 210px;
  padding: 10px 12px;
  border: 1px solid rgba(205, 159, 55, 0.24);
  border-radius: 14px;
  color: #6a4300;
  background: rgba(255, 253, 244, 0.98);
  box-shadow: 0 16px 38px rgba(132, 85, 8, 0.16);
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.head-help:hover::after,
.head-help:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.active-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.active-badge.is-active {
  color: #126d38;
  background: rgba(52, 199, 89, 0.14);
}

.active-badge.is-inactive {
  color: #8a744c;
  background: rgba(255, 232, 151, 0.46);
}

.active-badge.is-pending {
  color: #7b6a48;
  background: rgba(245, 226, 188, 0.62);
}

body.institution-mode .active-badge.is-active {
  color: #6a4300;
  background: rgba(255, 218, 99, 0.66);
}

body.institution-mode .active-badge.is-inactive,
body.institution-mode .active-badge.is-pending {
  color: #755000;
  background: rgba(255, 235, 173, 0.72);
}

.creator-parent-row td {
  background: rgba(255, 253, 244, 0.92);
  border-top: 2px solid rgba(205, 159, 55, 0.18);
  font-weight: 760;
}

.creator-note-child-row td {
  background: rgba(255, 250, 232, 0.54);
  font-size: 13px;
}

.creator-note-child-row .note-preview-column {
  background: rgba(255, 250, 232, 0.96);
}

.creator-super-row.is-first-note td {
  border-top: 2px solid rgba(205, 159, 55, 0.18);
}

.creator-note-empty {
  color: #9a6b12;
  font-weight: 850;
}

.creator-note-child-row.is-empty td {
  color: #9a6b12;
  font-weight: 800;
}

.creator-note-section,
.creator-note-index,
.same-creator {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #7a4e00;
  background: rgba(255, 232, 151, 0.72);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.creator-note-index,
.same-creator {
  color: #8a744c;
  background: rgba(255, 248, 225, 0.78);
}

.creator-note-average-row td {
  padding: 10px 18px 14px;
  color: #7f6840;
  background: linear-gradient(90deg, rgba(255, 232, 151, 0.24), rgba(255, 255, 255, 0.72));
  font-size: 13px;
}

.creator-note-average-row strong {
  margin-right: 12px;
  color: #7a4e00;
}

td a {
  color: var(--blue);
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

#resultsBody tr:not(.empty-row) {
  animation: rowIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--row-index, 0) * 34ms);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

#resultsBody tr:not(.empty-row):hover {
  background: rgba(238, 251, 255, 0.5);
  transform: translateX(2px);
  box-shadow: inset 3px 0 0 rgba(88, 185, 220, 0.34);
}

body.institution-mode #resultsBody tr:not(.empty-row):hover {
  background: rgba(255, 246, 210, 0.62);
  box-shadow: inset 3px 0 0 rgba(205, 159, 55, 0.48);
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

th.status-column,
td.status-column {
  width: 92px;
  min-width: 92px;
  max-width: 120px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-width: 56px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.status-wrap {
  display: inline-grid;
  gap: 6px;
  min-width: 0;
  width: max-content;
  max-width: 220px;
}

.status-reason {
  display: block;
  max-width: 260px;
  color: #9b2b28;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.success {
  color: #16833a;
  background: rgba(52, 199, 89, 0.14);
}

.failed {
  color: #c21f17;
  background: rgba(255, 59, 48, 0.12);
}

.empty-row td {
  color: var(--muted);
  text-align: left;
  padding: 48px 28px;
}

.content-start {
  border-left: 1px solid rgba(88, 185, 220, 0.28);
}

body.institution-mode .content-start {
  border-left-color: rgba(205, 159, 55, 0.34);
}

.upgrade-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px 14px 14px;
  border: 1px solid rgba(88, 185, 220, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 72px rgba(49, 128, 156, 0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.96);
}

.upgrade-toast.show {
  animation: upgradeToast 2600ms ease forwards;
}

.refund-toast {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 41;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(330px, calc(100vw - 32px));
  padding: 13px 15px;
  border: 1px solid rgba(88, 185, 220, 0.3);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 64px rgba(49, 128, 156, 0.24);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-90px, 110px) scale(0.9);
}

.refund-toast.show {
  animation: refundFly 2200ms cubic-bezier(0.2, 0.8, 0.22, 1) forwards;
}

.refund-toast > span {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 70px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  color: #155d75;
  background: rgba(88, 185, 220, 0.16);
  font-size: 18px;
  font-weight: 900;
}

.refund-toast div {
  display: grid;
  gap: 3px;
}

.refund-toast strong {
  color: var(--ink);
  font-size: 15px;
}

.refund-toast p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.feedback-panel {
  position: fixed;
  top: 50%;
  right: 8px;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 18;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
  transition: top 220ms var(--spring), left 220ms var(--spring), right 220ms var(--spring), transform 220ms var(--spring);
}

.feedback-panel.is-left {
  justify-items: start;
}

.feedback-panel.is-right {
  justify-items: end;
}

.feedback-panel.is-dragging {
  transition: none;
}

.feedback-toggle,
.feedback-card {
  pointer-events: auto;
}

.feedback-toggle {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 54px;
  min-height: 54px;
  justify-content: center;
  padding: 7px;
  border: 1px solid rgba(88, 185, 220, 0.3);
  border-radius: 20px;
  color: #155d75;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(49, 128, 156, 0.14);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  font-size: 14px;
  font-weight: 850;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 180ms var(--spring), box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.feedback-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(88, 185, 220, 0.46);
  background: rgba(238, 251, 255, 0.96);
  box-shadow: 0 18px 44px rgba(49, 128, 156, 0.18);
}

.feedback-toggle.is-open {
  border-color: rgba(88, 185, 220, 0.52);
  background: rgba(238, 251, 255, 0.98);
}

.feedback-panel.is-dragging .feedback-toggle {
  cursor: grabbing;
  transform: scale(1.04);
  box-shadow: 0 22px 52px rgba(49, 128, 156, 0.22);
}

.feedback-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.feedback-robot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff, rgba(201, 243, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(88, 185, 220, 0.24), 0 8px 18px rgba(88, 185, 220, 0.14);
  animation: sharkIdle 2600ms ease-in-out infinite;
}

.feedback-toggle:hover .feedback-robot {
  animation: sharkNod 900ms ease-in-out infinite;
}

.feedback-robot::before {
  content: "";
  width: 20px;
  height: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 5px 4px, #155d75 0 2px, transparent 2.2px),
    radial-gradient(circle at 15px 4px, #155d75 0 2px, transparent 2.2px);
}

.feedback-robot::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 2px;
  height: 7px;
  border-radius: 999px;
  background: #58b9dc;
}

.feedback-robot i {
  position: absolute;
  bottom: 8px;
  width: 12px;
  height: 5px;
  border-bottom: 2px solid #58b9dc;
  border-radius: 50%;
}

.feedback-card {
  order: 1;
  margin-right: 12px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(88, 185, 220, 0.26);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 251, 255, 0.9)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 72px rgba(49, 128, 156, 0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  animation: guideIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feedback-panel.is-left .feedback-card {
  margin-right: 0;
  margin-left: 12px;
}

.feedback-card.is-closing {
  pointer-events: none;
  animation: feedbackOut 170ms ease both;
}

.feedback-head,
.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feedback-head strong {
  color: var(--ink);
  font-size: 16px;
}

.feedback-card p {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.feedback-type {
  width: 100%;
  height: 40px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(238, 251, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

.feedback-type:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(88, 185, 220, 0.12);
}

.feedback-card textarea {
  min-height: 106px;
  max-height: 220px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  resize: vertical;
  color: var(--ink);
  background: rgba(238, 251, 255, 0.54);
  font-size: 13px;
  line-height: 1.55;
}

.feedback-card textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(88, 185, 220, 0.12);
}

.feedback-actions {
  margin-top: 12px;
}

.feedback-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-status.is-success {
  color: #287792;
  animation: statusPop 520ms var(--spring);
}

.feedback-status.is-error {
  color: #c21f17;
  animation: statusShake 420ms ease;
}

body.institution-mode .feedback-status.is-success {
  color: #7a4e00;
}

.upgrade-avatar {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eefbff;
  box-shadow: 0 0 0 4px rgba(255, 229, 140, 0.76), 0 12px 28px rgba(88, 185, 220, 0.2);
}

.upgrade-avatar img {
  display: block;
  width: 120%;
  height: 120%;
  object-fit: cover;
}

.upgrade-toast div {
  display: grid;
  gap: 3px;
}

.upgrade-toast strong {
  color: var(--ink);
  font-size: 16px;
}

.upgrade-toast p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@keyframes paidAvatarPop {
  0% {
    transform: scale(0.82) rotate(-8deg);
  }
  62% {
    transform: scale(1.12) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes upgradeToast {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
  16%,
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

@keyframes refundFly {
  0% {
    opacity: 0;
    transform: translate(-90px, 120px) scale(0.9);
  }
  18%,
  74% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(18px, -26px) scale(0.96);
  }
}

@keyframes discountPop {
  0% {
    transform: scale(0.9) rotate(-2deg);
  }
  52% {
    transform: scale(1.14) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes atmosphereDrift {
  from {
    transform: translate3d(-18px, -8px, 0);
  }
  to {
    transform: translate3d(18px, 10px, 0);
  }
}

@keyframes workspaceReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes usageCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes platformDockIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.982);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes surfaceSheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes exportReadyPulse {
  0% {
    transform: translateY(0) scale(0.985);
  }
  58% {
    transform: translateY(-1px) scale(1.008);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

@keyframes backdropOut {
  from {
    opacity: 1;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

@keyframes filterPanelIn {
  from {
    opacity: 0.82;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes priceCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes filterPop {
  0% {
    transform: scale(0.96);
  }
  70% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes previewSheen {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}

@keyframes guideIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes guideFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes robotTalk {
  0% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countBump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes buttonShine {
  to {
    transform: translateX(120%);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(88, 185, 220, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(88, 185, 220, 0.1);
  }
}

@keyframes clearNudge {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 16px 36px rgba(255, 122, 47, 0.28);
  }
  50% {
    transform: translateY(-1px) scale(1.035);
    box-shadow: 0 22px 44px rgba(255, 122, 47, 0.38);
  }
}

@keyframes sortTick {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.18);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes exportButtonReady {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(88, 185, 220, 0.28);
  }
}

@keyframes badgeGleam {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }
  45% {
    filter: brightness(1.08) saturate(1.12);
    transform: scale(1.06);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes statusPop {
  0% {
    opacity: 0.6;
    transform: translateY(3px) scale(0.96);
  }
  70% {
    transform: translateY(-1px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statusShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-1px);
  }
}

@keyframes tabPop {
  0% {
    transform: scale(0.96);
  }
  70% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cardSettle {
  0% {
    transform: translateY(4px) scale(0.99);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes popoverIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popoverOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

@keyframes feedbackOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes sharkIdle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(1deg);
  }
}

@keyframes sharkNod {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(-2deg);
  }
}

@keyframes sharkPop {
  0% {
    transform: scale(0.88) rotate(-6deg);
  }
  58% {
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.count-bump {
  display: inline-block;
  animation: countBump 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .global-nav {
    position: sticky;
    flex-wrap: wrap;
    width: min(100vw - 24px, 1120px);
    gap: 10px;
    padding: 10px 0 12px;
  }

  .global-brand {
    flex: 1 1 100%;
  }

  .global-brand strong {
    font-size: 21px;
  }

  .global-links {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .global-actions {
    flex: 1 1 100%;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    max-width: 100%;
  }

  .language-toggle,
  .console-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-cta {
    display: none;
    flex: 1 1 auto;
    min-height: 36px;
    min-width: 0;
    max-width: 112px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.08;
    white-space: normal;
  }

  .shell {
    width: min(100vw - 24px, 1120px);
    padding-top: 24px;
  }

  .topbar,
  .panel-head,
  .spec-card,
  .input-actions,
  .paywall {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    align-items: stretch;
    gap: 18px;
  }

  .topbar-main,
  .site-brand {
    width: 100%;
  }

  .topbar-main {
    max-width: none;
  }

  .site-brand {
    justify-content: flex-start;
  }

  .domain-nudge {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    padding-right: 0;
  }

  .domain-nudge b {
    font-size: 22px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .brand-title-row {
    display: block;
  }

  .brand-title-row h1 {
    min-width: 0;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions button {
    flex: 1 1 100%;
  }

  .guest-preview,
  .onboarding-guide,
  .billing-cards {
    grid-template-columns: 1fr;
  }

  .onboarding-guide {
    align-items: stretch;
  }

  .onboarding-steps,
  .onboarding-actions {
    justify-content: flex-start;
  }

  .guest-preview,
  .onboarding-guide {
    padding: 14px;
    border-radius: 20px;
  }

  .link-input-workbench.has-draft {
    grid-template-columns: 1fr;
  }

  .link-draft-panel {
    border-top: 1px solid rgba(88, 185, 220, 0.18);
    border-left: 0;
  }

  .link-draft-url,
  .link-draft-detail {
    text-align: left;
  }

  .file-import-status {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 16px;
  }

  .platform-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 5px;
  }

  .platform-tab {
    gap: 6px;
    min-height: 42px;
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
  }

  .platform-tab span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.05;
  }

  .platform-tab .tab-app-icon {
    width: 21px;
    height: 21px;
    border-radius: 6px;
  }

  .spec-card {
    grid-template-columns: 1fr;
  }

  .account-shell,
  .account-entry,
  .account-button,
  .account-popover {
    width: 100%;
  }

  .account-entry {
    justify-content: stretch;
  }

  .account-button {
    flex: 1 1 auto;
  }

  .quick-buy-button {
    flex: 0 0 82px;
  }

  .account-popover {
    position: static;
    margin-top: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-mode-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 16px;
  }

  .link-mode-group {
    width: 100%;
  }

  .link-mode-group button {
    flex: 1;
  }

  .function-switch,
  .usage-grid,
  .hot-grid,
  .hot-platforms,
  .search-form,
  .pricing-grid,
  .purchase-guide,
  .custom-amount-body,
  .login-grid,
  .code-row {
    grid-template-columns: 1fr;
  }

  .function-guide-toggle {
    align-content: stretch;
    gap: 10px;
    min-height: auto;
    padding: 14px;
    border-radius: 20px;
    text-align: left;
  }

  .function-guide-copy {
    gap: 3px;
  }

  .function-guide-copy strong {
    font-size: 14px;
  }

  .function-guide-copy p {
    font-size: 12px;
  }

  .function-guide-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-guide {
    padding-top: 8px;
  }

  .usage-head {
    justify-items: start;
    text-align: left;
  }

  .usage-card {
    min-height: 174px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100vw - 24px, 1120px);
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .hot-page-shell {
    width: min(100vw - 24px, 1120px);
    padding-top: 28px;
  }

  .hot-hero {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .hot-hero p {
    font-size: 16px;
  }

  .code-button {
    width: 100%;
    margin-top: -4px;
  }

  .search-note {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .eyebrow,
  .subtitle,
  .function-card p,
  .usage-card p,
  .hot-platform-card p {
    overflow-wrap: anywhere;
  }

  .brand-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 12px;
  }

  .subtitle {
    font-size: 16px;
  }

  .button-row,
  .collect-cta-stack,
  .import-actions,
  .file-button,
  .result-actions {
    width: 100%;
  }

  .collect-cta-stack {
    justify-items: stretch;
  }

  .action-disabled-reason {
    text-align: left;
  }

  .button-row button,
  .import-actions button,
  .import-actions .file-button,
  .result-actions button,
  .export-hint,
  .export-format,
  .export-mode,
  .export-range,
  .countdown-pill {
    flex: 1;
  }

  .result-actions {
    justify-content: stretch;
  }

  .upgrade-toast {
    top: 14px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .refund-toast {
    top: 78px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .feedback-panel {
    right: 10px;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: none;
  }

  .feedback-toggle {
    width: 52px;
    min-height: 52px;
    border-radius: 19px;
  }

  .feedback-toggle:hover {
    transform: translateY(-2px) scale(1.03);
  }

  .feedback-card {
    margin-right: 0;
  }

  .invite-reward-banner {
    margin: 18px 16px 0;
    border-radius: 18px;
  }

  .invite-reward-banner strong {
    font-size: 24px;
    line-height: 1.08;
  }

  .invite-box {
    padding: 18px 16px 20px;
  }

  .invite-box strong {
    font-size: 28px;
  }

  #purchaseModal {
    max-height: calc(100vh - 24px);
    overflow: hidden;
  }

  #purchaseModal .modal-head {
    padding: 14px 16px;
  }

  #purchaseModal .modal-head p {
    font-size: 12px;
    line-height: 1.35;
  }

  #purchaseModal .purchase-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 16px 0;
  }

  #purchaseModal .purchase-guide div {
    padding: 9px 10px;
    border-radius: 16px;
  }

  #purchaseModal .purchase-guide strong {
    font-size: 14px;
  }

  #purchaseModal .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 16px 12px;
  }

  #purchaseModal .price-card {
    gap: 5px;
    min-height: 0;
    padding: 10px;
    border-radius: 16px;
  }

  #purchaseModal .price-card strong {
    font-size: 22px;
  }

  #purchaseModal .price-card p {
    font-size: 11px;
    line-height: 1.28;
  }

  #purchaseModal .price-card em {
    display: none;
  }

  #purchaseModal .price-card-head > span {
    font-size: 12px;
  }

  #purchaseModal .discount-badge,
  #purchaseModal .price-card-head > b {
    min-height: 21px;
    padding: 0 7px;
    font-size: 11px;
  }

  #purchaseModal .custom-amount-panel {
    gap: 11px;
    margin: 0 16px 14px;
    padding: 13px;
    border-radius: 18px;
  }

  #purchaseModal .custom-amount-head strong {
    font-size: 17px;
  }

  #purchaseModal .custom-amount-body {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
  }

  #purchaseModal #customPurchaseButton {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  #purchaseModal .custom-amount-body input {
    height: 48px;
    font-size: 22px;
  }

  #purchaseModal .custom-amount-summary {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 12px;
  }

  #purchaseModal .balance-alert {
    margin: 8px 16px 0;
    padding: 9px 10px;
    border-radius: 16px;
    font-size: 12px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .feedback-panel {
    top: 50%;
    right: 8px;
    bottom: auto;
    transform: translateY(-50%);
  }

  .feedback-toggle {
    width: 54px;
    min-height: 54px;
    border-radius: 20px;
  }

  .feedback-toggle:hover {
    transform: translateY(-2px) scale(1.03);
  }

  .feedback-card {
    margin-right: 12px;
  }
}

@media (max-width: 430px) {
  .global-nav {
    align-items: flex-start;
    width: min(100vw - 18px, 1120px);
  }

  .global-brand {
    flex: 1 1 100%;
  }

  .global-brand strong {
    font-size: 16px;
  }

  .global-actions {
    justify-content: space-between;
    width: 100%;
  }

  .language-toggle {
    flex: 0 0 86px;
    max-width: none;
    padding: 0 8px;
    white-space: normal;
    line-height: 1.05;
  }

  .nav-cta {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding: 0 9px;
  }

  .shell {
    width: min(100vw - 18px, 1120px);
  }

  h1 {
    font-size: 29px;
  }

  .brand-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 10px;
  }

  .top-platform-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  .top-platform-tabs button {
    min-width: 0;
    padding: 0 6px;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.05;
  }

  .platform-switch {
    gap: 3px;
    padding: 4px;
  }

  .platform-tab {
    gap: 4px;
    min-height: 40px;
    padding: 0 5px;
    font-size: 12px;
  }

  .platform-tab .tab-app-icon {
    width: 18px;
    height: 18px;
  }

  .feedback-panel {
    right: 8px;
    bottom: max(86px, env(safe-area-inset-bottom));
  }

  .feedback-toggle {
    width: 46px;
    min-height: 46px;
    border-radius: 16px;
  }

  .feedback-robot {
    width: 32px;
    height: 32px;
    border-radius: 13px;
  }
}
