#customPromptsSettings { padding:clamp(1.25rem,3vw,2rem); }
#customPromptsSettings > h1 { margin:0 0 1rem; }
#customPromptsSettings > a.button { display:inline-flex;margin:0; }
#customPromptsSettings>p,#customPromptsSettings>div,#customPromptsSettings>form { margin-top:1rem; }
#customPromptsSettings form { display:grid;gap:1rem;max-width:800px;margin-top:1.5rem; }
#customPromptsSettings label { display:grid;gap:.5rem;font-weight:600; }
#customPromptsSettings label:has(input[type=checkbox]) { display:flex;align-items:center;gap:.65rem; }
#customPromptsSettings input:not([type=checkbox]),#customPromptsSettings textarea { width:100%;box-sizing:border-box;padding:.75rem;color:var(--appearance-ink,#172b4d);background:var(--appearance-input,var(--appearance-surface,#fff));border:1px solid var(--appearance-line,#b8c8dc);border-radius:.65rem;font:inherit; }
#customPromptsSettings .settings-section { display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;padding:1rem; }
#customPromptsSettings .settings-section strong { flex:1 1 200px; }
#customPromptsSettings .actions { display:flex;flex-wrap:wrap;gap:.75rem; }
#executiveCustomPrompts { margin-bottom:1.5rem; }
#executiveCustomPromptsEdit { display:inline-block;margin-top:1rem; }
#customPromptsSettings select { width:100%;box-sizing:border-box;padding:.75rem;color:var(--appearance-ink,#172b4d);background:var(--appearance-input,var(--appearance-surface,#fff));border:1px solid var(--appearance-line,#b8c8dc);border-radius:.65rem;font:inherit; }
.custom-prompt-button { display:flex;flex-direction:column;align-items:flex-start;gap:.35rem; }
.custom-prompt-visibility { font-size:.8rem;font-weight:400; }
.custom-prompt-test { padding:1rem;border:1px solid var(--appearance-line,#b8c8dc);border-radius:.75rem;background:var(--appearance-surface,#fff);color:var(--appearance-ink,#172b4d);min-width:0; }
.custom-prompt-test p { margin:.75rem 0; }
.custom-prompt-test-answer { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6; }
.sense-answer { min-width:0;max-width:100%;white-space:normal; }
.global-sense-message:has(.sense-answer) { min-width:0; }
.sense-answer-prose { white-space:pre-wrap;overflow-wrap:anywhere; }
.sense-answer-table-region { max-width:100%;overflow-x:auto;margin:1rem 0;border:1px solid var(--appearance-line,#b8c8dc);border-radius:.65rem;white-space:normal; }
.sense-answer-table-region:focus-visible { outline:2px solid var(--appearance-link,#175cd3);outline-offset:3px; }
.sense-answer-table-region table { width:100%;border-collapse:collapse;font:inherit;color:var(--appearance-ink,#172b4d);background:var(--appearance-surface,#fff); }
.sense-answer-table-region th,.sense-answer-table-region td { padding:.75rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--appearance-line,#b8c8dc);min-width:7rem;max-width:28rem;overflow-wrap:anywhere; }
.sense-answer-table-region th { font-weight:700;background:var(--appearance-quiet,var(--appearance-surface,#f1f5f9)); }
.sense-answer-table-region tr:last-child td { border-bottom:0; }
.sense-answer a { color:var(--appearance-link,#175cd3);text-decoration:underline; }
.custom-prompt-examples { padding:1rem;border:1px solid var(--appearance-line,#b8c8dc);border-radius:.75rem;background:var(--appearance-surface,#fff); }
.custom-prompt-examples summary { cursor:pointer;font-weight:600; }
.custom-prompt-examples p { margin:.8rem 0;line-height:1.5; }
.custom-prompt-examples .executive-review-choices { display:grid;gap:.6rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.custom-prompt-examples summary:focus-visible { outline:2px solid var(--appearance-link,#175cd3);outline-offset:4px; }

/* Executive question library: only the question area, never upload or conversation. */
#executiveQuestionLibrary {margin-top:1.4rem;min-width:0;color:var(--appearance-ink,#172b4d)}
#executiveQuestionLibrary h3 {font-size:1rem;margin:0 0 .75rem}
#executiveQuestionFilters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--appearance-line,#cbd5e1);border-radius:.6rem;overflow:hidden;margin-bottom:.8rem}
#executiveQuestionFilters button {font:inherit;font-size:.75rem;font-weight:650;min-height:38px;padding:.4rem .2rem;border:0;border-right:1px solid var(--appearance-line,#cbd5e1);background:var(--appearance-surface,#fff);color:var(--appearance-muted,#64748b);cursor:pointer}
#executiveQuestionFilters button:last-child {border-right:0}
#executiveQuestionFilters button[aria-pressed=true] {background:var(--appearance-accent,#3355e0);color:#fff}
#executiveQuestionLibrary .executive-question-search {display:grid;gap:.35rem;font-size:.75rem;font-weight:600;margin-bottom:.85rem}
#executiveQuestionSearch {box-sizing:border-box;min-width:0;width:100%;padding:.6rem .7rem;border:1px solid var(--appearance-line,#cbd5e1);border-radius:.55rem;background:var(--appearance-input,var(--appearance-surface,#fff));color:inherit;font:inherit}
#executiveQuestionLibrary .executive-review-choices {display:grid;gap:.4rem;min-width:0}
#executiveQuestionLibrary .executive-question-group {min-width:0;margin:.15rem 0 .55rem;border:0;padding:0}
#executiveQuestionLibrary summary {cursor:pointer;font-size:.7rem;letter-spacing:.035em;text-transform:uppercase;font-weight:700;color:var(--appearance-muted,#64748b);padding:.55rem .15rem}
#executiveQuestionLibrary .executive-review-choice {position:relative;box-sizing:border-box;width:100%;min-width:0;min-height:42px;white-space:normal;overflow-wrap:anywhere;text-align:left;justify-content:flex-start;padding:.65rem .7rem;border-radius:.6rem;font-size:.82rem;line-height:1.4;background:var(--appearance-surface,#fff);color:var(--appearance-ink,#172b4d);border:1px solid var(--appearance-line,#d5d7de)}
#executiveQuestionLibrary .custom-prompt-button {display:block;padding-left:3.2rem}
#executiveQuestionLibrary .custom-prompt-visibility {display:block;font-size:.7rem;color:var(--appearance-muted,#64748b);margin-top:.2rem}
#executiveQuestionLibrary .executive-question-badge {position:absolute;left:.65rem;top:.7rem;width:1.9rem;height:1.9rem;display:grid;place-items:center;border-radius:50%;background:var(--appearance-input,#eef0fd);color:var(--appearance-accent,#3355e0);font-size:.7rem;font-weight:700}
#executiveQuestionLibrary #executiveCustomPrompts {margin-bottom:.7rem}
#executiveQuestionLibrary #executiveCustomPromptsEdit {width:100%;font-size:.8rem;margin-top:.7rem;border-style:dashed}
#executiveQuestionLibrary #executiveQuestionEmpty,#executiveQuestionLibrary #executiveCustomPromptStatus {font-size:.8rem;color:var(--appearance-muted,#64748b)}
#executiveQuestionLibrary [hidden] {display:none!important}
#executiveQuestionLibrary :is(button,input,summary):focus-visible {outline:3px solid var(--appearance-accent,#3355e0);outline-offset:2px}
#executiveQuestionLibrary .executive-review-choice[aria-pressed=true] {border-color:var(--appearance-accent,#3355e0);box-shadow:inset 3px 0 var(--appearance-accent,#3355e0)}

/* Compact segmented control, matching the approved executive review reference. */
#executiveQuestionLibrary h3 {font-size:.875rem;line-height:1.4;margin-bottom:.65rem}
#executiveQuestionFilters {border-radius:6px;margin-bottom:.65rem;overflow:visible}
#executiveQuestionFilters button {border-radius:0;min-height:28px;padding:5px 4px;font-size:.65rem;line-height:1.3;box-shadow:none;margin:0;white-space:nowrap}
#executiveQuestionFilters button:first-child {border-radius:5px 0 0 5px}
#executiveQuestionFilters button:last-child {border-radius:0 5px 5px 0}
#executiveQuestionLibrary .executive-question-search {position:relative;margin-bottom:.75rem}
#executiveQuestionLibrary .executive-question-search-label {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#executiveQuestionLibrary #executiveQuestionSearch {min-height:32px;padding:6px 10px;border-radius:6px;font-size:.75rem;line-height:1.4}
/* Keep the full question bank as compact as its segmented navigation. */
#executiveQuestionLibrary .executive-question-group {margin:0 0 .55rem}
#executiveQuestionLibrary .executive-review-choices {gap:5px}
#executiveQuestionLibrary summary {display:flex;align-items:center;justify-content:space-between;list-style:none;padding:9px 2px 5px;font-size:.6rem;line-height:1.3;letter-spacing:.055em;color:var(--appearance-muted,#9294a1)}
#executiveQuestionLibrary summary::-webkit-details-marker {display:none}
#executiveQuestionLibrary summary::after {content:'⌄';font-size:.75rem;font-weight:400;transform:rotate(-90deg)}
#executiveQuestionLibrary details[open]>summary::after {transform:none}
#executiveQuestionLibrary .executive-review-choice {min-height:32px;padding:7px 10px;border-radius:7px;font-size:.72rem;line-height:1.25;font-weight:600;box-shadow:none}
#executiveQuestionLibrary .executive-review-choice[aria-pressed=true] {box-shadow:none;border-color:var(--appearance-accent,#7560ff);background:color-mix(in srgb,var(--appearance-accent,#7560ff) 8%,var(--appearance-surface,#fff));color:var(--appearance-accent,#5943c7)}
#executiveQuestionLibrary .custom-prompt-button[data-question-scope=shared] {padding-left:30px}
#executiveQuestionLibrary .custom-prompt-button[data-question-scope=private] {padding-right:28px;padding-left:10px}
#executiveQuestionLibrary .executive-question-badge {left:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;font-size:.48rem}
#executiveQuestionLibrary [data-question-scope=private] .executive-question-badge {left:auto;right:9px;background:transparent;color:var(--appearance-muted,#9294a1)}
#executiveQuestionLibrary [data-question-scope=private] .executive-question-badge svg {width:11px;height:11px}
#executiveQuestionLibrary [data-question-scope=private] .custom-prompt-visibility {display:none}
#executiveQuestionLibrary .custom-prompt-visibility {font-size:.62rem;line-height:1.2;margin-top:3px}
#executiveQuestionLibrary #executiveCustomPromptsEdit {min-height:30px;padding:6px 9px;margin-top:6px;font-size:.68rem;border-style:solid;border-radius:7px}

/* Reference proportions from executive-review-prompts (2).html. */
#executiveQuestionLibrary {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif}
#executiveQuestionLibrary h3 {font-size:15px;line-height:1.4;margin:0 0 10px}
#executiveQuestionFilters {display:inline-flex;max-width:100%;border-radius:9px;margin-bottom:12px}
#executiveQuestionFilters button {display:flex;align-items:center;gap:5px;min-height:0;padding:6px 12px;font-size:11.5px;font-weight:700;line-height:1.3}
#executiveQuestionFilters button:first-child {border-radius:8px 0 0 8px}
#executiveQuestionFilters button:last-child {border-radius:0 8px 8px 0}
#executiveQuestionFilters .executive-question-count {font-size:10px;opacity:.75}
#executiveQuestionLibrary #executiveQuestionSearch {padding:8px 10px 8px 30px;font-size:12.5px;border-radius:8px}
#executiveQuestionLibrary .executive-question-search::before {content:'';position:absolute;left:11px;top:50%;width:8px;height:8px;border:1.5px solid var(--appearance-muted,#9a9aa3);border-radius:50%;transform:translateY(-65%);pointer-events:none}
#executiveQuestionLibrary .executive-question-search::after {content:'';position:absolute;left:19px;top:calc(50% + 3px);width:5px;height:1.5px;background:var(--appearance-muted,#9a9aa3);transform:rotate(45deg);pointer-events:none}
#executiveQuestionLibrary .executive-question-group {margin-bottom:4px}
#executiveQuestionLibrary summary {padding:6px 2px;font-size:10.5px;letter-spacing:.04em}
#executiveQuestionLibrary .executive-question-group>.executive-review-choices {gap:6px;margin-bottom:10px}
#executiveQuestionLibrary .executive-review-choice {padding:9px 12px;font-size:12.5px;line-height:1.2;border-radius:9px;min-height:0}
#executiveQuestionLibrary .custom-prompt-button[data-question-scope=shared] {padding-left:38px}
#executiveQuestionLibrary .executive-question-badge {width:18px;height:18px;font-size:9px}
#executiveQuestionLibrary .custom-prompt-visibility {font-size:10.5px;font-weight:600;margin-top:2px}
#executiveQuestionLibrary #executiveCustomPromptsEdit {padding:9px 12px;font-size:12.5px;border-style:dashed;border-radius:9px}
@media(max-width:380px){#executiveQuestionFilters button{padding-inline:8px}}

#executiveQuestionLibrary #executiveQuestionFilters {width:max-content;max-width:100%;box-sizing:border-box}
#executiveQuestionLibrary #executiveQuestionFilters button {min-width:0;padding-inline:9px;flex-shrink:1}
#executiveQuestionLibrary #executiveQuestionFilters button .executive-question-count {font-size:10px;font-weight:700}
#executiveQuestionLibrary details.executive-question-group {padding:0;margin:0 0 4px}
#executiveQuestionLibrary details.executive-question-group>summary {margin:0}
#executiveQuestionLibrary {container-type:inline-size}
@container(max-width:300px){
 #executiveQuestionLibrary #executiveQuestionFilters button {font-size:10px;padding:6px 5px;gap:3px}
 #executiveQuestionLibrary #executiveQuestionFilters button .executive-question-count {font-size:9px}
}
