.co-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 4px 0 12px;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  background: var(--card);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.co-toggle[aria-pressed=true] {
  background: var(--accent);
  color: var(--accent-ink);
}
.log-filters.co-hide {
  display: none;
}
.co-head {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .92rem;
}
.co-sec {
  margin: 0 0 18px;
}
.co-sec h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--ink);
}
.co-sec h3 small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  font-size: .85rem;
}
.co-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.co-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  padding: 0 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.co-row:first-child {
  border-top: 0;
}
.co-tick {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 0 6px 12px;
  cursor: pointer;
}
.co-tick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.co-box {
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--muted);
  border-radius: 8px;
  background: var(--card);
  display: grid;
  place-items: center;
}
.co-tick input:checked + .co-box {
  background: var(--accent);
  border-color: var(--accent);
}
.co-tick input:checked + .co-box::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--accent-ink);
  border-bottom: 3px solid var(--accent-ink);
  transform: translateY(-2px) rotate(-45deg);
}
.co-tick input:focus-visible + .co-box {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.co-tick input:disabled {
  cursor: default;
}
.co-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.co-text b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.co-text small {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--muted);
  font-size: .85rem;
}
.co-bag {
  font-weight: 700;
  color: var(--ink);
}
.co-row--done .co-text b {
  color: var(--muted);
  text-decoration: line-through;
}
.co-undo,
.co-link {
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.co-price {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px 52px;
}
.co-price label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.co-money {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.co-money input {
  width: 5.5em;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.co-price button[type=submit] {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
}
.co-err {
  flex-basis: 100%;
  margin: 0 0 8px 52px;
  color: var(--tag);
  font-size: .9rem;
}
.co-empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--card);
}
@media (max-width: 380px) {
  .co-price,
  .co-err {
    padding-left: 12px;
    margin-left: 0;
  }
}
