.ct-desk {
  display: grid;
  grid-template-columns: minmax(235px, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: 16px;
}
.ct-desk:where(.tool-box) { display: block; }
.ct-desk [hidden] { display: none !important; }
.ct-catalog, .ct-detail { min-width: 0; }
.ct-heading, .ct-pages, .ct-links, .ct-report-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ct-heading, .ct-pages { justify-content: space-between; }
.ct-desk a, .ct-text-button { color: #9fede6; text-underline-offset: .2em; }
.ct-desk a { font-size: .875rem; }
.ct-heading h3, .ct-detail-header h3 { margin: 0; }
.ct-filters, .ct-calc, .ct-report-form, .ct-fields, .ct-review-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ct-filters { margin-top: 16px; }
.ct-search { grid-column: 1 / -1; }
.ct-desk label { display: grid; gap: 5px; color: #b5d4e0; font-size: .875rem; }
.ct-desk .ct-check { display: flex; align-items: center; gap: 7px; }
.ct-desk input:not([type=checkbox]), .ct-desk select, .ct-desk textarea {
  min-width: 0;
  width: 100%;
  padding: 9px;
  background: #0b2232;
  color: #e8f9ff;
  border: 1px solid #40667a;
  border-radius: 8px;
  font: inherit;
}
.ct-desk input[type=checkbox] { accent-color: #75d6c8; }
.ct-desk textarea { resize: vertical; }
.ct-desk :focus-visible { outline: 2px solid #a0f0e3; outline-offset: 3px; }
.ct-status, .ct-note, .ct-detail .ct-kicker { color: #9dc5d0; font-size: .825rem; margin: 12px 0; }
.ct-results { display: grid; gap: 6px; }
.ct-result {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
  background: #0c2536;
  border: 1px solid #2e5466;
  border-radius: 9px;
  color: #effaff;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.ct-result:hover, .ct-result[aria-pressed=true] { background: #1a4354; border-color: #81d8cb; }
.ct-result strong { font-weight: 650; }
.ct-result small, .ct-encounters small { display: block; margin-top: 3px; color: #a9ccd9; }
.ct-result-pay { text-align: right; font-size: .825rem; color: #9ee6d8; }
.ct-pages { margin-top: 12px; font-size: .825rem; color: #b8cfda; }
.ct-button {
  border: 1px solid #598690;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 36px;
  background: #184352;
  color: #e0fffa;
  cursor: pointer;
}
.ct-button:hover:not(:disabled) { background: #266174; }
.ct-button:disabled { opacity: .5; cursor: default; }
.ct-detail-header { border-bottom: 1px solid #315264; padding-bottom: 16px; }
.ct-detail-header > p { margin: 5px 0 10px; }
.ct-section { padding: 16px 0; border-bottom: 1px solid #315264; }
.ct-section:last-child { padding-bottom: 0; border-bottom: 0; }
.ct-section h4 { font: 700 1.15rem var(--font-display); margin: 0 0 10px; color: #e6ffff; }
.ct-section h5 { font-size: .95rem; color: #c6f5f1; margin: 12px 0 5px; }
.ct-section p, .ct-section ul { margin: 8px 0 0; }
.ct-section ul { padding-left: 20px; }
.ct-section li { margin-bottom: 4px; }
.ct-fields { margin: 0; }
.ct-fields > div, .ct-review-stats > div, .ct-pool, .ct-prerequisite {
  min-width: 0;
  border: 1px solid #315264;
  border-radius: 8px;
  background: #0d2738;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
.ct-fields dt, .ct-review-stats small, .ct-rewards small { color: #a9ccd9; font-size: .8rem; }
.ct-fields dd { margin: 3px 0 0; font-size: .9rem; color: #e0f6f8; }
.ct-briefing, .ct-pool, .ct-prerequisite { margin-top: 10px; }
.ct-briefing summary { cursor: pointer; color: #c5eee8; }
.ct-briefing p, .ct-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-pool h5 { margin-top: 0; }
.ct-text-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.ct-rewards small { display: block; }
.ct-calc-result { color: #d6f7f1; padding: 8px 10px; background: #153747; border-radius: 8px; }
.ct-review-stats { grid-template-columns: repeat(auto-fit,minmax(min(100%,125px),1fr)); }
.ct-review-stats strong, .ct-review-stats small { display: block; }
.ct-review-stats strong { color: #9fece2; font-size: 1.15rem; }
.ct-report-form { margin: 14px 0; }
.ct-report-action { font-size: .825rem; }
.ct-section .ct-notes { list-style: none; padding: 0; }
.ct-notes li { border-top: 1px solid #315264; padding: 10px 0; }
.ct-notes strong { color: #b9ebe7; font-size: .875rem; }
.ct-section .ct-issues { list-style: none; padding: 0; display: grid; gap: 8px; }
.ct-issues li { border: 1px solid #3a5968; background: #0d2738; border-radius: 8px; padding: 10px 12px; }
.ct-issues li > strong, .ct-issues li > small { display: block; }
.ct-issues li > small { color: #e8c590; margin-top: 4px; }
.ct-issues p { margin: 6px 0; }
.ct-issue-links { margin-top: 12px; align-items: baseline; flex-wrap: wrap; }
.ct-issue-links .ct-text-button { color: #a8e7dd; }
#ct-issue-status:empty, [data-ct-bug-status]:empty { display: none; }
@media (max-width:1050px) { .ct-desk { grid-template-columns: minmax(0,1fr); } }
@media (max-width:380px) { .ct-filters, .ct-report-form, .ct-calc { grid-template-columns: minmax(0,1fr); } }
