.hidden-choices {
  --choice-inset: 14px;
  --choice-indent: calc(var(--choice-inset) + 28px + 9px);
  min-width: 0;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
}
.hidden-choices > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px var(--choice-inset);
  border-radius: inherit;
  list-style: none;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}
.hidden-choices > summary::-webkit-details-marker { display: none; }
.hidden-choices > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.hidden-choices > summary > span { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.hidden-choices > summary > span .icon {
  box-sizing: border-box;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 7px;
  color: var(--link);
  background: color-mix(in srgb, var(--link) 8%, var(--paper));
}
.hidden-choices > summary > .icon { flex: none; width: 15px; height: 15px; color: var(--muted); }
.hidden-choices[open] > summary > .icon { transform: rotate(180deg); }
.hidden-choices-body {
  min-width: 0;
  padding: 0 var(--choice-inset) 12px var(--choice-indent);
  font-size: .8125rem;
  line-height: 1.45;
}
.hidden-choices .hidden-choice-list { list-style: none; margin: 0; padding: 0; }
.hidden-choices .hidden-choice-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.hidden-choices .hidden-choice-list li + li { border-top: 1px solid var(--line); }
.hidden-choices .hidden-choice-list li > span { min-width: 0; color: var(--ink); font-weight: 550; }
.hidden-choices .hidden-choice-list button {
  flex: none;
  min-height: 44px;
  margin: 0;
  padding: 4px;
  font: inherit;
  font-weight: 600;
  color: var(--link);
}
.hidden-choices [data-hidden-scope], .hidden-choices [data-hidden-status] {
  margin: 4px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: inherit;
  line-height: inherit;
}
.hidden-choices [data-hidden-controls] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.hidden-choices [data-hidden-controls] button { max-width: 100%; min-height: 44px; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.hidden-choices [hidden], .hidden-choices [data-hidden-status]:empty, .hidden-choices [data-hidden-scope]:empty,
.hidden-choices:not(:has([data-hidden-list] button)) [data-hidden-scope],
.hidden-choices [data-hidden-controls]:not(:has(button:not([hidden]))) { display: none !important; }
@media (max-width: 520px) {
  .hidden-choices { --choice-inset: 10px; }
  .hidden-choices-body:has([data-hidden-list] button) { padding-inline-start: var(--choice-inset); }
}
