.card-book-page {--cb-bg: #ffffff;--cb-surf: #ffffff;--cb-fg: #1e293b;--cb-mut: #526071;--cb-line: #cbd5e1;--cb-acc: #0891b2;--cb-pg-bg: #ffffff;--cb-pg-line: #e2e8f0;--cb-film: #f1f5f9;--cb-film-line: #cbd5e1;--cb-film-top: #94a3b8;--cb-hd-fg: #1e293b;--cb-emp-line: #94a3b8;--cb-emp-fg: #475569;--cb-emp-bg: #f8fafc;--cb-hd-h: 34px;--cb-no-h: 22px;min-height: 100%;padding: 12px 12px 28px;background: var(--cb-bg);color: var(--cb-fg);overflow-wrap: anywhere}
.card-book-page [hidden] { display: none !important; }
.card-book-page :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.cb-profile-nav { margin: -12px -12px 12px; padding: 12px 12px 0; }
.cb-profile-row { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.cb-profile-link {display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 32px;color: var(--cb-fg); text-decoration: none}
.cb-profile-link .user-avatar { flex: none; }
.cb-profile-name { min-width: 0; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.cb-header-link {position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 30px;margin-left: auto; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cb-line); background: var(--cb-surf);color: var(--cb-fg); font-size: 12px; font-weight: 700; text-decoration: none}
.cb-header-link::before { content: ""; position: absolute; inset: -7px -4px; }
.cb-profile-nav .profile-tabs { margin: 0 -12px; padding: 0 12px; }
.cb-empty {max-width: 456px; margin: 16px auto 0; padding: 24px 16px; text-align: center;border: 1px dashed var(--cb-line); border-radius: 12px}
.cb-empty-lead { margin: 0; font-size: 14px; font-weight: 800; }
.cb-empty-desc { margin: 6px 0 0; font-size: 12px; color: var(--cb-mut); }
.card-book-page .fcards-ways { max-width: 456px; margin: 16px auto 0; }
.cb-stage { max-width: 456px; margin: 0 auto; }
.cb-toc {display: flex; align-items: flex-end; gap: 4px; height: 52px; padding: 0 14px;overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch}
.cb-toc::-webkit-scrollbar { display: none; }
.cb-tab {flex: none; position: relative; height: 44px; min-width: 68px; padding: 0 14px 4px;border: 0; border-radius: 3px 3px 0 0; background: var(--tab); color: #3b3324;font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; cursor: pointer;filter: brightness(0.93) saturate(0.9);box-shadow: 0 -1px 2px rgba(15, 23, 42, 0.14);transition: height 0.15s ease, filter 0.15s ease}
.cb-tab[aria-pressed="true"] { height: 52px; filter: none; box-shadow: 0 -2px 4px rgba(15, 23, 42, 0.16); }
.cb-binder {position: relative; padding: 8px; border-radius: 14px;background: #f8fafc; border: 1px solid #cbd5e1; border-left: 12px solid #d3e6ec;box-shadow: var(--shadow-sm)}
.cb-binder::before {content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 1px;background: #a9c8d3; pointer-events: none}
.cb-track {display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 8px; -webkit-overflow-scrolling: touch}
.cb-track::-webkit-scrollbar { display: none; }
.cb-page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.cb-filler { display: none; }
.cb-paper {position: relative; padding: 0 8px; border-radius: 8px;background: var(--cb-pg-bg); box-shadow: inset 0 0 0 1px var(--cb-pg-line)}
.cb-hd {height: var(--cb-hd-h); min-width: 0;display: flex; justify-content: space-between; align-items: center; gap: 8px;font-size: 12px; font-weight: 800; color: var(--cb-hd-fg)}
.cb-note {max-width: 70%; height: calc(var(--cb-hd-h) - 10px); min-width: 0;display: inline-flex; align-items: center; padding: 0 10px; border-radius: 2px;background: var(--tab); color: #3b3324; transform: rotate(-1.5deg);white-space: nowrap; overflow: hidden; text-overflow: ellipsis;box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18)}
.cb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cb-pgno {height: var(--cb-no-h); display: flex; align-items: center; justify-content: center;font-size: 11px; color: var(--cb-mut); font-variant-numeric: tabular-nums}
.cb-pk {position: relative; display: block; width: 100%; min-width: 0; margin: 0; padding: 5px 6px 6px;overflow: hidden; border-radius: 8px; border: 1px solid var(--cb-film-line);border-top: 2px solid var(--cb-film-top); background: var(--cb-film);text-align: left; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent}
button.cb-pk { cursor: pointer; }
button.cb-pk:active .fcard { filter: brightness(0.9); }
.cb-box { position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; container-type: inline-size; }
.cb-ghost.fcard {position: absolute; inset: 0; padding: 0; aspect-ratio: auto; border-radius: 7% / 5%;background: var(--fc-edge); filter: brightness(0.62) saturate(0.8); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3)}
.cb-ghost--1.fcard { transform: translate(2px, 2px); }
.cb-ghost--2.fcard { transform: translate(4px, 4px); filter: brightness(0.45) saturate(0.7); }
.cb-count {position: absolute; z-index: 8; top: 5px; left: 5px; min-width: 24px; height: 22px; padding: 0 7px;display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;font-size: 12px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums;background: rgba(8, 18, 30, 0.86); border: 1.5px solid rgba(255, 255, 255, 0.85); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4)}
.cb-date {position: absolute; z-index: 8; left: 50%; top: -7px; transform: translateX(-50%);max-width: calc(100% + 6px); padding: 0 5px; border-radius: 999px; white-space: nowrap; overflow: hidden;font-size: 10px; font-weight: 700; line-height: 12px; color: #fff; font-variant-numeric: tabular-nums;background: rgba(8, 18, 30, 0.82); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35)}
.cb-emp {position: absolute; inset: 0; min-width: 0; padding: 4cqw; border-radius: 7% / 5%;display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center}
.cb-emp--unissued {gap: 1.5cqw; padding-bottom: 38cqw;background: #e6eef5; border: 1.5px solid #9db4c8}
.cb-emp--unissued svg { width: 50%; height: auto; color: #9db4c8; }
.cb-emp-name {max-width: 100%; font-size: max(9.5px, 7.2cqw); font-weight: 800; color: #334155;white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.cb-emp--sealed {background: linear-gradient(180deg, rgba(245, 183, 60, 0.2), rgba(245, 183, 60, 0.07));border-color: color-mix(in srgb, var(--cb-emp-line) 50%, #e0a33a)}
.cb-emp--sealed svg { color: rgba(214, 158, 46, 0.5); }
.cb-emp-note { font-size: max(9px, 5.4cqw); font-weight: 800; color: #fcd34d; letter-spacing: 0.08em; }
.cb-emp--empty { border: 1.8px dashed var(--cb-emp-line); background: var(--cb-emp-bg); }
.cb-cta-form { position: absolute; left: 4cqw; right: 4cqw; bottom: 4cqw; z-index: 10; margin: 0; }
.cb-cta {width: 100%; min-height: 44px; padding: 3px 4px; border: 0; border-radius: 10px; cursor: pointer;display: flex; align-items: center; justify-content: center; text-align: center;font: inherit; font-size: max(9.5px, 5.6cqw); font-weight: 800; line-height: 1.25; color: #fff;background: #0e7490}
.cb-cta--sealed { text-decoration: none; background: linear-gradient(135deg, #b45309, #92400e); box-shadow: 0 3px 8px rgba(180, 110, 10, 0.35); }
.cb-box .fcard {position: absolute; inset: 0; width: auto; aspect-ratio: auto;border-radius: 7% / 5%; padding: 2cqw;--fc-glow: 0 5px 14px -6px rgba(10, 20, 35, 0.5)}
.cb-box .fcard.r-lr { padding: 2.5cqw; }
.cb-box .fcard-in { border-radius: 5cqw; }
.cb-box .fc-glare { border-radius: 7cqw; }
.cb-box .fc-illustration:not(.fc-photo) { border-radius: 4cqw; box-shadow: 0 4px 10px rgba(2, 12, 24, 0.55); }
.cb-box .fc-serial,
.cb-box .fc-memorial { top: 3.5cqw; font-size: 4.4cqw; padding: 0.8cqw 3.6cqw; }
.cb-box .fc-serial { right: 3.5cqw; }
.cb-box .fc-memorial { left: 3.5cqw; }
.cb-box .fc-stars { left: 4cqw; bottom: 4cqw; gap: 1.2cqw; }
.cb-box .fc-star { width: max(7px, 6.4cqw); height: max(7px, 6.4cqw); }
.cb-box .fc-band {--fc-cut: 7cqw; --fc-cut-mid: 3cqw; --fc-edge-w: max(1.5px, 1.25cqw);padding: calc(var(--fc-cut) + 1cqw) 5.5cqw 4.5cqw}
.cb-box .fc-name { font-size: max(9.5px, 7cqw); line-height: 1.35; }
.cb-box .fc-foot { display: none; gap: 3cqw; margin-top: 1.5cqw; font-size: 4.3cqw; }
.cb-box .fc-giveaway-ribbon { top: 5.5cqw; left: -15cqw; width: 59cqw; font-size: 4.5cqw; padding: 1.5cqw 0; }
.cb-box .fc-autograph { right: 5cqw; bottom: 4.5cqw; font-size: 8.5cqw; }
.cb-box .fc-engrave { padding: 2.5cqw 5.5cqw 3cqw; font-size: 4.75cqw; }
@container (min-width: 140px) { .cb-box .fc-foot { display: flex; } }
@container (max-width: 100px) { .cb-box .fc-serial { display: none; } }
.cb-cover .cb-grid { visibility: hidden; }
.cb-cover-in {position: absolute; inset: 0; padding: 24px 22px; text-align: center;display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px}
.cb-copy-link {position: absolute; top: 12px; right: 12px; z-index: 2;display: flex; align-items: center; justify-content: center;width: 36px; height: 36px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%;background: #fff; color: #606770; cursor: pointer;transition: background-color 0.2s, transform 0.2s}
.cb-copy-link::before { content: ""; position: absolute; inset: -4px; }
.cb-copy-link:hover { background: #f8fafc; transform: scale(1.05); }
.cb-copy-link:active { transform: scale(0.95); }
.cb-copy-link svg { width: 18px; height: 18px; }
.cb-settings {position: absolute; top: 12px; right: 56px; z-index: 2;display: flex; align-items: center; justify-content: center;width: 36px; height: 36px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%;background: #fff; color: #606770; cursor: pointer;transition: background-color 0.2s, transform 0.2s}
.cb-settings::before { content: ""; position: absolute; inset: -4px; }
.cb-settings:hover { background: #f8fafc; transform: scale(1.05); }
.cb-settings:active { transform: scale(0.95); }
.cb-settings svg { width: 18px; height: 18px; }
.cb-emblem { width: 64px; height: 64px; color: #475569; }
.cb-cover-title { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: 0.04em; color: var(--cb-hd-fg); }
.cb-cover-title small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--cb-mut); }
.cb-cover-stats {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;width: 100%; max-width: 300px; margin: 0}
.cb-cover-stats div { padding: 10px 6px; border-radius: 10px; background: var(--cb-film); border: 1px solid var(--cb-film-line); }
.cb-cover-stats dt { font-size: 11.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--cb-mut); word-break: keep-all; overflow-wrap: normal; }
.cb-cover-stats dd {margin: 2px 0 0; font-size: 24px; font-weight: 800; line-height: 1.2;color: var(--cb-fg); font-variant-numeric: tabular-nums}
.cb-cover-stats dd small { margin-left: 2px; font-size: 12px; color: var(--cb-mut); }
.cb-cover-stats--single { grid-template-columns: minmax(0, 1fr); max-width: 120px; }
.cb-memo-form { width: 100%; max-width: 290px; margin: 0; }
.cb-memo {position: relative; margin: 0; padding: 16px 16px 12px; border: 1px solid #e7dfc3; border-radius: 2px;background: #fbf6e3 repeating-linear-gradient(transparent 0 25px, rgba(80, 120, 170, 0.22) 25px 26px);background-position: 0 10px; color: #3b3324; text-align: left;transform: rotate(-1deg); box-shadow: var(--shadow-sm)}
.cb-memo::before {content: ""; position: absolute; top: -9px; left: 50%; width: 76px; height: 20px; margin-left: -38px;background: rgba(240, 225, 170, 0.75); transform: rotate(2deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)}
.cb-memo legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 800; }
.cb-memo label { clear: both; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cb-memo input { flex: none; width: 20px; height: 20px; margin: 0; color-scheme: light; accent-color: #b4442f; }
.cb-memo-sub { display: block; font-size: 11px; font-weight: 600; color: #6e6047; }
.cb-memo-submit {margin-top: 4px; min-height: 44px; padding: 0 16px; border-radius: 999px;border: 1px solid #b9a77c; background: #fffdf4; color: #3b3324; font: inherit; font-weight: 700}
.cb-ft { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; align-items: center; height: 64px; margin-top: 8px; }
.cb-nav {width: 52px; height: 48px; padding: 0; border-radius: 14px; border: 1px solid var(--cb-line);background: var(--cb-surf); color: var(--cb-fg); cursor: pointer;display: inline-flex; align-items: center; justify-content: center}
.cb-nav:disabled { opacity: 0.35; cursor: default; }
.cb-nav svg { width: 22px; height: 22px; }
.cb-ftc { min-width: 0; height: 48px; text-align: center; }
.cb-ftc-n { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cb-ftc-n small { font-size: 14px; font-weight: 700; color: var(--cb-mut); }
.cb-ftc-c { font-size: 12px; line-height: 1.3; color: var(--cb-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-hint { margin: 0; font-size: 11px; color: var(--cb-mut); text-align: center; }
@media (min-width: 1100px) {.card-book-page { --cb-hd-h: 40px; --cb-no-h: 28px; padding: 20px 0 32px; }
.cb-empty,
.card-book-page .fcards-ways { max-width: 1068px; }
.cb-stage { max-width: none; width: max-content; }
.cb-binder { padding: 20px 24px; border-radius: 18px; }
.cb-profile-nav { width: 1089px; max-width: 100%; margin: -20px auto 20px; padding: 12px 0 0; }
.cb-profile-nav .profile-tabs { margin: 0; padding: 0; }
.cb-track { width: 1028px; }
.cb-page { flex: 0 0 514px; }
.cb-page:nth-child(even) { scroll-snap-align: none; }
.cb-filler { display: block; }
.cb-paper { padding: 0 22px; border-radius: 0; }
.cb-page:nth-child(odd) .cb-paper {border-radius: 8px 0 0 8px;box-shadow: inset 0 0 0 1px var(--cb-pg-line), inset -22px 0 18px -16px rgba(15, 23, 42, 0.1)}
.cb-page:nth-child(even) .cb-paper {border-radius: 0 8px 8px 0;box-shadow: inset 0 0 0 1px var(--cb-pg-line), inset 22px 0 18px -16px rgba(15, 23, 42, 0.1)}
.cb-grid { grid-template-columns: repeat(3, 150px); gap: 10px; justify-content: center; }
.cb-hd { font-size: 14px; }
.cb-toc { height: 56px; padding: 0 28px; }
.cb-cover-title { font-size: 23px; }
.cb-emblem { width: 80px; height: 80px; }}
.cb-modal { position: fixed; inset: 0; z-index: var(--z-index-modal); display: flex; align-items: flex-end; justify-content: center; }
.cb-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); opacity: 0; transition: opacity 0.2s ease; }
.cb-sheet {position: relative; width: 100%; max-height: 84vh; max-height: 84dvh;display: flex; flex-direction: column; border-radius: 20px 20px 0 0;background: var(--cb-surf); color: var(--cb-fg); box-shadow: var(--shadow-md);transform: translateY(100%); transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1)}
.cb-modal.is-open .cb-modal-backdrop { opacity: 1; }
.cb-modal.is-open .cb-sheet { transform: none; }
.cb-grab { flex: none; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--cb-line); }
.cb-mhd { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--cb-pg-line); }
.cb-mttl { flex: 1; min-width: 0; }
.cb-mttl h2 { margin: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-mttl p { margin: 0; font-size: 12px; color: var(--cb-mut); }
.cb-mclose {flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center}
.cb-mclose:hover { background: var(--cb-film); }
.cb-mclose svg { width: 22px; height: 22px; }
.cb-frame { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.cb-frame[busy] { min-height: 160px; }
.cb-mtabs { flex: none; display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--cb-pg-line); }
.cb-mtabs button {min-height: 44px; margin-bottom: -1px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent;background: transparent; color: var(--cb-mut); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer}
.cb-mtabs button[aria-selected="true"] { color: var(--cb-fg); border-bottom-color: var(--cb-acc); }
.cb-mbody { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px calc(20px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.cb-mempty { margin: 0; padding: 24px 16px; text-align: center; font-size: 13px; color: var(--cb-mut); }
.cb-mrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--cb-pg-line); }
.cb-mrow:last-child { border-bottom: 0; }
.cb-mrow.is-top { background: linear-gradient(90deg, color-mix(in srgb, var(--cb-acc) 9%, transparent), transparent); }
.cb-mthumb { flex: none; width: 76px; padding: 0 3px 3px 0; }
.cb-minfo { flex: 1; min-width: 0; }
.cb-mname { font-size: 15px; font-weight: 800; }
.cb-from {max-width: 100%; margin-top: 5px; padding: 3px 9px; border-radius: 999px;display: inline-flex; align-items: center; gap: 5px;font-size: 12px; font-weight: 700; color: #7c4a03; background: #fef3c7}
.cb-from svg { flex: none; width: 14px; height: 14px; }
.cb-from span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-mmeta {display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: 2px 18px;margin-top: 6px; font-size: 12.5px; color: var(--cb-mut)}
.cb-mmeta b { color: var(--cb-fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.cb-mscore { flex: none; min-width: 64px; text-align: right; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cb-mnote {margin: 10px 0 2px; padding: 8px 10px; border-radius: 8px; line-height: 1.5;font-size: 12px; color: var(--cb-mut); background: color-mix(in srgb, var(--cb-acc) 14%, transparent)}
.cb-mmore { margin: 10px 0 0; font-size: 12px; color: var(--cb-mut); text-align: center; }
.cb-set { margin: 0; }
.cb-set-group { margin: 0; padding: 10px 0 4px; border: 0; }
.cb-set form + form .cb-set-group { border-top: 1px solid var(--cb-pg-line); }
.cb-set-group legend { padding: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--cb-mut); }
.cb-set-opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; cursor: pointer; }
.cb-set-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--cb-acc); }
.cb-set-opt span { min-width: 0; font-size: 15px; font-weight: 700; }
.cb-set-opt small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--cb-mut); }
.cb-set-opt.is-disabled { cursor: not-allowed; opacity: 0.55; }
.cb-set-submit {margin-top: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;border: 1px solid var(--cb-line); background: var(--cb-bg); color: var(--cb-fg); font: inherit; font-weight: 700}
@media (min-width: 768px) {.cb-modal { align-items: center; }
.cb-sheet {width: min(720px, calc(100vw - 48px)); max-height: 80vh; max-height: 80dvh; border-radius: 18px;opacity: 0; transform: translateY(14px) scale(0.97); transition: transform 0.22s ease, opacity 0.2s ease}
.cb-modal.is-open .cb-sheet { opacity: 1; transform: none; }
.cb-grab { display: none; }
.cb-mhd { padding: 12px 10px 12px 22px; }
.cb-mbody { padding: 6px 22px 22px; }
.cb-mthumb { width: 92px; }
.cb-sheet--settings { width: min(480px, calc(100vw - 48px)); }}
@media (prefers-reduced-motion: reduce) {.cb-sheet, .cb-modal-backdrop, .cb-tab { transition: none; }}