/* Production settings styles, deployment d41c4c437510d0c1e8085929df292692560bca2e. */
.trace-preference {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 24px 0 32px;
}
.trace-opt-in {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}
.trace-opt-in input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
}
.trace-opt-in.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.trace-admin-message {
  max-width: 660px;
  margin: 0 0 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.trace-preference button {
  min-height: 44px;
  padding: 10px 18px;
}
.collection-settings-tabs { display:flex; gap:24px; margin-top:20px; border-bottom:1px solid var(--line); }
.collection-settings-tabs [role="tab"] {
  padding:12px 0; border:0!important; border-bottom:2px solid transparent!important;
  border-radius:0!important; background:transparent!important; color:var(--muted);
  font-size:15px; min-height:44px;
}
.collection-settings-tabs [role="tab"][aria-selected="true"] {
  color:var(--ink); border-bottom-color:var(--accent)!important; font-weight:600;
}
.collection-settings-tabs [role="tab"]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.collection-settings-panel[hidden] { display:none!important; }
/* Collection settings: readable controls, scoped search and incremental focus lists. */
.collection-settings-tabs { overflow-x: auto; gap: 24px; }
.collection-settings-tabs [role="tab"] { flex-shrink: 0; white-space: nowrap; }
.team-defaults, .settings-section-heading { margin: 24px 0; }
#controls h3 { font: 600 17px/1.4 var(--sans, Arial, sans-serif); margin: 0 0 12px; }
.team-defaults p, .settings-section-heading p, .focus-merge p { font: 400 14px/1.6 var(--sans, Arial, sans-serif); color: var(--muted); max-width: 780px; margin: 6px 0 14px; }
.team-default-row { display: flex; align-items: flex-start; gap: 24px; justify-content: space-between; }
.team-default-row label, .team-choice-toggle { font-size: 15px; font-weight: 600; }
.team-default-row select { min-width: 160px; }
.team-choice-toggle, .focus-label, .focus-keep { display: flex; align-items: center; gap: 12px; }
.team-choice-toggle input, .focus-label input, .focus-keep input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.team-defaults { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.team-trace-table table { width: 100%; }
.team-trace-table td:first-child { width: 70%; }
.person-email { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#controls .collection-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
#controls .collection-search input { flex: 1; min-width: 180px; max-width: 520px; height: 44px; padding: 10px 12px; }
#controls button, #controls select { min-height: 40px; }
.settings-note, .settings-empty { padding: 14px 0; font-size: 14px; line-height: 1.6; }
.settings-error { padding: 12px; border: 1px solid currentColor; font-size: 14px; }
.settings-feedback:empty { display: none; }
.settings-feedback { font-size: 14px; }
.focus-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.focus-selection span { font-size: 13px; color: var(--muted); flex: 1; }
.focus-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.focus-label { min-width: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.focus-row > button { flex-shrink: 0; }
.focus-rename, .focus-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.focus-rename input { min-width: 180px; flex: 1; padding: 10px; }
.focus-merge { padding: 20px 0; }
.focus-merge fieldset { border: 1px solid var(--line); padding: 16px; margin: 16px 0; max-height: 380px; overflow-y: auto; }
.focus-keep { padding: 10px 0; font-size: 15px; overflow-wrap: anywhere; }
.focus-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; font-size: 14px; color: var(--muted); }
@media (max-width:650px) {
  .collection-settings-tabs { gap: 18px; }
  .collection-settings-tabs [role="tab"] { font-size: 14px; }
  .team-default-row { flex-direction: column; gap: 0; margin-bottom: 18px; }
  .team-trace-table td:first-child { width: auto; }
  .team-trace-table td, .team-trace-table th { padding: 12px 6px; }
  .team-trace-table select { max-width: 145px; font-size: 14px; }
  .focus-row:has(.focus-rename) { flex-wrap: wrap; }
  .focus-rename { width: 100%; }
  .focus-rename input { width: 100%; flex-basis: 100%; }
}
#controls .collection-search input, .focus-rename input { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 15px; }
.team-trace-table td { font-size: 15px; }
.team-trace-table td strong { font-family: Arial, sans-serif; font-weight: 600; }
.team-trace-table th { font-size: 13px; }
.team-trace-table select, .team-default-row select { font-size: 14px; min-height: 44px !important; }
@media (max-width:650px) {
  .collection-settings-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: visible; }
  .collection-settings-tabs [role="tab"] { white-space: normal; min-width: 0; min-height: 62px; font-size: 14px; line-height: 1.4; text-align: left; }
  .team-trace-table table { table-layout: fixed; }
  .team-trace-table td:first-child, .team-trace-table th:first-child { width: 55%; }
  .team-trace-table td { overflow-wrap: anywhere; }
  .team-trace-table select { width: 100%; max-width: none; font-size: 13px; padding-left: 6px; padding-right: 20px; }
}

#controls .collection-search input::placeholder { color: var(--muted); opacity: 1; }

.team-default-checkbox, .team-default-select { display:grid; grid-template-columns:minmax(0,1fr) 20px; align-items:center; gap:16px; max-width:420px; margin:12px 0; font-size:15px; line-height:1.5; }
#controls .team-default-checkbox input { width:20px; height:20px; min-height:20px; margin:0; accent-color:var(--accent); }

.team-default-select { grid-template-columns:minmax(0,1fr) 88px; }
#controls .team-default-select select { width:100%; min-width:0; font-size:16px; min-height:44px; }

/* Direct settings navigation, aligned with the theme control. */
.header-tools .settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex: 0 0 40px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.header-tools .settings-button:hover { background: var(--hover, rgba(128, 137, 180, .12)); }
.header-tools .settings-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#controls .collection-settings-tabs { margin-top: 0; }

/* Current production mobile collection-table fixes. */
@media (max-width:650px), (max-width:950px) and (pointer:coarse) {
  #collection-people td:first-child { grid-column:1 / -1; width:100%; font-size:16px; }
  #collection-people td:nth-child(2) { grid-column:1 / -1; }
  #collection-people td:nth-child(2)::before { content:'Reporting'; }
  #collection-people select { width:100%; min-width:0; max-width:220px; }
}
