/* Generated by scripts/lists-demo-css.mjs from the extension's panel.css. Do not edit by hand. */

/* The model's frame: the side panel itself, at the panel's own type size. */
.cd {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 13px/1.45 var(--font);
  text-align: left;
}
.cd h1,
.cd h2,
.cd p {
  margin: 0;
  max-width: none;
  /* The website's headline type stops at the frame: the panel sets its own sizes below. */
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-wrap: wrap;
}
.cd a {
  color: var(--accent);
}
.cd .num {
  font-variant-numeric: tabular-nums;
}
.cd :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.cd .view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* Redrawn within the same step: the step's fade-in ran once already (the panel's diffing keeps it from restarting). */
.cd [data-still] .lists-step,
.cd [data-still] .route {
  animation: none;
}

/* Views */

.cd .nav {
  flex: none;
  display: flex;
  gap: 16px;
  padding: 0 12px;
  border-bottom: 1px solid var(--rule);
}

.cd .nav button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0 7px;
  font: inherit;
  color: var(--ink-3);
  cursor: pointer;
}

.cd .nav button:hover {
  color: var(--ink);
}

.cd .nav button[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

.cd .nav .count {
  margin-left: 5px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}



.cd .scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}


/* Controls */

.cd .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.cd .btn:hover {
  background: var(--paper-sunk);
}

.cd .btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.cd .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.cd .btn.primary:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.cd .btn.quiet {
  border-color: transparent;
  background: none;
  padding: 0 6px;
  color: var(--ink-2);
}

.cd .btn.quiet:hover {
  color: var(--ink);
  background: var(--paper-sunk);
}

.cd .btn svg {
  flex: none;
}

.cd a.btn {
  text-decoration: none;
}

.cd .btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.cd .btn.danger:hover:not(:disabled) {
  background: var(--danger-wash);
}

.cd select,
.cd input[type='text'],
.cd input[type='email'],
.cd input[type='number'] {
  height: 28px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.cd input[type='text'],
.cd input[type='email'],
.cd input[type='number'] {
  padding: 0 8px;
  width: 100%;
}

.cd input[type='number'] {
  width: 5.5em;
  font-variant-numeric: tabular-nums;
}

.cd input[type='checkbox'] {
  accent-color: var(--accent);
  margin: 0;
}


/* Messages */

.cd .empty {
  padding: 28px 16px;
  max-width: 34em;
}

.cd .empty h1 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cd .empty p {
  color: var(--ink-2);
  margin-bottom: 14px;
}

.cd .note {
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  background: var(--paper-sunk);
  color: var(--ink-2);
}

.cd .note.warn {
  background: var(--warn-wash);
  color: var(--warn);
}

.cd .note.danger {
  background: var(--danger-wash);
  color: var(--danger);
}


/* Unsupported sites, folded under one line. */
.cd .fold > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.cd .fold > summary::-webkit-details-marker {
  display: none;
}

.cd .fold > summary:hover {
  color: var(--ink);
}

.cd .fold > summary svg {
  flex: none;
  transition: transform 0.15s;
}

.cd .fold[open] > summary svg {
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .cd .fold > summary svg {
    transition: none;
  }
}


/* Settings */

.cd .settings section {
  padding: 14px 12px 4px;
  border-bottom: 1px solid var(--rule);
}

.cd .settings h2 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 10px;
}

.cd .field {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.cd .field > label {
  font-weight: 500;
}

.cd .field .help {
  color: var(--ink-3);
  font-size: 12px;
}

.cd .field select {
  justify-self: start;
}

.cd .check {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 8px;
  margin-bottom: 14px;
}

.cd .check input {
  margin-top: 2px;
}

.cd .check .help {
  grid-column: 2;
  color: var(--ink-3);
  font-size: 12px;
}

.cd .version {
  padding: 12px;
  color: var(--ink-3);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .cd * {
    scroll-behavior: auto !important;
  }
}


/* Copying reading lists: a page of its own (the Lists tab, or its own larger window) */
.cd .lists-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 12px 28px;
}

.cd .lists-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cd .lists-head h1 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 4px;
}

.cd .lists-head p {
  color: var(--ink-2);
  max-width: 46em;
}

.cd .lists-head .btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* In the narrow panel the button keeps its icon only. */
@container (max-width: 460px) {
  .cd .lists-head .btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.cd .lists-steps {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.cd .lists-steps li {
  flex: 1;
  min-width: 0;
  margin-bottom: -1px;
  padding: 6px 2px 8px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s, border-color 0.2s;
}

.cd .lists-steps li[data-state='done'] {
  color: var(--ink-2);
  border-bottom-color: var(--rule-strong);
}

.cd .lists-steps li[data-state='now'] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.cd .lists-page .act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cd .lists-page progress {
  width: 100%;
}

/* Site pickers: a grid of cards each, side by side when there is room. */
.cd .pickers {
  display: grid;
  gap: 16px;
}

@container (min-width: 720px) {
  .cd .pickers {
    grid-template-columns: 1fr 1fr;
  }

}

.cd .picker {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cd .picker legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
}

.cd .picker input[type='search'] {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.cd .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-content: start;
  gap: 8px;
  padding: 2px;
  overflow-y: auto;
}

/*
  While a big grid shows (site pickers, series picker), the page is exactly the panel's height and
  the grids take what is left, each scrolling on its own down to the bottom. A picked site folds to
  its card and leaves its room to the other grid.
*/
.cd .lists-page[data-fill] {
  height: 100%;
}

.cd .lists-page[data-fill] > *,
.cd .choose-step > * {
  flex-shrink: 0;
}

.cd .lists-page[data-fill] .pickers,
.cd .lists-page[data-fill] .choose-step {
  flex: 1 1 0;
  min-height: 0;
}

.cd .lists-page[data-fill] .pickers {
  display: flex;
  flex-direction: column;
}

/* Both sites picked: nothing left to fill. */
.cd .lists-page[data-fill] .pickers:not(:has(.cards)) {
  flex: none;
}

.cd .lists-page[data-fill] .picker {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
}

.cd .lists-page[data-fill] .picker:has(.picked-row) {
  flex: none;
}

.cd .lists-page[data-fill] .cards,
.cd .lists-page[data-fill] .series-grid {
  flex: 1 1 0;
  min-height: 140px;
}

@container (min-width: 720px) {
  .cd .lists-page[data-fill] .pickers {
    flex-direction: row;
  }

  .cd .lists-page[data-fill] .picker:has(.picked-row) {
    flex: 1 1 0;
  }
}

/* In the narrow panel the series grid gets the whole page to scroll in; its button stays in reach. */
@container (max-width: 719px) {
  .cd .lists-page[data-fill]:has(.choose-step) {
    height: auto;
    min-height: 100%;
  }

  .cd .lists-page[data-fill] .choose-step {
    flex: 1 0 auto;
  }

  .cd .lists-page[data-fill] .series-grid {
    flex: none;
    overflow: visible;
  }

  .cd .choose-foot {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -12px -28px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--rule);
    background: var(--paper);
  }
}

/* A picked site, folded to its card. */
.cd .picked-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd .picked-row .site-card {
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

.cd .site-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-areas: 'icon name' 'meter meter' 'tags tags';
  align-items: center;
  gap: 6px 8px;
  padding: 8px 9px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.cd .site-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-1px);
}

.cd .site-card[aria-checked='true'] {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.cd .site-card .site-icon {
  grid-area: icon;
}

.cd .site-card .name {
  grid-area: name;
  padding-right: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cd .site-card .meter {
  grid-area: meter;
}

.cd .site-card .tags {
  grid-area: tags;
  color: var(--ink-3);
  font-size: 11px;
}

.cd .site-card .picked {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--accent);
}

.cd .site-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--paper-sunk);
  object-fit: cover;
}

.cd .site-icon.on-dark {
  background: #1c1f21;
}

.cd .site-icon.drawn,
.cd .site-icon.letter {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}

.cd .site-icon.drawn svg {
  width: 18px;
  height: 18px;
}

.cd .site-icon.letter {
  font-weight: 700;
}

/* Speed: seven rising bars, filled up to the site's speed. */
.cd .meter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 11px;
}

.cd .meter .ticks {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.cd .meter i {
  width: 4px;
  border-radius: 1px;
  background: var(--rule-strong);
}

.cd .meter i:nth-child(1) {
  height: 5px;
}
.cd .meter i:nth-child(2) {
  height: 6px;
}
.cd .meter i:nth-child(3) {
  height: 7px;
}
.cd .meter i:nth-child(4) {
  height: 8px;
}
.cd .meter i:nth-child(5) {
  height: 9px;
}
.cd .meter i:nth-child(6) {
  height: 10px;
}
.cd .meter i:nth-child(7) {
  height: 11px;
}

.cd .meter i[data-on] {
  background: var(--accent);
}

/* The chosen pair, joined by a line of dots running toward the target. */
.cd .route {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  animation: lists-rise 0.25s ease-out;
}

.cd .route .ends {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cd .route .end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cd .route .line,
.cd .route-line .arrow {
  flex: 1;
  height: 8px;
  background: radial-gradient(circle, var(--tone) 1.3px, transparent 1.6px) 0 50% / 8px 8px repeat-x;
  animation: lists-march 0.9s linear infinite;
}

.cd .route-line .arrow {
  flex: none;
  width: 32px;
}

.cd .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.cd .facts dt {
  color: var(--ink-3);
  font-size: 11px;
}

.cd .facts dd {
  margin: 2px 0 0;
}

.cd .lists-page ol.steps {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
  padding-left: 18px;
}

.cd .lists-step {
  display: grid;
  gap: 10px;
  animation: lists-rise 0.25s ease-out;
}

.cd .route-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cd .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cd .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.cd .chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-wash);
}

/* Some of the group picked. */
.cd .chip[data-some] {
  border-style: dashed;
  border-color: var(--accent);
}

/* Picking series: covers in a grid, all picked to start with. */
.cd .choose-step {
  display: flex;
  flex-direction: column;
}

.cd .series-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cd .series-tools input[type='search'] {
  flex: 1 1 160px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.cd .series-tools .num {
  margin-left: auto;
}

.cd .series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 2px;
  overflow-y: auto;
}

.cd .series-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}

.cd .series-card:hover {
  border-color: var(--rule-strong);
}

.cd .series-card input {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.cd .series-card .cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-sunk);
  object-fit: cover;
  transition: opacity 0.15s, filter 0.15s, border-color 0.15s;
}

/* No cover: the first letter on screentone. */
.cd .series-card .cover.letter {
  display: grid;
  place-items: center;
  background: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.3px) 0 0 / 6px 6px, var(--paper-sunk);
  color: var(--ink-2);
  font-size: 28px;
  font-weight: 700;
}

.cd .series-card[data-on] .cover {
  border-color: var(--accent);
}

.cd .series-card:not([data-on]) .cover {
  opacity: 0.45;
  filter: grayscale(1);
}

.cd .series-card:not([data-on]) .title {
  color: var(--ink-3);
}

.cd .series-card .title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cd .series-card .status {
  color: var(--ink-3);
  font-size: 11px;
}

.cd .series-grid .more {
  grid-column: 1 / -1;
  justify-self: center;
}

.cd .choose-foot {
  display: grid;
  gap: 6px;
}

.cd .lists-page .num {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.cd .tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.cd .tile {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 12px;
}

.cd .lists-page .tile .num {
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
}

.cd .tile[data-tone='accent'] {
  border-color: var(--accent);
}

/* A screentone corner, as on a printed page. */
.cd .tile[data-tone='accent']::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, var(--tone) 1.4px, transparent 1.7px) 0 0 / 6px 6px;
  mask: linear-gradient(225deg, #000, transparent 70%);
}

.cd .tile[data-tone='warn'] {
  border-color: var(--warn);
}

.cd .lists-page .fold .check,
.cd .lists-page .fold .field {
  margin: 10px 0 0;
}

.cd .lists-page .fold select {
  max-width: 100%;
}

.cd .progress-step .phase {
  font-weight: 600;
}

.cd .progress-step .current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The copy's speed, drawn like a file copy in Windows. */
.cd .graph {
  --chart: var(--accent);
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

/* The dark accent is too light for a filled mark; this cyan sits in the chart lightness band. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .cd .graph {
    --chart: #2a9fcd;
  }
}

:root[data-theme='dark'] .cd .graph {
  --chart: #2a9fcd;
}

.cd .graph svg {
  display: block;
}

.cd .graph .grid {
  stroke: var(--rule);
  stroke-width: 1;
}

.cd .graph .area {
  fill: var(--chart);
  opacity: 0.35;
}

.cd .graph .line {
  fill: none;
  stroke: var(--chart);
  stroke-width: 2;
  stroke-linejoin: round;
}

.cd .graph .now {
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.cd .graph .cross {
  stroke: var(--ink-2);
  stroke-width: 1;
}

.cd .graph .speed {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.cd .graph .tip {
  position: absolute;
  top: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.cd .graph .waiting {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 12px;
}

.cd .progress-step .current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes lists-rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@keyframes lists-march {
  to {
    background-position: 8px 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd .route .line,
.cd .route-line .arrow,
.cd .lists-step,
.cd .route,
.cd .site-card {
    animation: none;
    transition: none;
  }
}
