@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTW";
  src: url("./SourceHanSansTW-Normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSansTWFull";
  src: url("./SourceHanSansTW-Normal.otf") format("opentype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --paper: #f6e9c8;
  --paper-soft: #fff7e5;
  --line: #201914;
  --ink: #15110d;
  --muted: #766858;
  --jade: #285f50;
  --blue: #2d5d8b;
  --red: #b84124;
  --shadow: 0 18px 38px rgba(36, 26, 14, 0.16);
  --app-scale: 1;
  --app-width: 1440px;
  --app-height: 980px;
  --side-width: 430px;
  --line-width: 2px;
  --text-xs: 13px;
  --text-sm: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 23px;
  --home-label: 54px;
  --home-top: 56px;
  --home-icon-scale: 1;
  --auth-font: 44px;
  --auth-mobile-font: 25px;
  --auth-select-option-font: calc(var(--auth-font) * var(--app-scale));
  --auth-select-group-font: calc(var(--auth-select-option-font) * 0.7);
  --paper-active-bg: #f4e2ad;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 25, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 25, 20, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-size: var(--text-sm);
  line-height: 1.32;
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

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

button {
  cursor: pointer;
}

.removed-route {
  cursor: default !important;
}

.app {
  position: fixed;
  left: 50%;
  top: 50%;
  width: var(--app-width);
  height: var(--app-height);
  transform: translate(-50%, -50%) scale(var(--app-scale));
  transform-origin: center center;
  overflow: visible;
}

.page {
  height: 100%;
  min-height: 0;
  border: var(--line-width) solid var(--line);
  background: rgba(246, 233, 200, 0.94);
  box-shadow: var(--shadow);
}

.home-page {
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.home-frame {
  height: 100%;
  aspect-ratio: 1280 / 1380;
  max-width: 100%;
  border: var(--line-width) solid var(--line);
  background: rgba(255, 242, 204, 0.92);
  box-shadow: var(--shadow);
}

.home-tile {
  border: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  padding: 0;
  color: var(--ink);
}

.home-grid button:nth-child(3n) {
  border-right: 0;
}

.topbar {
  display: grid;
  grid-template-columns: var(--side-width) 250px minmax(0, 1fr);
  min-height: 68px;
  border-bottom: var(--line-width) solid var(--line);
}

.brand,
.top-button,
.founding {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  padding: 8px 16px;
  border-right: var(--line-width) solid var(--line);
}

.penguin-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 4px;
}

.brand strong {
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.founding {
  font-family: inherit;
  font-weight: 400;
}

.top-button {
  justify-content: center;
  border: 0;
  border-right: var(--line-width) solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: var(--text-lg);
  font-weight: 900;
  text-decoration: none;
}

.top-button:hover,
.top-button.active {
  color: #fffaf0;
  background: var(--jade);
}

.founding {
  justify-content: center;
  padding: 8px 16px;
  font-size: var(--text-lg);
  font-weight: 900;
  text-align: center;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  height: calc(100% - 100px);
}

.home-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
  min-height: 0;
  border-bottom: var(--line-width) solid var(--line);
  text-decoration: none;
  overflow: hidden;
}

.home-grid button:nth-child(n + 7) {
  border-bottom: 0;
}

.home-tile:hover {
  background: rgba(40, 95, 80, 0.08);
}

.home-label {
  min-height: 68px;
  font-size: var(--home-label);
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
  white-space: pre-line;
}

.home-icon {
  position: relative;
  display: block;
  width: 180px;
  height: 138px;
  transform: scale(var(--home-icon-scale));
  transform-origin: center center;
}

.home-icon-book {
  width: 168px;
  height: 122px;
  border: 8px solid #8a8479;
  border-left-width: 22px;
  transform: scale(var(--home-icon-scale)) skewY(-12deg) rotate(-6deg);
  background:
    linear-gradient(120deg, transparent 48%, rgba(255, 255, 255, 0.24) 49%, transparent 50%),
    #8c877d;
  box-shadow: 16px 18px 0 #f3edda;
}

.home-icon-tablet {
  width: 116px;
  height: 140px;
  border: 16px solid #050505;
  border-radius: 10px;
  background:
    linear-gradient(#050505 0 0) center 34px / 62px 6px no-repeat,
    linear-gradient(#050505 0 0) center 55px / 62px 6px no-repeat,
    linear-gradient(#050505 0 0) center 76px / 62px 6px no-repeat,
    linear-gradient(#050505 0 0) center 97px / 62px 6px no-repeat,
    #fff7e5;
}

.home-icon-tablet::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #fff7e5;
}

.home-icon-audio {
  width: 158px;
  height: 120px;
  border: 7px solid #8a8479;
  border-left-width: 18px;
  transform: scale(var(--home-icon-scale)) rotate(22deg) skewY(-14deg);
  background: #8c877d;
  box-shadow: 12px 14px 0 #f3edda;
}

.home-icon-audio::before {
  content: "♪ ♫ ♪";
  position: absolute;
  right: -42px;
  top: -54px;
  color: #d43b2e;
  font-size: 42px;
  letter-spacing: 6px;
  text-shadow: -22px 16px 0 #29a9c7, 18px 24px 0 #d9c333;
  transform: skewY(14deg) rotate(-22deg);
}

.home-icon-pen {
  width: 28px;
  height: 150px;
  border-radius: 14px;
  transform: scale(var(--home-icon-scale)) rotate(29deg);
  background:
    linear-gradient(#1daac8 0 22%, #f7d15b 22% 28%, #20bfdc 28% 82%, #d7f2f8 82% 100%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.home-icon-pen::after {
  content: "";
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 130px;
  height: 54px;
  border-bottom: 5px solid #49b8d0;
  border-radius: 50%;
}

.home-icon-tree {
  width: 190px;
  height: 160px;
  border-bottom: 7px solid #2f6f4f;
}

.home-icon-tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 22px;
  height: 74px;
  transform: translateX(-50%);
  background: #2f6f4f;
}

.home-icon-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 168px;
  height: 116px;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 28% 66%, #2f6f4f 0 20px, transparent 21px),
    radial-gradient(circle at 44% 36%, #2f6f4f 0 31px, transparent 32px),
    radial-gradient(circle at 62% 57%, #2f6f4f 0 34px, transparent 35px),
    radial-gradient(circle at 78% 72%, #2f6f4f 0 22px, transparent 23px),
    radial-gradient(circle at 22% 42%, #2f6f4f 0 23px, transparent 24px);
}

.home-icon-cup {
  width: 150px;
  height: 86px;
  margin-top: 38px;
  border: 8px solid #3a1c16;
  border-top-width: 14px;
  border-radius: 0 0 54px 54px;
  background: #a78e76;
}

.home-icon-cup::before {
  content: "";
  position: absolute;
  right: -45px;
  top: 14px;
  width: 52px;
  height: 44px;
  border: 8px solid #3a1c16;
  border-left: 0;
  border-radius: 0 36px 36px 0;
}

.home-icon-cup::after {
  content: "⌒⌒⌒";
  position: absolute;
  left: 16px;
  top: -72px;
  color: #2a1813;
  font-size: 56px;
  letter-spacing: 2px;
}

.home-icon-copyright {
  width: 150px;
  height: 150px;
  border: 18px solid #ee0000;
  border-radius: 50%;
}

.home-icon-copyright::after {
  content: "C";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ee0000;
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 94px;
  font-weight: 900;
}

.home-icon-travel {
  width: 160px;
  height: 112px;
  border: 5px solid #4b5960;
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
  overflow: hidden;
}

.home-icon-travel::before {
  content: "";
  position: absolute;
  inset: 46px 0 auto;
  height: 44px;
  background:
    linear-gradient(135deg, transparent 0 40%, #4b5960 41% 45%, transparent 46%),
    linear-gradient(#69c5c3 0 0) left bottom / 100% 18px no-repeat,
    linear-gradient(#f0c443 0 0) right 28px top 14px / 40px 40px no-repeat;
  border-radius: 0 0 60px 60px;
}

.home-icon-english {
  width: 230px;
  height: 150px;
}

.home-icon-english::before {
  content: attr(data-primary);
  position: absolute;
  left: 0;
  top: 14px;
  color: #103d9a;
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 48px;
  font-weight: 900;
}

.home-icon-english::after {
  content: attr(data-secondary);
  position: absolute;
  left: 24px;
  top: 84px;
  font-size: 34px;
  white-space: nowrap;
}

.home-frame[data-language="en"] .home-icon-english::before {
  left: 32px;
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", sans-serif;
  font-size: 54px;
}

.home-frame[data-language="en"] .home-icon-english::after {
  left: 4px;
  top: 90px;
  color: #103d9a;
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 42px;
  font-weight: 900;
}

.home-frame[data-language="en"] .home-label {
  font-size: 46px;
}

.home-icon-english + .home-label {
  display: none;
}

.home-icon.has-image {
  width: var(--home-icon-w, 292px);
  height: var(--home-icon-h, 210px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: scale(var(--home-icon-scale));
}

.home-icon.has-image::before,
.home-icon.has-image::after {
  content: none;
}

.home-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-icon-tablet.has-image {
  --home-icon-w: 250px;
  --home-icon-h: 205px;
}

.home-icon-audio.has-image {
  --home-icon-w: 285px;
  --home-icon-h: 215px;
}

.home-icon-pen.has-image,
.home-icon-copyright.has-image {
  --home-icon-w: 280px;
  --home-icon-h: 205px;
}

.home-icon-tree.has-image {
  --home-icon-w: 305px;
  --home-icon-h: 210px;
}

.home-icon-cup.has-image {
  --home-icon-w: 290px;
  --home-icon-h: 205px;
}

.home-icon-travel.has-image {
  --home-icon-w: 285px;
  --home-icon-h: 205px;
}

.home-icon-english.has-image {
  --home-icon-w: 360px;
  --home-icon-h: 115px;
}


.book-layout {
  display: grid;
  grid-template-columns: var(--side-width) minmax(0, 1fr);
  height: calc(100% - 68px);
  min-height: 0;
}

.book-left {
  border-right: var(--line-width) solid var(--line);
  display: grid;
  grid-template-rows: 1fr auto;
}

.cover-area {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 16px 18px 12px;
  border-bottom: var(--line-width) solid var(--line);
}

.book-preview-page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 464px);
  height: min(100%, 660px);
  min-width: 0;
  min-height: 0;
  padding: 46px 42px 34px;
  color: #2f261d;
  background:
    linear-gradient(90deg, rgba(83, 65, 42, 0.13), transparent 22%, transparent 78%, rgba(83, 65, 42, 0.09)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(71, 57, 35, 0.12) 40px 41px),
    #fff8e5;
  border: 2px solid #4a3a28;
  box-shadow: 0 18px 34px rgba(31, 24, 15, 0.2);
}

.book-preview-page::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 1px;
  background: rgba(64, 49, 31, 0.18);
}

.book-preview-heading {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.book-preview-body {
  position: relative;
  z-index: 1;
  align-self: center;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.75;
  text-align: justify;
}

.book-preview-count {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.cover-area img {
  width: min(100%, 290px);
  height: min(100%, 330px);
  aspect-ratio: 470 / 670;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(31, 24, 15, 0.2);
}

.cover-area img.book-preview-page-image {
  object-fit: contain;
  background: #fff;
}

[data-preview-zoom] {
  cursor: zoom-in;
}

.arrow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 48px;
  border-bottom: var(--line-width) solid var(--line);
}

.arrow-row button {
  border: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  font-size: var(--text-lg);
  cursor: pointer;
}

.arrow-row button:disabled {
  color: rgba(49, 38, 27, 0.28);
  cursor: default;
}

.arrow-row button:last-child {
  border-right: 0;
}

.specs {
  margin: 0;
}

.specs div {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 33px;
  border-bottom: var(--line-width) solid var(--line);
}

.specs div:last-child {
  border-bottom: 0;
}

.specs dt,
.specs dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  font-size: var(--text-sm);
  font-weight: 900;
}

.specs dt {
  justify-content: center;
  border-right: var(--line-width) solid var(--line);
  letter-spacing: 0.18em;
}

.specs dd {
  justify-content: flex-start;
  text-align: left;
}

.book-right {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 50px 86px;
}

.page-board {
  min-height: 0;
  overflow: hidden;
}

.nav-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.nav-tabs button {
  min-width: 0;
  border: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  font-size: var(--text-lg);
  font-weight: 900;
}

.nav-tabs button:last-child {
  border-right: 0;
}

.nav-tabs button.active,
.nav-tabs button:hover {
  color: #fffaf0;
  background: var(--jade);
}

.bottom-note {
  padding: 13px 18px;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.buy-table {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100%;
}

.buy-labels {
  border-right: var(--line-width) solid var(--line);
}

.buy-labels div,
.buy-values > div {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 8px 14px;
  border-bottom: var(--line-width) solid var(--line);
  font-size: var(--text-md);
  font-weight: 900;
}

.buy-values > div {
  justify-content: center;
}

.buy-labels div:last-child,
.buy-values > div:last-child {
  align-items: flex-start;
  padding-top: 14px;
}

.buy-labels div:last-child,
.buy-values > div:last-child {
  border-bottom: 0;
}

.quantity-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(38px, 1fr));
  width: 100%;
  height: 100%;
}

.quantity-grid button {
  border: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 900;
}

.quantity-grid button:last-child {
  border-right: 0;
}

.quantity-grid button.active {
  color: #fffaf0;
  background: var(--red);
}

.split-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.split-choice button {
  border: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 900;
}

.split-choice button:last-child {
  border-right: 0;
}

.split-choice button.active {
  color: #fffaf0;
  background: var(--blue);
}

.money {
  font-size: var(--text-xl);
}

.currency-amount {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.currency-symbol {
  font-family: Arial, Helvetica, sans-serif;
  font-feature-settings: normal;
  font-variant-east-asian: normal;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.paper-reference-page .currency-amount {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap !important;
}

.paper-reference-page .currency-symbol {
  flex: 0 0 auto;
  font-family: Arial, Helvetica, sans-serif !important;
  font-synthesis: none;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1;
  text-shadow: none;
}

.payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.payments .pay-logo {
  width: 74px;
  height: auto;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}

.platform-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  gap: 8px;
  border-right: var(--line-width) solid var(--line);
  text-align: center;
}

.platform-card:last-child {
  border-right: 0;
}

.platform-card strong {
  font-size: var(--text-md);
}

.platform-card span {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.platform-card .ebook-platform-icon {
  width: min(120px, 82%);
  height: auto;
}

.paper-reference-page {
  --reference-home-font: 52px;
  --reference-large-font: 58px;
  --reference-brand-font: 50px;
  --reference-spec-font: 40px;
  display: grid;
  grid-template-columns: 638px 260px 923px;
  grid-template-rows: 116px 112px 128px 128px 128px 116px 104px 94px repeat(6, 59px);
  border: 0;
  overflow: hidden;
  background: rgba(255, 241, 210, 0.96);
  box-shadow: inset 0 0 0 var(--line-width) var(--line);
}

.paper-brand-cell,
.paper-home-top,
.paper-founded,
.paper-cover-cell,
.paper-row-label,
.paper-row-value,
.paper-quantity-cell,
.paper-split-cell,
.paper-total-cell,
.paper-arrow-row,
.paper-nav-tabs,
.paper-spec-list,
.paper-bottom-empty {
  min-width: 0;
  min-height: 0;
}

.paper-brand-cell {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 48px;
  border: 0;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.paper-brand-mark {
  width: 58px;
  height: 74px;
  object-fit: contain;
  border-radius: 4px;
}

.paper-brand-cell strong {
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: var(--reference-brand-font);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.paper-home-top {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: var(--reference-home-font);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.paper-founded {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: var(--line-width) solid var(--line);
  font-family: inherit;
  font-size: var(--reference-home-font);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.paper-founded span {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  animation: paper-founded-scroll 32s linear infinite;
  will-change: transform;
}

@keyframes paper-founded-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.paper-cover-cell {
  grid-column: 1;
  grid-row: 2 / 8;
  display: grid;
  place-items: center;
  padding: 22px 86px 32px;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.book-preview-cover,
.book-preview-page-image {
  display: block;
  width: 464px;
  height: 660px;
  object-fit: cover;
}

.book-preview-zoom-surface {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff8e5;
  background-repeat: no-repeat;
  background-size: 220% auto;
  background-position: 50% 50%;
  box-shadow: 0 18px 34px rgba(31, 24, 15, 0.2);
  cursor: zoom-out;
}

.paper-cover-cell .book-preview-page {
  width: 464px;
  height: 660px;
  box-shadow: none;
}

.paper-cover-cell .book-preview-heading {
  font-size: 36px;
}

.paper-cover-cell .book-preview-body {
  font-size: 34px;
  line-height: 1.68;
}

.paper-cover-cell img {
  width: 464px;
  height: 660px;
  object-fit: cover;
  box-shadow: none;
}

.paper-cover-cell img.book-preview-page-image {
  object-fit: contain;
  background: #fff;
}

.paper-row-label {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
  font-size: var(--reference-large-font);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.paper-row-value {
  grid-column: 3;
  display: grid;
  place-items: center;
  border-bottom: var(--line-width) solid var(--line);
  font-size: var(--reference-large-font);
  font-weight: 500;
  line-height: 1;
}

.paper-label-price,
.paper-value-price {
  grid-row: 2;
}

.paper-label-discount,
.paper-value-discount {
  grid-row: 3;
}

.paper-label-quantity {
  grid-row: 4;
}

.paper-quantity-cell {
  grid-column: 3;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-bottom: var(--line-width) solid var(--line);
}

.paper-quantity-cell span {
  display: grid;
  place-items: center;
  min-width: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  font-size: var(--reference-large-font);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.paper-quantity-cell span:last-child {
  border-right: 0;
}

.paper-quantity-cell span.active {
  background: var(--paper-active-bg);
  color: #31261b;
}

.paper-label-delivery {
  grid-row: 5;
}

.paper-label-packaging {
  grid-row: 6;
}

.paper-split-cell {
  grid-column: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--line-width) solid var(--line);
}

.paper-delivery-cell {
  grid-row: 5;
}

.paper-packaging-cell {
  grid-row: 6;
}

.paper-split-cell span {
  display: grid;
  place-items: center;
  min-width: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  font-family: Arial, "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: var(--reference-large-font);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.paper-split-cell span:last-child {
  border-right: 0;
}

.paper-split-cell span.active {
  background: var(--paper-active-bg);
  box-shadow: none;
  color: #31261b;
}

.paper-split-cell span:last-child.active {
  box-shadow: inset calc(-1 * var(--line-width)) 0 0 var(--line);
}

.paper-label-total {
  grid-row: 7;
}

.paper-total-cell {
  position: relative;
  grid-column: 3;
  grid-row: 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--line-width) solid var(--line);
}

.paper-total-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap !important;
}

.paper-total-amount[data-checkout] {
  cursor: pointer;
}

.paper-total-amount[aria-disabled="true"] {
  cursor: default;
}

.paper-total-amount .money {
  display: inline-block;
  max-width: 100%;
  color: var(--ink);
  font-size: var(--reference-large-font);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap !important;
}

.paper-total-amount .money .currency-amount {
  display: inline-block;
  max-width: 100%;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-align: center;
  white-space: nowrap !important;
}

.paper-total-amount .money .currency-symbol,
.paper-total-amount .money .currency-value {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: inherit;
  line-height: 1;
  white-space: nowrap !important;
}

.paper-total-amount .money .currency-symbol {
  font-weight: 400 !important;
}

.paper-total-cell > div:first-child {
  border-right: var(--line-width) solid var(--line);
}

.paper-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 6px;
}

.pay-logo {
  display: block;
  width: 104px;
  height: auto;
  object-fit: contain;
}

.paper-arrow-row {
  grid-column: 1;
  grid-row: 8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.paper-arrow-row div {
  display: grid;
  place-items: center;
  border-right: var(--line-width) solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: var(--reference-large-font);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.paper-arrow-row div[aria-disabled="true"] {
  color: rgba(49, 38, 27, 0.28);
  cursor: default;
}

.paper-arrow-row div:last-child {
  border-right: 0;
}

.paper-nav-tabs {
  grid-column: 2 / 4;
  grid-row: 8;
  display: grid;
  grid-template-columns: 260px repeat(4, 1fr);
  border-bottom: var(--line-width) solid var(--line);
}

.paper-nav-tabs div {
  display: grid;
  place-items: center;
  min-width: 0;
  border-right: var(--line-width) solid var(--line);
  background: transparent;
  font-size: var(--reference-large-font);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.paper-nav-tabs div.active {
  background: transparent;
  color: var(--ink);
}

.paper-nav-tabs div:last-child {
  border-right: 0;
}

.paper-spec-list {
  grid-column: 1;
  grid-row: 9 / 15;
  display: grid;
  grid-template-rows: repeat(6, 59px);
  margin: 0;
  border-right: var(--line-width) solid var(--line);
}

.paper-spec-list div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--line-width) solid var(--line);
}

.paper-spec-list dt,
.paper-spec-list dd {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  font-size: var(--reference-spec-font);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.paper-spec-list dt {
  border-right: var(--line-width) solid var(--line);
}

.paper-spec-list dd {
  justify-content: flex-start;
  text-align: left;
}

.paper-spec-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 5.2em;
  gap: 0;
  white-space: nowrap;
}

.paper-spec-label > span {
  display: block;
  flex: 0 0 auto;
}

.paper-bottom-empty {
  grid-column: 2 / 4;
  grid-row: 9 / 16;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.purchase-tab-panel {
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px 22px;
  color: var(--ink);
  overflow: hidden;
}

.purchase-tab-panel h2 {
  margin: 0 0 18px;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.purchase-tab-panel p {
  margin: 0 0 16px;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.52;
  text-align: justify;
}

.purchase-tab-panel p:last-child {
  margin-bottom: 0;
}

.purchase-toc-panel {
  padding: 14px 22px;
  overflow: hidden;
}

.purchase-toc-panel ol {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 42px;
  height: 100%;
  margin: 0;
  padding-left: 34px;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.18;
}

.purchase-toc-panel li {
  min-width: 0;
}

.purchase-cooperation-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 22px;
  padding: 24px 36px;
}

.purchase-message-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  padding: 24px 36px;
}

.archive-message-panel {
  min-height: 396px;
}

.cooperation-form,
.message-form {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 76px 24px 20px;
  border: 3px solid #31261b;
  background: rgba(255, 248, 229, 0.3);
  box-sizing: border-box;
}

.message-form {
  width: 100%;
  min-height: 100%;
}

.cooperation-form label,
.message-form label {
  position: absolute;
  left: 24px;
  top: 18px;
  display: block;
  min-width: 0;
  height: 56px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.cooperation-form textarea,
.message-form textarea {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid rgba(49, 38, 27, 0.22);
  outline: 0;
  resize: none;
  color: var(--ink);
  background: transparent;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.35;
}

.cooperation-form textarea::placeholder,
.message-form textarea::placeholder {
  color: rgba(49, 38, 27, 0.82);
  opacity: 1;
}

.cooperation-form button,
.message-form button {
  display: grid;
  place-items: center;
  justify-self: end;
  min-width: 96px;
  height: 42px;
  border: 3px solid #31261b;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  clip-path: none;
  background: #fff1d2;
  box-sizing: border-box;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.cooperation-actions,
.message-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.cooperation-message,
.message-status {
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.ebook-reference-page {
  grid-template-rows: 116px 112px 128px 128px 348px 94px repeat(6, 59px);
}

.ebook-reference-page .paper-cover-cell {
  grid-row: 2 / 6;
}

.ebook-label-total {
  grid-row: 4;
}

.ebook-total-cell {
  grid-row: 4;
}

.ebook-platform-row {
  grid-column: 2 / 4;
  grid-row: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
  min-height: 0;
  border-bottom: var(--line-width) solid var(--line);
}

.ebook-platform-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-right: 0;
  box-sizing: border-box;
}

.ebook-platform-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: var(--line-width);
  background: var(--line);
  pointer-events: none;
}

.compat-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 74px;
  height: 28px;
  color: #fff7e5;
  background: #f06b19;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.ebook-platform-card strong {
  display: block;
  width: 100%;
  color: #050505;
  font-family: inherit;
  font-size: var(--reference-large-font);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.ebook-platform-icon {
  display: block;
  width: 99.5%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
}

.ebook-reference-page .compat-ribbon {
  display: none;
}

.ebook-reference-page .paper-arrow-row,
.ebook-reference-page .paper-nav-tabs {
  grid-row: 6;
}

.ebook-reference-page .paper-spec-list {
  grid-row: 7 / 13;
}

.ebook-reference-page .paper-bottom-empty {
  grid-row: 7 / 14;
}

.author-reference-page {
  grid-template-rows: 116px 366px 350px 94px repeat(6, 59px);
}

.author-reference-page .paper-cover-cell {
  grid-row: 2 / 4;
}

.author-photo-grid {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 366px 350px;
  min-width: 0;
  min-height: 0;
  border-bottom: var(--line-width) solid var(--line);
}

.author-card {
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.author-card:nth-child(3n) {
  border-right: 0;
}

.author-card:nth-child(n + 4) {
  border-bottom: 0;
}

.author-card img {
  display: block;
  object-fit: cover;
}

.author-stage {
  grid-template-rows: 254px minmax(0, 1fr);
  padding: 18px 14px 0;
}

.author-stage img {
  width: 100%;
  height: 254px;
}

.author-stage figcaption {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.author-travel {
  grid-template-columns: minmax(0, 1fr) 118px;
  padding: 20px 14px;
}

.author-travel img {
  align-self: center;
  justify-self: center;
  width: min(100%, 246px);
  height: 300px;
}

.author-travel figcaption {
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, 1em);
  direction: rtl;
  justify-content: center;
  column-gap: 10px;
  width: 72px;
  height: 300px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.author-travel figcaption .author-caption-column {
  direction: ltr;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  min-height: 0;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.author-travel figcaption .author-caption-column > span {
  display: block;
  line-height: 1;
}

.author-travel figcaption .author-caption-punctuation {
  margin-block: -10px;
  line-height: 1;
  transform: rotate(90deg);
}

.author-travel figcaption .author-caption-column .author-caption-punctuation:nth-last-child(2) {
  transform: rotate(90deg) translateX(7px);
}

.author-arrow-row {
  grid-row: 4;
}

.author-title-cell {
  grid-column: 2 / 4;
  grid-row: 4;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding-left: 16px;
  border-bottom: var(--line-width) solid var(--line);
  color: var(--ink);
  font-size: var(--reference-large-font);
  font-weight: 900;
  line-height: 1;
}

.author-copy-cell {
  grid-column: 2 / 4;
  grid-row: 5 / 11;
  min-width: 0;
  min-height: 0;
  padding: 14px 22px;
  color: var(--ink);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

.author-reference-page .paper-spec-list {
  grid-row: 5 / 11;
}

.publisher-reference-page {
  grid-template-rows: 116px 366px 350px 94px repeat(6, 59px);
}

.publisher-reference-page .paper-cover-cell {
  grid-row: 2 / 4;
}

.publisher-photo-grid {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 366px 350px;
  min-width: 0;
  min-height: 0;
  border-bottom: var(--line-width) solid var(--line);
}

.publisher-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 66px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 22px 18px 0;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.publisher-card:nth-child(2n) {
  border-right: 0;
}

.publisher-card:nth-child(n + 3) {
  border-bottom: 0;
}

.publisher-card img {
  align-self: center;
  justify-self: center;
  display: block;
  width: min(78%, 390px);
  max-height: 250px;
  object-fit: contain;
}

.publisher-card figcaption {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.publisher-arrow-row {
  grid-row: 4;
}

.publisher-title-cell {
  grid-row: 4;
}

.publisher-copy-cell {
  grid-row: 5 / 11;
}

.publisher-reference-page .paper-spec-list {
  grid-row: 5 / 11;
}

.copyright-reference-page {
  grid-template-rows: 116px 178px 190px 348px 94px repeat(6, 59px);
}

.copyright-reference-page .paper-cover-cell {
  grid-row: 2 / 5;
}

.copyright-warning-block {
  grid-column: 2 / 4;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 16px 38px;
  border-bottom: var(--line-width) solid var(--line);
  color: #c73522;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.8;
  letter-spacing: 0;
}

.copyright-case-row {
  grid-column: 2 / 4;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  min-height: 0;
  border-bottom: var(--line-width) solid var(--line);
}

.copyright-case-row > div {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: 18px 36px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.copyright-case-row > div:first-child {
  border-right: var(--line-width) solid var(--line);
}

.copyright-case-copy {
  grid-column: 2 / 4;
  grid-row: 4;
  min-width: 0;
  min-height: 0;
  padding: 28px 36px;
  border-bottom: var(--line-width) solid var(--line);
  color: var(--ink);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
}

.copyright-arrow-row {
  grid-row: 5;
}

.copyright-title-cell {
  grid-row: 5;
}

.copyright-law-cell {
  grid-row: 6 / 12;
  padding: 14px 22px;
  font-size: 31px;
  line-height: 1.55;
}

.copyright-reference-page .paper-spec-list {
  grid-row: 6 / 12;
}

.travel-reference-page {
  grid-template-rows: 116px 366px 350px 94px repeat(6, 59px);
}

.travel-reference-page .paper-cover-cell {
  grid-row: 2 / 4;
}

.travel-grid {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 366px 350px;
  min-width: 0;
  min-height: 0;
  border-bottom: var(--line-width) solid var(--line);
}

.travel-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 66px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 22px 18px 0;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.travel-card:nth-child(2) {
  border-right: 0;
}

.travel-card:nth-child(3) {
  border-bottom: 0;
}

.travel-card img {
  align-self: center;
  justify-self: center;
  display: block;
  width: min(76%, 390px);
  height: 250px;
  object-fit: cover;
}

.travel-card figcaption {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.travel-legend {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  min-height: 0;
  padding-left: 150px;
}

.travel-legend div {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink);
}

.travel-legend span {
  width: 44px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.travel-legend strong {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.travel-arrow-row {
  grid-row: 4;
}

.travel-title-cell {
  grid-row: 4;
}

.travel-copy-cell {
  grid-row: 5 / 11;
  padding: 14px 22px;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.55;
  white-space: nowrap;
}

.travel-reference-page .paper-spec-list {
  grid-row: 5 / 11;
}


.archive-page {
  display: grid;
  grid-template-rows: 244px 152px;
  height: 396px;
}

.image-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 244px;
  overflow: hidden;
  border-bottom: var(--line-width) solid var(--line);
}

.image-story.two {
  grid-template-columns: repeat(2, 1fr);
}

.image-story figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  height: 122px;
  margin: 0;
  padding: 8px;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.image-story figure:nth-child(3n) {
  border-right: 0;
}

.image-story.two figure:nth-child(3n) {
  border-right: var(--line-width) solid var(--line);
}

.image-story.two figure:nth-child(2n) {
  border-right: 0;
}

.image-story img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  align-self: center;
  background: rgba(255, 247, 229, 0.75);
}

.image-story figcaption {
  min-height: 24px;
  padding-top: 4px;
  font-size: var(--text-xs);
  font-weight: 900;
  text-align: center;
}

.archive-copy {
  padding: 12px 16px;
  overflow: hidden;
  max-height: 152px;
}

.archive-copy h2 {
  margin: 0 0 12px;
  font-size: var(--text-lg);
}

.archive-copy p,
.archive-copy li {
  margin: 0 0 10px;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.copyright-warning {
  padding: 12px 16px;
  color: var(--red);
  border-bottom: var(--line-width) solid var(--line);
  font-size: var(--text-sm);
  font-weight: 900;
}

.copyright-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--line-width) solid var(--line);
}

.copyright-grid div {
  min-height: 56px;
  padding: 8px 12px;
  border-right: var(--line-width) solid var(--line);
  font-size: var(--text-sm);
  font-weight: 900;
}

.copyright-grid div:last-child {
  border-right: 0;
}

.form-page {
  height: 100%;
}

.member-panels,
.login-panels,
.register-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100% - 68px);
}

.register-panels {
  grid-template-columns: repeat(2, 1fr);
}

.member-panel,
.login-panel,
.register-panel {
  padding: 16px;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.member-panel:nth-child(2n),
.login-panel:nth-child(2n),
.register-panel:nth-child(2n) {
  border-right: 0;
}

.member-panel h2,
.login-panel h2,
.register-panel h2 {
  display: inline-flex;
  margin: 0 0 28px;
  padding: 6px 14px;
  border: var(--line-width) solid var(--line);
  font-size: var(--text-md);
}

.field-stack {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: var(--line-width) solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-soft);
  outline: 0;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(184, 65, 36, 0.18);
}

.plain-action,
.main-action {
  min-height: 36px;
  border: var(--line-width) solid var(--line);
  font-size: var(--text-sm);
  font-weight: 900;
}

.plain-action {
  background: var(--paper-soft);
}

.main-action {
  color: #fffaf0;
  background: var(--red);
  box-shadow: 5px 5px 0 var(--line);
}

.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.form-actions button {
  flex: 1;
}

.login-reference-page {
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.login-reference-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: var(--line-width) solid var(--line);
  background: rgba(255, 242, 204, 0.92);
  box-shadow: var(--shadow);
}

.member-message {
  position: absolute;
  z-index: 5;
  top: 112px;
  left: 34px;
  right: 34px;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 6px 18px;
  border: 4px solid var(--line);
  color: var(--ink);
  background: #fff7d6;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.member-message.error {
  background: #ffe3df;
}

.member-message.success {
  background: #dceeff;
}

.login-reference-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100px;
  border-bottom: var(--line-width) solid var(--line);
}

.login-brand-cell,
.login-header-cell {
  min-width: 0;
  min-height: 0;
  border-right: var(--line-width) solid var(--line);
  color: var(--ink);
}

.login-header-cell:last-child {
  border-right: 0;
}

.login-brand-cell {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 24px;
  cursor: pointer;
  text-align: center;
}

.login-brand-mark {
  position: absolute;
  left: 24px;
  width: 58px;
  height: 74px;
  object-fit: contain;
  border-radius: 4px;
}

.login-brand-cell strong {
  font-family: "SourceHanSansTW", "SourceHanSansTWFull", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: var(--home-top);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.login-header-cell {
  display: grid;
  place-items: center;
  font-size: var(--home-top);
  font-weight: 900;
  line-height: 1;
}

.login-header-cell.active {
  box-shadow: inset 0 -4px 0 var(--line);
}

.login-header-cell[data-route] {
  cursor: pointer;
}

.login-reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 608px 670px;
  height: calc(100% - 100px);
}

.login-quadrant {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 28px 34px;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.login-quadrant:nth-child(2n) {
  border-right: 0;
}

.login-quadrant:nth-child(n + 3) {
  border-bottom: 0;
}

.order-panel {
  background: transparent;
}

.logistics-panel {
  background: transparent;
}

.presale-panel,
.aftersale-panel {
  background: transparent;
}

.order-panel h2 {
  background: #ffe3df;
}

.logistics-panel h2 {
  background: #dceeff;
}

.presale-panel h2,
.aftersale-panel h2 {
  background: #eeeeee;
}

.login-quadrant h2 {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  max-width: 100%;
  min-width: 168px;
  height: 88px;
  margin: 0 0 28px;
  padding: 0 26px;
  border: 4px solid var(--line);
  color: var(--ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.login-inline-row {
  display: flex;
  gap: 22px;
  margin-bottom: 28px;
}

.login-box,
.login-textbox {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 0 32px;
  border: 4px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

input.login-box,
textarea.login-textbox {
  appearance: none;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  font-size: 42px;
  font-weight: 900;
  line-height: 82px;
}

input.auth-box,
input.register-box {
  appearance: none;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  font-size: var(--auth-font);
  font-weight: 900;
  line-height: 74px;
}

select.auth-box,
select.register-box {
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

input.auth-box,
input.register-box,
select.register-box {
  padding: 0 20px;
}

input.login-box::placeholder,
textarea.login-textbox::placeholder,
input.auth-box::placeholder,
input.register-box::placeholder {
  color: rgba(21, 17, 13, 0.28);
  opacity: 1;
}

input.login-box:focus,
textarea.login-textbox:focus,
input.auth-box:focus,
input.register-box:focus,
select.register-box:focus {
  border-color: var(--line);
  box-shadow: none;
}

textarea.login-textbox {
  padding: 18px 22px;
  resize: none;
  overflow: hidden;
}

.login-box.full {
  width: 100%;
  margin-bottom: 28px;
}

.login-box.wide {
  flex: 1 1 auto;
}

.login-box.small {
  flex: 0 0 220px;
}

.login-box.half {
  flex: 1 1 0;
}

.login-box.amount {
  width: 278px;
}

.logistics-panel .login-box.full {
  margin-bottom: 30px;
}

.presale-panel,
.aftersale-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: 34px;
}

.login-textbox {
  width: 100%;
  height: 210px;
  align-items: flex-start;
  margin-bottom: 44px;
}

.login-textbox.large {
  height: 210px;
  margin-bottom: 0;
}

.member-inquiry-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 52px;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.member-inquiry-form .login-textbox {
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
}

.member-submit {
  justify-self: end;
  width: min(126px, 100%);
  height: 52px;
  margin-top: 0;
  border: 4px solid var(--line);
  color: var(--ink);
  background: linear-gradient(#f6f6f2, #bcbcb7);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.is-submitting {
  opacity: 0.62;
}

.auth-button,
.auth-register-link,
.verify-send,
.register-submit,
.login-simple-submit,
.member-submit {
  cursor: pointer;
}

.auth-button:disabled,
.auth-register-link:disabled,
.verify-send:disabled,
.register-submit:disabled,
.login-simple-submit:disabled,
.member-submit:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: wait;
}

.login-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100% - 100px);
}

.login-simple-content {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(100% - 100px);
}

.login-simple-form {
  width: 504px;
  margin: 0;
  padding: 0;
}

.login-simple-form h1 {
  margin: 0 0 40px;
  color: var(--ink);
  font-size: var(--auth-font);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.login-simple-input {
  display: block;
  width: 100%;
  height: 88px;
  margin: 0 0 40px;
  padding: 0 20px;
  appearance: none;
  border: 4px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--auth-font);
  font-weight: 900;
  line-height: 74px;
  box-shadow: none;
}

.login-simple-input + .login-simple-input {
  margin-bottom: 0;
}

.login-simple-form .password-field {
  margin-bottom: 0;
}

.password-field .login-simple-input {
  margin-bottom: 0;
  padding-right: 90px;
}

.login-simple-input::placeholder {
  color: rgba(21, 17, 13, 0.28);
  opacity: 1;
}

.login-simple-input:focus {
  border-color: var(--line);
  box-shadow: none;
}

.login-simple-rule {
  margin: 10px 0 0;
  color: #766858;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
}

.login-simple-submit {
  display: grid;
  place-items: center;
  width: 176px;
  height: 88px;
  margin: 14px 0 0 auto;
  padding: 0;
  border: 4px solid var(--line);
  border-radius: 0;
  background: linear-gradient(#f6f6f2, #bcbcb7);
  color: var(--ink);
  font-size: var(--auth-font);
  font-weight: 900;
  line-height: 1;
}

.login-auth-panel {
  min-width: 0;
  min-height: 0;
  padding: 126px 66px 0;
  border-right: var(--line-width) solid var(--line);
}

.login-auth-panel:last-child {
  border-right: 0;
}

.login-auth-panel h2,
.forgot-title {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.login-auth-panel h2 {
  margin-bottom: 66px;
}

.auth-box {
  min-height: 88px;
  border: 4px solid var(--line);
  background: transparent;
}

.auth-box.full {
  width: 100%;
  margin-bottom: 40px;
  padding: 0 20px;
  color: var(--ink);
  font-weight: 900;
  line-height: 74px;
}

.password-field {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.password-field .auth-box.full,
.password-field .register-box.full {
  margin-bottom: 0;
  padding-right: 90px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--line);
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-42deg);
  transition: width 0.16s ease, opacity 0.16s ease;
}

.password-toggle-icon {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle[aria-pressed="true"]::after {
  width: 35px;
  opacity: 1;
}

.password-requirement {
  margin: -24px 0 0;
  color: #766858;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.auth-button {
  display: grid;
  place-items: center;
  width: 176px;
  height: 88px;
  margin: -14px 2px 18px auto;
  border: 4px solid var(--line);
  color: var(--ink);
  background: linear-gradient(#f6f6f2, #bcbcb7);
  font-weight: 900;
  line-height: 1;
}

.forgot-title {
  margin: 18px 0 46px;
}

.auth-inline-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 62px;
}

.auth-box.code {
  width: 122px;
}

.auth-box.code.country-code-select {
  flex: 0 0 184px;
  width: 184px;
  height: 88px;
  padding: 0 42px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, var(--line) 50%) calc(100% - 29px) 50% / 10px 10px no-repeat,
    linear-gradient(135deg, var(--line) 50%, transparent 50%) calc(100% - 19px) 50% / 10px 10px no-repeat;
  font-family: inherit;
  font-size: var(--auth-font);
  font-weight: 900;
  line-height: 74px;
}

.auth-box.phone {
  flex: 1 1 auto;
}

.verify-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 58px;
  color: var(--ink);
}

.verify-row span {
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.auth-box.verify {
  width: 100%;
  height: 88px;
  min-height: 88px;
}

.verify-send {
  display: grid;
  place-items: center;
  width: 132px;
  height: 88px;
  border: 4px solid var(--line);
  color: var(--ink);
  background: linear-gradient(#f6f6f2, #bcbcb7);
  font-family: inherit;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.phone-panel .verify-row {
  grid-template-columns: max-content minmax(0, 1fr) 132px;
}

.auth-box.bottom {
  margin-top: 0;
  color: transparent;
}

.auth-register-link {
  display: grid;
  place-items: center;
  background: linear-gradient(#f6f6f2, #bcbcb7);
  cursor: pointer;
}

.auth-box.full.bottom.auth-register-link {
  color: var(--ink);
  line-height: 1;
  text-align: center;
}

.login-auth-panel h2,
.login-auth-panel .forgot-title,
.login-auth-panel .verify-row span,
.register-quadrant h2 {
  font-size: var(--auth-font);
}

.login-auth-panel input.auth-box,
.login-auth-panel select.auth-box,
.login-auth-panel .auth-box.full,
.register-quadrant input.register-box,
.register-quadrant select.register-box {
  font-size: var(--auth-font);
  line-height: 74px;
}

select.auth-box option,
select.register-box option {
  font-size: var(--auth-select-option-font);
  font-family: inherit;
  font-weight: 900;
}

select.auth-box optgroup,
select.register-box optgroup {
  font-size: var(--auth-select-group-font);
  font-family: inherit;
  font-weight: 700;
}

.login-auth-panel select.auth-box.country-code-select,
.register-quadrant select.register-box.country-code-select {
  height: 88px;
  padding: 0 42px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, var(--line) 50%) calc(100% - 29px) 50% / 10px 10px no-repeat,
    linear-gradient(135deg, var(--line) 50%, transparent 50%) calc(100% - 19px) 50% / 10px 10px no-repeat;
  font-size: var(--auth-font);
  line-height: 74px;
}

.login-auth-panel .auth-button,
.login-auth-panel .auth-box.full.bottom.auth-register-link,
.login-auth-panel .verify-send,
.register-submit {
  font-size: var(--auth-font);
}

.phone-panel {
  padding-top: 126px;
  padding-left: 74px;
}

.phone-panel h2 {
  margin-bottom: 68px;
}

.phone-panel .top-phone {
  margin-bottom: 40px;
}

.phone-panel .verify-row {
  margin-bottom: 38px;
}

.phone-panel .auth-button {
  margin-right: 0;
}

.register-reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 608px 670px;
  height: calc(100% - 100px);
}

.register-quadrant {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 172px 66px 0;
  border-right: var(--line-width) solid var(--line);
  border-bottom: var(--line-width) solid var(--line);
}

.register-quadrant:nth-child(2n) {
  border-right: 0;
}

.register-quadrant:nth-child(n + 3) {
  border-bottom: 0;
}

.register-quadrant h2 {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0 0 40px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.register-quadrant h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 176px;
  height: 88px;
  padding: 0 20px;
  border: 4px solid var(--line);
}

.register-box {
  min-height: 88px;
  border: 4px solid var(--line);
  background: transparent;
}

.register-box.full {
  width: 100%;
  margin-bottom: 40px;
  padding: 0 20px;
}

.register-inline-row {
  display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  width: 100%;
}

.register-box.code {
  width: 100%;
  min-width: 0;
  height: 88px;
}

.register-box.phone {
  width: 100%;
  min-width: 0;
  height: 88px;
}

.register-address-panel,
.register-payment-panel {
  padding-top: 90px;
}

.register-card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 28px;
  width: 500px;
  margin: 58px 0 68px;
}

.register-card-row .pay-logo {
  width: 100%;
  height: auto;
}

.register-submit {
  display: grid;
  place-items: center;
  width: 176px;
  height: 88px;
  margin: 0 0 0 auto;
  border: 4px solid var(--line);
  color: var(--ink);
  background: linear-gradient(#f6f6f2, #bcbcb7);
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 700px) {
  :root {
    --line-width: 1.5px;
    --side-width: 100%;
    --text-xs: 12px;
    --text-sm: 13px;
    --text-md: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --home-label: 20px;
    --home-top: 21px;
    --home-icon-scale: 0.43;
    --auth-mobile-font: 25px;
    --auth-select-option-font: var(--auth-mobile-font);
    --auth-select-group-font: calc(var(--auth-mobile-font) * 0.7);
  }

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

  body {
    overflow-x: hidden;
    overflow-y: auto;
    font-size: var(--text-sm);
  }

  .app {
    position: static;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    padding: 10px;
    transform: none;
    overflow: visible;
  }

  .app:has(.paper-reference-page) {
    width: var(--app-width);
    height: var(--app-height);
    min-height: 0;
    padding: 0;
    transform: scale(var(--app-scale));
    transform-origin: top left;
  }

  .page {
    width: 100%;
    max-width: 100%;
    min-height: calc(100dvh - 20px);
    height: auto;
    overflow: hidden;
  }

  .login-simple-form {
    width: min(332px, calc(100vw - 64px));
    margin: 0;
    padding: 0;
    transform: none;
  }

  .login-simple-form h1 {
    margin-bottom: 18px;
    font-size: var(--auth-mobile-font);
  }

  .login-simple-input {
    height: 42px;
    margin-bottom: 14px;
    padding: 0 10px;
    border-width: 2px;
    font-size: var(--auth-mobile-font);
    line-height: 36px;
  }

  .login-simple-rule {
    margin-top: 6px;
    margin-left: 0;
    font-size: 15px;
  }

  .login-simple-submit {
    width: 84px;
    height: 42px;
    margin-top: 8px;
    border-width: 2px;
    font-size: var(--auth-mobile-font);
  }

  .paper-reference-page {
    width: var(--app-width);
    height: var(--app-height);
    max-width: none;
    min-height: 0;
  }

  .home-page {
    display: flex;
    min-height: calc(100dvh - 20px);
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .home-frame {
    width: min(280px, calc(100vw - 30px));
    height: auto;
    aspect-ratio: 1280 / 1380;
    margin: 0 auto;
    overflow: hidden;
  }

  .home-grid {
    height: calc(100% - 78px);
  }

  .home-tile {
    gap: 0;
    padding: 4px 3px;
  }

  .home-label {
    min-height: 24px;
    font-size: 17px;
    line-height: 1.05;
  }

  .home-icon {
    width: 58px;
    height: 50px;
  }

  .home-icon.has-image {
    width: 56px;
    height: 42px;
    transform: none;
  }

  .home-icon-english.has-image {
    width: 66px;
    height: 48px;
  }

  .home-icon-tree {
    height: 44px;
  }

  .home-icon-tree::before {
    height: 36px;
  }

  .home-icon-tree::after {
    width: 100px;
    height: 76px;
    transform: translateX(-50%) scale(0.55);
    transform-origin: top center;
  }

  .home-icon-audio::before {
    right: -18px;
    top: -26px;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: -8px 7px 0 #29a9c7, 8px 10px 0 #d9c333;
  }

  .home-icon-cup::after {
    left: 20px;
    top: -38px;
    font-size: 24px;
  }

  .home-icon-copyright::after {
    font-size: 52px;
  }

  .home-icon-english {
    width: 78px;
    height: 56px;
  }

  .home-icon-english::before {
    top: 10px;
    font-size: 18px;
  }

  .home-icon-english::after {
    left: 8px;
    top: 38px;
    font-size: 11px;
  }

  .home-frame .login-reference-header {
    height: 78px;
  }

  .home-frame .login-brand-cell {
    padding: 8px 5px;
  }

  .home-frame .login-brand-mark {
    left: 5px;
    width: 22px;
    height: 28px;
  }

  .home-frame .login-brand-cell strong {
    font-size: 20px;
    line-height: 1;
  }

  .home-frame[data-language="en"] .login-brand-cell strong {
    font-size: 8px;
    line-height: 1.05;
    white-space: normal;
  }

  .home-frame .login-header-cell {
    font-size: 20px;
  }

  .topbar {
    grid-template-columns: 36% 26% minmax(0, 1fr);
    min-height: 48px;
  }

  .brand {
    gap: 8px;
    padding: 6px 8px;
  }

  .penguin-mark {
    width: 24px;
    height: 24px;
  }

  .brand strong {
    font-size: var(--text-md);
  }

  .top-button,
  .founding {
    padding: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.15;
  }

  .founding {
    display: flex;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-align: center;
  }

  .book-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .book-left {
    border-right: 0;
    border-bottom: var(--line-width) solid var(--line);
    grid-template-rows: auto auto auto;
  }

  .cover-area {
    min-height: 310px;
    padding: 22px 18px;
  }

  .book-preview-page {
    width: min(72vw, 260px);
    height: 330px;
    padding: 28px 24px 22px;
  }

  .book-preview-heading {
    font-size: 19px;
  }

  .book-preview-body {
    font-size: 17px;
    line-height: 1.62;
  }

  .book-preview-count {
    font-size: 12px;
  }

  .cover-area img {
    width: min(62vw, 230px);
    height: auto;
    max-height: 300px;
  }

  .arrow-row {
    height: 42px;
  }

  .specs div {
    min-height: 31px;
  }

  .specs dt,
  .specs dd {
    font-size: var(--text-sm);
  }

  .book-right {
    min-width: 0;
    grid-template-rows: auto 46px auto;
  }

  .page-board {
    overflow: visible;
  }

  .buy-table {
    grid-template-columns: 34% minmax(0, 1fr);
    width: 100%;
    min-height: 390px;
  }

  .buy-labels div,
  .buy-values > div {
    min-height: 52px;
    padding: 7px 10px;
    font-size: var(--text-md);
  }

  .quantity-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-width: 0;
  }

  .quantity-grid button {
    min-width: 0;
    font-size: 13px;
  }

  .quantity-grid button:nth-child(5) {
    border-right: 0;
  }

  .quantity-grid button:nth-child(n + 6) {
    border-top: var(--line-width) solid var(--line);
  }

  .split-choice {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .split-choice button {
    border-right: 0;
    border-bottom: var(--line-width) solid var(--line);
  }

  .split-choice button:last-child {
    border-bottom: 0;
  }

  .payments {
    justify-content: center;
    gap: 6px;
  }

  .payments .pay-logo {
    width: 58px;
  }

  .register-reference-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    height: auto;
  }

  .register-quadrant {
    min-height: 240px;
    padding: 24px 18px;
    border-right: 0;
  }

  .register-quadrant h2 {
    gap: 14px;
    margin-bottom: 18px;
  }

  .register-quadrant h2 span {
    min-width: 84px;
    height: 42px;
    padding: 0 10px;
    border-width: 2px;
  }

  .register-box,
  .register-box.code,
  .register-box.phone {
    min-height: 42px;
    height: 42px;
    border-width: 2px;
  }

  .register-box.full {
    margin-bottom: 14px;
  }

  .password-field {
    margin-bottom: 14px;
  }

  .password-field .auth-box.full,
  .password-field .register-box.full {
    padding-right: 52px;
  }

  .password-toggle {
    right: 10px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
  }

  .password-toggle-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
  }

  .password-toggle[aria-pressed="true"]::after {
    width: 25px;
  }

  .password-requirement {
    margin-top: -24px;
    font-size: 15px;
  }

  .register-inline-row {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 10px;
  }

  input.login-box,
  textarea.login-textbox {
    font-size: 25px;
    line-height: 38px;
  }

  input.auth-box,
  input.register-box,
  select.register-box,
  .login-auth-panel select.auth-box,
  .login-auth-panel .auth-box.full {
    font-size: var(--auth-mobile-font);
    line-height: 38px;
  }

  .login-auth-panel select.auth-box.country-code-select {
    flex-basis: 116px;
    width: 116px;
    height: 88px;
    padding: 0 30px 0 10px;
    font-size: var(--auth-mobile-font);
    line-height: 38px;
    background:
      linear-gradient(45deg, transparent 50%, var(--line) 50%) calc(100% - 21px) 50% / 7px 7px no-repeat,
      linear-gradient(135deg, var(--line) 50%, transparent 50%) calc(100% - 14px) 50% / 7px 7px no-repeat;
  }

  .register-quadrant select.register-box.country-code-select {
    height: 42px;
    padding: 0 30px 0 10px;
    font-size: var(--auth-mobile-font);
    line-height: 38px;
    background:
      linear-gradient(45deg, transparent 50%, var(--line) 50%) calc(100% - 21px) 50% / 7px 7px no-repeat,
      linear-gradient(135deg, var(--line) 50%, transparent 50%) calc(100% - 14px) 50% / 7px 7px no-repeat;
  }

  select.auth-box option,
  select.register-box option {
    font-size: var(--auth-select-option-font);
  }

  .login-auth-panel h2,
  .login-auth-panel .forgot-title,
  .login-auth-panel .verify-row span,
  .register-quadrant h2,
  .login-auth-panel .auth-button,
  .login-auth-panel .auth-box.full.bottom.auth-register-link,
  .login-auth-panel .verify-send,
  .member-submit,
  .register-submit {
    font-size: var(--auth-mobile-font);
  }

  .login-quadrant h2 {
    min-width: 0;
  }

  .member-submit {
    height: 42px;
    border-width: 2px;
  }

  .login-auth-panel .auth-box.verify,
  .login-auth-panel .verify-send {
    height: 42px;
    min-height: 42px;
    border-width: 2px;
  }

  .login-auth-panel .verify-send {
    width: 72px;
  }

  .phone-panel .verify-row {
    grid-template-columns: max-content minmax(0, 1fr) 72px;
    gap: 10px;
  }

  .register-card-row {
    width: 100%;
    gap: 8px;
    margin: 24px 0;
  }

  .register-card-row .pay-logo {
    width: 100%;
  }

  .register-submit {
    position: static;
    width: 84px;
    height: 42px;
    margin-left: auto;
    border-width: 2px;
  }

  .nav-tabs button {
    font-size: var(--text-md);
  }

  .bottom-note {
    padding: 10px 12px;
    font-size: var(--text-sm);
  }

  .archive-page {
    height: auto;
    grid-template-rows: auto auto;
  }

  .image-story,
  .image-story.two {
    height: auto;
    grid-template-columns: 1fr 1fr;
  }

  .image-story figure {
    height: auto;
    min-height: 128px;
  }

  .image-story figure:nth-child(3n) {
    border-right: var(--line-width) solid var(--line);
  }

  .image-story figure:nth-child(2n) {
    border-right: 0;
  }

  .image-story img {
    height: 82px;
  }

  .archive-copy {
    max-height: none;
  }

  .member-panels,
  .login-panels,
  .register-panels {
    grid-template-columns: 1fr;
    height: auto;
  }

  .member-panel,
  .login-panel,
  .register-panel {
    min-height: 220px;
    border-right: 0;
  }

  .member-panel h2,
  .login-panel h2,
  .register-panel h2 {
    margin-bottom: 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  textarea {
    min-height: 96px;
  }
}
