#completion-dialog {
  box-sizing: border-box;
  width: min(42rem, calc(100vw - 1.5rem));
  max-height: min(85vh, 48rem);
  max-height: min(85dvh, 48rem);
  padding: 0;
  overflow: hidden;
  background: #10292f;
  color: #f1f6ee;
  border: 1px solid #63817e;
  border-radius: 14px;
}
#completion-dialog[open] { display: flex; flex-direction: column; }
#completion-dialog::backdrop { background: #071417bf; }
#completion-dialog button, #completion-dialog input, #completion-dialog select { font: inherit; }
#completion-dialog button, #completion-dialog summary, #completion-dialog input[type=checkbox] { cursor: pointer; }
#completion-dialog :focus-visible { outline: 2px solid #ffd9a9; outline-offset: 2px; }
#completion-dialog .cc-header, #completion-dialog .cc-heading { display: flex; align-items: center; gap: .65rem; padding: .85rem 1.1rem; }
#completion-dialog .cc-header { justify-content: space-between; }
#completion-dialog h2, #completion-dialog h3 { margin: 0; line-height: 1.2; }
#completion-dialog h2 { font-size: 1.35rem; }
#completion-dialog h3 { font-size: 1.08rem; }
#completion-dialog .cc-close, #completion-dialog .cc-more, #completion-dialog .cc-nav button {
  font-weight: 650; color: #e9f4ec; background: #24474b; border: 1px solid #537774; border-radius: 8px; min-height: 40px; padding: .4rem .72rem;
}
#completion-dialog .cc-nav { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1.1rem .75rem; border-bottom: 1px solid #36595b; }
#completion-dialog .cc-nav button[aria-pressed=true] { color: #112f31; background: #a2e1d0; border-color: #a2e1d0; }
#completion-dialog .cc-heading { flex-wrap: wrap; padding-bottom: .3rem; }
#completion-dialog .cc-count, #completion-dialog .cc-series small { margin-left: auto; color: #ade1cf; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .82rem; }
#completion-dialog .cc-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 1.1rem 1.1rem; }
#completion-dialog .cc-help, #completion-dialog .cc-subtle { margin: .35rem 0 .9rem; color: #c2d8d1; font-size: .88rem; line-height: 1.45; }
#completion-dialog .cc-group { border-bottom: 1px solid #436365; }
#completion-dialog .cc-group summary { padding: .85rem .15rem; font-weight: 700; }
#completion-dialog .cc-row, #completion-dialog .cc-series { display: flex; align-items: center; gap: .7rem; border-top: 1px solid #2b4a4f; min-height: 44px; }
#completion-dialog .cc-goal { display: flex; align-items: center; flex: 1; gap: .7rem; padding: .55rem 0; margin: 0; cursor: pointer; }
#completion-dialog .cc-check { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #9ee3ca; }
#completion-dialog .cc-copy { display: grid; gap: 2px; font-size: .92rem; }
#completion-dialog .cc-copy small { font-size: .82rem; color: #b8cec8; line-height: 1.35; }
#completion-dialog .cc-series { width: 100%; justify-content: space-between; text-align: left; padding: .52rem .2rem; background: transparent; color: #e6f2e7; border-width: 1px 0 0; border-radius: 0; }
#completion-dialog .cc-link { background: transparent; border: 0; color: #a3e7d2; font-size: .85rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; padding: .6rem .15rem; }
#completion-dialog .cc-controls { display: flex; flex-wrap: wrap; gap: .45rem; padding-bottom: .4rem; }
#completion-dialog .cc-controls select, #completion-dialog .cc-controls input { min-width: 0; border: 1px solid #547372; border-radius: 5px; background: #17393e; color: #f0f6ed; padding: .55rem; max-width: 100%; }
#completion-dialog .cc-status:not(:empty) { padding: .55rem 1.1rem; margin: 0; color: #ffdda4; }
#completion-dialog .cc-status:empty { display: none; }
#completion-dialog .cc-more { display: block; margin: .65rem auto 0; }
@media(max-width:500px) {
  #completion-dialog { width: calc(100vw - 1rem); max-height: 90vh; max-height: 90dvh; }
  #completion-dialog .cc-header, #completion-dialog .cc-nav, #completion-dialog .cc-heading, #completion-dialog .cc-body { padding-inline: .82rem; }
  #completion-dialog .cc-nav button { padding-inline: .55rem; }
  #completion-dialog .cc-controls input { flex: 1 1 8rem; }
}
#completion-dialog [hidden] { display: none !important; }
