/* Design tokens */
:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1d1f21;
  --text-muted: #5f6368;
  --border: #dcdcd8;
  --accent: #1f7a5c;
  --accent-contrast: #ffffff;
  --accent-soft: #e3f1ec;
  --warning: #b86e00;
  --logo-box: #616161;
  --category-head: #dfede6;
  --logo-check: #0b9500;
  --warning-soft: #fdf1dc;
  --danger: #b3261e;
  --focus: #1f7a5c;
  --accent-hover: #186349;
  --danger-soft: #fbe9e7;
  --hover-bg: #eef4f1;
  --shadow-sm: 0 1px 2px rgb(16 24 20 / 0.05), 0 1px 3px rgb(16 24 20 / 0.07);
  --shadow-md: 0 6px 16px rgb(16 24 20 / 0.10), 0 2px 4px rgb(16 24 20 / 0.06);
  --shadow-accent: 0 4px 14px rgb(31 122 92 / 0.30);
  --shadow-danger: 0 4px 14px rgb(179 38 30 / 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --radius: 8px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --content-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161819;
    --surface: #1f2224;
    --text: #e8e8e6;
    --text-muted: #a0a4a8;
    --border: #34383b;
    --accent: #5cc49b;
    --accent-contrast: #0d1f18;
    --accent-soft: #1e3a30;
    --warning: #f0a23b;
    --logo-box: #a0a4a8;
    --category-head: #293934;
    --logo-check: #2fbf23;
    --warning-soft: #3a2c14;
    --danger: #f2837a;
    --focus: #5cc49b;
    --accent-hover: #7dd6b3;
    --danger-soft: #3a1f1d;
    --hover-bg: #262c2d;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.30), 0 1px 3px rgb(0 0 0 / 0.25);
    --shadow-md: 0 6px 16px rgb(0 0 0 / 0.40), 0 2px 4px rgb(0 0 0 / 0.30);
    --shadow-accent: 0 4px 14px rgb(92 196 155 / 0.25);
    --shadow-danger: 0 4px 14px rgb(242 131 122 / 0.22);
  }
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s, text-decoration-thickness 0.15s;
}

a:hover {
  text-decoration-thickness: 2px;
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3);
}

h1, h2 {
  line-height: 1.2;
}

/* Site header */
.site-header {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.logo {
  flex: none;
  transition: transform 0.25s var(--ease);
}

.site-name:hover .logo {
  transform: rotate(-8deg) scale(1.08);
}

.logo-box {
  stroke: var(--logo-box);
}

.logo-check {
  stroke: var(--logo-check);
}

.language-switch {
  font-size: 0.875rem;
}

.site-footer {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  max-width: var(--content-width);
  margin: 0 auto;
}

.site-footer a {
  color: var(--text-muted);
}

/* Text pages */
.prose {
  line-height: 1.6;
}

.prose h1 {
  line-height: 1.2;
}

.prose h2 {
  margin-top: var(--space-5);
  font-size: 1.25rem;
}

.prose li + li {
  margin-top: var(--space-1);
}

.home-text {
  margin-top: var(--space-5);
}

.page-cards {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.prose .page-cards li + li {
  margin-top: 0;
}

.page-cards a {
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.page-cards a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-cards a:hover strong {
  color: var(--accent);
}

.page-cards span {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 36rem) {
  .page-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.create-list-form {
  margin: var(--space-4) 0;
}

.form-hint {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Home */
.home-intro {
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(135deg, var(--accent-soft), transparent 75%);
  border-radius: calc(var(--radius) * 1.5);
}

.home-intro h1 {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.home-intro p {
  margin-top: 0;
  color: var(--text-muted);
}

.my-lists {
  margin-top: var(--space-5);
}

.my-lists h2 {
  font-size: 1.125rem;
}

.my-lists-items {
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.my-lists-items:empty {
  display: none;
}

.my-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-right: var(--space-1);
}

.my-list {
  transition: background-color 0.15s;
}

.my-list:hover {
  background: var(--hover-bg);
}

.my-list:hover .my-list-name {
  color: var(--accent);
}

.my-list + .my-list {
  border-top: 1px solid var(--border);
}

.my-list-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  color: var(--text);
  text-decoration: none;
}

.my-list-name {
  transition: color 0.15s;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.my-list-meta, .my-lists-message {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* A button that looks like a link: no lift or shadow on hover. */
button.link-button {
  min-height: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button.link-button:hover:not(:disabled), button.link-button:active:not(:disabled) {
  box-shadow: none;
  transform: none;
  text-decoration-thickness: 2px;
}

.forget-all {
  margin-top: var(--space-3);
  font-size: 0.875rem;
}

/* Wizard */
.wizard {
  margin-top: var(--space-5);
}

.wizard h2 {
  margin-bottom: var(--space-1);
  font-size: 1.125rem;
}

.wizard > p {
  margin-top: 0;
  color: var(--text-muted);
}

.wizard-question {
  margin: 0 0 var(--space-3);
  padding: 0;
  border: none;
}

.wizard-question legend {
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* A checkbox that looks like a toggle button. */
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.chip span:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-accent);
}

.chip input:checked + span::before {
  content: '✓';
  margin-right: 0.35em;
  font-weight: 700;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field-label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.wizard-form input[type="text"] {
  margin-bottom: var(--space-3);
}

/* Consent: dialog on the home page, banner on a list */
.modal {
  max-width: min(28rem, calc(100vw - 2 * var(--space-3)));
  padding: var(--space-4);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.modal::backdrop {
  background: rgb(0 0 0 / 0.4);
  backdrop-filter: blur(2px);
}

.modal[open] {
  box-shadow: var(--shadow-md);
  animation: pop-in 0.18s var(--ease);
}

.modal[open]::backdrop {
  animation: fade-in 0.18s;
}

.modal h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.list-banner {
  animation: fade-in 0.25s;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.list-banner p {
  margin: 0 0 var(--space-2);
}

.save-link-warning {
  background: var(--warning-soft);
  border-left: 4px solid var(--warning);
}

.banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.banner-head .icon-button {
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0 0;
}

.banner-title {
  font-weight: 700;
}

.dialog-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Form controls */
button, input {
  font: inherit;
  color: inherit;
}

input[type="text"], input[type="search"] {
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: var(--space-1) var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}

input[type="text"]:hover, input[type="search"]:hover {
  border-color: color-mix(in srgb, var(--text-muted) 45%, var(--border));
}

/* A soft ring instead of the hard outline. */
input[type="text"]:focus-visible, input[type="search"]:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

button {
  min-height: 2.5rem;
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}

/* Buttons lift a little on hover and press down when clicked. */
button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(0) scale(0.97);
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
}

button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--surface);
  font-weight: 600;
}

button.danger:hover:not(:disabled) {
  border-color: var(--danger);
  box-shadow: var(--shadow-danger);
  filter: brightness(1.08);
}

button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  padding: 0;
}

.icon {
  display: block;
}

/* Row controls: quiet until hovered, then a round tint. They don't lift, so rows stay steady. */
.icon-button[data-action], button.drag-handle, .banner-head .icon-button {
  width: 2.25rem;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
}

.icon-button[data-action]:hover:not(:disabled), .banner-head .icon-button:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.icon-button[data-action]:active:not(:disabled) {
  transform: scale(0.9);
}

.icon-button[data-action^="delete"]:hover:not(:disabled), .icon-button[data-action="forget-list"]:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Drag and drop. The handle is an icon, not a button to press: no lift, press or background. */
button.drag-handle {
  cursor: grab;
  touch-action: none;
}

button.drag-handle:hover, button.drag-handle:active {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.drag-source {
  opacity: 0.35;
}

.drag-ghost {
  position: fixed;
  z-index: 20;
  margin: 0;
  list-style: none;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
  opacity: 0.95;
}

.drop-indicator {
  position: fixed;
  /* Above the dragged copy, which is usually right on top of it. */
  z-index: 21;
  height: 3px;
  pointer-events: none;
  background: var(--accent);
  border-radius: 2px;
}

body.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

/* List */
.list-header {
  margin-bottom: var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.list-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.list-title > :first-child {
  flex: 1;
  min-width: 0;
}

.list-name {
  margin: 0;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.list-name-input {
  font-size: 1.25rem;
  font-weight: 700;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  margin: var(--space-1) 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.sync-offline {
  color: var(--danger);
}

.list-message {
  color: var(--text-muted);
}

/* List menu */
.menu {
  position: relative;
  flex: none;
}

.menu-items {
  animation: pop-in 0.14s var(--ease);
  transform-origin: top right;
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-1));
  z-index: 5;
  min-width: 14rem;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.15);
}

.menu-items button {
  width: 100%;
  white-space: nowrap;
  border: none;
  background: none;
  text-align: left;
}

.menu-items button:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
  transform: none;
}

.menu-items .menu-danger {
  color: var(--danger);
}

.menu-items .menu-danger:hover:not(:disabled) {
  background: var(--danger-soft);
  color: var(--danger);
}

/* People who also have the list open */
.peers {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.peer {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--peer-color);
}

.peer + .peer {
  margin-left: -0.5rem;
}

.peer-red { --peer-color: #f4a6a6; }
.peer-orange { --peer-color: #f7c08a; }
.peer-yellow { --peer-color: #f3de8a; }
.peer-green { --peer-color: #a8dca0; }
.peer-teal { --peer-color: #93d8cf; }
.peer-blue { --peer-color: #a3c4f3; }
.peer-purple { --peer-color: #c9b3f0; }
.peer-pink { --peer-color: #f3b3d6; }

/* Deleted or missing list */
.deleted-list form {
  margin: var(--space-4) 0;
}

/* Toolbar: stays in view while scrolling a long list.
   Phone: search and edit on one row, filters below. Wider: all on one row. */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "search edit"
    "filters filters";
  gap: var(--space-2);
  margin: 0 calc(-1 * var(--space-3)) var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.toolbar .search {
  grid-area: search;
}

.edit-toggle {
  grid-area: edit;
}

.filters {
  grid-area: filters;
  display: flex;
  min-width: 0;
}

.filters button {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-1) var(--space-2);
  border-radius: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filters button:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.filters button:not([aria-pressed="true"]):hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.filters button + button {
  border-left: none;
}

.filters button:first-child {
  border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px);
}

.filters button:last-child {
  border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0;
}

@media (min-width: 36rem) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "search filters edit";
  }

  .filters button {
    flex: 0 0 auto;
  }
}

/* Categories and items */
.category {
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Category headers get a tint, so they stand apart from the items below. */
.category-name, .category-head {
  background: var(--category-head);
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.category-name {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.category-head {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-1);
}

.category-name-input {
  font-size: 1.0625rem;
  font-weight: 700;
}

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

.item + .item {
  border-top: 1px solid var(--border);
}

.item-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
}

label.item-row {
  cursor: pointer;
  transition: background-color 0.15s;
}

label.item-row:hover {
  background: var(--hover-bg);
}

.item:last-child label.item-row {
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.item input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--accent);
  flex: none;
}

/* The strike-through fades in when an item is checked. */
.item-name {
  overflow-wrap: anywhere;
  text-decoration: line-through;
  text-decoration-color: transparent;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.item input:checked + .item-name {
  color: var(--text-muted);
  text-decoration-color: currentColor;
}

.item-name-input {
  border-color: transparent;
}

/* In edit mode the row starts with the drag handle instead of a checkbox. */
div.item-row {
  gap: 2px;
  padding: var(--space-1);
}

.item-name-input:hover, .item-name-input:focus {
  border-color: var(--border);
}

/* Add item / add category */
.add-form {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
}

.items + .add-item {
  border-top: 1px solid var(--border);
}

.add-category, .list-body > .add-item {
  padding: 0;
  margin-bottom: var(--space-3);
}

/* Toast */
.toast {
  animation: toast-in 0.22s var(--ease);
  position: fixed;
  left: 50%;
  bottom: var(--space-3);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: max-content;
  max-width: calc(100vw - 2 * var(--space-3));
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
}

.toast-message {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.toast-action {
  flex: 0 1 auto;
  min-width: min-content;
  background: transparent;
  border-color: transparent;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Progress bar under the list title: fills up while packing. */
.progress-bar {
  height: 4px;
  margin-top: var(--space-2);
  overflow: hidden;
  background: var(--border);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.35s var(--ease), background-color 0.35s;
}

.progress-bar.done span {
  background: var(--logo-check);
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  button:hover:not(:disabled), .chip span:hover, .page-cards a:hover, .site-name:hover .logo {
    transform: none;
  }
}

/* Printing: just the list, black on white, in two columns to save paper. */
.print-link {
  display: none;
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --text-muted: #444;
    --border: #bbb;
    --category-head: #eee;
    --accent: #000;
    --shadow-sm: none;
  }

  body {
    font-size: 11pt;
    background: #fff;
  }

  .site-header, .site-footer, .toolbar, .list-banner, .toast, .peers, .menu, dialog,
  .list-title [data-action="share"], .sync-status, .progress-bar, .add-form, .list-message {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .list-header {
    margin-bottom: 0.5rem;
  }

  .list-name {
    font-size: 18pt;
  }

  .list-body {
    columns: 2;
    column-gap: 1.25rem;
  }

  .category {
    margin-bottom: 0.6rem;
    break-inside: avoid;
    box-shadow: none;
  }

  .category-name {
    padding: 0.2rem 0.5rem;
    font-size: 11pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .item-row {
    min-height: 0;
    padding: 0.15rem 0.5rem;
  }

  .item input[type="checkbox"] {
    width: 0.9rem;
    height: 0.9rem;
  }

  .print-link {
    display: block;
    margin-top: 1rem;
    color: #444;
    font-size: 9pt;
  }
}
