:root {
  --st-bg: #0f1018;
  --st-bg-2: #171827;
  --st-panel: rgba(255, 255, 255, .075);
  --st-panel-2: rgba(255, 255, 255, .105);
  --st-line: rgba(255, 255, 255, .14);
  --st-line-strong: rgba(255, 255, 255, .22);
  --st-text: #f7f3ff;
  --st-muted: rgba(247, 243, 255, .68);
  --st-soft: rgba(247, 243, 255, .42);
  --st-pink: #ff6faa;
  --st-violet: #9b7cff;
  --st-cyan: #7dd8ff;
  --st-green: #72e6b2;
  --st-warning: #ffd36e;
  --st-danger: #ff7d8f;
  --st-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  --st-radius: 22px;
  --st-radius-sm: 14px;
  --st-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  background: var(--st-bg);
}

body,
body.landing,
body.auth-page,
body.console-page,
body.document-page {
  overflow-x: hidden;
  color: var(--st-text);
  background:
    radial-gradient(circle at 20% -5%, rgba(255, 111, 170, .26), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(123, 216, 255, .18), transparent 28%),
    linear-gradient(180deg, #11121d 0%, #0f1018 42%, #15121e 100%);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a,
p,
small,
time,
span,
label,
dt,
dd,
li {
  letter-spacing: 0;
}

p,
.muted,
.form-hint,
.role-card-desc,
.persona-preview,
.empty-card,
.empty-state {
  color: var(--st-muted);
}

.brand {
  color: var(--st-text);
  gap: 10px;
}

.brand-mark,
.avatar,
.agent-avatar,
.role-avatar {
  color: #fff;
  background: linear-gradient(135deg, var(--st-pink), var(--st-violet));
  box-shadow: 0 12px 28px rgba(155, 124, 255, .25);
}

.marketing-header,
.simple-header,
.console-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1180px, calc(100% - 28px));
  min-height: 70px;
  padding: 14px 0;
  backdrop-filter: blur(16px);
}

.marketing-nav,
.console-topbar nav,
.simple-header nav {
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.marketing-nav a,
.console-topbar nav a,
.simple-header nav a,
.back-link,
.text-link {
  color: var(--st-muted);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
}

.marketing-nav a:hover,
.console-topbar nav a:hover,
.console-topbar nav a.active,
.simple-header nav a.active,
.header-login,
.back-link:hover,
.text-link:hover {
  color: var(--st-text) !important;
  background: rgba(255,255,255,.11);
}

.marketing-main,
.dashboard,
.console-shell,
.role-library-main,
.document-card,
.role-detail {
  width: min(1180px, calc(100% - 28px));
}

.panel,
.login-card,
.document-card,
.chat-demo,
.price-card,
.benefits article,
.story-grid article,
.role-template-card,
.memory-category-card,
.memory-card,
.record-item,
.sticker-card,
.order-confirm {
  color: var(--st-text);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: linear-gradient(180deg, var(--st-panel-2), var(--st-panel));
  box-shadow: var(--st-shadow);
  backdrop-filter: blur(18px);
}

.panel,
.login-card,
.document-card {
  padding: 22px;
}

.pill-label,
.eyebrow {
  color: var(--st-cyan);
  letter-spacing: .12em;
}

h1,
h2,
h3,
.hero-copy h1,
.section-intro h2 {
  color: var(--st-text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.landing-hero {
  min-height: calc(100vh - 88px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.06;
}

.hero-lead {
  color: var(--st-muted);
}

.btn,
button,
.agent-actions a,
.agent-actions button,
.link-button {
  min-height: 44px;
  border-radius: 999px;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}

.btn:active,
button:active,
.agent-actions a:active,
.agent-actions button:active {
  transform: scale(.985);
}

.btn.primary,
button.btn.primary,
.agent-actions button:not(.danger),
.card-actions .btn.primary {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--st-pink), var(--st-violet));
  box-shadow: 0 14px 30px rgba(255, 111, 170, .22);
}

.btn.outline,
.btn.ghost,
.agent-actions a,
.agent-actions button.danger,
.link-button,
.header-login {
  color: var(--st-text);
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,.08);
}

.btn.ghost.danger,
.agent-actions button.danger {
  color: #ffdbe2;
  border-color: rgba(255, 125, 143, .4);
}

input,
textarea,
select {
  color: var(--st-text);
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(125, 216, 255, .62);
  box-shadow: 0 0 0 3px rgba(125, 216, 255, .12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 243, 255, .36);
}

.notice {
  color: var(--st-text);
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,.08);
}

.notice.success {
  border-color: rgba(114, 230, 178, .35);
  background: rgba(114, 230, 178, .1);
}

.notice.error,
.inline-error {
  color: #ffdbe2;
  border-color: rgba(255, 125, 143, .4);
  background: rgba(255, 125, 143, .1);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-hero h1,
.role-library-hero h1,
.memory-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}

.quota {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quota div,
.order-confirm dl div,
.memory-category-card {
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}

.quota div {
  padding: 14px;
}

.quota strong {
  color: var(--st-text);
  font-size: 20px;
}

.quota small {
  color: var(--st-soft);
}

.console-overview-grid,
.dashboard-grid {
  gap: 16px;
}

.active-agent-card {
  min-height: 0;
}

.active-agent-card h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.overview-actions,
.agent-actions,
.card-actions,
.order-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.agent-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,.065);
}

.agent-card.active {
  border-color: rgba(125, 216, 255, .42);
  background: linear-gradient(180deg, rgba(125,216,255,.12), rgba(255,255,255,.065));
}

.agent-head {
  gap: 10px;
}

.agent-head h3 {
  margin-bottom: 2px;
  font-size: 18px;
}

.agent-head p,
.persona-preview {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.agent-state,
.recommend,
.tag-row span,
.role-category-pills a,
.category-tabs a {
  color: var(--st-text);
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,.08);
}

.agent-state {
  color: var(--st-green);
}

.billing-plan-grid,
.billing-topup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.billing-plan,
.billing-topup-grid article {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,.07);
}

.billing-plan strong,
.billing-topup-grid strong {
  color: var(--st-text);
  font-size: 25px;
}

.billing-plan ul {
  padding-left: 16px;
}

.billing-orders > div {
  border-color: var(--st-line);
  background: rgba(255,255,255,.065);
}

.role-search,
.role-category-pills,
.category-tabs {
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,.065);
}

.role-card-grid,
.sticker-grid {
  gap: 14px;
}

.role-template-card {
  padding: 16px;
}

.opening {
  color: var(--st-muted);
  border-color: var(--st-line);
  background: rgba(255,255,255,.06);
}

.memory-category-grid {
  gap: 10px;
}

.memory-category-card {
  min-height: 92px;
  padding: 14px;
}

.memory-category-card span,
.memory-meta span {
  color: var(--st-soft);
}

.memory-category-card strong {
  color: var(--st-text);
  font-size: 24px;
}

.memory-card {
  padding: 16px;
}

.memory-edit-form {
  gap: 10px;
}

.empty-card,
.empty-state {
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
}

.record-item {
  padding: 14px;
}

.sticker-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.sticker-category-list a {
  min-height: 88px;
  display: grid;
  align-content: center;
  justify-items: start;
  border-radius: 18px;
  padding: 14px;
}

.sticker-category-list a img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}

.sticker-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.sticker-card {
  overflow: hidden;
  padding: 10px;
}

.sticker-card img {
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.phone {
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
}

.phone::before {
  background: rgba(255,255,255,.22);
}

.phone-header,
.demo-title {
  border-color: var(--st-line);
}

.message.ai,
.demo-row.ai,
.phone-input {
  color: var(--st-text);
  background: rgba(255,255,255,.1);
}

.message.user,
.demo-row.me {
  background: linear-gradient(135deg, var(--st-pink), var(--st-violet));
}

.marketing-footer {
  color: var(--st-muted);
  border-top: 1px solid var(--st-line);
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body > * {
    max-width: 100%;
  }

  body {
    font-size: 15px;
    overflow-x: hidden;
  }

  .marketing-header,
  .simple-header,
  .console-topbar {
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .marketing-nav,
  .simple-header nav,
  .console-topbar nav {
    display: none;
  }

  .marketing-nav::-webkit-scrollbar,
  .simple-header nav::-webkit-scrollbar,
  .console-topbar nav::-webkit-scrollbar {
    display: none;
  }

  .marketing-nav a,
  .simple-header nav a,
  .console-topbar nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    white-space: nowrap;
    font-size: 13px;
  }

  .simple-header .back-link {
    font-size: 13px;
    padding: 8px 10px;
  }

  .marketing-main,
  .dashboard,
  .console-shell,
  .role-library-main,
  .document-card,
  .role-detail {
    width: calc(100% - 24px);
    padding-bottom: calc(86px + var(--st-safe-bottom));
  }

  .landing-hero,
  .showcase,
  .auth-layout,
  .dashboard-hero,
  .memory-hero,
  .dashboard-grid,
  .console-overview-grid {
    grid-template-columns: 1fr !important;
  }

  .landing-hero {
    min-height: 0;
    padding: 18px 0 30px;
    gap: 20px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .btn,
  button,
  .agent-actions a,
  .agent-actions button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 14px;
  }

  .companion-visual {
    padding: 0;
  }

  .phone {
    width: 100%;
    min-height: 430px;
    border-width: 5px;
    border-radius: 32px;
  }

  .benefits,
  .price-grid,
  .story-grid,
  .role-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel,
  .login-card,
  .document-card {
    padding: 16px;
    border-radius: 20px;
  }

  .dashboard-hero h1,
  .role-library-hero h1,
  .memory-hero h1 {
    font-size: 31px;
  }

  .quota {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quota div {
    min-height: 78px;
    padding: 12px;
  }

  .quota strong {
    font-size: 18px;
    word-break: break-word;
  }

  .active-agent-card {
    padding: 14px;
  }

  .agent-card {
    padding: 12px;
  }

  .agent-head h3 {
    font-size: 16px;
  }

  .billing-plan-grid,
  .billing-topup-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100vw - 48px) / 3);
    grid-template-columns: none;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .billing-plan-grid::-webkit-scrollbar,
  .billing-topup-grid::-webkit-scrollbar {
    display: none;
  }

  .billing-plan,
  .billing-topup-grid article {
    min-width: 0;
    padding: 10px;
    border-radius: 15px;
  }

  .billing-plan h3,
  .billing-topup-grid h3 {
    font-size: 14px;
  }

  .billing-plan strong,
  .billing-topup-grid strong {
    font-size: 19px;
  }

  .billing-plan p,
  .billing-topup-grid p,
  .billing-plan small,
  .billing-topup-grid small,
  .billing-plan li {
    font-size: 11px;
    line-height: 1.35;
  }

  .billing-plan ul {
    margin: 8px 0;
    padding-left: 13px;
  }

  .billing-plan .btn,
  .billing-topup-grid .btn {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .billing-orders > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .order-confirm dl {
    grid-template-columns: 1fr;
  }

  .role-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
  }

  .role-category-pills {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .role-category-pills::-webkit-scrollbar {
    display: none;
  }

  .role-template-card {
    padding: 14px;
  }

  .memory-category-grid,
  .sticker-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-category-card {
    min-height: 76px;
  }

  .memory-card {
    padding: 13px;
  }

  .memory-edit-form {
    grid-template-columns: 1fr 80px;
  }

  .memory-edit-form textarea,
  .memory-edit-form button {
    grid-column: 1 / -1;
  }

  .record-item {
    padding: 12px;
  }

  .sticker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sticker-card {
    padding: 8px;
  }

  .sticker-card img {
    aspect-ratio: 1 / 1;
  }
}

.sr-formal-menu-button {
  display: none;
}

.sr-formal-bottom-nav {
  display: none;
}

.companion-visual {
  overflow: hidden;
}

@media (max-width: 760px) {
  .sr-formal-menu-button {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-left: auto;
    border: 1px solid var(--st-line);
    border-radius: 50%;
    color: var(--st-text);
    background: rgba(255,255,255,.08);
    font-size: 22px;
    font-weight: 900;
  }

  .marketing-nav.sr-formal-menu,
  .simple-header nav.sr-formal-menu,
  .console-topbar nav.sr-formal-menu {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    bottom: auto;
    z-index: 80;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--st-line);
    border-radius: 20px;
    background: rgba(23, 24, 39, .96);
    box-shadow: var(--st-shadow);
    backdrop-filter: blur(18px);
  }

  .marketing-nav.sr-formal-menu.open,
  .simple-header nav.sr-formal-menu.open,
  .console-topbar nav.sr-formal-menu.open {
    display: grid;
  }

  .marketing-nav.sr-formal-menu a,
  .simple-header nav.sr-formal-menu a,
  .console-topbar nav.sr-formal-menu a {
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 14px;
    white-space: normal;
    text-align: center;
    font-size: 13px;
    background: rgba(255,255,255,.06);
  }

  .sr-formal-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--st-safe-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--st-line);
    border-radius: 22px;
    background: rgba(23, 24, 39, .92);
    box-shadow: var(--st-shadow);
    backdrop-filter: blur(18px);
  }

  .sr-formal-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 14px;
    color: var(--st-muted);
    font-size: 12px;
    font-weight: 800;
  }

  .sr-formal-bottom-nav a.active {
    color: var(--st-text);
    background: rgba(255,255,255,.11);
  }
}

@media (max-width: 380px) {
  .billing-plan-grid,
  .billing-topup-grid {
    grid-auto-columns: calc((100vw - 42px) / 3);
    gap: 7px;
  }

  .billing-plan,
  .billing-topup-grid article {
    padding: 9px 7px;
  }

  .billing-plan h3,
  .billing-topup-grid h3 {
    font-size: 13px;
  }

  .billing-plan strong,
  .billing-topup-grid strong {
    font-size: 18px;
  }
}

/* Stitch single-page preview shell. Kept separate from the existing PHP pages so
   the prototype can be reviewed before page-by-page replacement. */
.sr-preview {
  min-height: 100vh;
  padding: 74px 14px calc(86px + env(safe-area-inset-bottom, 0px));
}

.sr-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--st-line);
  background: rgba(18, 18, 31, .76);
  backdrop-filter: blur(16px);
}

.sr-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--st-text);
}

.sr-brand span,
.sr-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--st-pink), var(--st-violet));
}

.sr-icon-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  color: #fff;
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,.08);
}

.sr-menu {
  position: absolute;
  top: 62px;
  left: 14px;
  right: 14px;
  padding: 8px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: rgba(23, 24, 39, .94);
  box-shadow: var(--st-shadow);
}

.sr-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--st-muted);
}

.sr-menu a:hover {
  color: var(--st-text);
  background: rgba(255,255,255,.08);
}

.sr-main {
  width: min(960px, 100%);
  margin: 0 auto;
}

.sr-page[hidden],
.sr-menu[hidden],
.sr-toast[hidden] {
  display: none !important;
}

.sr-page {
  display: grid;
  gap: 16px;
}

.sr-hero-card,
.sr-card,
.sr-role-card,
.sr-plan-card,
.sr-list-item,
.sr-empty,
.sr-feature-grid article,
.sr-stat-grid article,
.sr-sticker-cat {
  border: 1px solid var(--st-line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--st-panel-2), var(--st-panel));
  box-shadow: var(--st-shadow);
  backdrop-filter: blur(18px);
}

.sr-hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.sr-hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--st-pink), var(--st-violet));
  opacity: .24;
  filter: blur(28px);
}

.sr-kicker {
  margin: 0 0 12px;
  color: var(--st-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sr-hero-card h1,
.sr-section-head h1,
.sr-card h1 {
  margin: 0 0 12px;
  color: var(--st-text);
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1.12;
}

.sr-card h2,
.sr-role-card h2,
.sr-plan-card h2,
.sr-subtitle {
  margin: 0 0 8px;
  color: var(--st-text);
}

.sr-hero-card p,
.sr-card p,
.sr-role-card p,
.sr-plan-card p,
.sr-list-item p {
  color: var(--st-muted);
}

.sr-actions,
.sr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sr-actions {
  margin-top: 20px;
  justify-content: flex-start;
}

.sr-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  color: var(--st-text);
  background: rgba(255,255,255,.08);
  font-weight: 800;
}

.sr-primary {
  border: 0;
  background: linear-gradient(135deg, var(--st-pink), var(--st-violet));
}

.sr-feature-grid,
.sr-stat-grid,
.sr-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sr-feature-grid article,
.sr-stat-grid article,
.sr-role-card,
.sr-plan-card,
.sr-card,
.sr-list-item,
.sr-empty,
.sr-sticker-cat {
  padding: 16px;
}

.sr-feature-grid b,
.sr-stat-grid b {
  display: block;
  color: var(--st-text);
  font-size: 18px;
}

.sr-feature-grid span,
.sr-stat-grid span,
.sr-role-card small,
.sr-list-item small,
.sr-sticker-cat span {
  color: var(--st-soft);
  font-size: 13px;
}

.sr-form {
  display: grid;
  gap: 14px;
}

.sr-form label {
  display: grid;
  gap: 7px;
  color: var(--st-muted);
  font-weight: 700;
}

.sr-form input,
.sr-code-row input {
  min-height: 46px;
  padding: 0 13px;
}

.sr-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.sr-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 9px !important;
  font-size: 13px;
}

.sr-check input {
  width: 18px;
  min-height: 18px;
}

.sr-form-msg {
  min-height: 20px;
  margin: 0;
  color: var(--st-danger);
}

.sr-chip,
.sr-memory-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  color: var(--st-muted);
  background: rgba(255,255,255,.07);
}

.sr-plan-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100vw - 48px) / 3);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.sr-plan-row::-webkit-scrollbar {
  display: none;
}

.sr-plan-card {
  min-width: 0;
}

.sr-plan-card strong {
  display: block;
  color: var(--st-text);
  font-size: 24px;
}

.sr-plan-card .sr-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

.sr-memory-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.sr-memory-tabs::-webkit-scrollbar {
  display: none;
}

.sr-list {
  display: grid;
  gap: 10px;
}

.sr-list-item b {
  color: var(--st-text);
}

.sr-list-item em {
  display: block;
  margin-top: 8px;
  color: #ffdbe2;
  font-style: normal;
}

.sr-sticker-cat {
  display: grid;
  gap: 8px;
  color: var(--st-text);
}

.sr-sticker-cat img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.sr-bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--st-line);
  border-radius: 22px;
  background: rgba(23, 24, 39, .92);
  backdrop-filter: blur(18px);
}

.sr-bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 14px;
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 800;
}

.sr-bottom-nav a.active {
  color: var(--st-text);
  background: rgba(255,255,255,.1);
}

.sr-toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: min(340px, calc(100% - 48px));
  transform: translateX(-50%);
  padding: 11px 16px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  color: var(--st-text);
  background: rgba(23, 24, 39, .94);
  box-shadow: var(--st-shadow);
}

@media (min-width: 760px) {
  .sr-preview {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sr-plan-row {
    grid-auto-columns: minmax(180px, 1fr);
  }
}

@media (max-width: 380px) {
  .sr-plan-row {
    grid-auto-columns: calc((100vw - 42px) / 3);
  }

  .sr-plan-card {
    padding: 10px 8px;
  }

  .sr-plan-card h2 {
    font-size: 14px;
  }

  .sr-plan-card strong {
    font-size: 20px;
  }
}
