.jnl-home {
  padding: 10px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jnl-card {
  min-height: 96px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 18px;
  background: var(--bg-elev);
  text-align: left;
}

.jnl-card .txt {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.jnl-card .nm {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 1px;
}

.jnl-card .desc {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.jnl-card .ic {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--bg-sunken);
  color: var(--accent);
  font-size: 24px;
}

.jnl-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
}

.cal-head {
  padding: 8px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cal-head .m {
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1;
}

.cal-head .y {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1;
}

.arrows {
  display: flex;
  gap: 8px;
}

.arrows button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text-2);
}

.cal-grid {
  padding: 0 22px 14px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
  text-align: center;
}

.wd {
  height: 28px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 1px;
}

.cal-cell {
  position: relative;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.cal-cell:not(.muted) {
  cursor: pointer;
}

.cal-cell.muted {
  color: var(--text-4);
}

.cal-cell .d {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.cal-cell.today .d {
  background: var(--text);
  color: var(--bg);
}

.cal-cell.selected .d {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.cal-cell.today.selected .d {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.phone.dark .cal-cell.today .d,
.phone.academy .cal-cell.today .d,
.phone.gothic .cal-cell.today .d {
  background: var(--accent);
  color: var(--dark-button-text);
}

.phone.dark .cal-cell.today.selected .d,
.phone.academy .cal-cell.today.selected .d,
.phone.gothic .cal-cell.today.selected .d {
  border-color: var(--accent);
}

.cal-cell.anniv .d {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.cal-cell.anniv.selected .d {
  background: var(--accent-soft);
}

.heat-dot {
  position: absolute;
  bottom: 0;
  left: 50%;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.heat-dot.s1 {
  width: 4px;
  height: 4px;
  opacity: 0.35;
}

.heat-dot.s2 {
  width: 6px;
  height: 6px;
  opacity: 0.65;
}

.heat-dot.s3 {
  width: 8px;
  height: 8px;
}

.checkin {
  width: calc(100% - 36px);
  min-height: 78px;
  margin: 0 auto 16px;
  padding: 14px 20px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-elev);
  text-align: left;
}

.day-detail-head {
  padding: 4px 22px 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 1.5px;
}

.checkin .ring {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 19px;
}

.checkin .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.checkin .t {
  color: var(--text);
  font-size: 15.5px;
  line-height: 22px;
  font-weight: 500;
}

.checkin .s {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.streak {
  min-width: 56px;
  margin-left: auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.streak .u {
  margin-left: 2px;
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1px;
}

.jnl-block-h {
  padding: 12px 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 2px;
}

.todo-item,
.ms-item {
  padding: 12px 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
}

.todo-check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}

.todo-item.done {
  color: var(--text-3);
  text-decoration: line-through;
}

.todo-item.done .todo-check {
  border-color: var(--accent);
  background: var(--accent);
}

.todo-item.empty,
.ms-item.empty {
  color: var(--text-3);
  text-align: left;
}

.ms-item {
  display: block;
}

.ms-item .date {
  margin-bottom: 4px;
  color: var(--text-3);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.ms-item.filled {
  color: var(--accent);
}

.ms-item.anniversary {
  color: var(--text);
}

.book-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.book-item {
  width: 100%;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 14px;
  text-align: left;
}

.book-cover {
  width: 46px;
  height: 64px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--bubble-user);
  color: #fff;
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 1px;
  text-align: center;
  writing-mode: vertical-rl;
}

.book-item .meta {
  flex: 1;
  min-width: 0;
}

.book-item .bt {
  color: var(--text);
  font-size: 14.5px;
  line-height: 22px;
}

.book-item .ba,
.book-item .last {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
}

.prog {
  height: 3px;
  margin: 10px 0 6px;
  border-radius: 2px;
  background: var(--bg-sunken);
}

.prog .fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0.8;
}

.shelf-empty {
  flex: 1;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-3);
  text-align: center;
}

.shelf-empty .ico {
  color: var(--text-4);
  font-size: 56px;
}

.up-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  color: var(--accent);
  font-size: 13px;
}

.reader-top {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.reader-top .ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 21px;
}

.reader-top .bt {
  flex: 1;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reader-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 30px 0;
}

.reader-body .chap {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-align: center;
}

.reader-body p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.4px;
  text-indent: 2em;
}

.reader-foot {
  padding: 12px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
}

.pbar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 11.5px;
}

.pbar {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-sunken);
}

.pbar .fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.pbar .knob {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.discuss {
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-elev);
  color: var(--text);
}

.discuss svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.ledger-stats {
  padding: 8px 20px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ledger-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--bg-elev);
}

.ledger-card .lbl {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 2px;
}

.ledger-card .amt {
  margin: 12px 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
}

.ledger-card .cu {
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 18px;
}

.ledger-card .rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-3);
  font-size: 11.5px;
}

.ledger-list-head {
  padding: 4px 22px 8px;
}

.ledger-row {
  padding: 12px 22px;
  border-top: 1px solid var(--border-soft);
}

.ledger-row .row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
}

.ledger-row .iface,
.ledger-row .row-bot {
  color: var(--text-3);
}

.ledger-row .cost {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  white-space: nowrap;
}

.ledger-row .row-bot {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

/* ===== 伴读 V2 书架 ===== */
.cv2-list {
  padding: 10px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv2-book {
  padding: 18px 20px 16px;
  border-radius: 18px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
}

.cv2-book .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cv2-book .bt {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv2-book .pg {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv2-book .prog {
  height: 3px;
  border-radius: 2px;
  background: var(--bg-sunken);
  overflow: hidden;
}

.cv2-book .prog .fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.cv2-book .last {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-4);
}

.cv2-up-card {
  margin-top: 2px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: 1px;
  color: var(--text-2);
  cursor: pointer;
}

.cv2-up-card svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.cv2-empty {
  flex: 1;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.cv2-empty .ico {
  font-size: 56px;
  color: var(--text-4);
}

.cv2-empty .txt {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.4px;
  color: var(--text-3);
  white-space: pre-line;
}

.up-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
}

.up-ic svg {
  width: 20px;
  height: 20px;
}

.up-ic input { display: none; }
.cv2-up-card input { display: none; }

/* ===== 伴读 V2 阅读页 ===== */
.reader-top-v2 {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.reader-top-v2 .ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 21px;
}

.reader-top-v2 .bt {
  flex: 1;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reader-top-v2 .pg {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-right: 4px;
  min-width: 50px;
  text-align: right;
}

.reader-body-v2 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 28px 0;
}

.reader-body-v2 p.normal {
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.4px;
  color: var(--text);
  margin: 0 0 16px;
  text-indent: 2em;
}

.anno-block {
  margin: 0 0 18px;
}

.anno-para {
  position: relative;
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.4px;
  color: var(--text);
  text-indent: 2em;
  margin: 0 0 10px;
  padding: 0 0 0 12px;
}

.anno-para::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.anno-bubbles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 12px;
}

.anno-b {
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.2px;
  padding: 9px 13px;
  border-radius: 14px;
  border-top-left-radius: 5px;
  max-width: 94%;
  align-self: flex-start;
}

.anno-b.ting {
  background: var(--bubble-user);
  color: #FFFFFF;
}

.anno-b.cheng {
  background: var(--bg-elev);
  color: var(--text-2);
}

.reader-foot-v2 {
  flex-shrink: 0;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reader-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.reader-progress .pct {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.pbar-touch {
  flex: 1;
  padding: 12px 0;
  cursor: pointer;
}

.pbar-touch .pbar {
  height: 3px;
  border-radius: 2px;
  background: var(--bg-sunken);
  position: relative;
}

.pbar-touch .pbar .fill {
  height: 100%;
  border-radius: 2px;
  background: var(--text-3);
  opacity: 0.55;
  transition: width 0.1s ease;
}

.pbar-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pbar-touch:active .pbar-thumb,
.pbar-thumb.visible {
  opacity: 1;
}

.reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 2px;
}

.reader-tools .tool {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-2);
  padding: 6px 4px;
}

.tool-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
  opacity: 0.6;
}

/* ===== 批注交互态 ===== */
.anno-block.active .anno-para,
.anno-block.active p.normal {
  background: var(--bg-sunken);
  border-radius: 8px;
  padding: 6px 12px 6px 14px;
  margin-bottom: 12px;
}

.anno-block.active .anno-para::before {
  left: 2px;
  top: 0.6em;
  bottom: 0.6em;
}

.anno-cta {
  margin: 8px 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.8px;
  color: var(--accent);
  cursor: pointer;
}

.anno-input {
  margin: 10px 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: var(--bg-sunken);
  border-radius: 20px;
}

.anno-input .ph {
  flex: 1;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

.anno-input .ph::placeholder {
  color: var(--text-3);
}

.anno-input .send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.anno-input .send svg {
  width: 15px;
  height: 15px;
}

.phone.dark .anno-input .send,
.phone.academy .anno-input .send,
.phone.gothic .anno-input .send {
  background: var(--text-2);
}

.anno-list-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 60vh;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  padding: 20px 20px 30px;
  overflow-y: auto;
  z-index: 10;
}

.anno-list-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 16px;
}

.anno-list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
}

.anno-list-content {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.toc-list {
  max-height: 50vh;
  overflow-y: auto;
}

.toc-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--text);
  cursor: pointer;
}

.toc-item:active {
  color: var(--accent);
}
