/* A website's Theme CSS tab (TRK-1005) */
.theme-css-panel { display: grid; gap: 10px; }
.theme-css-panel > h2, .theme-css-panel > p { margin: 0; }
.theme-css-box {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  tab-size: 2;
}
.theme-css-box[readonly] { opacity: 0.85; cursor: default; }
.theme-css-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-css-bar { display: flex; align-items: center; gap: 8px; }
.theme-css-size { margin-right: auto; font-variant-numeric: tabular-nums; }
.theme-css-locked { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--sunken); font-size: 13px; }
.theme-css-notes:empty { display: none; }
.theme-css-notes p { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.theme-css-notes .theme-css-bad { color: var(--danger); }
.theme-css-notes .theme-css-good { color: var(--pass); font-weight: 500; }
.theme-css-notes ul { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.theme-css-names-head { margin: 8px 0 0; font-size: 14px; }
.theme-css-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.theme-css-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}
.theme-css-group:hover { background: var(--sunken); }
.theme-css-group .theme-css-caret {
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}
.theme-css-group[aria-expanded="true"] .theme-css-caret { transform: rotate(90deg); }
.theme-css-names { list-style: none; margin: 0 0 6px; padding: 0 0 0 18px; display: grid; gap: 2px; font-size: 13px; }
.theme-css-names code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.theme-css-name { border: 0; background: none; padding: 1px 4px; border-radius: 4px; color: var(--accent); cursor: pointer; }
.theme-css-name:hover { background: var(--sunken); }
@media (prefers-reduced-motion: reduce) { .theme-css-group .theme-css-caret { transition: none; } }
.theme-css-find { width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
