:root,
[data-theme=white] {
  --bg: #fff;
  --bg-2: #f4f2ef;
  --fg: #1d1b19;
  --muted: #8a847c;
  --accent: #c4502f;
  --accent-2: #5b6650;
  --on-accent: #fff;
  --line: #e6e2dc;
  --danger: #b3261e;
  --head-bg: #fff;
  --head-fg: #1d1b19;
  --head-line: #e6e2dc;
  --card: #fff;
  --frame: #e6e2dc;
  --field: #fff;
  --panel: #1d1b19;
  --panel-fg: #f4f2ef;
  --panel-muted: #a8a29a;
  --stage: #f4f2ef;
  --hover: rgba(0,0,0,0.05);
  --shadow: rgba(40,30,20,0.35);
  color-scheme: light;
}
[data-theme=stone] {
  --bg: #f4f0e9;
  --bg-2: #ebe5dc;
  --fg: #2a2420;
  --muted: #857a6e;
  --accent: #b9573a;
  --accent-2: #5d6146;
  --on-accent: #fff;
  --line: #d8cfc2;
  --danger: #a3301f;
  --head-bg: #2a2420;
  --head-fg: #f4f0e9;
  --head-line: #2a2420;
  --card: #fff;
  --frame: #cfc5b6;
  --field: #fff;
  --panel: #2a2420;
  --panel-fg: #f4f0e9;
  --panel-muted: #b5a896;
  --stage: #ebe5dc;
  --hover: rgba(0,0,0,0.05);
  --shadow: rgba(60,40,20,0.45);
  color-scheme: light;
}
[data-theme=green] {
  --bg: #1e2a23;
  --bg-2: #16201a;
  --fg: #ece6d8;
  --muted: #98a294;
  --accent: #d4a55c;
  --accent-2: #c9725a;
  --on-accent: #1b1408;
  --line: #33433a;
  --danger: #e58a74;
  --head-bg: #121a15;
  --head-fg: #ece6d8;
  --head-line: #121a15;
  --card: #f5f1e6;
  --frame: #0f1612;
  --field: #16201a;
  --panel: #121a15;
  --panel-fg: #ece6d8;
  --panel-muted: #8f998c;
  --stage: #16201a;
  --hover: rgba(255,255,255,0.06);
  --shadow: rgba(0,0,0,0.6);
  color-scheme: dark;
}
:root {
  --font: 'Noto Sans TC', system-ui, sans-serif;
  --font-latin: 'Inter Tight', 'Noto Sans TC', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  transition: background 0.3s, color 0.3s;
}
a {
  color: inherit;
}
a:hover {
  color: inherit;
}
.text-sm {
  font-size: 0.82em;
}
.muted {
  color: var(--muted);
}
.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  opacity: 0.9;
}
.hbtn:hover {
  opacity: 1;
  text-decoration: none;
}
.hbtn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  opacity: 1;
}
.hbtn.accent:hover {
  filter: brightness(1.06);
  color: var(--on-accent);
}
.hbtn.ghost {
  border-color: transparent;
  opacity: 0.7;
}
.field {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--fg);
  font: 14px var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.3s;
}
.field:focus {
  border-color: var(--accent);
}
.field.sm {
  width: auto;
  padding: 5px 9px;
  font-size: 13px;
}
.field::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.tag {
  display: inline-block;
  padding: 1px 0;
  font-size: 12px;
  color: var(--accent-2);
  cursor: pointer;
}
.tag:not(:last-child):after {
  content: '·';
  margin-left: 6px;
  color: var(--muted);
}
.tag:hover {
  color: var(--accent);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 60px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: var(--head-bg);
  color: var(--head-fg);
  border-bottom: 1px solid var(--head-line);
  flex: none;
  transition: background 0.3s, color 0.3s;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 22px var(--font-latin);
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
}
.topbar .brand .brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
}
.topbar .brand span {
  color: var(--accent);
}
.topbar .topnav {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
.topbar .topnav a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  padding: 4px 0;
}
.topbar .topnav a:hover {
  opacity: 1;
}
.topbar .topnav a.on {
  opacity: 1;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.topbar .tb-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar .tb-acts {
  margin-left: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .tb-acts > .hbtn {
  flex: none;
}
.topbar .tb-acts > select,
.topbar .tb-acts > input {
  min-width: 70px;
  flex: 0 1 auto;
}
@media (max-width: 1280px) {
  .topbar .tb-acts .hbtn .lbl {
    display: none;
  }
}
@media (max-width: 1480px) {
  html[data-lang=en] .topbar .tb-acts .hbtn .lbl {
    display: none;
  }
}
.topbar .mode-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.topbar .mode-toggle:hover {
  opacity: 1;
}
.topbar .mode-toggle:focus {
  outline: none;
}
.topbar .mode-toggle .sun {
  display: none;
}
.topbar .field {
  background: transparent;
  color: inherit;
  border-color: var(--line);
}
[data-theme=green] .topbar .mode-toggle .moon {
  display: none;
}
[data-theme=green] .topbar .mode-toggle .sun {
  display: inline;
}
.account {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  flex: none;
}
.account .acct-name {
  opacity: 0.85;
}
@media (max-width: 900px) {
  .topbar {
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .topbar .topnav {
    order: 9;
    width: 100%;
  }
}
.topbar .menu-toggle {
  display: none;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.topbar .menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.topbar.open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topbar.open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.topbar.open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .topbar {
    gap: 10px;
    min-height: 54px;
  }
  .topbar .topnav,
  .topbar .lang-toggle,
  .topbar .mode-toggle,
  .topbar .account {
    display: none;
  }
  .topbar .menu-toggle {
    display: flex;
  }
  .topbar .tb-main {
    justify-content: flex-end;
  }
  .topbar .tb-acts {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar .tb-acts::-webkit-scrollbar {
    display: none;
  }
  .topbar .tb-acts .lbl-m {
    display: none;
  }
  .topbar.open {
    padding-bottom: 14px;
  }
  .topbar.open .topnav {
    display: flex;
    order: 20;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--head-line);
    font-size: 15px;
  }
  .topbar.open .topnav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--head-line);
  }
  .topbar.open .topnav a.on {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 12px;
  }
  .topbar.open .lang-toggle,
  .topbar.open .mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 21;
  }
  .topbar.open .account {
    display: flex;
    flex-wrap: wrap;
    order: 22;
    margin-left: auto;
  }
}
@media (max-width: 760px) and (max-width: 420px), (max-height: 500px) and (pointer: coarse) and (max-width: 420px) {
  .topbar .tb-acts {
    gap: 2px;
  }
  .tb-acts .hbtn span:not(.ic) {
    display: none;
  }
}
.hall {
  position: relative;
  overflow: hidden;
  padding: 64px clamp(16px, 4vw, 56px) 40px;
  border-bottom: 1px solid var(--line);
}
.hall > :not(.hall-reel) {
  position: relative;
  z-index: 1;
}
.hall .hall-title {
  margin: 0;
  font: 800 clamp(52px, 9vw, 132px)/0.9 var(--font-latin);
  letter-spacing: -0.055em;
}
.hall .hall-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}
.hall .hall-zh {
  font: 900 clamp(20px, 2.4vw, 28px) var(--font);
  margin: 22px 0 8px;
}
.hall .hall-desc {
  max-width: 34em;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 28px;
}
.hall .searchbar {
  max-width: 52%;
}
.hall-reel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24% 100%);
  background: var(--bg-2);
}
.hall-reel .reel-still,
.hall-reel .reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%;
}
.hall-reel .reel-video {
  opacity: 0;
  transition: opacity 0.8s;
}
.hall-reel.playing .reel-video {
  opacity: 1;
}
.hall-reel:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--accent) 0 2px, transparent 2px) 0 0/100% 100% no-repeat;
  clip-path: polygon(0 0, 3px 0, calc(24% + 3px) 100%, 24% 100%);
}
.hall-reel .reel-tag {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 4px 10px;
  background: rgba(20,18,16,0.72);
  color: #f4f2ef;
  font: 600 11px var(--font-latin);
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .hall .searchbar {
    max-width: none;
  }
  .hall-reel {
    position: relative;
    width: auto;
    margin: -64px calc(-1 * clamp(16px, 4vw, 56px)) 28px;
    aspect-ratio: 16/9;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
  }
  .hall-reel:after {
    display: none;
  }
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 820px;
}
.searchbar .search-in {
  flex: 1;
  min-width: 260px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--fg);
  border-radius: 2px;
  background: var(--field);
  color: var(--fg);
  font-size: 15px;
  outline: none;
}
.searchbar .search-in:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,80,47,0.12);
}
.searchbar .search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.searchbar .search-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.searchbar .search-info {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}
@media (max-width: 760px) {
  .searchbar {
    gap: 0;
  }
  .searchbar .search-in {
    flex: 1 1 0;
    min-width: 0;
    border-right: 0;
    border-radius: 2px 0 0 2px;
  }
  .searchbar .search-btn {
    padding: 0 16px;
    border-radius: 0 2px 2px 0;
    font-size: 18px;
  }
  .searchbar .search-btn span:not(.ic) {
    display: none;
  }
  .searchbar .search-info {
    margin-top: 10px;
  }
}
.rooms {
  display: flex;
  padding: 0 clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.rooms .room {
  flex: none;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-right: 1px solid var(--line);
}
.rooms .room:first-child {
  border-left: 1px solid var(--line);
}
.rooms .room:hover {
  background: var(--hover);
}
.rooms .room.on {
  background: var(--fg);
  color: var(--bg);
}
.shelf-wrap {
  padding: 44px clamp(16px, 4vw, 56px) 90px;
}
.shelf-wrap .empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
}
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 56px 40px;
}
@media (max-width: 360px) {
  .shelf {
    grid-template-columns: minmax(0, 1fr);
  }
}
.shelf .book {
  position: relative;
  display: block;
}
.shelf .book:hover .cover {
  transform: scale(1.015);
}
.shelf .book:hover .del {
  opacity: 1;
}
.shelf .link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.shelf .cover {
  position: relative;
  aspect-ratio: 4/3;
  margin: 11px;
  background: #ccc center/cover;
  box-shadow: 0 0 0 10px var(--card), 0 0 0 11px var(--frame), 0 24px 30px -18px var(--shadow);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.3s;
}
.shelf .cover-title {
  padding: 16px;
  font: 900 20px/1.3 var(--font);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.shelf .lab,
.shelf .meta {
  margin: 18px 11px 0;
  padding-top: 12px;
  border-top: 2px solid var(--fg);
}
.shelf .title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shelf .info {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.shelf .stats {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.shelf .stats:empty {
  display: none;
}
.shelf .summary {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shelf .tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shelf .hits {
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf .score {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  font: 600 12px var(--font-latin);
  background: var(--accent);
  color: var(--on-accent);
}
.shelf .del {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  line-height: 25px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 2;
}
.drop-overlay {
  position: fixed;
  inset: 12px;
  z-index: 3000;
  border: 2px dashed var(--accent);
  background: var(--bg);
  opacity: 0.92;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  pointer-events: none;
}
.drop-overlay.on {
  display: flex;
}
.import-cover .inner,
.styles-cover .inner {
  background: var(--bg);
  color: var(--fg);
  border-radius: 2px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.import-cover .base {
  width: 560px;
  max-width: 94vw;
}
.import-cover .drop {
  border: 1px dashed var(--line);
  background: var(--bg-2);
  padding: 28px;
  text-align: center;
}
.import-cover .url-row {
  display: flex;
  gap: 8px;
}
.reader {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--stage);
}
.reader .book-title {
  position: absolute;
  left: -11px;
  bottom: calc(100% + 18px);
  max-width: calc(100% + 22px);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 6px;
  color: var(--fg);
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader .book-title[contenteditable=true]:hover,
.reader .book-title:focus {
  background: var(--hover);
}
.reader .book-title:focus {
  text-overflow: clip;
}
.reader .doc-btn {
  position: absolute;
  right: -11px;
  bottom: calc(100% + 18px);
  font-size: 13px;
  line-height: 1.4;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
}
.reader .doc-btn:hover {
  color: var(--fg);
  border-color: var(--fg);
}
.reader .doc-btn:not(.d-none) ~ .book-title,
.reader .book-title:has(~ .doc-btn:not(.d-none)) {
  max-width: calc(100% - 70px);
}
.doc-cover .base {
  width: 720px;
  max-width: 94vw;
}
.doc-cover .inner {
  background: var(--bg);
  color: var(--fg);
  border-radius: 2px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px var(--shadow);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.doc-cover .doc-head {
  display: flex;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.doc-cover .doc-head h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.doc-cover .doc-head .close-btn {
  margin-left: auto;
}
.doc-cover .doc-scroll {
  overflow-y: auto;
  padding: 16px 20px 24px;
  font-size: 15px;
  line-height: 1.75;
}
.doc-cover .doc-summary {
  font-size: 16px;
  margin: 0 0 10px;
}
.doc-cover .doc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.doc-cover .doc-facts code {
  font-size: 12px;
}
.doc-cover .doc-sources {
  font-size: 13px;
  color: var(--muted);
}
.doc-cover .doc-sources ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.doc-cover .doc-meta:not(:empty) {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.doc-cover .doc-md h1,
.doc-cover .doc-md h2,
.doc-cover .doc-md h3,
.doc-cover .doc-md h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.doc-cover .doc-md ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.doc-cover .doc-md li {
  margin: 4px 0;
}
.doc-cover .doc-md p {
  margin: 6px 0;
}
.doc-cover .doc-t {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.doc-cover .doc-t:hover {
  text-decoration: underline;
}
.doc-cover .doc-label {
  display: inline-block;
  min-width: 3em;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  padding: 0 6px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--hover);
  color: var(--muted);
  vertical-align: 1px;
}
.reader-main {
  flex: 1;
  display: flex;
  min-height: 0;
}
.tools {
  flex: none;
  width: 56px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.tools .tool {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.12s;
}
.tools .tool:hover {
  background: var(--hover);
}
.tools .tool.on {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent);
}
.tools .sep {
  width: 28px;
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}
.tools .tool,
.tools .color,
.tools .sep,
.tools .dur {
  flex: none;
}
.tools .color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.1);
}
.tools .color.on {
  border-color: var(--bg);
  outline: 2px solid currentColor;
}
.tools .color.custom {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: conic-gradient(#ff3b30, #ffd60a, #34c759, #0a84ff, #bf5af2, #ff3b30);
}
.tools .color.custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.tools .dur {
  width: 46px;
  font-size: 12px;
  background: var(--field);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.preview-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted);
  background: var(--bg-2);
  transition: opacity 0.3s;
}
.preview-loading.done {
  opacity: 0;
  pointer-events: none;
}
.preview-loading .spin {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: shelf-spin 0.9s linear infinite;
}
.stage-area {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.stage-wrap {
  width: min(100% - 48px, 960px);
  aspect-ratio: 16/9;
  position: relative;
  background: var(--bg-2);
  box-shadow: 0 0 0 10px var(--card), 0 0 0 11px var(--frame), 0 30px 50px -30px var(--shadow);
}
.stage-wrap .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.stage-wrap .ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.stage-wrap .ink[data-tool=view] {
  cursor: pointer;
}
.stage-wrap .ink[data-tool=text] {
  cursor: text;
}
.stage-wrap .ink[data-tool=eraser] {
  cursor: cell;
}
.stage-wrap .fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.stage-wrap .poster {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}
.stage-wrap .poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s;
}
.stage-wrap .poster.with-cover::before {
  background: rgba(0,0,0,0.45);
}
.stage-wrap .poster:hover::before {
  background: rgba(0,0,0,0.28);
}
.stage-wrap .poster.d-none {
  display: none;
}
.stage-wrap .poster .poster-play {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 30px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
  transition: transform 0.15s;
}
.stage-wrap .poster .poster-play > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-wrap .poster .poster-play .pp-play {
  padding-left: 4px;
}
.stage-wrap .poster .poster-play .pp-pause {
  opacity: 0;
}
.stage-wrap .poster:hover .poster-play {
  transform: scale(1.08);
}
.stage-wrap .poster.paused::before {
  animation: pp-mask 0.25s ease-out;
}
.stage-wrap .poster.paused .poster-play {
  animation: pp-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.stage-wrap .poster.paused .pp-pause {
  animation: pp-out 0.8s ease forwards;
}
.stage-wrap .poster.paused .pp-play {
  animation: pp-in 0.8s ease forwards;
}
.stage-wrap .loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted);
  background: var(--bg-2);
}
.stage-wrap .loading .spin {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: shelf-spin 0.9s linear infinite;
}
.stage-wrap .text-in {
  position: absolute;
  transform: translateY(-4px);
  min-width: 240px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px dashed rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 18px;
  padding: 4px 8px;
  outline: none;
}
.bubble {
  position: absolute;
  left: 2%;
  max-width: 46%;
  padding: 6px 12px;
  border-radius: 2px;
  background: rgba(20,18,16,0.86);
  border-left: 3px solid var(--accent);
  color: #fff;
  font-size: 15px;
  animation: bubble-in 0.25s ease-out;
}
.bubble b {
  margin-right: 6px;
}
.burst {
  position: absolute;
  bottom: 0;
  font-size: 54px;
  animation: burst 2.2s ease-out forwards;
}
.burst.small {
  font-size: 34px;
}
.side {
  flex: none;
  width: 330px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--line);
}
.side .me {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.side .me .dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.side .info-panel {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.side .info-panel .cover-box {
  margin-top: 14px;
}
.side .info-panel .cover-box .cover-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.side .info-panel .cover-box figure {
  margin: 0;
}
.side .info-panel .cover-box .thumb {
  aspect-ratio: 16/9;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2) center/cover no-repeat;
}
.side .info-panel .cover-box .thumb.empty:after {
  content: '尚無';
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}
.side .info-panel .cover-box figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.side .info-panel .cover-box .hbtn {
  width: 100%;
  justify-content: center;
}
.side .info-panel.collapsed .info-head {
  margin-bottom: 0;
}
.side .info-panel.collapsed .info-head .chev {
  transform: none;
}
.side .info-panel.collapsed .info-head .regen {
  display: none;
}
.side .info-panel.collapsed .info-body {
  display: none;
}
.side .info-panel .info-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 11px var(--font-latin);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}
.side .info-panel .info-head:hover {
  color: var(--fg);
}
.side .info-panel .info-head .chev {
  display: inline-block;
  transition: transform 0.15s;
  transform: rotate(90deg);
}
.side .info-panel .info-head .regen {
  margin-left: auto;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font: 12px var(--font);
}
.side .info-panel .info-head .regen:hover {
  color: var(--accent);
}
.side .info-panel .book-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.side .info-panel .book-meta .vis-toggle {
  margin-left: auto;
  cursor: pointer;
  padding: 1px 8px;
  border: 1px solid var(--line);
}
.side .info-panel .book-meta .vis-toggle:hover {
  color: var(--fg);
}
.side .info-panel .summary-in {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.7;
  padding: 6px 8px;
  resize: vertical;
  outline: none;
}
.side .info-panel .summary-in:focus {
  border-color: var(--accent);
}
.side .info-panel .tags-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.side .info-panel .tags-edit .tag {
  border: 1px solid var(--line);
  padding: 0 7px;
}
.side .info-panel .tags-edit .tag:after {
  display: none;
}
.side .info-panel .tags-edit .tag .x {
  opacity: 0.5;
  margin-left: 2px;
}
.side .info-panel .tags-edit .tag:hover {
  border-color: var(--accent);
}
.side .info-panel .tags-edit .tag-in {
  width: 80px;
  background: transparent;
  border: 0;
  color: var(--fg);
  font-size: 12px;
  outline: none;
}
.side .notes {
  flex: 1;
  overflow-y: auto;
  padding: 4px 14px;
}
.side .note-empty {
  color: var(--muted);
  padding: 20px 0;
  font-size: 14px;
}
.side .note {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.side .note:first-of-type {
  border-top: 0;
}
.side .note:hover {
  background: var(--hover);
}
.side .note.now {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 10px;
}
.side .note.ink .note-body {
  color: var(--muted);
}
.side .note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.side .note-head .chip {
  font: 700 11px var(--font-latin);
  background: var(--accent);
  color: var(--on-accent);
  padding: 2px 7px;
  border-radius: 999px;
}
.side .note-head .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.side .note-head .act {
  display: inline-block;
  padding: 0 4px;
  opacity: 0.5;
}
.side .note-head .act:hover {
  opacity: 1;
}
.side .note-body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.side .compose {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.side .compose textarea {
  resize: none;
}
.side .compose .compose-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.side .compose .note-mode {
  margin-left: auto;
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.side .compose .note-mode:hover {
  color: var(--fg);
  border-color: var(--fg);
}
.side .compose .note-mode.d-none {
  display: none;
}
.side .notes-bar {
  padding: 8px 14px 0;
}
.side .nv-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
  font-size: 12px;
}
.side .nv-seg span {
  padding: 3px 12px;
  cursor: pointer;
  color: var(--muted);
}
.side .nv-seg span.on {
  background: var(--fg);
  color: var(--bg);
}
.side .priv-tag {
  font-size: 11px;
  padding: 0 6px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.transport {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  padding: 0 16px 8px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.transport .play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  flex: none;
}
.transport .mute {
  cursor: pointer;
  font-size: 18px;
  flex: none;
}
.transport .time {
  font: 600 13px var(--font-latin);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
  min-width: 110px;
}
.transport .chap-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 360px;
  font: 600 13px var(--font-latin);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: -8px;
}
.transport .chap-name.none {
  display: none;
}
.transport .chap-name:not(:empty):after {
  content: ' ·';
}
.transport .tp-info,
.transport .tp-ctl {
  display: contents;
}
.transport .tp-bar {
  order: 0;
  flex: 1 0 100%;
  display: flex;
  margin-bottom: -6px;
}
.transport .chap,
.transport .play,
.transport .mute {
  order: 1;
}
.transport .chap-name,
.transport .time,
.transport .ia-tag {
  order: 2;
}
.transport .ia-tag {
  flex: none;
  font-size: 11px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 99px;
  color: var(--accent);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.transport .tp-gap {
  order: 3;
  flex: 1;
}
.transport .cc,
.transport .play-lang,
.transport .speed {
  order: 4;
}
.transport .reacts,
.transport .react-toggle {
  order: 5;
}
.transport .repeat-btn,
.transport .wide-btn,
.transport .fs-btn {
  order: 6;
}
.transport .react-toggle {
  display: none;
}
.transport .repeat-btn,
.transport .wide-btn {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
}
.transport .repeat-btn:hover,
.transport .wide-btn:hover {
  background: var(--hover);
  color: var(--fg);
}
.transport .repeat-btn.on,
.transport .wide-btn.on {
  color: var(--accent);
}
.transport .fs-btn {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
}
.transport .fs-btn:hover {
  background: var(--hover);
  color: var(--fg);
}
.transport .fs-btn .fs-out {
  display: none;
}
.transport .fs-btn.on .fs-in {
  display: none;
}
.transport .fs-btn.on .fs-out {
  display: block;
}
.transport .timeline {
  flex: 1;
  position: relative;
  height: 40px;
  cursor: pointer;
  touch-action: none;
}
.transport .timeline .rail,
.transport .timeline .fill {
  position: absolute;
  left: 0;
  top: 19px;
  height: 3px;
}
.transport .timeline .rail {
  right: 0;
  background: var(--line);
}
.transport .timeline .rail:after {
  content: '';
  position: absolute;
  right: 0;
  top: -5px;
  width: 2px;
  height: 13px;
  background: var(--fg);
}
.transport .timeline .fill {
  background: var(--accent);
}
.transport .timeline .knob {
  position: absolute;
  top: 14px;
  width: 13px;
  height: 13px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
  pointer-events: none;
}
.transport .timeline .marks > div {
  position: absolute;
}
.transport .timeline .m-ch {
  top: 15px;
  width: 1px;
  height: 11px;
  background: var(--fg);
}
.transport .timeline .m-ink {
  top: 25px;
  width: 4px;
  height: 6px;
  margin-left: -2px;
  border-radius: 1px;
}
.transport .timeline .m-cmt {
  top: 6px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
}
.transport .timeline .m-emo {
  top: -9px;
  font-size: 14px;
  margin-left: -8px;
}
.transport .timeline .m-emo sub {
  font-size: 9px;
  color: var(--muted);
}
.transport .reacts {
  display: flex;
  gap: 2px;
}
.transport .reacts .react {
  font-size: 20px;
  padding: 2px 4px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s;
}
.transport .reacts .react:hover {
  transform: scale(1.25);
  background: var(--hover);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 20px);
  padding: 9px 18px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 3000;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.studio {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.studio .tb-acts [ld=drafts] {
  width: 200px;
}
.studio .tb-acts [ld=title] {
  width: 200px;
}
.studio-main {
  flex: 1;
  display: flex;
  min-height: 0;
}
.chat-col {
  flex: none;
  width: 420px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-pane {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-pane > * {
  flex: 1;
  min-height: 0;
}
.chat-mode {
  flex: none;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.chat-mode .cm-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.chat-mode .cm-opt:hover {
  color: var(--fg);
}
.chat-mode .cm-opt.on {
  background: var(--field);
  color: var(--fg);
  font-weight: 600;
}
.lk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}
.lk-dot.listening {
  background: #34c759;
  opacity: 1;
}
.lk-dot.busy {
  background: #ffb340;
  opacity: 1;
}
.link-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.6;
}
.link-pane .lk-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px;
}
.link-pane .lk-setup {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
}
.link-pane .lk-setup .lk-h {
  font-weight: 700;
  margin-bottom: 4px;
}
.link-pane .lk-setup p {
  color: var(--muted);
  margin: 0 0 8px;
}
.link-pane .lk-setup ol {
  margin: 0;
  padding-left: 18px;
}
.link-pane .lk-setup li {
  margin-bottom: 6px;
}
.link-pane .lk-setup .lk-cmd {
  display: block;
  margin-top: 3px;
  padding: 4px 8px;
  background: var(--field);
  border-radius: 3px;
  font: 12px var(--font-mono);
  word-break: break-all;
  user-select: all;
}
.link-pane .lk-msg {
  margin: 0 0 10px;
  word-break: break-word;
}
.link-pane .lk-msg.lk-user {
  margin-left: 40px;
  padding: 8px 12px;
  background: var(--field);
  border-radius: 6px;
  white-space: pre-wrap;
}
.link-pane .lk-msg.lk-user[data-img]::after {
  content: attr(data-img);
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.link-pane .lk-msg.lk-assistant p {
  margin: 0 0 6px;
}
.link-pane .lk-msg.lk-assistant pre {
  overflow-x: auto;
}
.link-pane .lk-msg.lk-tool {
  margin: -4px 0 6px;
  font: 12px var(--font-mono);
  color: var(--muted);
}
.link-pane .lk-msg.lk-tool::before {
  content: '⚙ ';
}
.link-pane .lk-msg.lk-error {
  color: var(--danger, var(--accent));
}
.link-pane .lk-status {
  flex: none;
  padding: 6px 18px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.link-pane .lk-compose {
  flex: none;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.link-pane .lk-compose textarea {
  width: 100%;
  resize: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--field);
  color: var(--fg);
  font: 14px/1.5 var(--font);
  outline: none;
}
.link-pane .lk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.link-pane .lk-send {
  padding: 5px 16px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-fg, #fff);
  font-size: 13px;
  cursor: pointer;
}
.link-pane .lk-send.busy {
  opacity: 0.6;
}
.preview-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--stage);
}
.preview-wrap {
  flex: 1;
  padding: 24px;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-wrap iframe.buffer {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  visibility: hidden;
  pointer-events: none;
}
.preview-wrap .anno {
  position: absolute;
  pointer-events: none;
  touch-action: none;
}
.preview-wrap .anno.on {
  pointer-events: auto;
  cursor: crosshair;
  outline: 2px dashed var(--accent);
}
.preview-wrap .text-in {
  position: absolute;
  min-width: 220px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px dashed rgba(255,255,255,0.6);
  font-weight: 700;
  padding: 4px 8px;
  outline: none;
  z-index: 2;
}
.anno-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  min-height: 48px;
}
.anno-bar .anno-toggle,
.anno-bar .anno-clear {
  padding: 4px 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
}
.anno-bar .anno-toggle:hover,
.anno-bar .anno-clear:hover {
  background: var(--hover);
}
.anno-bar .anno-toggle.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.anno-bar .anno-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.anno-bar .anno-tools.off {
  opacity: 0.45;
}
.anno-bar .anno-tools .tool,
.anno-bar .anno-tools .act {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.anno-bar .anno-tools .tool:hover,
.anno-bar .anno-tools .act:hover {
  background: var(--hover);
}
.anno-bar .anno-tools .tool.on,
.anno-bar .anno-tools .act.on {
  background: var(--fg);
  color: var(--bg);
}
.anno-bar .anno-tools .color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.1);
}
.anno-bar .anno-tools .color.on {
  border-color: var(--bg);
  outline: 2px solid currentColor;
}
.anno-bar .anno-list {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.anno-bar .anno-chip {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
}
.anno-bar .anno-chip .t {
  font: 600 12px var(--font-latin);
}
.anno-bar .anno-chip .n {
  margin-left: 4px;
  color: var(--muted);
}
.anno-bar .anno-chip .x {
  margin-left: 6px;
  opacity: 0.6;
}
.anno-bar .anno-chip .x:hover {
  opacity: 1;
}
.preview {
  flex: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  box-shadow: 0 0 0 10px var(--card), 0 0 0 11px var(--frame), 0 30px 50px -30px var(--shadow);
}
.anno-bar .aspect-sw {
  display: flex;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
}
.anno-bar .aspect-sw.d-none {
  display: none;
}
.anno-bar .aspect-sw .as-opt {
  padding: 3px 10px;
  cursor: pointer;
  color: var(--muted);
}
.anno-bar .aspect-sw .as-opt.on {
  color: #fff;
  background: var(--accent);
}
.preview-status {
  flex: none;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.styles-cover .base {
  width: 1100px;
  max-width: 96vw;
}
.styles-cover .inner {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.styles-cover .style-grid {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .styles-cover .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.styles-cover .close-btn {
  width: 32px;
  height: 32px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}
.styles-cover .close-btn:hover {
  background: var(--hover);
  color: var(--fg);
}
.styles-cover .style-card {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
}
.styles-cover .style-card:hover {
  border-color: var(--accent);
}
.styles-cover .style-card .img {
  aspect-ratio: 3/2;
  background: #eee center/cover;
}
.styles-cover .style-card .name {
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px 12px;
}
.my {
  display: flex;
  min-height: calc(100vh - 60px);
}
.my .tree {
  flex: none;
  width: 270px;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 10px;
}
.my .tree-head {
  display: flex;
  align-items: center;
  font: 600 11px var(--font-latin);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 10px;
}
.my .tree-head:not(:first-child) {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.my .tree-head .add {
  margin-left: auto;
  cursor: pointer;
  font-size: 16px;
}
.my .tree-head .add:hover {
  color: var(--accent);
}
.my .tree-empty {
  padding: 2px 8px 4px 26px;
  font-size: 12px;
  color: var(--muted);
}
.my .node {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 14px;
  cursor: default;
}
.my .node .tw {
  width: 14px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.my .node .nm {
  flex: 1;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my .node .cnt {
  font: 600 12px var(--font-latin);
  color: var(--muted);
}
.my .node .ops {
  display: none;
  gap: 4px;
}
.my .node .ops span {
  cursor: pointer;
  padding: 0 3px;
  color: var(--muted);
}
.my .node .ops span:hover {
  color: var(--accent);
}
.my .node:hover {
  background: var(--hover);
}
.my .node:hover .ops {
  display: flex;
}
.my .node:hover .cnt {
  display: none;
}
.my .node.on {
  background: var(--fg);
  color: var(--bg);
}
.my .node.on .cnt,
.my .node.on .tw,
.my .node.on .ops span {
  color: inherit;
  opacity: 0.7;
}
.my .node.drop {
  outline: 2px dashed var(--accent);
}
.my .main {
  flex: 1;
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px) 80px;
}
.my .claim {
  border: 1px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}
.my .claim:empty {
  display: none;
}
.my .crumbs-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.my .crumbs-row .crumbs {
  margin-bottom: 0;
  min-width: 0;
}
.my .view-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.my .view-bar select {
  height: 32px;
  font-size: 13px;
}
.my .view-bar .seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.my .view-bar .seg-btn {
  width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}
.my .view-bar .seg-btn svg {
  display: block;
}
.my .view-bar .seg-btn:hover {
  background: var(--hover);
}
.my .view-bar .seg-btn.on {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.my .shelf {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 34px 26px;
}
.my .shelf .cover {
  margin: 8px;
}
.my .shelf.list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.my .shelf.list .book {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  border-bottom: 1px solid var(--line);
}
.my .shelf.list .book:hover {
  background: var(--hover);
}
.my .shelf.list .link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px 12px 16px;
}
.my .shelf.list .cover {
  display: none;
}
.my .shelf.list .lab {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.my .shelf.list .lab .info,
.my .shelf.list .lab .stats {
  margin: 0;
}
.my .shelf.list .lab .title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my .shelf.list .vis,
.my .shelf.list .rm {
  position: static;
  flex: none;
}
.my .shelf.list .vis.public {
  opacity: 0.55;
}
.my .shelf.list .rm {
  order: 2;
}
.my .crumbs {
  font: 900 22px var(--font);
  margin-bottom: 18px;
}
.my .crumbs a {
  color: inherit;
  text-decoration: none;
}
.my .crumbs a:hover {
  color: var(--accent);
}
.my .crumbs .n {
  color: var(--muted);
  font: 600 13px var(--font-latin);
  margin-left: 8px;
}
.my .folders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.my .folder {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
}
.my .folder span {
  color: var(--muted);
  font: 600 12px var(--font-latin);
  margin-left: 6px;
}
.my .folder:hover {
  border-color: var(--fg);
}
.my .folder.add {
  border-style: dashed;
  color: var(--muted);
}
.my .folder.drop {
  outline: 2px dashed var(--accent);
}
.my .empty {
  color: var(--muted);
  padding: 30px 0;
}
.my .shelf .vis,
.my .shelf .rm {
  position: absolute;
  top: 10px;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(20,20,20,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.15s, background 0.15s;
}
.my .shelf .vis .ic,
.my .shelf .rm .ic {
  width: 12px;
  height: 12px;
  vertical-align: 0;
}
.my .shelf .vis:hover,
.my .shelf .rm:hover {
  background: rgba(20,20,20,0.8);
}
.my .shelf .vis {
  right: 10px;
}
.my .shelf .vis.public {
  opacity: 0;
}
.my .shelf .rm {
  right: auto;
  left: 10px;
  padding: 0;
  width: 26px;
  justify-content: center;
  opacity: 0;
  background: var(--danger);
}
.my .shelf .rm:hover {
  background: var(--danger);
  filter: brightness(1.1);
}
.my .shelf .book:hover .rm,
.my .shelf .book:hover .vis.public {
  opacity: 1;
}
@media (max-width: 760px) {
  .my {
    flex-direction: column;
  }
  .my .tree {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side {
    display: none;
  }
}
.acct-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 40px) 90px;
}
.acct-page .acct-head {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--fg);
}
.acct-page .acct-head .k {
  font: 600 11px var(--font-latin);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.acct-page .acct-head h1 {
  margin: 8px 0 4px;
  font: 900 34px var(--font);
}
.acct-page .acct-sec {
  padding-top: 30px;
}
.acct-page .acct-sec .sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.acct-page .acct-sec .sec-head h2 {
  margin: 0 0 8px;
  font: 800 22px var(--font-latin);
  letter-spacing: -0.02em;
}
.acct-page .acct-sec > p {
  line-height: 1.8;
  font-size: 14px;
}
.acct-page .tok-new {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin: 18px 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.acct-page .tok-new .hbtn {
  justify-self: start;
}
.acct-page .scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
}
.acct-page .scope {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.acct-page .scope span {
  color: var(--muted);
}
.acct-page .tok-once {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  display: grid;
  gap: 8px;
}
.acct-page .tok-once .warn {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.acct-page .tok-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.acct-page .tok-row code {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: var(--bg-2);
  color: var(--fg);
  font: 12px var(--font-mono);
  word-break: break-all;
}
.acct-page .tok {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.acct-page .tok .tok-main {
  flex: 1;
  min-width: 0;
}
.acct-page .tok .tok-scopes {
  display: flex;
  gap: 6px;
}
.acct-page .tok .tok-scopes span {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line);
}
.acct-page .tok-empty {
  padding: 14px 0;
}
.agent-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 40px) 100px;
}
.agent-page .ag-callout {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  line-height: 1.8;
  max-width: 46em;
}
.agent-page .ag-callout b {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.agent-page a {
  color: var(--accent);
}
.agent-page code {
  font: 12.5px var(--font-mono);
  background: var(--bg-2);
  color: var(--fg);
  padding: 1px 6px;
}
.agent-page .ag-hero {
  padding-bottom: 30px;
  border-bottom: 2px solid var(--fg);
}
.agent-page .ag-hero .k {
  font: 600 11px var(--font-latin);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.agent-page .ag-hero h1 {
  margin: 14px 0 16px;
  font: 900 clamp(32px, 5vw, 54px)/1.2 var(--font);
}
.agent-page .ag-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.agent-page .ag-hero .lead {
  max-width: 40em;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.agent-page .ag-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font: 600 12px var(--font-latin);
}
.agent-page .ag-toc a {
  color: var(--fg);
  opacity: 0.75;
}
.agent-page .ag-toc a:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration: none;
}
.agent-page .ag-sec {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.agent-page .ag-sec .no {
  font: 800 28px/1 var(--font-latin);
  color: var(--accent);
  letter-spacing: -0.03em;
}
.agent-page .ag-sec .body {
  min-width: 0;
}
.agent-page .ag-sec h2 {
  margin: 0 0 14px;
  font: 900 24px var(--font);
}
.agent-page .ag-sec p,
.agent-page .ag-sec li {
  line-height: 1.9;
  font-size: 14.5px;
}
.agent-page .ag-sec .muted {
  color: var(--muted);
}
.agent-page .ag-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
}
.agent-page .ag-table th,
.agent-page .ag-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line);
}
.agent-page .ag-table th {
  width: 34%;
  font-weight: 700;
}
.agent-page .ag-table.ag-tools th {
  width: auto;
  font: 600 11px var(--font-latin);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.agent-page pre {
  margin: 8px 0 4px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  font: 12.5px/1.7 var(--font-mono);
  white-space: pre-wrap;
  word-break: break-all;
}
.agent-page .cp {
  cursor: copy;
}
.agent-page .cp.copied {
  outline: 2px solid var(--accent);
}
.agent-page .steps {
  padding-left: 1.3em;
}
.agent-page .steps li {
  margin-bottom: 10px;
}
.agent-page .ag-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}
.agent-page .ag-actions .hbtn {
  color: var(--fg);
}
.agent-page .ag-actions .hbtn.accent {
  color: var(--on-accent);
}
.agent-page .note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13.5px;
}
.agent-page .points {
  padding-left: 1.2em;
}
@media (max-width: 700px) {
  .agent-page .ag-sec {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.ic {
  display: inline-block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  background: currentColor;
  -webkit-mask: var(--ic) center/contain no-repeat;
  mask: var(--ic) center/contain no-repeat;
}
.ic-view {
  --ic: url(/assets/img/icon/glyph/view.svg);
}
.ic-pen {
  --ic: url(/assets/img/icon/glyph/pen.svg);
}
.ic-marker {
  --ic: url(/assets/img/icon/glyph/marker.svg);
}
.ic-ellipse {
  --ic: url(/assets/img/icon/glyph/ellipse.svg);
}
.ic-arrow {
  --ic: url(/assets/img/icon/glyph/arrow.svg);
}
.ic-text {
  --ic: url(/assets/img/icon/glyph/text.svg);
}
.ic-eraser {
  --ic: url(/assets/img/icon/glyph/eraser.svg);
}
.ic-undo {
  --ic: url(/assets/img/icon/glyph/undo.svg);
}
.ic-trash {
  --ic: url(/assets/img/icon/glyph/trash.svg);
}
.ic-palette {
  --ic: url(/assets/img/icon/glyph/palette.svg);
}
.ic-link {
  --ic: url(/assets/img/icon/glyph/link.svg);
}
.ic-export {
  --ic: url(/assets/img/icon/glyph/export.svg);
}
.ic-sound {
  --ic: url(/assets/img/icon/glyph/sound.svg);
}
.ic-mute {
  --ic: url(/assets/img/icon/glyph/mute.svg);
}
.ic-moon {
  --ic: url(/assets/img/icon/glyph/moon.svg);
}
.ic-sun {
  --ic: url(/assets/img/icon/glyph/sun.svg);
}
.ic-cover {
  --ic: url(/assets/img/icon/glyph/cover.svg);
}
.ic-sparkle {
  --ic: url(/assets/img/icon/glyph/sparkle.svg);
}
.ic-public {
  --ic: url(/assets/img/icon/glyph/public.svg);
}
.ic-private {
  --ic: url(/assets/img/icon/glyph/private.svg);
}
.ic-play {
  --ic: url(/assets/img/icon/glyph/play.svg);
}
.ic-pause {
  --ic: url(/assets/img/icon/glyph/pause.svg);
}
.ic-search {
  --ic: url(/assets/img/icon/glyph/search.svg);
}
.ic-comment {
  --ic: url(/assets/img/icon/glyph/comment.svg);
}
.ic-timer {
  --ic: url(/assets/img/icon/glyph/timer.svg);
}
.ic-like {
  --ic: url(/assets/img/icon/glyph/like.svg);
}
.ic-save {
  --ic: url(/assets/img/icon/glyph/save.svg);
}
.ic-star {
  --ic: url(/assets/img/icon/glyph/star.svg);
}
.ic-own {
  --ic: url(/assets/img/icon/glyph/own.svg);
}
.ic-list {
  --ic: url(/assets/img/icon/glyph/list.svg);
}
@font-face {
  font-family: 'ldi';
  font-weight: normal;
  font-style: normal;
  font-display: block;
  src: url("/assets/lib/ldiconfont/main/ldif.woff2") format('woff2'), url("/assets/lib/ldiconfont/main/ldif.ttf") format('truetype');
}
.tools .tool .ic {
  width: 22px;
  height: 22px;
}
.tools .tool.on .ic {
  color: var(--accent);
}
.me-shell {
  display: flex;
  min-height: calc(100vh - 60px);
}
.me-shell .me-side {
  flex: none;
  width: 270px;
  padding: 22px 12px 3em;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: calc(100vh - 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.me-shell .me-side .tree {
  width: auto;
  border: 0;
  background: none;
  padding: 18px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.me-shell .me-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 18px;
}
.me-shell .me-card .avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 700 17px var(--font-latin);
  background: var(--muted);
}
.me-shell .me-card .who {
  min-width: 0;
  flex: 1;
}
.me-shell .me-card .name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-shell .me-card .mail {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-shell .me-card .plan {
  flex: none;
  font: 600 10px var(--font-latin);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.me-shell .me-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.me-shell .me-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
}
.me-shell .me-nav a:hover {
  background: var(--hover);
}
.me-shell .me-nav a.on {
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.me-shell .me-main {
  flex: 1;
  min-width: 0;
  max-width: 860px;
  padding: 40px clamp(16px, 4vw, 48px) 100px;
}
.me-shell .me-main > .k {
  font: 600 11px var(--font-latin);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.me-shell .me-main > h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 26px;
}
.me-shell .me-sec {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.me-shell .me-sec h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.me-shell .me-sec.danger h2 {
  color: var(--danger);
}
.me-shell .plan-card {
  display: inline-block;
  min-width: 280px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  margin-bottom: 12px;
}
.me-shell .plan-card .plan-name {
  font: 800 22px var(--font-latin);
}
.me-shell .plan-card .plan-price {
  font-size: 26px;
  font-weight: 700;
  margin: 4px 0 10px;
}
.me-shell .plan-card .plan-price span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.me-shell .plan-card .plan-feats {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
}
@media (max-width: 760px) {
  .me-shell {
    flex-direction: column;
    min-height: 0;
  }
  .me-shell .me-side {
    position: static;
    align-self: stretch;
    height: auto;
    overflow: visible;
    overscroll-behavior: auto;
    width: auto;
    padding: 14px 16px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .me-shell .me-card {
    padding: 0 0 12px;
  }
  .me-shell .me-nav {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 2px;
    scrollbar-width: none;
  }
  .me-shell .me-nav::-webkit-scrollbar {
    display: none;
  }
  .me-shell .me-nav a {
    flex: none;
    white-space: nowrap;
    padding: 6px 12px;
  }
  .me-shell .me-main {
    padding: 24px 16px 80px;
  }
  .me-shell .me-main > h1 {
    font-size: 24px;
    margin-bottom: 18px;
  }
  .me-shell .plan-card {
    display: block;
    min-width: 0;
  }
}
.hbtn.danger {
  color: var(--danger);
}
.me-shell .acct-page {
  margin: 0;
  padding: 40px clamp(16px, 4vw, 48px) 100px;
}
.me-sec [ld=account-info] > * > h3,
.me-sec [ld=change-password] > * > h3,
.me-sec [ld=mfa-setup] > * > h3,
.me-sec [ld=account-info] > * > hr,
.me-sec [ld=change-password] > * > hr,
.me-sec [ld=mfa-setup] > * > hr,
.me-sec [ld=account-info] h3:first-child,
.me-sec [ld=change-password] h3:first-child,
.me-sec [ld=mfa-setup] h3:first-child,
.me-sec [ld=account-info] h3 + hr,
.me-sec [ld=change-password] h3 + hr,
.me-sec [ld=mfa-setup] h3 + hr {
  display: none;
}
.me-sec [ld=account-info] .btn,
.me-sec [ld=change-password] .btn,
.me-sec [ld=mfa-setup] .btn {
  border-radius: 2px;
  font-size: 13px;
}
.me-sec [ld=account-info] .btn-primary,
.me-sec [ld=change-password] .btn-primary,
.me-sec [ld=mfa-setup] .btn-primary,
.me-sec [ld=account-info] .btn-success,
.me-sec [ld=change-password] .btn-success,
.me-sec [ld=mfa-setup] .btn-success {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.me-sec [ld=account-info] .btn-primary:hover,
.me-sec [ld=change-password] .btn-primary:hover,
.me-sec [ld=mfa-setup] .btn-primary:hover,
.me-sec [ld=account-info] .btn-success:hover,
.me-sec [ld=change-password] .btn-success:hover,
.me-sec [ld=mfa-setup] .btn-success:hover {
  filter: brightness(1.08);
}
.me-sec [ld=account-info] .form-control,
.me-sec [ld=change-password] .form-control,
.me-sec [ld=mfa-setup] .form-control {
  background: var(--field);
  color: var(--fg);
  border-color: var(--line);
  border-radius: 2px;
}
.me-sec [ld=account-info] .form-control.disabled,
.me-sec [ld=change-password] .form-control.disabled,
.me-sec [ld=mfa-setup] .form-control.disabled,
.me-sec [ld=account-info] .form-control:disabled,
.me-sec [ld=change-password] .form-control:disabled,
.me-sec [ld=mfa-setup] .form-control:disabled {
  background: var(--bg-2);
  color: var(--muted);
}
.me-sec [ld=account-info] label,
.me-sec [ld=change-password] label,
.me-sec [ld=mfa-setup] label,
.me-sec [ld=account-info] .text-sm,
.me-sec [ld=change-password] .text-sm,
.me-sec [ld=mfa-setup] .text-sm {
  color: var(--fg);
}
.ldcv.builtin.shelf > .base > .inner {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}
.ldcv.builtin.shelf .dlg-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.ldcv.builtin.shelf .msg {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.ldcv.builtin.shelf .fields {
  margin-bottom: 18px;
  padding: 0;
  background: none;
  border: 0;
}
.ldcv.builtin.shelf .fields > div {
  padding: 0;
  background: none;
  border: 0;
}
.ldcv.builtin.shelf .fields input.field,
.ldcv.builtin.shelf .fields textarea.field {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--fg);
  outline: none;
}
.ldcv.builtin.shelf .fields input.field:focus,
.ldcv.builtin.shelf .fields textarea.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.ldcv.builtin.shelf .fields input.field.is-invalid,
.ldcv.builtin.shelf .fields textarea.field.is-invalid {
  border-color: var(--danger);
}
.ldcv.builtin.shelf .fields textarea.field {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
}
.ldcv.builtin.shelf .dlg-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}
.ldcv.builtin.shelf .options {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ldcv.builtin.shelf .options .hbtn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
}
.charge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 12px;
}
@media (max-width: 900px) {
  .charge-cards {
    grid-template-columns: 1fr;
  }
}
.charge-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.charge-card > .ic {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.charge-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0 6px;
}
.charge-card p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.me-sec .note {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: var(--bg-2);
}
.st {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 10px;
  white-space: nowrap;
}
.st .ic {
  width: 12px;
  height: 12px;
  vertical-align: 0;
  opacity: 0.75;
}
.st.cost {
  font-variant-numeric: tabular-nums;
}
.fi {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  opacity: 0.7;
}
.hbtn .ic,
.tool .ic,
.transport .ic,
.search-btn .ic {
  pointer-events: none;
}
.my .shelf.sortable .book {
  cursor: grab;
}
.my .shelf.sortable .book.drop-before:before,
.my .shelf.sortable .book.drop-after:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.my .shelf.sortable .book.drop-before:before {
  left: -15px;
}
.my .shelf.sortable .book.drop-after:after {
  right: -15px;
}
.my .shelf.sortable.list .book {
  position: relative;
}
.my .shelf.sortable.list .book.drop-before:before,
.my .shelf.sortable.list .book.drop-after:after {
  left: 0;
  right: 0;
  width: auto;
  height: 3px;
}
.my .shelf.sortable.list .book.drop-before:before {
  top: -2px;
  bottom: auto;
}
.my .shelf.sortable.list .book.drop-after:after {
  top: auto;
  bottom: -2px;
}
.credit-card {
  display: inline-block;
  min-width: 280px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.credit-card .lbl {
  font-size: 12px;
  color: var(--muted);
}
.credit-card .val {
  font: 800 32px var(--font-latin);
  margin: 2px 0 4px;
}
.credit-card .hint {
  font-size: 12px;
  color: var(--muted);
}
.quota-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.quota-list .q-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.quota-list .q-name {
  font-size: 13px;
  color: var(--muted);
}
.quota-list .q-val {
  margin-top: 4px;
  font-size: 14px;
}
.quota-list .q-val b {
  font: 800 18px var(--font-latin);
}
.quota-list .q-bar {
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.quota-list .q-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.credit-log {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.credit-log td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.credit-log .t,
.credit-log .b {
  color: var(--muted);
  white-space: nowrap;
}
.credit-log .d,
.credit-log .b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.credit-log .d.neg {
  color: var(--danger);
}
.credit-log .d.pos {
  color: var(--accent);
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
  padding: 34px clamp(16px, 4vw, 56px) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .ft-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.site-footer .ft-brand .brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 18px var(--font-latin);
  letter-spacing: -0.03em;
  color: var(--fg);
  text-decoration: none;
}
.site-footer .ft-brand .brand span {
  color: var(--accent);
}
.site-footer .ft-brand .brand .brand-mark {
  width: 20px;
  height: 20px;
}
.site-footer .ft-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer .ft-links a {
  color: inherit;
  text-decoration: none;
}
.site-footer .ft-links a:hover {
  color: var(--fg);
}
.site-footer .ft-copy {
  margin-left: auto;
}
@media (max-width: 760px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .site-footer .ft-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .site-footer .ft-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    width: 100%;
  }
  .site-footer .ft-copy {
    margin-left: 0;
  }
}
.brand .wm {
  font: inherit;
}
.transport .chap {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
}
.transport .chap:hover {
  background: var(--hover);
  color: var(--fg);
}
.transport .chap.off {
  opacity: 0.3;
  pointer-events: none;
}
.transport .chap svg {
  pointer-events: none;
}
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 40px) 100px;
  color: var(--fg);
}
.legal-page a {
  color: var(--accent);
}
.legal-page .k {
  font: 600 11px var(--font-latin);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-page h1 {
  margin: 14px 0 10px;
  font: 900 clamp(30px, 5vw, 44px)/1.25 var(--font);
}
.legal-page .updated {
  font-size: 13px;
  color: var(--muted);
}
.legal-page .lead {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  line-height: 1.9;
  font-size: 14.5px;
}
.legal-page .legal-toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px 22px;
  margin-top: 30px;
  padding: 16px 0;
  border-top: 2px solid var(--fg);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.legal-page .legal-toc a {
  color: var(--fg);
  opacity: 0.75;
}
.legal-page .legal-toc a:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration: none;
}
.legal-page section {
  padding: 34px 0 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.legal-page section h2 {
  margin: 0 0 14px;
  font: 900 22px/1.4 var(--font);
}
.legal-page section h3 {
  margin: 22px 0 8px;
  font: 700 16px/1.5 var(--font);
}
.legal-page section p,
.legal-page section li {
  line-height: 1.95;
  font-size: 14.5px;
}
.legal-page section p {
  margin: 0 0 14px;
}
.legal-page section ul,
.legal-page section ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}
.legal-page section li {
  margin-bottom: 6px;
}
.legal-page section li::marker {
  color: var(--muted);
}
.legal-page section b {
  font-weight: 700;
}
.legal-page .legal-see {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  margin-top: 30px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 14px;
}
.legal-page .legal-see span {
  color: var(--muted);
}
@media (max-width: 700px) {
  .legal-page {
    padding-top: 36px;
  }
  .legal-page .legal-toc {
    grid-template-columns: 1fr;
  }
}
.staff .me-nav .cnt {
  margin-left: 6px;
  font: 700 11px var(--font-latin);
  color: var(--accent);
}
.staff .me-main {
  max-width: 1000px;
}
.staff .st-gate {
  padding: 40px 0;
  color: var(--muted);
}
.staff .st-gate h1 {
  color: var(--fg);
  font-size: 24px;
  font-weight: 800;
}
.staff .k {
  font: 600 11px var(--font-latin);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.staff h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 20px;
}
.staff h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--muted);
}
.staff .warn {
  color: var(--danger);
}
.staff .badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  font-size: 11px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  vertical-align: 1px;
}
.staff .st-empty {
  padding: 16px 0;
}
.staff .st-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.staff .st-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.staff .st-row:hover {
  background: var(--hover);
}
.staff .st-row.on {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.staff .st-row .k {
  font: 600 12px var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.staff .st-row .main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .staff .st-row {
    grid-template-columns: 50px 1fr;
  }
}
.staff .st-detail {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.staff .st-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.staff .st-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.staff .st-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 20px;
  margin: 16px 0;
}
.staff .st-fields .lb {
  font-size: 11px;
  color: var(--muted);
}
.staff .st-fields .v {
  font-size: 14px;
  word-break: break-all;
}
.staff .st-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.staff .st-mini {
  font-size: 14px;
  line-height: 1.9;
}
.staff .st-credit .bal {
  font-size: 15px;
}
.staff .st-credit .bal b {
  font: 800 22px var(--font-latin);
}
.staff .st-credit .adj {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.staff .st-credit .adj .memo {
  flex: 1;
  min-width: 180px;
}
.staff .st-credit .log {
  line-height: 1.8;
}
.staff .st-quota .q-row {
  display: grid;
  grid-template-columns: 150px 170px 1fr auto;
  gap: 6px 16px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.staff .st-quota .q-row:first-child {
  border-top: 0;
}
@media (max-width: 700px) {
  .staff .st-quota .q-row {
    grid-template-columns: 1fr 1fr;
  }
}
.staff .st-quota .q-name {
  font-weight: 700;
  font-size: 14px;
}
.staff .st-quota .q-use {
  font-size: 14px;
}
.staff .st-quota .q-use b {
  font-family: var(--font-latin);
}
.staff .st-quota .q-bar {
  height: 4px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.staff .st-quota .q-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.staff .st-quota .q-acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.staff .st-quota .q-acts .hbtn {
  font-size: 12px;
  padding: 3px 10px;
}
.staff .st-row.q-user {
  grid-template-columns: 60px minmax(140px, 1fr) 160px minmax(120px, 1fr) 150px;
}
@media (max-width: 700px) {
  .staff .st-row.q-user {
    grid-template-columns: 50px 1fr;
  }
}
.staff .st-row.pk-item {
  grid-template-columns: 80px minmax(160px, 1fr) 150px auto;
  cursor: default;
}
.staff .st-row.pk-item .pk-num {
  width: 72px;
  padding: 4px 8px;
}
.staff .st-row.pk-item .main a {
  color: inherit;
  font-weight: 600;
}
.staff .st-row.pk-item .main a:hover {
  color: var(--accent);
}
.staff .st-row.pk-item .hbtn {
  font-size: 12px;
  padding: 3px 10px;
}
@media (max-width: 700px) {
  .staff .st-row.pk-item {
    grid-template-columns: 80px 1fr;
  }
}
.staff .st-row.expired {
  opacity: 0.55;
}
.staff .st-row.q-top {
  grid-template-columns: 60px minmax(140px, 1fr) 200px 60px;
}
@media (max-width: 700px) {
  .staff .st-row.q-top {
    grid-template-columns: 50px 1fr;
  }
}
.staff .st-row.q-top .q-use {
  font-size: 14px;
}
.staff .st-row.q-top .q-bar {
  height: 4px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.staff .st-row.q-top .q-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.staff .st-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.staff .st-filters .chip {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
}
.staff .st-filters .chip b {
  margin-left: 3px;
  color: var(--muted);
}
.staff .st-filters .chip:hover {
  background: var(--hover);
}
.staff .st-filters .chip.on {
  border-color: var(--accent);
  color: var(--accent);
}
.staff .st-filters .chip.on b {
  color: var(--accent);
}
.staff .st-book {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.staff .st-book .thumb {
  flex: none;
  width: 128px;
  height: 72px;
  background: var(--bg-2) center/cover no-repeat;
  border: 1px solid var(--line);
}
.staff .st-book .body {
  flex: 1;
  min-width: 0;
}
.staff .st-book .t {
  font-size: 15px;
  font-weight: 700;
}
.staff .st-book .t a {
  text-decoration: none;
}
.staff .st-book .state {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.staff .st-book .state.s-pending,
.staff .st-book .state.s-blocked {
  border-color: var(--danger);
  color: var(--danger);
}
.staff .st-book .state.s-checking {
  border-color: var(--accent);
  color: var(--accent);
}
.staff .st-book .why {
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}
.staff .st-book .flags {
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 3px solid var(--line);
  background: var(--bg-2);
  line-height: 1.7;
}
.staff .st-book .tagx {
  margin-left: 8px;
  color: var(--muted);
}
.staff .st-book details {
  margin-top: 6px;
}
.staff .st-book details summary {
  cursor: pointer;
}
.staff .st-book .hit {
  margin: 6px 0;
  font-size: 12px;
}
.staff .st-book .hit code {
  display: block;
  margin-top: 2px;
  padding: 6px 8px;
  background: var(--bg-2);
  color: var(--fg);
  font: 11px var(--font-mono);
  word-break: break-all;
}
@media (max-width: 700px) {
  .staff .st-book {
    flex-direction: column;
  }
}
.staff .st-log {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.staff .st-log .note {
  flex-basis: 100%;
  color: var(--muted);
}
.staff .st-mini .st-log {
  padding: 4px 0;
}
.mod-banner {
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.6;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.mod-banner.danger {
  background: color-mix(in srgb, var(--danger) 16%, var(--bg));
}
.mod-banner b {
  margin-right: 6px;
}
.mod-banner .why {
  color: var(--muted);
}
.flag-form {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.flag-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
}
.sudo-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  font-size: 13px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px var(--shadow);
}
.sudo-bar .hbtn {
  border-radius: 14px;
  padding: 4px 12px;
  color: var(--bg);
}
.shelf-err > .base {
  width: 92%;
  max-width: 30rem;
}
.shelf-err > .base > .inner {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}
.shelf-err h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}
.shelf-err p {
  font-size: 14px;
  line-height: 1.75;
}
.shelf-err .text-muted {
  color: var(--muted) !important;
}
.shelf-err .err-cta,
.shelf-err .row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 18px 0 0;
}
.shelf-err .err-cta > [class*=col],
.shelf-err .row > [class*=col] {
  flex: none;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0 !important;
}
.shelf-err .btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 6px;
  width: auto;
}
.shelf-err .btn-primary,
.shelf-err .btn-danger {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.shelf-err .btn-outline-dark,
.shelf-err .btn-outline-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}
.shelf-err .err-amounts {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.shelf-err .err-amounts b {
  color: var(--fg);
  font-size: 20px;
  margin: 0 4px;
}
.shelf-err .err-cta .hbtn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
}
.shelf-err .err-code {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.shelf-err br {
  display: none;
}
.transport .speed {
  flex: none;
  height: 26px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--muted);
  font: 600 12px var(--font-latin);
  cursor: pointer;
}
.transport .speed.on {
  color: var(--accent);
  border-color: var(--accent);
}
.stage-wrap .cc-layer {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  max-width: 82%;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  background: rgba(0,0,0,0.66);
  color: #fff;
  font-size: clamp(13px, 2.2vw, 22px);
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
  z-index: 3;
}
.transport .cc {
  flex: none;
  height: 24px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  font: 800 11px var(--font-latin);
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.transport .cc.on {
  color: var(--accent);
  border-color: var(--accent);
}
.transport .play-lang {
  flex: none;
  height: 26px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--muted);
  font: 600 12px var(--font);
  cursor: pointer;
}
.transport .play-lang.d-none {
  display: none;
}
html.i18n-pending body {
  visibility: hidden;
}
.i18n-en {
  display: none;
}
html[data-lang=en] .i18n-zh {
  display: none;
}
html[data-lang=en] .i18n-en {
  display: revert;
}
.topbar .lang-toggle {
  flex: none;
  height: 30px;
  min-width: 34px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 15px;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  font: 700 12px var(--font-latin);
  cursor: pointer;
}
.topbar .lang-toggle:hover {
  opacity: 1;
}
.topbar .lang-toggle .to-zh {
  display: none;
}
html[data-lang=en] .topbar .lang-toggle .to-en {
  display: none;
}
html[data-lang=en] .topbar .lang-toggle .to-zh {
  display: inline;
}
.site-footer .lang-link .to-zh {
  display: none;
}
html[data-lang=en] .site-footer .lang-link .to-en {
  display: none;
}
html[data-lang=en] .site-footer .lang-link .to-zh {
  display: inline;
}
.export-cover .base {
  width: 440px;
  max-width: 94vw;
}
.export-cover .inner {
  background: var(--bg);
  color: var(--fg);
  border-radius: 2px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.export-cover .doc-head {
  display: flex;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.export-cover .doc-head h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.export-cover .doc-head .close-btn {
  margin-left: auto;
}
.export-cover .xp-body {
  padding: 18px 20px 20px;
}
.export-cover .xp-stage {
  font-size: 15px;
  margin-bottom: 10px;
}
.export-cover .xp-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--hover);
  overflow: hidden;
}
.export-cover .xp-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.6s;
}
.export-cover .xp-bar.busy .xp-fill {
  width: 30% !important;
  transition: none;
  animation: xp-busy 1.2s ease-in-out infinite;
}
.export-cover .xp-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.export-cover .xp-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.export-cover .xp-note:empty {
  display: none;
}
.export-cover .xp-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.export-cover .xp-btn {
  padding: 6px 14px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  color: var(--fg);
  text-decoration: none;
}
.export-cover .xp-btn:hover {
  background: var(--hover);
}
.export-cover .xp-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.export-cover .xp-btn.d-none {
  display: none;
}
.ldcv.mini.bottom.left.right {
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.ldcv.mini.bottom.left.right > .base > .inner {
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px var(--shadow), 0 0 0 1px var(--line);
}
body:has(.transport) .ldcv.mini.bottom.left.right {
  bottom: 80px;
}
.share-cover .base {
  width: 640px;
  max-width: 94vw;
}
.share-cover .inner {
  background: var(--bg);
  color: var(--fg);
  border-radius: 2px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.share-cover .doc-head {
  display: flex;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.share-cover .doc-head h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.share-cover .doc-head .close-btn {
  margin-left: auto;
}
.share-cover .sh-body {
  padding: 16px 20px 20px;
}
.share-cover .sh-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.share-cover .sh-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.share-cover .sh-role {
  flex: none;
  font-size: 13px;
  padding: 5px 6px;
  background: var(--field);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.share-cover .sh-url {
  flex: 1;
  min-width: 0;
  font: 12px var(--font-mono, monospace);
  padding: 6px 8px;
  background: var(--field);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.share-cover .sh-empty {
  font-size: 13px;
  color: var(--muted);
}
.share-cover .sh-empty.d-none {
  display: none;
}
.share-cover .xp-acts {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.share-cover .xp-btn {
  flex: none;
  padding: 5px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  color: var(--fg);
}
.share-cover .xp-btn:hover {
  background: var(--hover);
}
.share-cover .xp-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.share-cover .xp-btn.danger {
  color: var(--danger);
}
@media (max-width: 560px) {
  .share-cover .sh-row {
    flex-wrap: wrap;
  }
  .share-cover .sh-url {
    flex-basis: 100%;
    order: 3;
  }
}
body.read-only .tools,
body.read-only .compose,
body.read-only .reacts {
  display: none !important;
}
.publishing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
}
.publishing.d-none {
  display: none;
}
.publishing .pub-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  min-width: 260px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 20px 50px -20px var(--shadow);
  font-size: 14px;
}
.publishing .spin {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: shelf-spin 0.9s linear infinite;
}
body.fs .reader {
  position: fixed;
  inset: 0;
  z-index: 40;
  height: 100vh;
  height: 100dvh;
  background: #000;
}
body.fs .reader .topbar,
body.fs .reader .mod-banner,
body.fs .reader .tools,
body.fs .reader .side {
  display: none !important;
}
body.fs .reader .stage-area {
  padding: 0;
}
body.fs .reader .stage-wrap {
  box-shadow: none;
}
body.fs .reader .book-title,
body.fs .reader .doc-btn {
  display: none;
}
body.fs .reader-foot {
  display: none;
}
body.fs .transport {
  position: relative;
}
body.fs .transport .wide-btn {
  display: none;
}
body.fs .transport .react-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 19px;
  cursor: pointer;
  border-radius: 50%;
}
body.fs .transport.reacts-open .react-toggle {
  background: var(--hover);
}
body.fs .transport .reacts {
  display: none;
  position: absolute;
  right: 12px;
  bottom: calc(100% - 6px);
  z-index: 6;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px -12px var(--shadow);
}
body.fs .transport.reacts-open .reacts {
  display: flex;
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .transport {
    position: relative;
    display: block;
    height: auto;
    padding: 0;
  }
  .transport .tp-info,
  .transport .tp-bar,
  .transport .tp-ctl {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
  }
  .transport .tp-info > *,
  .transport .tp-bar > *,
  .transport .tp-ctl > * {
    order: 0;
  }
  .transport .tp-info {
    height: 38px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
  }
  .transport .tp-bar {
    padding-top: 4px;
  }
  .transport .tp-ctl {
    height: 54px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
  }
  .transport .chap-name {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-right: 0;
    text-align: left;
    color: var(--fg);
  }
  .transport .chap-name:not(:empty):after {
    content: none;
  }
  .transport .time {
    min-width: 0;
    margin-left: auto;
  }
  .transport .timeline {
    flex: 1;
  }
  .transport .tp-gap {
    display: block;
    flex: 1;
  }
  .transport .tp-bar {
    margin-bottom: 0;
  }
  .transport .tp-ctl {
    gap: 4px;
  }
  .transport .play-lang {
    max-width: 72px;
  }
  .transport .speed {
    max-width: 52px;
  }
  .transport .wide-btn {
    display: none;
  }
  .transport .react-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 19px;
    cursor: pointer;
    border-radius: 50%;
  }
  .transport.reacts-open .react-toggle {
    background: var(--hover);
  }
  .transport .reacts {
    display: none;
    position: absolute;
    right: 12px;
    bottom: calc(100% - 6px);
    z-index: 6;
    flex-wrap: wrap;
    max-width: calc(100% - 24px);
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px -12px var(--shadow);
  }
  .transport.reacts-open .reacts {
    display: flex;
  }
  body:not(.fs) .reader {
    height: auto;
  }
  body:not(.fs) .reader .reader-main {
    display: contents;
  }
  body:not(.fs) .reader .stage-area {
    order: 1;
    flex: none;
    align-items: flex-end;
    padding-bottom: 14px;
  }
  body:not(.fs) .reader .stage-area .book-title {
    left: 0;
    margin-left: 0;
    max-width: 100%;
  }
  body:not(.fs) .reader .stage-area .doc-btn {
    right: 0;
  }
  body:not(.fs) .reader .transport {
    order: 2;
  }
  body:not(.fs) .reader .tools {
    order: 3;
    width: auto;
    flex-direction: row;
    padding: 6px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }
  body:not(.fs) .reader .tools .sep {
    width: 1px;
    height: 24px;
    margin: 0 6px;
  }
  body:not(.fs) .reader .side {
    order: 4;
    display: flex;
    width: auto;
    border-left: 0;
  }
  body:not(.fs) .reader .side .notes {
    flex: none;
    overflow: visible;
  }
  body:not(.fs) .reader .stage-area {
    height: calc((100vw - 24px) * 9 / 16 + 84px);
  }
}
@media (min-width: 761px) {
  body.wide:not(.fs) .reader {
    height: auto;
  }
  body.wide:not(.fs) .reader .reader-main {
    display: contents;
  }
  body.wide:not(.fs) .reader .stage-area {
    order: 1;
    flex: none;
    align-items: flex-end;
    padding-bottom: 14px;
  }
  body.wide:not(.fs) .reader .stage-area .book-title {
    left: 0;
    margin-left: 0;
    max-width: 100%;
  }
  body.wide:not(.fs) .reader .stage-area .doc-btn {
    right: 0;
  }
  body.wide:not(.fs) .reader .transport {
    order: 2;
  }
  body.wide:not(.fs) .reader .tools {
    order: 3;
    width: auto;
    flex-direction: row;
    padding: 6px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }
  body.wide:not(.fs) .reader .tools .sep {
    width: 1px;
    height: 24px;
    margin: 0 6px;
  }
  body.wide:not(.fs) .reader .side {
    order: 4;
    display: flex;
    width: auto;
    border-left: 0;
  }
  body.wide:not(.fs) .reader .side .notes {
    flex: none;
    overflow: visible;
  }
  body.wide:not(.fs) .reader .stage-area {
    height: calc(100vh - 124px);
  }
  body.wide:not(.fs) .reader .side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }
  body.wide:not(.fs) .reader .side .me {
    grid-column: 1;
    grid-row: 1;
  }
  body.wide:not(.fs) .reader .side .info-panel {
    grid-column: 1;
    grid-row: 2;
  }
  body.wide:not(.fs) .reader .side .compose {
    grid-column: 2;
    grid-row: 1;
    border-left: 1px solid var(--line);
  }
  body.wide:not(.fs) .reader .side .notes {
    grid-column: 2;
    grid-row: 2/span 2;
    align-self: stretch;
    border-left: 1px solid var(--line);
  }
}
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 26px;
  font: 900 clamp(24px, 3vw, 32px) var(--font);
}
.sec-title small {
  font: 600 12px var(--font-latin);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
html[data-lang=en] .sec-title small {
  display: none;
}
.picks:empty {
  display: none;
}
.picks .pick-row {
  margin-bottom: 64px;
}
.picks .pick-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--fg);
}
.picks .pick-head .ic-star {
  color: var(--accent);
  align-self: center;
}
.picks .pick-head a {
  color: inherit;
  text-decoration: none;
}
.picks .pick-head a:hover {
  color: var(--accent);
}
.picks .pick-name {
  font: 900 clamp(20px, 2.4vw, 26px) var(--font);
}
.picks .pick-by {
  font-size: 13px;
  color: var(--muted);
}
.picks .pick-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted) !important;
}
.picks .pick-more:hover {
  color: var(--accent) !important;
}
.picks .shelf.strip {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 290px;
  gap: 40px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
}
.picks .shelf.strip .book {
  scroll-snap-align: start;
}
@media (max-width: 760px) {
  .picks .shelf.strip {
    grid-auto-columns: 72vw;
    gap: 24px;
  }
}
.shelf .shelves {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 4px;
}
.shelf .shelves:empty {
  display: none;
}
.shelf-link.own {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.shelf-link.own:before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 3px;
  vertical-align: -0.15em;
  background: currentColor;
  -webkit-mask: url("/assets/img/icon/glyph/own.svg") center/contain no-repeat;
  mask: url("/assets/img/icon/glyph/own.svg") center/contain no-repeat;
  opacity: 1;
}
.kind-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.6;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  white-space: nowrap;
}
.kind-tag .ic {
  width: 1em;
  height: 1em;
  vertical-align: 0;
}
.kind-tag.own {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.share-cover .cs-opt.off {
  opacity: 0.5;
  cursor: not-allowed;
}
.my .tree .node .ops .op-ic {
  width: 13px;
  height: 13px;
  padding: 0;
  align-self: center;
  background: var(--muted);
}
.my .tree .node .ops .op-ic:hover {
  background: var(--accent);
}
.my .tree .node .ops .op-ic.off {
  opacity: 0.35;
}
.share-cover .cs-k {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}
.shelf-link {
  font-size: 12px;
  line-height: 1.5;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  cursor: pointer;
}
.shelf-link:before {
  content: '▤ ';
  opacity: 0.6;
}
.shelf-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.shelf-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px clamp(16px, 4vw, 56px) 90px;
}
.shelf-page .sp-head {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--fg);
}
.shelf-page .sp-up {
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}
.shelf-page .sp-up a {
  color: inherit;
  text-decoration: none;
}
.shelf-page .sp-up a:hover {
  color: var(--accent);
}
.shelf-page .sp-up .fi {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}
.shelf-page .sp-name {
  font: 900 clamp(28px, 4vw, 44px) var(--font);
  margin: 6px 0 8px;
}
.shelf-page .sp-meta {
  font-size: 13px;
  color: var(--muted);
}
.shelf-page .sp-meta a {
  color: var(--accent);
}
.shelf-page .folders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.shelf-page .folders:empty {
  display: none;
}
.shelf-page .folder {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
}
.shelf-page .folder .fi {
  width: 15px;
  height: 15px;
}
.shelf-page .folder span {
  color: var(--muted);
  font: 600 12px var(--font-latin);
}
.shelf-page .folder:hover {
  border-color: var(--fg);
}
.shelf-page .empty {
  color: var(--muted);
  padding: 60px 0;
  text-align: center;
}
.save-cover .base {
  width: 440px;
}
.save-cover .sv-list {
  max-height: 50vh;
  overflow-y: auto;
  margin: 0 -8px 12px;
}
.save-cover .sv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.save-cover .sv-item:hover {
  background: var(--hover);
}
.save-cover .sv-item input {
  margin: 0;
  accent-color: var(--accent);
}
.save-cover .sv-item .fi {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0.7;
}
.save-cover .sv-item .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.save-cover .sv-item .vis-mark {
  width: 12px;
  height: 12px;
  opacity: 0.55;
}
.save-cover .sv-item.locked {
  opacity: 0.45;
  cursor: not-allowed;
}
.save-cover .sv-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 8px 8px;
}
.save-cover .sv-new {
  display: flex;
  gap: 8px;
}
.save-cover .sv-new .field {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  font-size: 13px;
}
.save-cover .sv-foot {
  margin-top: 14px;
  font-size: 12px;
}
.save-cover .sv-foot a {
  color: var(--muted);
}
.save-cover .sv-foot a:hover {
  color: var(--accent);
}
.pick-cover .base {
  width: 460px;
}
.pick-cover .pk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 6px;
}
.pick-cover .pk-k {
  flex: none;
  font-size: 13px;
  color: var(--muted);
}
.pick-cover .pk-range {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
}
.pick-cover .pk-num {
  flex: none;
  width: 76px;
  padding: 5px 8px;
  font-size: 14px;
}
.pick-cover .xp-acts {
  gap: 8px;
}
.pick-cover .pk-warn {
  color: var(--danger);
}
.shelf-page .sp-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.shelf-page .sp-title .sp-name {
  min-width: 0;
}
.shelf-page .sp-title .pick-btn {
  flex: none;
}
.shelf-page .sp-title .pick-btn.on {
  color: var(--accent);
  border-color: var(--accent);
}
.tb-acts .like-btn.on {
  color: var(--accent);
  border-color: var(--accent);
}
.tb-acts .like-btn .like-n:empty {
  display: none;
}
.my .tree .vis-mark {
  width: 12px;
  height: 12px;
  margin-left: 6px;
  opacity: 0.55;
}
.share-cover .cs-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.share-cover .cs-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.share-cover .cs-opt input {
  margin: 0;
}
.share-cover .cs-opt .ic {
  font-size: 17px;
  color: var(--muted);
}
.share-cover .cs-opt .cs-t {
  display: flex;
  flex-direction: column;
}
.share-cover .cs-opt .cs-t b {
  font-size: 14px;
}
.share-cover .cs-opt .cs-t small {
  font-size: 12px;
  color: var(--muted);
}
.share-cover .cs-opt.on {
  border-color: var(--accent);
}
.share-cover .cs-opt.on .ic {
  color: var(--accent);
}
.stage-wrap .sound-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  animation: sound-hint-in 0.3s ease-out;
}
.stage-wrap .sound-hint.d-none {
  display: none;
}
body.tap-through .stage-wrap .frame {
  pointer-events: auto;
}
body.tap-through .stage-wrap .ink,
body.tap-through .stage-wrap .poster {
  pointer-events: none;
}
.fs-center {
  display: none;
}
body.fs .reader {
  position: fixed;
}
body.fs .reader .stage-area {
  flex: 1;
}
body.fs .reader .transport {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: linear-gradient(transparent, rgba(0,0,0,0.78) 55%);
  border-top: 0;
  color: #fff;
  padding-top: 28px;
  transition: opacity 0.25s;
}
body.fs .reader .transport .chap-name,
body.fs .reader .transport .time,
body.fs .reader .transport .chap,
body.fs .reader .transport .mute,
body.fs .reader .transport .cc,
body.fs .reader .transport .fs-btn,
body.fs .reader .transport .react-toggle {
  color: rgba(255,255,255,0.9);
}
body.fs .reader .transport .cc {
  border-color: rgba(255,255,255,0.8);
}
body.fs .reader .transport .speed,
body.fs .reader .transport .play-lang {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
body.fs .reader .transport .timeline .rail {
  background: rgba(255,255,255,0.3);
}
body.fs .reader .transport .timeline .rail:after {
  background: #fff;
}
body.fs .reader .transport .knob {
  box-shadow: none;
}
body.fs .reader .transport .tp-info,
body.fs .reader .transport .tp-ctl {
  background: transparent;
  border: 0;
}
body.fs .reader .fs-center {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 8vw, 90px);
  pointer-events: none;
  transition: opacity 0.25s;
}
body.fs .reader .fc-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}
body.fs .reader .fc-btn small {
  font: 700 10px var(--font-latin);
  margin-top: -2px;
}
body.fs .reader .fc-btn.main {
  width: 72px;
  height: 72px;
  font-size: 28px;
}
body.fs .reader .poster {
  display: none;
}
body.fs:not(.fs-ui) .reader {
  cursor: none;
}
body.fs:not(.fs-ui) .reader .transport,
body.fs:not(.fs-ui) .reader .fs-center {
  opacity: 0;
  pointer-events: none;
}
body.fs:not(.fs-ui) .reader .fc-btn {
  pointer-events: none;
}
@-moz-keyframes shelf-spin {
  to {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes shelf-spin {
  to {
    transform: rotate(360deg);
  }
}
@-o-keyframes shelf-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shelf-spin {
  to {
    transform: rotate(360deg);
  }
}
@-moz-keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@-webkit-keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@-o-keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@-moz-keyframes burst {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-10%) scale(1.1);
  }
  100% {
    transform: translateY(-420%) scale(1);
    opacity: 0;
  }
}
@-webkit-keyframes burst {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-10%) scale(1.1);
  }
  100% {
    transform: translateY(-420%) scale(1);
    opacity: 0;
  }
}
@-o-keyframes burst {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-10%) scale(1.1);
  }
  100% {
    transform: translateY(-420%) scale(1);
    opacity: 0;
  }
}
@keyframes burst {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-10%) scale(1.1);
  }
  100% {
    transform: translateY(-420%) scale(1);
    opacity: 0;
  }
}
@-moz-keyframes xp-busy {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}
@-webkit-keyframes xp-busy {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}
@-o-keyframes xp-busy {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}
@keyframes xp-busy {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(340%);
  }
}
@-moz-keyframes pp-mask {
  from {
    opacity: 0;
  }
}
@-webkit-keyframes pp-mask {
  from {
    opacity: 0;
  }
}
@-o-keyframes pp-mask {
  from {
    opacity: 0;
  }
}
@keyframes pp-mask {
  from {
    opacity: 0;
  }
}
@-moz-keyframes pp-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@-webkit-keyframes pp-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@-o-keyframes pp-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes pp-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@-moz-keyframes pp-out {
  0%, 45% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(90deg);
  }
}
@-webkit-keyframes pp-out {
  0%, 45% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(90deg);
  }
}
@-o-keyframes pp-out {
  0%, 45% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(90deg);
  }
}
@keyframes pp-out {
  0%, 45% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(90deg);
  }
}
@-moz-keyframes pp-in {
  0%, 45% {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@-webkit-keyframes pp-in {
  0%, 45% {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@-o-keyframes pp-in {
  0%, 45% {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes pp-in {
  0%, 45% {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@-moz-keyframes sound-hint-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
@-webkit-keyframes sound-hint-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
@-o-keyframes sound-hint-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
@keyframes sound-hint-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
