:root {
  --picker-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%23496960' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --picker-inset: 12px;
}

/* Keep native selection and keyboard handling; draw the closed control's arrow. */
:where(#provider-library, .practice-page, #workspace, #assessment-dialog) select:not([multiple], [size]) {
  --field-end: 40px;
  appearance: none;
  background-image: var(--picker-chevron);
  background-repeat: no-repeat;
  background-position: right var(--picker-inset) center;
  background-size: 16px 16px;
  text-overflow: ellipsis;
}
.target-picker > button {
  --field-end: var(--picker-inset);
}
.target-picker > button::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: var(--picker-chevron) center / contain no-repeat;
}
.target-picker > button[aria-expanded="true"]::after { transform: rotate(180deg); }

.file-drop {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 16px;
  border: 1px dashed #75a99e;
  border-radius: 10px;
  background: #f2f9f6;
  color: #155f54;
  text-align: center;
  cursor: pointer;
}
.file-drop::before {
  content: "";
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #e0f0e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231b7162' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M14 2.8H6.7a1.8 1.8 0 0 0-1.8 1.8v14.8a1.8 1.8 0 0 0 1.8 1.8h10.6a1.8 1.8 0 0 0 1.8-1.8V8zM14 2.8V8h5.1M12 17.5v-6m-2.7 2.7 2.7-2.7 2.7 2.7'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
}
.file-drop strong { max-width:100%; overflow-wrap:anywhere; font-size:15px; line-height:1.4; font-weight:650; }
.file-drop small { color:#4c6860; font-size:13px; line-height:1.4; font-weight:400; }
.file-drop input[type="file"] { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.file-drop:is(:focus-within,.dragging) { outline:2px solid #167f70; outline-offset:2px; }
.file-drop:is(:hover,.dragging) { background-color:#e9f5ef; border-color:#237869; }
@media (forced-colors: active) {
  :where(#provider-library, .practice-page, #workspace, #assessment-dialog) select:not([multiple], [size]) { appearance:auto; background-image:none; }
  .target-picker > button::after { width:7px; height:7px; background:none; border:solid ButtonText; border-width:0 2px 2px 0; transform:rotate(45deg); }
  .target-picker > button[aria-expanded="true"]::after { transform:rotate(225deg); }
}

/* Shared by the dashboard and extension progress dialogs. */
.generation-mark{position:relative;display:grid;place-items:center;width:46px;height:46px;margin:0 auto 13px;color:#16694f}
.generation-mark:before{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #cee9dc;border-top-color:#187a59;animation:progress-ring 1s linear infinite}
.typing-line{margin:6px 0 0;min-height:1.6em;color:#3d6558;font-size:13px}
.typing-line:after{content:"";display:inline-block;width:1px;height:1em;vertical-align:-.13em;margin-left:2px;background:currentColor}
@media(prefers-reduced-motion:reduce){.generation-mark:before{animation:none}.typing-line:after{display:none}}
@keyframes progress-ring{to{transform:rotate(360deg)}}

.single-picker { min-width:0; }
.single-picker > button {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; min-height:40px; padding:8px var(--picker-inset) 8px 12px;
  border:1px solid #bdd1cb; border-radius:8px; color:#1c3832; background:#fff;
  text-align:start; font:inherit; font-weight:550; cursor:pointer;
}
.single-picker > button[aria-expanded=true] { border-color:#438e7d; }
.single-picker > button:focus-visible {outline:2px solid #18796b;outline-offset:2px}
.single-picker .selection-text {min-width:0;overflow-wrap:anywhere}
.single-picker .target-choices {position:relative;max-height:12rem;overflow:auto;overscroll-behavior:contain;margin-top:4px;padding:4px;border:1px solid #c7dcd5;border-radius:8px;background:white;}
.single-picker .picker-option {display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 9px;border-radius:5px;font:inherit;font-weight:500;color:#1c3832;line-height:1.4;cursor:pointer;overflow-wrap:anywhere;}
.single-picker .picker-option::before {content:"";box-sizing:border-box;flex:none;width:13px;height:13px;border:1px solid #8ba59c;border-radius:50%;background:white;}
.single-picker .picker-option[aria-selected=true]::before {border-color:#177d70;background:#177d70;box-shadow:inset 0 0 0 3px white;}
.single-picker .picker-option:is(:hover,.current) {background:#edf6f2;}
.single-picker .picker-error {color:#9b322a}
.single-picker [aria-disabled=true],.single-picker > button:disabled {opacity:.6;cursor:default}
