:root {
  color-scheme: light;
  --orange: #ff5a35;
  --orange-dark: #d65035;
  --ink: #141414;
  --muted: #8d8d8d;
  --line: #eeeeee;
  --soft: #fff2ee;
  --green: #60cf9c;
  --red: #f06161;
  --shadow: 0 12px 32px rgba(198, 83, 54, .16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: #f6f7f8;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Keep the default login screen from flashing while OAuth and the QR route resolve. */
body.booting .app-shell {
  visibility: hidden;
}

.boot-loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background: #fff;
  text-align: center;
}

body.author-validating .boot-loading {
  display: grid;
}

.boot-loading img {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(198, 83, 54, .14);
}

.boot-loading strong {
  font-size: 20px;
  font-weight: 760;
}

.boot-loading span {
  color: var(--muted);
  font-size: 14px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 60%, #ffffff 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  min-height: calc(100dvh - 78px);
}

.screen.active {
  display: block;
}

.login-browser-bar {
  background: #ededed;
}

#screen-login .login-browser-bar {
  display: none;
}

.login-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(42px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 28px 0;
  color: #0e0e0e;
  font-size: 22px;
  font-weight: 760;
}

.login-statusbar b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 15px;
}

.login-titlebar {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  height: 66px;
  padding: 0 18px;
}

.login-titlebar button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.login-titlebar svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.login-titlebar div {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.login-titlebar strong {
  font-size: 22px;
}

.login-titlebar span {
  color: #666;
  font-size: 15px;
  font-weight: 650;
}

.login-form {
  display: grid;
  justify-items: center;
  padding: 118px 40px 0;
  background: #fff;
}

#screen-login,
#screen-login.active {
  background: #fff;
}

body.login-screen-active .app-shell {
  background: #fff;
}

.login-logo {
  justify-self: center;
  width: 104px;
  height: 104px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(222, 52, 33, .18);
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  width: 286px;
  margin: 58px 0 40px;
}

.login-tabs button {
  position: relative;
  min-width: 120px;
  height: 42px;
  color: #777;
  font-size: 20px;
  font-weight: 720;
}

.login-tabs button.active {
  color: #d92f26;
}

.login-tabs button.active::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: #e62f25;
  content: "";
  transform: translateX(-50%);
}

.login-placeholder {
  margin: 0 0 26px;
  color: #8b8b8b;
  font-size: 15px;
}

.login-field {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 64px;
  margin-bottom: 26px;
  padding: 0 20px;
  border-radius: 8px;
  background: #f3f3f3;
}

.login-field.with-code {
  grid-template-columns: 34px 1fr 96px;
}

.login-field svg {
  width: 25px;
  height: 25px;
  color: #171717;
  stroke-width: 1.8;
}

.login-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222;
  font-size: 20px;
}

.login-field input::placeholder {
  color: #818181;
}

.code-button {
  height: 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e52f26 0%, #ff5c38 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.code-button[hidden] {
  display: none;
}

.login-agreement {
  max-width: 320px;
  margin: 8px 0 18px;
  color: #777;
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
}

.login-agreement a {
  color: #c7473d;
  font-weight: 700;
  text-decoration: none;
}

.login-error {
  min-height: 22px;
  margin: 0 0 10px;
  color: #d92f26;
  font-size: 14px;
}

.login-submit {
  width: min(100%, 250px);
  height: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e52f26 0%, #ff5c38 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 760;
  box-shadow: 0 10px 20px rgba(230, 61, 38, .24);
}

.login-statusbar,
.statusbar,
.withdraw-statusbar {
  display: none;
}

.statusbar {
  align-items: center;
  justify-content: space-between;
  height: 34px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.signal {
  font-size: 12px;
  letter-spacing: 0;
  opacity: .95;
}

.profile-hero {
  min-height: 178px;
  padding: calc(env(safe-area-inset-top) + 22px) 28px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 30%, rgba(255, 255, 255, .13), transparent 28%),
    linear-gradient(135deg, #ff7832 0%, #ff4939 100%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 18px 30px rgba(255, 83, 49, .2);
}

.profile-hero.compact {
  min-height: 226px;
  padding-bottom: 92px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.profile-row strong {
  font-size: 24px;
  font-weight: 750;
}

.profile-copy {
  display: grid;
  gap: 6px;
}

.profile-copy small {
  max-width: 220px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.4;
}

.avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  min-width: 70px;
  max-width: 70px;
  min-height: 70px;
  max-height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(120, 42, 24, .18);
}

.avatar svg {
  width: 42px;
  height: 42px;
  fill: #ff6b43;
  stroke: #ff6b43;
  stroke-width: 2;
  stroke-linecap: round;
}

.avatar img,
.design-avatar span img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.income-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 24px;
  align-items: end;
  margin-top: 34px;
}

.income-row.small {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.income-row i {
  display: block;
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, .26);
}

.income-row span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
}

.income-row b {
  font-size: 29px;
  line-height: 1;
}

.align-right {
  text-align: right;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 24px 16px;
}

.logout-button {
  display: block;
  width: calc(100% - 48px);
  height: 48px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: #fff;
  color: var(--orange-dark);
  font-size: 17px;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(214, 80, 53, .28), 0 8px 18px rgba(255, 84, 37, .08);
}

.user-portal-screen {
  min-height: calc(100dvh - 70px);
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  background: #f7f8f8;
}

/* User portal pages use the bottom tab bar as their navigation context. */
#screen-user-home .user-unlocked-panel {
  padding-top: 18px;
}

#screen-user-me .user-me-card {
  margin-top: 18px;
}

.user-portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 22px;
  background: #fff;
  border-bottom: 1px solid #f0eeee;
}

.user-portal-head span {
  color: #9a8f8a;
  font-size: 13px;
}

.user-portal-head h1 {
  margin: 5px 0 0;
  font-size: 27px;
}

.user-portal-avatar {
  width: 46px;
  height: 46px;
}

.user-unlocked-panel {
  padding: 22px 18px;
}

.user-portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 6px 12px;
}

.user-portal-section-head strong {
  font-size: 17px;
}

.user-portal-section-head span {
  color: #a0938e;
  font-size: 13px;
}

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

.user-unlocked-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 14px;
  border: 1px solid #eee8e5;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  box-shadow: 0 7px 18px rgba(65, 45, 37, .05);
}

.user-unlocked-cover {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #ff8c62, #ed4c39);
  font-size: 19px;
  font-weight: 800;
}

.user-unlocked-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.user-unlocked-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.user-unlocked-copy time {
  color: #9a918d;
  font-size: 12px;
}

.user-unlocked-arrow {
  color: #c4b8b2;
  font-size: 25px;
  line-height: 1;
}

.user-empty-state {
  margin: 0;
  padding: 56px 12px;
  border: 1px dashed #dfd4cf;
  border-radius: 10px;
  color: #a09590;
  background: #fff;
  text-align: center;
  font-size: 14px;
}

.user-me-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 18px 14px;
  padding: 22px;
  border: 1px solid #eee8e5;
  border-radius: 10px;
  background: #fff;
}

.user-me-avatar {
  width: 60px;
  height: 60px;
}

.user-me-card strong {
  font-size: 18px;
}

.user-me-card p {
  margin: 7px 0 0;
  color: #998e89;
  font-size: 13px;
}

.user-feature-button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  width: calc(100% - 36px);
  min-height: 68px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border: 1px solid #eee8e5;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.user-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff0eb;
  color: var(--orange-dark);
  font-size: 18px;
  font-weight: 800;
}

.user-feature-button span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.user-feature-button strong {
  color: #282321;
  font-size: 16px;
}

.user-feature-button small {
  color: #998e89;
  font-size: 12px;
}

.user-feature-button > b {
  color: #c4b8b2;
  font-size: 24px;
  font-weight: 400;
}

.user-logout-button {
  display: block;
  width: calc(100% - 36px);
  height: 46px;
  margin: 0 auto;
  border: 1px solid #efd5cd;
  border-radius: 8px;
  color: var(--orange-dark);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

.feature-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 142px;
  padding: 24px 12px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-card strong {
  font-size: 20px;
  font-weight: 700;
}

.feature-card small {
  color: #777;
  font-size: 14px;
}

.feature-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffe8e2;
}

.feature-icon::before,
.feature-icon::after {
  position: absolute;
  content: "";
  background: var(--orange);
}

.wallet::before {
  left: 13px;
  top: 16px;
  width: 26px;
  height: 20px;
  border-radius: 4px;
}

.wallet::after {
  right: 12px;
  top: 24px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.page::before {
  left: 12px;
  top: 15px;
  width: 27px;
  height: 12px;
  border-radius: 3px;
}

.page::after {
  left: 14px;
  top: 31px;
  width: 8px;
  height: 8px;
  box-shadow: 14px 0 0 var(--orange);
}

.fans::before {
  left: 14px;
  top: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 13px 1px 0 var(--orange);
}

.fans::after {
  left: 12px;
  top: 29px;
  width: 27px;
  height: 10px;
  border-radius: 12px 12px 4px 4px;
}

.chart::before {
  left: 13px;
  bottom: 13px;
  width: 6px;
  height: 14px;
  box-shadow: 10px -6px 0 var(--orange), 20px -14px 0 var(--orange);
}

.chart::after {
  right: 10px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  background: transparent;
  transform: rotate(-45deg);
}

.template::before {
  left: 14px;
  top: 12px;
  width: 22px;
  height: 28px;
  border-radius: 4px;
  background: var(--orange);
}

.template::after {
  left: 19px;
  top: 19px;
  width: 12px;
  height: 3px;
  background: #fff;
  box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
}

.author::before {
  left: 17px;
  top: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
}

.author::after {
  left: 11px;
  top: 30px;
  width: 28px;
  height: 12px;
  border-radius: 16px 16px 6px 6px;
  background: var(--orange);
}

.author-home-page {
  display: grid;
  gap: 22px;
  padding: 20px 24px 32px;
}

.author-profile-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 154, 92, .2), transparent 30%),
    linear-gradient(135deg, #fff7f0 0%, #ffe0cf 100%);
  box-shadow: 0 12px 28px rgba(255, 98, 49, .12);
}

.author-home-avatar {
  width: 92px;
  height: 92px;
  min-width: 92px;
  max-width: 92px;
  min-height: 92px;
  max-height: 92px;
  border: 4px solid #fff;
}

.author-profile-card strong {
  font-size: 25px;
}

.author-profile-card p {
  max-width: 290px;
  margin: 0;
  color: #666;
  text-align: center;
  line-height: 1.7;
}

.author-qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.author-qr {
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  border: 10px solid #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
}

.author-qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.author-qr-card strong {
  font-size: 21px;
}

.author-qr-card p {
  margin: 0;
  color: #888;
  text-align: center;
  line-height: 1.6;
}

.author-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.author-actions button {
  height: 42px;
  border-radius: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  background: linear-gradient(135deg, #ff7b2f 0%, #ff4725 100%);
  box-shadow: 0 8px 18px rgba(255, 84, 37, .2);
}

.author-actions button:first-child {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px rgba(214, 80, 53, .3);
}

.template-page {
  display: grid;
  gap: 18px;
  padding: 18px 20px 32px;
}

.template-summary-card {
  display: grid;
  gap: 8px;
  padding: 24px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .22), transparent 28%),
    linear-gradient(135deg, #ff7b2f 0%, #ff4725 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 84, 37, .22);
}

.template-summary-card span,
.template-summary-card small {
  color: rgba(255, 255, 255, .82);
}

.template-summary-card strong {
  font-size: 34px;
  line-height: 1;
}

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

.template-item,
.template-add-card {
  position: relative;
  min-height: 218px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

.template-item img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.template-meta {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
}

.template-meta strong {
  font-size: 15px;
}

.template-meta span {
  color: #888;
  font-size: 12px;
}

.template-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 48px;
  height: 28px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.template-add-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(214, 80, 53, .42);
  color: var(--orange-dark);
}

.template-add-card span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff1eb;
  font-size: 34px;
  line-height: 1;
}

.template-add-card strong {
  font-size: 17px;
}

.template-add-card small {
  color: #999;
}

#template-upload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 54px;
  align-items: center;
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar strong {
  text-align: center;
  font-size: 20px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compose-form {
  background: #fff;
}

.article-edit-form {
  min-height: calc(100vh - 64px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.article-edit-content textarea {
  min-height: 400px;
}

.article-edit-save {
  display: block;
  width: calc(100% - 44px);
  margin: 24px 22px 0;
}

.row-field,
.block-field,
.upload-row,
.price-field,
.switch-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.row-field span,
.block-field span,
.upload-row > span,
.price-field legend,
.switch-row span {
  font-size: 18px;
  font-weight: 650;
}

.title-field input,
.price-field > input {
  width: 100%;
  height: 42px;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  padding: 0 18px;
  background: #f4f4f4;
  outline: 0;
}

.block-field textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 14px;
  outline: 0;
}

::placeholder {
  color: #aaa;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  border: 1px dashed #c8c8c8;
  border-radius: 8px;
  color: #333;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box b {
  font-weight: 500;
}

.price-field {
  border: 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 76px minmax(0, 1fr);
  min-width: 0;
  width: 100%;
}

.price-field > input {
  grid-column: 2;
  grid-row: 2;
  max-width: 100%;
}

.price-field legend {
  grid-column: 1;
  grid-row: 1;
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

.price-options {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  margin-bottom: 12px;
}

.price-options label {
  display: block;
  width: 100%;
  min-width: 0;
}

.price-options input {
  position: absolute;
  opacity: 0;
}

.price-options span {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 38px;
  min-height: 36px;
  border-radius: 18px;
  background: #f0f0f0;
  color: #222;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px #dedede;
}

#custom-price:disabled {
  opacity: .55;
}

.price-options input:checked + span {
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}

.switch-row {
  grid-template-columns: 1fr 52px;
  align-items: center;
  padding-block: 14px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-row i {
  position: relative;
  width: 52px;
  height: 31px;
  border-radius: 18px;
  background: #d5d5d5;
  transition: .2s ease;
}

.switch-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.switch-row input:checked + i {
  background: var(--orange);
}

.switch-row input:checked + i::after {
  transform: translateX(21px);
}

.compose-template-section {
  padding: 18px 22px 4px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.compose-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.compose-section-title strong {
  font-size: 18px;
}

.compose-section-title span {
  color: #999;
  font-size: 13px;
}

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

.compose-template-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: inset 0 0 0 1px #eee;
}

.compose-template-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compose-template-thumb.active {
  box-shadow: 0 0 0 3px rgba(255, 90, 53, .34), inset 0 0 0 2px var(--orange);
}

.compose-template-thumb.active::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.primary-button {
  display: block;
  width: calc(100% - 44px);
  height: 52px;
  margin: 22px auto;
  border-radius: 26px;
  background: linear-gradient(135deg, #ff4c2e 0%, #ff7251 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 82, 49, .28);
}

.article-panel {
  position: relative;
  z-index: 1;
  margin: -74px 16px 0;
  padding-bottom: 16px;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 58px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  position: relative;
  color: #999;
  font-size: 18px;
  font-weight: 650;
}

.tabs button.active {
  color: #111;
}

.tabs button.active::after {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange-dark);
  content: "";
  transform: translateX(-50%);
}

.article-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #999;
  font-size: 18px;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff6f2 0%, #ffe5dd 100%);
}

.article-card h3 {
  margin: 0;
  font-size: 20px;
}

.article-card .price {
  grid-column: 1;
  color: var(--orange-dark);
  font-size: 28px;
  font-weight: 750;
}

.article-card time {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(190, 80, 55, .12);
  font-size: 14px;
}

.tags {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.tag {
  display: inline-grid;
  place-items: center;
  height: 24px;
  min-width: 50px;
  padding: 0 8px;
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
}

.tag.green {
  background: var(--green);
}

.tag.gray {
  background: #cfcfcf;
}

.tag.red {
  background: var(--red);
}

.tag.pill {
  border-radius: 14px;
  background: var(--green);
}

.tag.pill.refund {
  background: var(--red);
}

.sale-toggle {
  border: 0;
}

.manage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manage-actions button {
  min-width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #fff;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(214, 80, 53, .26);
}

.article-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #333;
  font-size: 14px;
}

.article-actions button {
  min-width: 70px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(214, 80, 53, .24);
  border-radius: 15px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 650;
}

.article-actions button:active {
  background: rgba(214, 80, 53, .08);
  color: var(--orange-dark);
}

.unlock-button {
  grid-column: 2;
  align-self: center;
  justify-self: end;
  width: auto;
  min-width: 64px;
  max-width: 104px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.loaded {
  margin: 12px 0 0;
  color: #aaa;
  text-align: center;
}

.reader-card {
  margin: 18px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

.reader-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

.reader-card .locked {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 26px 0;
  color: #555;
}

.reader-card p {
  color: #3d3d3d;
  line-height: 1.8;
}

.reader-addition {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reader-addition time {
  display: block;
  margin-bottom: 8px;
  color: #999;
  font-size: 13px;
}

.admin-detail-page {
  display: grid;
  gap: 18px;
  padding: 18px 20px 32px;
}

.admin-material-code {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.admin-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.admin-detail-actions button {
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  border-radius: 8px;
  background: #fff7f3;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(214, 80, 53, .18);
}

.admin-detail-actions button:active {
  background: #ffe9df;
}

.append-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.append-form textarea {
  min-height: 220px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  resize: vertical;
  padding: 16px;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.scan-user-list {
  display: grid;
  gap: 12px;
  padding: 18px 20px 32px;
}

.scan-user-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.scan-user-item strong {
  display: block;
  margin-bottom: 6px;
}

.scan-user-item time {
  color: #999;
  font-size: 13px;
}

.auth-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 28px 22px 0;
  padding: 34px 24px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff2ee;
  color: var(--orange);
}

.auth-icon svg {
  width: 54px;
  height: 54px;
  fill: var(--orange);
  stroke: var(--orange);
}

.auth-card h1 {
  margin: 6px 0 0;
  font-size: 24px;
}

.auth-card p {
  margin: 0;
  color: #777;
  line-height: 1.7;
}

.user-post-page {
  position: relative;
  min-height: calc(100dvh - 78px);
  padding: 26px 12px 142px;
  background: #fff;
}

.user-post-page.paid {
  padding-bottom: 48px;
}

.user-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 6px 0;
}

.user-post-head.simple {
  justify-content: flex-start;
}

.user-post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.user-post-author-name {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.user-post-author-name:focus-visible {
  outline: 3px solid rgba(214, 150, 36, .45);
  outline-offset: 4px;
  border-radius: 4px;
}

.user-post-avatar,
.user-author-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fff0e6;
  color: var(--orange);
}

.user-post-avatar[data-user-author-link] {
  cursor: pointer;
}

.user-post-avatar[data-user-author-link]:focus-visible {
  outline: 3px solid rgba(214, 150, 36, .45);
  outline-offset: 3px;
}

.user-author-avatar {
  width: 76px;
  height: 76px;
}

.user-post-avatar img,
.user-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-post-avatar svg,
.user-author-avatar svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  stroke: currentColor;
}

.user-post-author strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
}

.user-post-author time {
  display: block;
  color: #6e727c;
  font-size: 15px;
}

.all-views-button {
  flex: 0 0 auto;
  min-width: 126px;
  height: 54px;
  border-radius: 27px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(214, 80, 53, .2);
}

.user-post-title {
  margin: 108px 18px 138px;
  text-align: center;
  font-size: 24px;
  line-height: 1.35;
}

.content-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 22px 22px;
  color: #b57a19;
}

.content-divider span {
  height: 1px;
  background: #cda860;
}

.content-divider strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.locked-preview,
.paid-content-box {
  min-height: 220px;
  margin: 0 0 0;
  padding: 34px 22px;
  border: 2px dashed #c9891b;
  border-radius: 8px;
  background: #fff8ec;
}

.locked-preview {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #b77712;
  text-align: center;
}

.lock-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #d08305;
}

.lock-mark svg {
  width: 52px;
  height: 52px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
}

.locked-preview p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.user-paybar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 12px;
  align-items: center;
  width: min(100vw, 430px);
  min-height: calc(86px + env(safe-area-inset-bottom));
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -10px 26px rgba(0, 0, 0, .05);
  transform: translateX(-50%);
}

.user-paybar strong {
  font-size: 18px;
}

.user-paybar b {
  color: #c73725;
  font-size: 22px;
}

.user-paybar button {
  height: 50px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.compact-browser .login-titlebar {
  height: 70px;
}

.user-author-hero {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 24px 18px 22px;
  background: linear-gradient(135deg, #fff8f1 0%, #ffe6d6 100%);
  color: #30241f;
}

#screen-user-author-list > .compact-browser {
  display: none;
}

.user-author-hero > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #8c6b5b;
  font-size: 14px;
}

.user-author-hero strong {
  display: block;
  margin: 4px 0 8px;
  color: #32231d;
  font-size: 20px;
}

.user-author-stats {
  display: flex;
  gap: 24px;
}

.user-author-stats span {
  display: grid;
  gap: 5px;
  color: #8c6b5b;
}

.user-author-stats b {
  color: #d65035;
  font-size: 18px;
}

.user-author-panel {
  padding: 18px 0 34px;
  background: #fffaf7;
}

.user-author-panel h1 {
  margin: 0;
  color: #bd352a;
  text-align: center;
  font-size: 18px;
}

.user-author-panel h1::after {
  display: block;
  width: 28px;
  height: 4px;
  margin: 9px auto 0;
  border-radius: 2px;
  background: #bd352a;
  content: "";
}

.user-author-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  color: #6f6f6f;
  font-size: 15px;
}

.user-author-meta b {
  min-width: 66px;
  padding: 7px 16px;
  border-radius: 18px;
  background: #fff;
  color: #555;
  text-align: center;
  box-shadow: inset 0 0 0 1px #ddd;
}

.user-author-list {
  display: grid;
  gap: 12px;
}

.user-followed-authors-screen {
  min-height: 100vh;
  background: #f7f7f7;
}

.followed-author-panel {
  padding: 18px;
}

.user-section-note {
  margin: 0 0 14px;
  color: #998e89;
  font-size: 13px;
  line-height: 1.6;
}

.followed-author-list {
  display: grid;
  gap: 12px;
}

.followed-author-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid #eee8e5;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.followed-author-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff0eb;
  color: var(--orange-dark);
  font-size: 20px;
  font-weight: 800;
}

.followed-author-avatar img,
.fan-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.followed-author-copy strong {
  overflow: hidden;
  color: #282321;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.followed-author-copy small,
.followed-author-copy em {
  overflow: hidden;
  color: #998e89;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-view-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin: 0;
  padding: 16px 18px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.user-view-card time {
  grid-column: 1;
  color: #666;
  font-size: 15px;
}

.user-view-card strong {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 86%;
  color: #2f2723;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}

.user-view-card b {
  grid-column: 2;
  grid-row: 1;
  color: #bd352a;
  font-size: 17px;
  white-space: nowrap;
}

.user-view-card .view-card-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.user-view-card .view-card-actions span {
  min-width: 56px;
  padding: 6px 12px;
  border-radius: 5px;
  color: #a37822;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(163, 120, 34, .36);
}

.paid-content-box {
  min-height: 170px;
  color: #e33e4f;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.9;
}

.paid-content-box p {
  margin: 0;
  white-space: pre-wrap;
}

.paid-content-box .reader-addition {
  border-top-color: rgba(201, 137, 27, .24);
}

.paid-content-box .reader-addition p {
  color: #e33e4f;
}

.design-head {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 18px) 20px 10px;
}

.design-head strong {
  text-align: center;
  font-size: 21px;
}

.design-form {
  display: grid;
  gap: 22px;
  padding: 18px 24px 32px;
}

.design-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 20px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 142, 82, .18), transparent 30%),
    linear-gradient(135deg, #fff7f0 0%, #ffe0cf 100%);
  box-shadow: 0 12px 28px rgba(255, 98, 49, .12);
}

.design-avatar {
  display: grid;
  justify-items: center;
  gap: 0;
  color: var(--orange-dark);
  font-weight: 700;
  cursor: pointer;
}

.design-avatar span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  min-width: 86px;
  max-width: 86px;
  min-height: 86px;
  max-height: 86px;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(222, 76, 42, .18);
}

.design-avatar svg {
  width: 52px;
  height: 52px;
  fill: #ff6b43;
  stroke: #ff6b43;
}

.design-avatar input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.design-preview strong {
  font-size: 24px;
}

.design-preview p {
  max-width: 280px;
  margin: 0;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

.design-card {
  display: grid;
  padding: 8px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.design-card label {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.design-card label:last-child {
  border-bottom: 0;
}

.design-card span {
  font-size: 17px;
  font-weight: 700;
}

.design-card input,
.design-card textarea {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 10px;
  background: #f6f6f6;
  color: #222;
  font-size: 17px;
}

.design-card input {
  height: 46px;
  padding: 0 14px;
}

.design-card textarea {
  min-height: 112px;
  resize: vertical;
  padding: 14px;
}

.withdraw-head {
  padding: calc(env(safe-area-inset-top) + 16px) 26px 0;
}

.withdraw-statusbar {
  justify-content: space-between;
  align-items: center;
  height: 42px;
  color: #111;
  font-size: 18px;
  font-weight: 750;
}

.withdraw-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 18px;
  color: var(--orange);
}

.withdraw-back svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

.withdraw-form {
  display: grid;
  gap: 24px;
  padding: 0 24px 32px;
}

.withdraw-summary {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 260px;
  padding: 64px 18px 28px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 150, 74, .25), transparent 34%),
    radial-gradient(circle at 48% 72%, rgba(255, 255, 255, .58), transparent 30%),
    linear-gradient(135deg, #fff7f0 0%, #ffd9bd 100%);
}

.withdraw-summary strong {
  font-size: 28px;
  font-weight: 720;
}

.withdraw-summary span {
  color: #555;
  font-size: 18px;
}

.withdraw-summary b {
  color: var(--orange);
  font-size: 40px;
  line-height: 1;
}

.withdraw-avatar {
  width: 78px;
  height: 78px;
  min-width: 78px;
  max-width: 78px;
  min-height: 78px;
  max-height: 78px;
}

.withdraw-card {
  display: grid;
  padding: 18px 26px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.withdraw-card label {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.withdraw-card label:last-child {
  border-bottom: 0;
}

.withdraw-card span {
  font-size: 19px;
  font-weight: 650;
}

.withdraw-card input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222;
  text-align: right;
  font-size: 19px;
}

.withdraw-card input::placeholder {
  color: #9c9c9c;
}

.withdraw-card input.withdraw-locked {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f1f1;
  color: #888;
  cursor: not-allowed;
}

.withdraw-info-note {
  margin: -8px 12px 0;
  color: #8b817d;
  text-align: center;
  font-size: 13px;
}

.withdraw-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 38px 0;
  color: #9a9a9a;
  font-size: 15px;
}

.withdraw-tip i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f6b85e;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.withdraw-message {
  min-height: 22px;
  margin: -8px 0 0;
  text-align: center;
  font-size: 14px;
}

.withdraw-message.error {
  color: #d92f26;
}

.withdraw-message.success {
  color: #32a873;
}

.withdraw-submit {
  width: 100%;
  height: 58px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff7b2f 0%, #ff4725 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 760;
  box-shadow: 0 12px 24px rgba(255, 84, 37, .26);
}

.withdraw-result {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 34px 24px 0;
  padding: 34px 24px 28px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.result-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7b2f 0%, #ff4725 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 84, 37, .24);
}

.result-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.6;
}

.withdraw-result h2 {
  margin: 8px 0 0;
  font-size: 24px;
}

.withdraw-result p {
  margin: 0;
  color: #777;
  font-size: 16px;
  line-height: 1.7;
}

.withdraw-result p strong {
  color: var(--orange-dark);
}

.result-balance {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 10px 0 6px;
  padding: 18px;
  border-radius: 12px;
  background: #fff4ee;
}

.result-balance span {
  color: #777;
  font-size: 15px;
}

.result-balance b {
  color: var(--orange);
  font-size: 30px;
}

.income-detail-page {
  display: grid;
  gap: 18px;
  padding: 18px 20px 32px;
}

.income-total-card {
  display: grid;
  gap: 8px;
  padding: 24px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .22), transparent 28%),
    linear-gradient(135deg, #ff7b2f 0%, #ff4725 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 84, 37, .22);
}

.income-total-card span,
.income-total-card small {
  color: rgba(255, 255, 255, .82);
}

.income-total-card strong {
  font-size: 34px;
  line-height: 1.1;
}

.income-detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #f4f4f4;
}

.income-detail-tabs button {
  height: 40px;
  border-radius: 12px;
  color: #777;
  font-size: 15px;
  font-weight: 700;
}

.income-detail-tabs button.active {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.date-filter {
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  align-items: end;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.date-filter label {
  display: grid;
  gap: 8px;
}

.date-filter span {
  color: #777;
  font-size: 13px;
}

.date-filter input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  background: #f6f6f6;
  color: #222;
  padding: 0 10px;
  font-size: 14px;
}

.date-filter i {
  align-self: center;
  color: #999;
  font-style: normal;
  text-align: center;
}

.income-detail-list {
  display: grid;
  gap: 12px;
}

.income-detail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.income-detail-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.income-detail-item time {
  color: #999;
  font-size: 13px;
}

.income-detail-right {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.income-detail-right b {
  color: var(--orange-dark);
  font-size: 18px;
}

.income-detail-right span {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 24px;
  border-radius: 12px;
  background: #fff1eb;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.fans-page {
  display: grid;
  gap: 18px;
  padding: 18px 20px 32px;
}

.fans-summary-card {
  display: grid;
  gap: 8px;
  padding: 24px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .2), transparent 30%),
    linear-gradient(135deg, #ff7b2f 0%, #ff4725 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 84, 37, .22);
}

.fans-summary-card span,
.fans-summary-card small {
  color: rgba(255, 255, 255, .82);
}

.fans-summary-card strong {
  font-size: 34px;
  line-height: 1;
}

.fans-sort-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #f4f4f4;
}

.fans-sort-tabs button {
  height: 40px;
  border-radius: 12px;
  color: #777;
  font-size: 15px;
  font-weight: 700;
}

.fans-sort-tabs button.active {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}

.fans-list {
  display: grid;
  gap: 12px;
}

.fan-item {
  display: grid;
  grid-template-columns: 52px 1fr 66px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
}

.fan-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffe8e2;
  color: var(--orange-dark);
  font-size: 20px;
  font-weight: 800;
}

.fan-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.fan-copy strong {
  font-size: 17px;
}

.fan-copy time,
.fan-copy span {
  color: #888;
  font-size: 12px;
}

.fan-item button {
  height: 32px;
  border-radius: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.fan-item button.blocked {
  background: #d8d8d8;
  color: #777;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  width: min(100vw, 430px);
  height: calc(70px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  transform: translateX(-50%);
}

.user-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  width: min(100vw, 430px);
  height: calc(70px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  transform: translateX(-50%);
}

.user-tabbar button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: #777;
  font-size: 12px;
}

.user-tabbar button.active {
  color: var(--orange-dark);
  font-weight: 700;
}

.user-tabbar svg {
  width: 22px;
  height: 22px;
}

.tabbar button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  color: #777;
}

.tabbar button.active {
  color: var(--orange-dark);
  font-weight: 700;
}

.tabbar svg {
  width: 23px;
  height: 23px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, .42);
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.site-toast {
  position: fixed;
  left: 50%;
  top: 96px;
  z-index: 40;
  display: grid;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: rgba(28, 25, 24, .86);
  box-shadow: 0 12px 28px rgba(28, 25, 24, .22);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.site-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-toast.is-confirm {
  pointer-events: auto;
}

.site-toast-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.site-toast-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 13px;
}

.site-toast-actions button:last-child {
  border-color: transparent;
  color: #2e211d;
  background: #fff;
}

.modal-sheet {
  position: relative;
  width: min(100%, 390px);
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.modal-sheet h2 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.material-code-sheet {
  max-height: calc(100dvh - 36px);
  overflow: auto;
}

.material-code-sheet img {
  display: block;
  width: min(100%, 320px);
  margin: 16px auto 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.modal-sheet p,
.modal-sheet small {
  color: #777;
  line-height: 1.6;
}

.judgement-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 12px;
}

.judgement-actions button {
  height: 46px;
  border-radius: 23px;
  color: #fff;
  font-size: 17px;
  font-weight: 760;
  background: linear-gradient(135deg, #ff7b2f 0%, #ff4725 100%);
  box-shadow: 0 8px 18px rgba(255, 84, 37, .2);
}

.judgement-actions button:last-child {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px rgba(214, 80, 53, .32);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #777;
}

.pay-state-box {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 210px;
  min-height: 178px;
  margin: 18px auto;
  border: 1px solid #f0e9e5;
  border-radius: 14px;
  background: #fffaf8;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
}

.pay-state-box .pay-status {
  margin: 0;
  color: #777;
  font-size: 14px;
}

.pay-state-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pay-state-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 4px solid #f6ddd4;
  border-radius: 50%;
}

.pay-state-icon.is-loading {
  border-top-color: var(--orange);
  animation: pay-state-spin .9s linear infinite;
}

.pay-state-icon.is-success {
  border-color: #8ac9a0;
}

.pay-state-icon.is-success::after {
  width: 18px;
  height: 10px;
  border-bottom: 3px solid #31965d;
  border-left: 3px solid #31965d;
  transform: rotate(-45deg) translate(2px, -2px);
  content: "";
}

.pay-state-icon.is-error {
  border-color: #e7a294;
}

.pay-state-icon.is-error::before,
.pay-state-icon.is-error::after {
  position: absolute;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #d65b4b;
  content: "";
}

.pay-state-icon.is-error::before {
  transform: rotate(45deg);
}

.pay-state-icon.is-error::after {
  transform: rotate(-45deg);
}

@keyframes pay-state-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-entry {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 12px;
  width: calc(100% - 48px);
  min-height: 64px;
  margin: 0 auto 14px;
  padding: 11px 16px;
  border: 1px solid #f1d5cb;
  border-radius: 10px;
  background: #fffaf8;
  text-align: left;
}

.admin-entry-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffe7df;
  color: var(--orange-dark);
  font-size: 18px;
}

.admin-entry span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.admin-entry strong {
  font-size: 16px;
}

.admin-entry small {
  color: #8a7772;
  font-size: 12px;
}

.admin-entry-arrow {
  color: var(--orange-dark);
  font-size: 25px;
  line-height: 1;
  text-align: right;
}

.admin-refresh {
  justify-self: end;
  color: var(--orange-dark);
  font-size: 13px;
}

.admin-page {
  display: grid;
  gap: 16px;
  padding: 8px 20px 32px;
}

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

.admin-summary-grid > div {
  display: grid;
  gap: 7px;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #f0e6e2;
  border-radius: 10px;
  background: #fff;
}

.admin-summary-grid span {
  color: #8b817e;
  font-size: 12px;
}

.admin-summary-grid strong {
  color: #3b2b27;
  font-size: 21px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #f7f2f0;
}

.admin-tabs button {
  height: 38px;
  border-radius: 7px;
  color: #827773;
  font-size: 14px;
}

.admin-tabs button.active {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 2px 8px rgba(136, 75, 54, .08);
  font-weight: 700;
}

.admin-message {
  min-height: 18px;
  margin: -4px 2px 0;
  color: #6f625e;
  font-size: 13px;
}

.admin-message.error {
  color: #d4483b;
}

.admin-message.success {
  color: #31986d;
}

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

.admin-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #f0e8e5;
  border-radius: 10px;
  background: #fff;
}

.admin-item-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #ffe9e2;
  color: var(--orange-dark);
  font-size: 17px;
  font-weight: 700;
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.admin-item-copy strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item-copy small,
.admin-item-meta {
  color: #8a7e79;
  font-size: 12px;
}

.withdrawal-account {
  display: grid;
  gap: 4px;
  color: #655954;
}

.admin-badge {
  padding: 4px 8px;
  border-radius: 12px;
  background: #e9f8f0;
  color: #32966c;
  font-size: 12px;
  white-space: nowrap;
}

.admin-badge.disabled {
  background: #f4eeee;
  color: #9c7772;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-item-actions button {
  min-width: 68px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #ecd8d1;
  border-radius: 7px;
  color: var(--orange-dark);
  font-size: 12px;
}

.admin-item-actions button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.admin-empty {
  padding: 30px 10px;
  color: #99908d;
  text-align: center;
  font-size: 14px;
}

.pay-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  color: #666;
}

.pay-meta strong {
  color: var(--orange-dark);
}

@media (min-width: 520px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: 860px;
    border-radius: 28px;
  }
}

/* Compact mobile rhythm: keep controls comfortable without overwhelming the viewport. */
@media (max-width: 519px) {
  :root {
    --shadow: 0 8px 22px rgba(198, 83, 54, .12);
  }

  .app-shell {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .screen,
  .user-post-page {
    min-height: calc(100dvh - 64px);
  }

  .login-titlebar {
    grid-template-columns: 42px 1fr 42px;
    height: 52px;
    padding: 0 14px;
  }

  .login-titlebar button {
    width: 40px;
    height: 40px;
  }

  .login-titlebar svg {
    width: 24px;
    height: 24px;
  }

  .login-titlebar strong {
    font-size: 18px;
  }

  .login-titlebar span {
    font-size: 12px;
  }

  .login-form {
    padding: clamp(48px, 10vh, 78px) 24px 24px;
  }

  .login-logo {
    width: 82px;
    height: 82px;
    border-radius: 16px;
  }

  .login-tabs {
    width: 100%;
    margin: 34px 0 26px;
  }

  .login-tabs button {
    min-width: 100px;
    height: 36px;
    font-size: 17px;
  }

  .login-tabs button.active::after {
    width: 34px;
    height: 3px;
  }

  .login-field {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    height: 52px;
    margin-bottom: 14px;
    padding: 0 16px;
  }

  .login-field.with-code {
    grid-template-columns: 28px 1fr 88px;
  }

  .login-field svg {
    width: 21px;
    height: 21px;
  }

  .login-field input {
    font-size: 16px;
  }

  .code-button {
    height: 32px;
    border-radius: 16px;
    font-size: 12px;
  }

  .login-agreement {
    margin: 6px 0 14px;
    font-size: 12px;
    line-height: 1.7;
  }

  .login-error {
    min-height: 18px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .login-submit {
    width: min(100%, 230px);
    height: 48px;
    border-radius: 24px;
    font-size: 18px;
  }

  .profile-hero {
    min-height: 156px;
    padding: calc(env(safe-area-inset-top) + 16px) 20px 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .profile-hero.compact {
    min-height: 198px;
    padding-bottom: 78px;
  }

  .profile-row {
    gap: 14px;
    margin-top: 10px;
  }

  .profile-row strong {
    font-size: 21px;
  }

  .profile-copy {
    gap: 4px;
  }

  .profile-copy small {
    font-size: 12px;
  }

  .avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    max-width: 58px;
    min-height: 58px;
    max-height: 58px;
  }

  .avatar svg {
    width: 35px;
    height: 35px;
  }

  .income-row {
    gap: 18px;
    margin-top: 24px;
  }

  .income-row.small {
    margin-top: 22px;
  }

  .income-row span {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .income-row b {
    font-size: 25px;
  }

  .home-grid {
    gap: 12px;
    padding: 18px 16px 12px;
  }

  .feature-card {
    gap: 5px;
    min-height: 112px;
    padding: 15px 10px 13px;
  }

  .feature-card strong {
    font-size: 17px;
  }

  .feature-card small {
    font-size: 12px;
  }

  .feature-icon {
    transform: scale(.84);
    margin: -4px;
  }

  .logout-button {
    width: calc(100% - 32px);
    height: 44px;
    margin-bottom: 18px;
    border-radius: 22px;
    font-size: 15px;
  }

  .topbar {
    grid-template-columns: 40px 1fr 40px;
    height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
  }

  .topbar strong {
    font-size: 18px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  svg {
    width: 22px;
    height: 22px;
  }

  .row-field,
  .block-field,
  .upload-row,
  .price-field,
  .switch-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }

  .row-field span,
  .block-field span,
  .upload-row > span,
  .price-field legend,
  .switch-row span,
  .compose-section-title strong {
    font-size: 16px;
  }

  .title-field input,
  .price-field > input {
    height: 40px;
    padding: 0 14px;
  }

  .block-field textarea {
    min-height: 100px;
    padding: 12px;
  }

  .upload-box {
    min-height: 72px;
  }

  .price-field {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .price-field legend {
    width: 64px;
  }

  .price-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    gap: 5px;
    max-width: none;
    margin-bottom: 10px;
  }

  .price-options label {
    min-width: 0;
  }

  .price-options span {
    width: 100%;
    height: 36px;
    min-height: 36px;
    border-radius: 18px;
    font-size: 14px;
  }

  .switch-row {
    grid-template-columns: 1fr 46px;
    padding-block: 12px;
  }

  .switch-row i {
    width: 46px;
    height: 28px;
  }

  .switch-row i::after {
    width: 22px;
    height: 22px;
  }

  .switch-row input:checked + i::after {
    transform: translateX(18px);
  }

  .compose-template-section {
    padding: 14px 16px 4px;
  }

  .compose-section-title {
    margin-bottom: 10px;
  }

  .compose-template-grid {
    gap: 6px;
  }

  .primary-button {
    width: calc(100% - 32px);
    height: 48px;
    margin: 18px auto;
    border-radius: 24px;
    font-size: 17px;
  }

  .article-panel {
    margin: -62px 12px 0;
    border-radius: 10px 10px 0 0;
  }

  .tabs {
    height: 50px;
  }

  .tabs button {
    font-size: 16px;
  }

  .tabs button.active::after {
    bottom: 6px;
    width: 44px;
  }

  .article-list {
    gap: 10px;
    padding: 12px;
  }

  .article-card {
    padding: 13px;
  }

  .article-card h3 {
    font-size: 18px;
  }

  .article-card .price {
    font-size: 24px;
  }

  .reader-card,
  .admin-detail-page,
  .scan-user-list,
  .income-detail-page,
  .fans-page,
  .template-page {
    margin: 14px;
    padding: 0;
  }

  .reader-card {
    padding: 16px;
  }

  .reader-card h1 {
    font-size: 21px;
  }

  .admin-detail-page,
  .income-detail-page,
  .fans-page,
  .template-page {
    gap: 14px;
  }

  .admin-detail-actions {
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
  }

  .admin-detail-actions button {
    font-size: 13px;
  }

  .append-form {
    gap: 14px;
    padding: 16px;
  }

  .append-form textarea {
    min-height: 180px;
  }

  .auth-card {
    gap: 12px;
    margin: 20px 16px 0;
    padding: 26px 20px;
    border-radius: 10px;
  }

  .auth-icon {
    width: 70px;
    height: 70px;
  }

  .auth-icon svg {
    width: 44px;
    height: 44px;
  }

  .auth-card h1 {
    font-size: 21px;
  }

  .user-post-page {
    padding: 18px 12px 118px;
  }

  .user-post-page.paid {
    padding-bottom: 36px;
  }

  .user-post-head {
    gap: 10px;
    padding-top: 8px;
  }

  .user-post-author {
    gap: 10px;
  }

  .user-post-avatar {
    width: 48px;
    height: 48px;
  }

  .user-post-avatar svg {
    width: 31px;
    height: 31px;
  }

  .user-post-author strong {
    margin-bottom: 5px;
    font-size: 19px;
  }

  .user-post-author time {
    font-size: 13px;
  }

  .all-views-button {
    min-width: 104px;
    height: 44px;
    border-radius: 22px;
    font-size: 16px;
  }

  .user-post-title {
    margin: 56px 14px 66px;
    font-size: 20px;
  }

  .content-divider {
    gap: 12px;
    margin: 0 12px 16px;
  }

  .locked-preview,
  .paid-content-box {
    min-height: 172px;
    padding: 24px 18px;
  }

  .lock-mark,
  .lock-mark svg {
    width: 44px;
    height: 44px;
  }

  .locked-preview p {
    font-size: 15px;
  }

  .user-paybar {
    grid-template-columns: 1fr 108px;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .user-paybar strong {
    font-size: 15px;
  }

  .user-paybar b {
    font-size: 19px;
  }

  .user-paybar button {
    height: 42px;
    border-radius: 21px;
    font-size: 15px;
  }

  .compact-browser .login-titlebar {
    height: 54px;
  }

  .user-author-hero {
    grid-template-columns: 64px 1fr;
    padding: 18px 16px;
  }

  .user-author-avatar {
    width: 64px;
    height: 64px;
  }

  .user-author-hero strong {
    font-size: 18px;
  }

  .user-author-panel {
    padding: 16px 0 28px;
  }

  .user-view-card {
    gap: 14px;
    padding: 14px;
  }

  .user-view-card strong {
    font-size: 17px;
  }

  .paid-content-box {
    font-size: 19px;
  }

  .design-head {
    grid-template-columns: 42px 1fr 42px;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 8px;
  }

  .design-head strong {
    font-size: 18px;
  }

  .design-form {
    gap: 14px;
    padding: 14px 16px 24px;
  }

  .design-preview {
    gap: 8px;
    padding: 20px 16px;
    border-radius: 10px;
  }

  .design-avatar span {
    width: 68px;
    height: 68px;
    min-width: 68px;
    max-width: 68px;
    min-height: 68px;
    max-height: 68px;
  }

  .design-avatar svg {
    width: 42px;
    height: 42px;
  }

  .design-preview strong {
    font-size: 20px;
  }

  .design-card {
    padding: 4px 16px;
    border-radius: 10px;
  }

  .design-card label {
    gap: 8px;
    padding: 14px 0;
  }

  .design-card span,
  .design-card input,
  .design-card textarea {
    font-size: 15px;
  }

  .design-card input {
    height: 42px;
  }

  .design-card textarea {
    min-height: 92px;
  }

  .withdraw-head {
    padding: calc(env(safe-area-inset-top) + 10px) 16px 0;
  }

  .withdraw-back {
    width: 38px;
    height: 38px;
    margin-top: 10px;
  }

  .withdraw-back svg {
    width: 26px;
    height: 26px;
  }

  .withdraw-form {
    gap: 16px;
    padding: 0 16px 24px;
  }

  .withdraw-summary {
    gap: 10px;
    min-height: 210px;
    padding: 42px 16px 22px;
    border-radius: 10px;
  }

  .withdraw-summary strong {
    font-size: 23px;
  }

  .withdraw-summary span {
    font-size: 15px;
  }

  .withdraw-summary b {
    font-size: 34px;
  }

  .withdraw-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    max-width: 64px;
    min-height: 64px;
    max-height: 64px;
  }

  .withdraw-card {
    padding: 10px 18px;
    border-radius: 10px;
  }

  .withdraw-card label {
    grid-template-columns: 82px 1fr;
    min-height: 62px;
  }

  .withdraw-card span,
  .withdraw-card input {
    font-size: 16px;
  }

  .withdraw-tip {
    margin-inline: 12px;
    font-size: 13px;
  }

  .withdraw-submit {
    height: 50px;
    border-radius: 25px;
    font-size: 17px;
  }

  .withdraw-result {
    gap: 12px;
    margin: 24px 16px 0;
    padding: 26px 18px 22px;
    border-radius: 10px;
  }

  .result-icon {
    width: 64px;
    height: 64px;
  }

  .result-icon svg {
    width: 34px;
    height: 34px;
  }

  .withdraw-result h2 {
    font-size: 21px;
  }

  .result-balance {
    padding: 14px;
  }

  .result-balance b {
    font-size: 26px;
  }

  .income-total-card,
  .fans-summary-card,
  .template-summary-card {
    padding: 18px;
    border-radius: 10px;
  }

  .income-total-card strong,
  .fans-summary-card strong,
  .template-summary-card strong {
    font-size: 28px;
  }

  .income-detail-tabs,
  .fans-sort-tabs {
    gap: 5px;
    padding: 4px;
    border-radius: 10px;
  }

  .income-detail-tabs button,
  .fans-sort-tabs button {
    height: 36px;
    border-radius: 7px;
    font-size: 14px;
  }

  .date-filter,
  .income-detail-item,
  .fan-item {
    padding: 13px;
    border-radius: 8px;
  }

  .fan-item {
    grid-template-columns: 46px 1fr 58px;
    gap: 10px;
  }

  .fan-avatar {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .fan-copy strong {
    font-size: 15px;
  }

  .fan-item button {
    height: 30px;
    font-size: 12px;
  }

  .author-home-page {
    gap: 14px;
    padding: 14px 16px 24px;
  }

  .author-profile-card,
  .author-qr-card {
    gap: 9px;
    padding: 22px 18px;
    border-radius: 10px;
  }

  .author-home-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    min-height: 72px;
    max-height: 72px;
  }

  .author-profile-card strong {
    font-size: 21px;
  }

  .author-qr {
    width: 190px;
    height: 190px;
  }

  .author-qr img {
    width: 164px;
    height: 164px;
  }

  .template-grid {
    gap: 10px;
  }

  .template-item,
  .template-add-card {
    min-height: 190px;
    border-radius: 8px;
  }

  .template-item img {
    height: 146px;
  }

  .template-meta {
    padding: 8px 10px 10px;
  }

  .template-add-card span {
    width: 46px;
    height: 46px;
    font-size: 28px;
  }

  .tabbar {
    height: calc(62px + env(safe-area-inset-bottom));
  }

  .tabbar button {
    gap: 3px;
    font-size: 12px;
  }

  .tabbar svg {
    width: 21px;
    height: 21px;
  }

  .modal {
    padding: 12px;
  }

  .modal-sheet {
    padding: 18px;
    border-radius: 12px;
  }

  .modal-sheet h2 {
    margin-top: 5px;
    font-size: 20px;
  }

  .material-code-sheet img {
    width: min(100%, 292px);
    margin-top: 12px;
    border-radius: 8px;
  }

  .judgement-actions {
    gap: 8px;
    margin: 14px 0 10px;
  }

  .judgement-actions button {
    height: 42px;
    border-radius: 21px;
    font-size: 15px;
  }

  .pay-state-box {
    width: 190px;
    min-height: 164px;
    margin: 14px auto;
  }
}

@media (max-width: 519px) {
  .admin-entry {
    width: calc(100% - 32px);
    min-height: 58px;
    margin-bottom: 10px;
  }

  .admin-page {
    gap: 12px;
    padding: 6px 16px 24px;
  }

  .admin-summary-grid {
    gap: 8px;
  }

  .admin-summary-grid > div {
    min-height: 68px;
    padding: 11px 12px;
  }

  .admin-summary-grid strong {
    font-size: 18px;
  }

  .admin-item {
    padding: 12px;
  }
}

/* Final UI rhythm: keep the shared app surfaces compact, readable, and easy to tap. */
:root {
  --line: #ebe7e5;
  --shadow: 0 8px 22px rgba(92, 60, 50, .09);
}

body {
  background: #f5f7f7;
  color: #24201f;
  line-height: 1.45;
}

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

.app-shell {
  background: #fafbfb;
}

.profile-hero {
  min-height: 164px;
  padding: calc(env(safe-area-inset-top) + 18px) 22px 20px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.profile-hero.compact {
  min-height: 208px;
  padding-bottom: 78px;
}

.profile-row {
  gap: 14px;
  margin-top: 12px;
}

.profile-row strong {
  font-size: 21px;
}

.profile-copy {
  gap: 4px;
}

.profile-copy small {
  font-size: 13px;
}

.avatar {
  width: 62px;
  height: 62px;
  min-width: 62px;
  max-width: 62px;
  min-height: 62px;
  max-height: 62px;
}

.avatar svg {
  width: 36px;
  height: 36px;
}

.income-row {
  gap: 18px;
  margin-top: 24px;
}

.income-row.small {
  gap: 12px;
  margin-top: 22px;
}

.income-row span {
  margin-bottom: 5px;
  font-size: 13px;
}

.income-row b {
  font-size: 26px;
}

.home-grid {
  gap: 12px;
  padding: 18px 16px 12px;
}

.feature-card {
  gap: 5px;
  min-height: 112px;
  padding: 16px 10px 14px;
  border-radius: 10px;
}

.feature-card strong {
  font-size: 17px;
}

.feature-card small {
  font-size: 12px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  transform: scale(.9);
}

.logout-button {
  width: calc(100% - 32px);
  height: 44px;
  margin-bottom: 18px;
  border-radius: 22px;
  font-size: 15px;
}

.topbar {
  grid-template-columns: 40px 1fr 40px;
  height: calc(54px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
}

.topbar strong {
  font-size: 18px;
}

.icon-button {
  width: 36px;
  height: 36px;
}

.row-field,
.block-field,
.upload-row,
.price-field,
.switch-row {
  gap: 12px;
  padding: 14px 16px;
}

.row-field span,
.block-field span,
.upload-row > span,
.price-field legend,
.switch-row span {
  font-size: 16px;
}

.title-field input,
.price-field > input {
  height: 40px;
  padding: 0 14px;
}

.block-field textarea {
  min-height: 100px;
  padding: 12px;
}

.upload-box {
  min-height: 72px;
}

.price-options {
  gap: 5px;
  margin-bottom: 10px;
}

.price-options span {
  height: 36px;
  min-height: 36px;
  font-size: 14px;
}

.switch-row {
  grid-template-columns: 1fr 46px;
  padding-block: 12px;
}

.switch-row i {
  width: 46px;
  height: 28px;
}

.switch-row i::after {
  width: 22px;
  height: 22px;
}

.switch-row input:checked + i::after {
  transform: translateX(18px);
}

.compose-template-section {
  padding: 14px 16px 4px;
}

.compose-section-title {
  margin-bottom: 10px;
}

.compose-section-title strong {
  font-size: 16px;
}

.primary-button,
.login-submit,
.withdraw-submit {
  height: 48px;
  border-radius: 24px;
  font-size: 17px;
}

.primary-button {
  width: calc(100% - 32px);
  margin: 18px auto;
}

.login-submit {
  width: min(100%, 230px);
  font-size: 18px;
}

.article-panel {
  margin: -62px 12px 0;
  border-radius: 10px 10px 0 0;
}

.tabs {
  height: 50px;
}

.tabs button {
  font-size: 16px;
}

.article-list {
  gap: 10px;
  padding: 12px;
}

.article-card {
  gap: 7px 10px;
  padding: 13px;
  border-radius: 10px;
}

.article-card h3 {
  font-size: 18px;
}

.article-card .price {
  font-size: 24px;
}

.article-card time {
  padding-top: 8px;
  font-size: 12px;
}

.reader-card,
.admin-detail-page,
.scan-user-list,
.income-detail-page,
.fans-page,
.template-page {
  margin: 14px;
}

.reader-card {
  padding: 16px;
  border-radius: 10px;
}

.reader-card h1 {
  font-size: 21px;
}

.reader-card p {
  line-height: 1.7;
}

.admin-detail-page,
.income-detail-page,
.fans-page,
.template-page {
  gap: 14px;
  padding: 14px 16px 24px;
}

.admin-detail-actions {
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
}

.admin-detail-actions button {
  font-size: 13px;
}

.append-form {
  gap: 14px;
  padding: 16px;
}

.append-form textarea {
  min-height: 180px;
}

.auth-card {
  gap: 12px;
  margin: 20px 16px 0;
  padding: 26px 20px;
  border-radius: 10px;
}

.auth-card h1 {
  font-size: 21px;
}

.user-portal-section-head strong {
  font-size: 16px;
}

.user-unlocked-card,
.user-feature-button {
  border-radius: 10px;
}

.user-unlocked-card {
  min-height: 70px;
  padding: 12px;
}

.user-feature-button {
  min-height: 62px;
  margin-bottom: 12px;
  padding: 10px 14px;
}

.user-feature-icon {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.user-feature-button strong {
  font-size: 15px;
}

.user-logout-button {
  height: 44px;
  font-size: 14px;
}

.user-post-page {
  padding: 16px 12px 112px;
}

.user-post-page.paid {
  padding-bottom: 30px;
}

.user-post-head {
  gap: 10px;
  padding-top: 6px;
}

.user-post-author {
  gap: 10px;
}

.user-post-avatar {
  width: 46px;
  height: 46px;
}

.user-post-author strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.user-post-author time {
  font-size: 12px;
}

.all-views-button {
  min-width: 96px;
  height: 40px;
  border-radius: 20px;
  font-size: 15px;
}

.user-post-title {
  margin: 44px 12px 52px;
  font-size: 20px;
}

.content-divider {
  gap: 10px;
  margin: 0 10px 14px;
}

.locked-preview,
.paid-content-box {
  min-height: 160px;
  padding: 22px 16px;
}

.locked-preview p {
  font-size: 15px;
}

.user-paybar {
  grid-template-columns: 1fr 104px;
  min-height: calc(64px + env(safe-area-inset-bottom));
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}

.user-paybar strong {
  font-size: 14px;
}

.user-paybar b {
  font-size: 18px;
}

.user-paybar button {
  height: 40px;
  border-radius: 20px;
  font-size: 14px;
}

.user-author-hero {
  padding: 16px;
}

.user-author-hero strong {
  font-size: 18px;
}

.user-author-panel {
  padding: 14px 0 24px;
}

.user-view-card {
  gap: 12px;
  padding: 13px;
  border-radius: 10px;
}

.user-view-card strong {
  font-size: 16px;
}

.design-head {
  grid-template-columns: 40px 1fr 40px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 8px;
}

.design-head strong {
  font-size: 18px;
}

.design-form {
  gap: 14px;
  padding: 14px 16px 24px;
}

.design-preview {
  gap: 8px;
  padding: 20px 16px;
  border-radius: 10px;
}

.design-preview strong {
  font-size: 20px;
}

.design-card {
  padding: 4px 16px;
  border-radius: 10px;
}

.design-card label {
  gap: 8px;
  padding: 13px 0;
}

.design-card span,
.design-card input,
.design-card textarea {
  font-size: 15px;
}

.design-card input {
  height: 40px;
}

.design-card textarea {
  min-height: 88px;
}

.withdraw-form {
  gap: 16px;
  padding: 0 16px 24px;
}

.withdraw-summary {
  min-height: 210px;
  padding: 42px 16px 22px;
  border-radius: 10px;
}

.withdraw-summary strong {
  font-size: 23px;
}

.withdraw-summary span {
  font-size: 15px;
}

.withdraw-summary b {
  font-size: 34px;
}

.withdraw-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  max-width: 64px;
  min-height: 64px;
  max-height: 64px;
}

.withdraw-card {
  padding: 8px 18px;
  border-radius: 10px;
}

.withdraw-card label {
  grid-template-columns: 82px 1fr;
  min-height: 60px;
}

.withdraw-card span,
.withdraw-card input {
  font-size: 16px;
}

.withdraw-tip {
  margin-inline: 12px;
  font-size: 13px;
}

.withdraw-submit {
  font-size: 17px;
}

.income-total-card,
.fans-summary-card,
.template-summary-card {
  padding: 18px;
  border-radius: 10px;
}

.income-total-card strong,
.fans-summary-card strong,
.template-summary-card strong {
  font-size: 28px;
}

.income-detail-tabs,
.fans-sort-tabs {
  gap: 5px;
  padding: 4px;
  border-radius: 10px;
}

.income-detail-tabs button,
.fans-sort-tabs button {
  height: 36px;
  border-radius: 7px;
  font-size: 14px;
}

.date-filter,
.income-detail-item,
.fan-item {
  padding: 13px;
  border-radius: 10px;
}

.fan-item {
  grid-template-columns: 46px 1fr 58px;
  gap: 10px;
}

.fan-avatar {
  width: 46px;
  height: 46px;
  font-size: 17px;
}

.fan-copy strong {
  font-size: 15px;
}

.author-home-page {
  gap: 14px;
  padding: 14px 16px 24px;
}

.author-profile-card,
.author-qr-card {
  gap: 8px;
  padding: 20px 16px;
  border-radius: 10px;
}

.author-home-avatar {
  width: 70px;
  height: 70px;
  min-width: 70px;
  max-width: 70px;
  min-height: 70px;
  max-height: 70px;
}

.author-profile-card strong {
  font-size: 20px;
}

.author-qr {
  width: 180px;
  height: 180px;
}

.author-qr img {
  width: 156px;
  height: 156px;
}

.template-grid {
  gap: 10px;
}

.template-item,
.template-add-card {
  min-height: 182px;
  border-radius: 8px;
}

.template-item img {
  height: 140px;
}

.template-meta {
  padding: 8px 10px 10px;
}

.tabbar,
.user-tabbar {
  height: calc(64px + env(safe-area-inset-bottom));
}

.tabbar button,
.user-tabbar button {
  gap: 3px;
  font-size: 12px;
}

.tabbar svg,
.user-tabbar svg {
  width: 21px;
  height: 21px;
}

.modal {
  padding: 12px;
}

.modal-sheet {
  padding: 18px;
  border-radius: 12px;
}

.modal-sheet h2 {
  margin-top: 4px;
  font-size: 20px;
}

.site-toast {
  top: 78px;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.site-toast-actions button {
  min-height: 32px;
  font-size: 12px;
}

.material-code-sheet img {
  width: min(100%, 292px);
  margin-top: 12px;
  border-radius: 8px;
}

.judgement-actions {
  gap: 8px;
  margin: 14px 0 10px;
}

.judgement-actions button {
  height: 42px;
  border-radius: 21px;
  font-size: 15px;
}

.pay-state-box {
  width: 190px;
  min-height: 164px;
  margin: 14px auto;
}

/* Keep the reader-facing author page warm and compact on small screens. */
.user-author-hero {
  background: #4a2a20;
  color: #fff;
}

.user-author-hero strong,
.user-author-hero > p,
.user-author-stats span {
  color: #fff;
}

.user-author-stats b {
  color: #fff;
}

.user-author-panel h1 {
  font-size: 16px;
}

.article-card {
  gap: 6px 8px;
  padding: 10px;
}

.article-card h3 {
  font-size: 16px;
}

.article-card .price {
  font-size: 21px;
}

/* Reader-facing author profile: compact editorial layout using the product accent. */
#screen-user-author-list {
  min-height: 100dvh;
  background: #f7f7f7;
}

#screen-user-author-list > .compact-browser {
  display: none;
}

#screen-user-author-list .user-author-hero {
  position: relative;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 224px;
  padding: calc(env(safe-area-inset-top) + 24px) 20px 24px;
  background: var(--orange);
  color: #fff;
}

#screen-user-author-list .user-author-share {
  position: absolute;
  top: 50%;
  right: 20px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 21px;
  color: #fff;
  background: rgba(132, 38, 18, .2);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}

#screen-user-author-list .user-author-copy {
  min-width: 0;
  padding-right: 92px;
  padding-top: 6px;
}

#screen-user-author-list .user-author-meta-line {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

#screen-user-author-list .user-author-share:active {
  background: rgba(132, 38, 18, .36);
}

#screen-user-author-list .user-author-avatar {
  width: 74px;
  height: 74px;
  border: 3px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(128, 40, 20, .18);
}

#screen-user-author-list .user-author-hero strong {
  margin: 0 0 3px;
  overflow: hidden;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-user-author-list .user-author-stats {
  display: grid;
  grid-template-columns: repeat(2, 74px);
  grid-column: 1 / -1;
  gap: 18px;
  width: max-content;
  margin-top: 4px;
}

#screen-user-author-list .user-author-stats span {
  position: relative;
  min-width: 0;
  gap: 3px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  justify-items: center;
  text-align: center;
}

#screen-user-author-list .user-author-stats span + span {
  padding-left: 0;
  border-left: 0;
}

#screen-user-author-list .user-author-stats span:first-child::after {
  position: absolute;
  top: 50%;
  right: -9px;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, .42);
  content: "";
  transform: translate(50%, -50%);
}

#screen-user-author-list .user-author-stats b {
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

#screen-user-author-list .user-author-hero > p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-user-author-list .user-author-signature {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-user-author-list .user-author-panel {
  padding: 0 0 32px;
  background: #f7f7f7;
}

#screen-user-author-list .user-author-panel h1 {
  margin: 0;
  padding: 18px 20px 15px;
  border-bottom: 1px solid #ececec;
  background: #fff;
  color: var(--orange-dark);
  text-align: left;
  font-size: 18px;
  line-height: 1.3;
}

#screen-user-author-list .user-author-panel h1::after {
  width: 34px;
  height: 3px;
  margin: 9px 0 -16px;
  border-radius: 2px;
  background: var(--orange);
}

#screen-user-author-list .user-author-meta {
  padding: 14px 18px 10px;
  color: #777;
  font-size: 13px;
}

#screen-user-author-list .user-author-meta b {
  min-width: 0;
  padding: 4px 9px;
  border-radius: 4px;
  background: transparent;
  color: var(--orange-dark);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(214, 80, 53, .38);
}

#screen-user-author-list .user-author-list {
  display: block;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  background: #fff;
}

#screen-user-author-list .user-view-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 14px;
  margin: 0 18px;
  padding: 17px 0 16px;
  border-bottom: 1px solid #ededed;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#screen-user-author-list .user-view-card:last-child {
  border-bottom: 0;
}

#screen-user-author-list .user-view-card time {
  color: #888;
  font-size: 12px;
  line-height: 1.4;
}

#screen-user-author-list .user-view-card > b {
  color: var(--orange-dark);
  font-size: 16px;
  line-height: 1.4;
}

#screen-user-author-list .user-view-card > strong {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  color: #1e1e1e;
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
}

#screen-user-author-list .user-view-card .view-card-actions {
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
}

#screen-user-author-list .user-view-card .view-card-actions span {
  min-width: 0;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--orange-dark);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(214, 80, 53, .3);
}

#screen-user-author-list .user-view-card .view-card-actions span:last-child {
  padding: 0;
  color: #777;
  box-shadow: none;
}

.author-share-sheet {
  text-align: left;
}

.author-share-sheet > h2,
.author-share-sheet > p {
  padding-right: 36px;
  text-align: left;
}

.author-share-sheet > p {
  margin: 0;
  font-size: 13px;
}

.author-share-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.author-share-actions > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #ece8e6;
  border-radius: 8px;
  color: #25211f;
  background: #fff;
  text-align: left;
}

.author-share-actions > button:active {
  background: #faf4f1;
}

.author-share-actions svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  color: var(--orange-dark);
  background: rgba(255, 85, 48, .1);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.author-share-actions span {
  display: grid;
  gap: 3px;
}

.author-share-actions strong {
  font-size: 15px;
  line-height: 1.35;
}

.author-share-actions small {
  color: #8a817d;
  font-size: 12px;
  line-height: 1.4;
}

.author-share-qr-sheet {
  text-align: center;
}

.author-share-qr-sheet > strong {
  display: block;
  margin-top: 8px;
  color: #555;
  font-size: 15px;
}

.author-share-qr-sheet img {
  display: block;
  width: min(100%, 292px);
  aspect-ratio: 1;
  margin: 14px auto 12px;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 30, 25, .12);
  image-rendering: pixelated;
  -webkit-touch-callout: default;
  user-select: auto;
}

.author-share-qr-sheet > small {
  display: block;
  color: #777;
  font-size: 13px;
}

@media (max-width: 360px) {
  #screen-user-author-list .user-author-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 204px;
    padding-inline: 16px;
  }

  #screen-user-author-list .user-author-avatar {
    width: 64px;
    height: 64px;
  }

  #screen-user-author-list .user-author-hero strong {
    font-size: 21px;
  }
}

#article-content {
  min-height: 960px;
}

@media (max-width: 519px) {
  #article-content {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
  }
}

.profile-row .profile-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-row .profile-copy strong,
.profile-row .profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-fan-summary {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 54px;
  margin-left: auto;
  padding: 4px 0;
  color: #fff;
  font-size: 13px;
}

.profile-fan-summary b {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.profile-fan-summary span {
  display: block;
  color: rgba(255, 255, 255, .82);
  line-height: 1.2;
}
