

.pc-menu {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 52px);
  z-index: 99999 !important;
  min-width: 180px;

  background: #f5f5f5;
  color: #333;

  border-radius: 8px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 0.35rem 0;
}

.pc-menu.hidden {
  display: none;
}

.pc-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: none;
  background: none;
  color: #333;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}

.pc-menu__item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.pc-menu__icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.pc-menu__label {
  flex: 1;
  font-weight: 500;
}

.pc-menu__count {
  font-size: 0.75rem;
  color: #888;
  font-variant-numeric: tabular-nums;
}



.page-list-popup {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 52px);
  z-index: 99999 !important;
  width: 340px;
  height: min(320px, 60vh);
  overflow-y: auto;

  background: #1a1a1a;
  color: #e0e0e0;

  border-radius: 8px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.page-list-popup.hidden {
  display: none;
}


.page-list-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: #1a1a1a;
  z-index: 1;
}

.page-list-popup__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.page-list-popup__close {
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
}

.page-list-popup__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}


.page-list-popup__body {
  padding: 0.25rem 0;
}




.page-list__progress {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-list__progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: #aaa;
}

.page-list__progress-percent {
  font-weight: 600;
  color: #fff;
}

.page-list__progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.page-list__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #29b6f6);
  border-radius: 2px;
  transition: width 0.3s ease;
}


.page-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-list__item:last-child {
  border-bottom: none;
}


.page-list__page-no {
  flex-shrink: 0;
  width: 2rem;
  font-size: 0.8rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}


.page-list__status {
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
}

.page-list__item.is-visited .page-list__status {
  color: #4fc3f7;
}


.page-list__title {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-list__title.is-hidden {
  color: #555;
  font-style: italic;
}

.page-list__link {
  color: #e0e0e0;
  text-decoration: none;
}

.page-list__link:hover {
  color: #fff;
  text-decoration: underline;
}
