:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-alt: #ffffff;
  --line: #d9d9d9;
  --text: #1e1e1e;
  --muted: #64605a;
  --accent: #116b6c;
  --accent-dark: #0c5556;
  --warm: #c9492a;
  --danger: #a23b28;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  --font-ui: "Noto Sans JP", "Noto Sans", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  --font-ui-rounded: "Gen Jyuu Gothic", "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Noto Sans JP", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-cjk-ui: "Noto Sans JP", "Noto Sans CJK JP", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans KR", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-family: var(--font-ui);
}

html[lang="zh-Hans"] {
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-ui-rounded: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-cjk-ui: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-Hant"] {
  --font-ui: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-ui-rounded: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-cjk-ui: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

html[lang="ko"] {
  --font-ui: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --font-ui-rounded: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --font-cjk-ui: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-ui-rounded);
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 40px;
}

.topbar {
  --left-hero-space: 250px;
  --right-control-space: 226px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 184px;
  margin: 0;
  padding: 28px var(--right-control-space) 54px var(--left-hero-space);
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  overflow: hidden;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.topbar::before {
  left: 0;
  width: clamp(260px, 31vw, 390px);
  background: url("./assets/home-hero-banner-20260630-v4.png") left top / auto 100% no-repeat;
}

.topbar::after {
  right: 0;
  width: clamp(300px, 45vw, 620px);
  background: url("./assets/home-hero-banner-20260630-v4.png") right top / auto 100% no-repeat;
}

.topbar-title {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(640px, calc(100vw - var(--left-hero-space) - var(--right-control-space) - 44px));
  max-width: 100%;
}

.service-code {
  margin: 0 0 6px;
  color: #4c443d;
  font-family: var(--font-ui-rounded);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--font-ui-rounded);
  font-size: var(--service-title-font-size, 4.05rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

h1 .service-name-line {
  display: block;
  white-space: nowrap !important;
  text-wrap: nowrap;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hant"] h1,
html[lang="ko"] h1 {
  font-family: var(--font-cjk-ui);
  font-size: var(--service-title-font-size, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
}

h2 {
  font-family: var(--font-ui-rounded);
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.title-icon img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.topbar-actions,
.inline-form,
.button-stack {
  display: flex;
  gap: 10px;
}

.topbar-actions {
  position: absolute;
  top: 22px;
  right: 0;
  z-index: 2;
  align-items: flex-start;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.select-label,
.auth-form label,
.locale-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

select,
input {
  font-family: var(--font-ui);
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.locale-control select {
  width: min(194px, 36vw);
  padding-left: 44px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.locale-control {
  position: relative;
}

.locale-control::before {
  content: "🌐";
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 2;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  font-size: 18px;
  line-height: 20px;
  pointer-events: none;
}

.locale-control::after {
  content: none;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  z-index: 4;
  width: 100%;
  margin: -32px auto 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-strip > .status-item {
  background: var(--surface);
  min-height: 78px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 32px;
}

.status-link {
  color: inherit;
  text-decoration: none;
}

.status-link:hover,
.status-link:focus {
  outline: none;
  background: #fbfbfb;
}

.status-item + .status-item {
  border-left: 1px solid var(--line);
}

.status-icon {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.status-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.status-label {
  display: block;
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--font-ui-rounded);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-copy strong {
  font-family: var(--font-ui-rounded);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.panel-header .primary-button {
  flex: 0 0 auto;
}

.panel-header p,
.message {
  color: var(--muted);
  line-height: 1.55;
}

.panel,
.panel-header > div,
#libraryLead,
.library-note,
.catalog-summary {
  min-width: 0;
}

#libraryLead,
.library-note,
.catalog-summary,
.login-lead {
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

.library-note {
  max-width: 72ch;
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.free-story-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.library-coming-soon {
  display: inline-block;
  margin-top: 4px;
}

.panel-header.compact {
  margin-bottom: 16px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #1c7979, var(--accent-dark));
  color: #fff;
  padding: 0 26px;
  box-shadow: 0 8px 18px rgba(17, 107, 108, 0.22);
}

.primary-button::before {
  content: "";
  width: 23px;
  height: 23px;
  background: url("./assets/ui-icons/book-button.png") center / contain no-repeat;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.row-button {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
  padding: 0 14px;
}

.secondary-button:hover,
.row-button:hover,
.ghost-button:hover {
  border-color: var(--accent);
}

.story-row .row-button {
  min-height: 38px;
  border-color: #a93a24;
  background: linear-gradient(180deg, #c94a2d, #a93822);
  color: #fff;
  box-shadow: 0 4px 10px rgba(169, 58, 36, 0.2);
}

.story-row .row-button:hover {
  border-color: #812817;
  background: linear-gradient(180deg, #d25436, #96311e);
}

.ghost-button {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  padding: 0 14px;
}

.story-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.story-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1.5fr) minmax(180px, 0.8fr) minmax(150px, 0.45fr);
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  min-height: 74px;
}

.story-row:first-child {
  border-top: 0;
}

.story-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.story-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.story-row > span:nth-child(3) {
  color: #3f382f;
  font-weight: 650;
  line-height: 1.35;
}

.story-row > span:nth-child(4) {
  color: #3f382f;
  font-weight: 650;
  white-space: nowrap;
}

.story-row.is-clickable {
  cursor: pointer;
}

.story-row.is-clickable:hover,
.story-row.is-clickable:focus {
  outline: none;
  background: rgba(17, 107, 108, 0.06);
}

.story-thumb {
  width: 132px;
  height: 70px;
  margin-left: -12px;
  align-self: stretch;
  background: var(--surface-alt);
  overflow: hidden;
}

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

.story-title-cell strong {
  display: block;
  font-family: var(--font-ui-rounded);
  line-height: 1.25;
}

#storyRows {
  display: contents;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.55fr);
  gap: 24px;
  margin: 4px 0 14px;
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filter-icon-img {
  width: 18px;
  height: 18px;
  display: inline-block;
  object-fit: contain;
  border-radius: 50%;
}

.catalog-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-ui-rounded);
  font-weight: 700;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.page-number-button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: none;
}

.page-number-button[aria-current="page"] {
  border-color: #1e1e1e;
  background: #1e1e1e;
  color: #fff;
  opacity: 1;
}

.pagination-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

#pageStatus {
  min-width: 96px;
  text-align: center;
  font-size: 0.9rem;
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.auth-form,
.button-stack {
  margin-top: 8px;
}

.inline-form input {
  flex: 1;
  min-width: 0;
}

.button-stack {
  flex-direction: column;
}

.full-width {
  width: 100%;
}

.message {
  min-height: 1.55em;
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

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

.site-footer a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.message.error {
  color: var(--danger);
}

.login-body {
  min-height: 100vh;
  background: linear-gradient(90deg, #eaf8ff 0, #ffffff 18%, #ffffff 82%, #eaf8ff 100%);
}

.login-shell {
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.login-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(760px, 100%);
  margin: 0 auto 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 0;
  border: 1px solid #cde6f6;
  border-radius: 10px;
  background: #fff;
  color: #2687b7;
  font-weight: 800;
  padding: 0 16px;
  text-decoration: none;
}

.login-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 82px;
  margin-bottom: 14px;
  padding: 18px 220px 18px 22px;
  border-radius: 20px;
  background: #fff url("./assets/home-hero-banner-20260630-v4.png") center / cover no-repeat;
  overflow: hidden;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: none;
}

.login-locale {
  position: relative;
  margin-left: auto;
}

.login-card,
.account-dashboard {
  width: min(760px, 100%);
  margin: 0 auto;
}

.login-card {
  border: 1px solid #cde6f6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(38, 135, 183, 0.1);
  padding: 36px 44px;
}

.login-card h2 {
  color: #1f4059;
  font-size: 2.1rem;
  text-align: center;
}

.login-lead {
  margin-top: 0;
  color: #426177;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 14px;
}

.auth-tab {
  border-color: #cde6f6;
  background: #fff;
  color: #1f4059;
  min-width: 0;
  white-space: normal;
}

.auth-tab.is-active {
  border-color: #ff8a3a;
  background: #ff8a3a;
  color: #fff;
}

.google-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin-top: 14px;
  border-color: #cde6f6;
  background: #fff;
  color: #1f4059;
  font-size: 1.08rem;
}

.google-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.google-mark svg {
  display: block;
  width: 24px;
  height: 24px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  color: #7793a7;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #cde6f6;
}

.password-auth-form {
  display: grid;
  gap: 12px;
}

.password-auth-form label {
  color: #426177;
  font-weight: 800;
}

.password-auth-form input,
.password-field {
  width: 100%;
}

.password-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.password-field input {
  flex: 1 1 0;
  width: auto;
  border: 0;
  border-radius: 0;
  min-width: 0;
}

.password-field button {
  min-width: 86px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #f7fcff;
  color: #2687b7;
}

.password-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid #cde6f6;
  border-radius: 10px;
  background: #f7fcff;
  color: #32805a;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 12px;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cde6f6;
  border-radius: 10px;
  padding: 12px;
}

.consent-row input {
  width: 22px;
  min-height: 22px;
  flex: 0 0 auto;
}

.login-primary-button {
  min-height: 56px;
  border-color: #ff8a3a;
  background: linear-gradient(180deg, #ff8a3a, #ff7430);
  color: #fff;
  box-shadow: 0 8px 0 #d95d32;
  padding: 0 22px;
}

.link-button {
  display: block;
  margin: 20px 0 0 auto;
  border: 0;
  background: transparent;
  color: #2687b7;
  text-decoration: underline;
}

.login-message {
  min-height: 1.5em;
  margin-top: 18px;
  color: #426177;
  font-weight: 700;
}

.account-hero {
  min-height: 190px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(90deg, #e0f7ff, #c8eefb);
  padding: 40px;
}

.account-hero h1 {
  color: #1f4059;
  font-family: var(--font-ui-rounded);
  font-size: 3.6rem;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.account-summary-card,
.account-action-card,
.account-row-button {
  border: 1px solid #d8edf8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(38, 135, 183, 0.08);
}

.account-summary-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 118px;
  padding: 24px;
}

.account-summary-card p,
.account-action-card p {
  margin-bottom: 4px;
  color: #426177;
  font-weight: 800;
}

.account-summary-card strong {
  color: #1f4059;
  font-family: var(--font-ui-rounded);
  font-size: 1.25rem;
}

.account-action-card h2 {
  margin: 0;
  color: #1f4059;
  font-family: var(--font-ui-rounded);
  font-size: 1.25rem;
  line-height: 1.25;
}

.account-action-card h2 + p {
  margin-top: 4px;
}

.round-ui-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e4f6ff;
  color: #2687b7;
  font-size: 1.55rem;
  font-weight: 900;
}

.plan-mini-icon {
  background: #fff2bf;
  color: #d6a21a;
}

.billing-mini-icon {
  background: #dff5ff;
}

.email-mini-icon {
  background: #dbf9dc;
  color: #35a959;
}

.account-action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 28px;
}

.plan-action-card {
  min-height: 118px;
  padding: 24px;
}

.account-inline-form {
  margin-top: 16px;
}

.account-row-button {
  width: 100%;
  min-height: 62px;
  background: #fff;
  color: #1f4059;
  text-align: center;
}

.login-footer {
  margin-top: 28px;
}

@media (max-width: 1060px) {
  .story-row {
    grid-template-columns: 104px minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(118px, 0.5fr);
    gap: 12px;
  }

  .story-thumb {
    width: 104px;
  }

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

  .status-item {
    padding: 14px 18px;
  }
}

@media (max-width: 800px) {
  .app-shell {
    width: min(680px, calc(100vw - 20px));
  }

  .topbar {
    --left-hero-space: 150px;
    --right-control-space: 200px;
    min-height: 154px;
    padding: 18px var(--right-control-space) 44px var(--left-hero-space);
  }

  .topbar::before {
    width: 210px;
  }

  .topbar::after {
    width: 240px;
  }

  h1 {
    font-size: var(--service-title-font-size, 2.35rem);
    line-height: 1.03;
  }

  html[lang="zh-Hans"] h1,
  html[lang="zh-Hant"] h1,
  html[lang="ko"] h1 {
    font-size: var(--service-title-font-size, 2.2rem);
    line-height: 1.08;
  }

  .panel-header {
    display: grid;
  }

  .panel-header .primary-button {
    width: 100%;
  }

  .topbar-actions {
    top: 12px;
    right: 0;
    justify-content: flex-end;
  }

  .locale-control select {
    width: 180px;
  }

  .status-strip,
  .story-row,
  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .status-strip {
    margin-top: 0;
  }

  .status-item + .status-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .story-row {
    padding: 12px;
  }

  .story-thumb {
    width: 100%;
    height: 138px;
    margin: 0;
  }

  .pagination {
    justify-content: stretch;
  }

  .pagination button {
    flex: 1;
  }

  .pagination-numbers {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .page-number-button {
    flex: 0 0 auto;
    min-width: 32px;
    min-height: 32px;
  }

  #pageStatus {
    flex: 1 0 100%;
    order: -2;
    min-width: 0;
  }

  .login-hero {
    min-height: 72px;
    padding: 12px 178px 12px 12px;
  }

  .login-locale {
    top: auto;
    right: auto;
  }

  .login-card {
    padding: 28px 18px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .link-button {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .account-summary-grid,
  .account-action-card {
    grid-template-columns: 1fr;
  }

  .account-action-card {
    align-items: start;
  }

  .account-inline-form {
    display: grid;
  }
}

@media (max-width: 640px) {
  .topbar {
    --right-control-space: 10px;
    min-height: 176px;
    padding-top: 58px;
    padding-bottom: 28px;
  }

  .topbar-actions {
    top: 10px;
    right: 0;
  }

  .locale-control select {
    width: 166px;
  }

  .login-shell {
    width: calc(100vw - 64px);
    max-width: 460px;
  }

  .login-hero {
    padding-left: 10px;
    padding-right: 10px;
  }

  .password-rules {
    grid-template-columns: 1fr;
  }

  .password-field button {
    min-width: 72px;
  }
}

@media (max-width: 480px) {
  .topbar {
    --left-hero-space: 150px;
    --right-control-space: 10px;
    min-height: 198px;
    padding: 70px var(--right-control-space) 34px var(--left-hero-space);
  }

  .topbar::before {
    width: 172px;
  }

  .topbar::after {
    width: 174px;
    opacity: 0.85;
  }

  .service-code {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
  }

  h1 {
    font-size: var(--service-title-font-size, 1.82rem);
    line-height: 1.05;
  }

  html[lang="zh-Hans"] h1,
  html[lang="zh-Hant"] h1,
  html[lang="ko"] h1 {
    font-size: var(--service-title-font-size, 1.72rem);
  }

  .topbar-actions {
    top: 10px;
    right: 0;
  }

  .locale-control select {
    width: 166px;
  }
}
