.tsq-add { display: none; }
.tsq-ready .tsq-add { display: inline-flex; margin: .5rem 0; }
.tsq-add, .tsq-open, #tsq-dialog button {
  background: #693c2b;
  color: #fff;
  border: 0;
  border-radius: .6rem;
  cursor: pointer;
  min-height: 44px;
  padding: .55rem .8rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
}
.tsq-open {
  position: fixed;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 3px 12px #241f1a40;
  z-index: 50;
}
#tsq-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  color: #241f1a;
  background: #fbf8f2;
  border: 0;
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  width: min(42rem, calc(100% - 1.5rem));
  max-height: 90dvh;
  overflow: auto;
}
#tsq-dialog::backdrop { background: #241f1a88; }
.tsq-top { display: flex; align-items: start; gap: 1rem; justify-content: space-between; }
.tsq-top h2 { margin: 0; }
#tsq-items { list-style: none; padding: 0; margin: 1rem 0; }
#tsq-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .65rem; align-items: center; border-block-end: 1px solid #d9cec3; padding: .5rem 0; }
#tsq-items label, #tsq-form label { display: grid; gap: .25rem; }
#tsq-items input { width: 5rem; }
#tsq-form label { margin-block-end: .65rem; }
#tsq-form input, #tsq-form textarea { width: 100%; }
#tsq-dialog button[disabled] { cursor: wait; opacity: .7; }
.tsq-live { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@media (max-width: 420px) {
  #tsq-items li { grid-template-columns: 1fr auto; }
  #tsq-items li a { grid-column: 1 / -1; }
  #tsq-items li button { align-self: end; }
}
