.candidate-workspace {
  padding:26px 28px;
  color:#1d1d1f;
  max-width:1600px;
  margin:auto}
.candidate-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:24px}
.candidate-header h2 {
  font-size:24px;
  font-weight:650;
  margin:0 0 6px}
.candidate-header p,.candidate-header label,.candidate-compose p {
  color:#6e6e73;
  font-size:13px;
  margin:0}
.candidate-run-picker {
  display:grid;
  gap:6px;
  min-width:220px;
  max-width:380px}
.candidate-workspace select,.candidate-workspace textarea {
  border:1px solid #d9d9df;
  background:#fff;
  border-radius:8px;
  min-height:42px;
  padding:8px 12px;
  color:#1d1d1f;
  font:inherit;
  max-width:100%}
.candidate-compose {
  border:1px solid #e5e5ea;
  border-radius:12px;
  padding:18px 20px;
  background:#fafafa}
.candidate-compose-row {
  display:flex;
  align-items:center;
  gap:18px}
.candidate-icon { width:18px; height:18px; flex-shrink:0; }
.candidate-sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.candidate-count-control { flex:0 0 240px; min-width:0; }
.candidate-count-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; }
.candidate-count-heading output { font-size:22px; font-weight:600; font-variant-numeric:tabular-nums; color:#1d1d1f; }
.candidate-count-control input[type=range] { appearance:none; -webkit-appearance:none; width:100%; height:44px; padding:0; margin:2px 0 0; border:0; background:transparent; cursor:pointer; accent-color:#0071e3; }
.candidate-count-control input[type=range]::-webkit-slider-runnable-track { height:5px; border-radius:3px; background:linear-gradient(to right,#0071e3 var(--candidate-range-fill,47.37%),#d9d9df var(--candidate-range-fill,47.37%)); }
.candidate-count-control input[type=range]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:24px; height:24px; margin-top:-9.5px; border:1px solid #d9d9df; border-radius:50%; background:#fff; box-shadow:0 2px 5px #0002; }
.candidate-count-control input[type=range]::-moz-range-track { height:5px; border-radius:3px; background:#d9d9df; }
.candidate-count-control input[type=range]::-moz-range-progress { height:5px; border-radius:3px; background:#0071e3; }
.candidate-count-control input[type=range]::-moz-range-thumb { width:24px; height:24px; border:1px solid #d9d9df; border-radius:50%; background:#fff; box-shadow:0 2px 5px #0002; }
.candidate-count-control input:disabled { opacity:.45; cursor:default; }
.candidate-count-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:-5px; font-size:11px; color:#86868b; }
.candidate-count-presets { display:flex; gap:2px; }
.candidate-count-presets button { min-width:44px; min-height:44px; border:0; border-radius:8px; background:none; color:#6e6e73; font:inherit; font-size:12px; }
.candidate-count-presets button[aria-pressed=true] { color:#0066cc; background:#eaf3ff; font-weight:600; }
.candidate-compose-row>label {
  display:grid;
  gap:7px;
  font-size:13px;
  min-width:100px}
.candidate-generation-summary {
  display:grid;
  gap:7px;
  flex:1;
  min-width:0;
  padding-bottom:5px}
.candidate-generation-summary strong {
  font-size:14px;
  font-weight:550}
.candidate-generation-summary span {
  font-size:12px;
  color:#6e6e73;
  overflow-wrap:anywhere}
.candidate-compose [data-start] {
  min-width:126px;
  min-height:44px}
.candidate-mode {
  margin-top:16px}
.candidate-mode summary {
  font-size:13px;
  color:#6e6e73;
  min-height:40px;
  display:flex;
  align-items:center;
  gap:8px}
.candidate-mode summary:before {
  content:'›';
  font-size:18px}
.candidate-mode[open] summary:before {
  transform:rotate(90deg)}
.candidate-mode-options { border:0; padding:0; margin:0 0 16px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.candidate-mode-option { position:relative; min-width:0; cursor:pointer; }
.candidate-mode-option>input { position:absolute; opacity:0; width:1px; height:1px; }
.candidate-mode-content { min-height:80px; display:flex; align-items:center; gap:12px; padding:14px; background:#fff; border:1px solid #d9d9df; border-radius:10px; }
.candidate-mode-content>.candidate-icon { width:25px; height:25px; color:#6e6e73; }
.candidate-mode-content>span { display:grid; gap:6px; }
.candidate-mode-content strong { font-size:13px; font-weight:550; }
.candidate-mode-content small { font-size:11px; color:#6e6e73; line-height:1.5; }
.candidate-mode-option>input:checked+.candidate-mode-content { border-color:#0071e3; box-shadow:inset 0 0 0 1px #0071e3; background:#f1f7ff; color:#0066cc; }
.candidate-mode-option>input:checked+.candidate-mode-content>.candidate-icon { color:#0066cc; }
.candidate-mode-option>input:focus-visible+.candidate-mode-content { outline:2px solid #0071e3; outline-offset:3px; }
.candidate-mode-option>input:disabled+.candidate-mode-content { opacity:.5; cursor:default; }
.candidate-compose .candidate-cost-note {
  font-size:12px;
  line-height:1.6}
.candidate-progress {
  border-top:1px solid #e5e5ea;
  margin-top:18px;
  padding-top:16px}
.candidate-progress>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px}
.candidate-progress [data-progress-text] {
  font-size:13px}
.candidate-progress progress {
  display:block;
  width:100%;
  height:8px;
  margin:12px 0;
  accent-color:#0071e3}
.candidate-progress p {
  font-size:12px;
  line-height:1.5}
.candidate-error,.candidate-storage-warning {
  padding:10px 12px;
  margin-top:12px!important;
  border-radius:8px;
  font-size:13px!important;
  background:#fff2f0;
  color:#a5352b!important;
  overflow-wrap:anywhere}
.candidate-gallery-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:24px 0 12px}
.candidate-filters {
  display:flex;
  gap:3px;
  padding:3px;
  background:#f5f5f7;
  border:1px solid #e5e5ea;
  border-radius:8px}
.candidate-filters button {
  min-height:40px;
  padding:8px 16px;
  border:0;
  border-radius:6px;
  background:none;
  font:inherit;
  font-size:13px;
  color:#6e6e73}
.candidate-filters button.active {
  color:#0066cc;
  background:#eaf3ff}
.candidate-result-count {
  font-size:12px;
  color:#6e6e73;
  margin:0 0 14px}
.candidate-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:18px}
.candidate-card {
  min-width:0;
  overflow:hidden;
  border:1px solid #e5e5ea;
  border-radius:10px;
  background:#fff}
.candidate-card.is-kept {
  border-color:#8abdf0}
.candidate-card-preview {
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:3/4;
  width:100%;
  border:0;
  border-radius:0;
  background:#f0f0f3;
  padding:0;
  overflow:hidden}
.candidate-card-preview img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block}
.candidate-card-placeholder {
  display:grid;
  gap:9px;
  color:#6e6e73;
  text-align:center;
  font-size:14px}
.candidate-card-placeholder small {
  font-size:12px}
.candidate-card-placeholder.is-error {
  color:#a5352b}
.candidate-card-body {
  padding:12px}
.candidate-card-heading {
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  font-size:13px}
.candidate-card-heading strong {
  font-weight:550;
  white-space:nowrap}
.candidate-card-heading span {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#6e6e73}
.candidate-card-body>p {
  font-size:11px;
  color:#6e6e73;
  margin:7px 0 10px;
  overflow-wrap:anywhere}
.candidate-card-actions {
  display:flex;
  gap:6px}
.candidate-card-actions button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #e5e5ea;
  background:#fafafa;
  border-radius:6px;
  font:inherit;
  font-size:12px;
  min-height:44px;
  flex:1;
  padding:6px}
.candidate-card-actions button[aria-pressed=true] {
  background:#eaf3ff;
  color:#0066cc;
  border-color:#c4ddf7}
.candidate-unsaved {
  display:block;
  color:#a16b16;
  font-size:11px;
  margin-top:8px}
.candidate-empty {
  grid-column:1/-1;
  padding:70px 20px;
  border:1px dashed #e5e5ea;
  border-radius:12px;
  text-align:center;
  color:#6e6e73}
.candidate-empty h3 {
  font-size:17px;
  color:#1d1d1f;
  font-weight:550;
  margin:0 0 10px}
.candidate-empty p {
  font-size:14px;
  line-height:1.6;
  margin:0 auto 14px;
  max-width:460px}
.candidate-export {
  position:relative}
.candidate-export>div {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  display:grid;
  padding:8px;
  min-width:160px;
  border:1px solid #e5e5ea;
  border-radius:10px;
  box-shadow:0 6px 20px #00000012;
  background:#fff;
  z-index:15}
.candidate-export button {
  border:0;
  background:#fff;
  text-align:left;
  padding:10px;
  border-radius:6px;
  min-height:40px;
  font:inherit;
  font-size:13px}
.candidate-detail-dialog {
  width:min(930px,calc(100vw - 32px));
  max-height:calc(100dvh - 40px);
  padding:0;
  border:1px solid #e5e5ea;
  border-radius:14px;
  color:#1d1d1f;
  overflow:auto;
  background:#fff}
.candidate-detail-dialog::backdrop {
  background:#00000035;
  backdrop-filter:blur(3px)}
.candidate-detail-dialog>header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 22px;
  gap:14px;
  border-bottom:1px solid #e5e5ea;
  position:sticky;
  top:0;
  background:#fff;
  z-index:1}
.candidate-detail-dialog h2 {
  font-size:18px;
  font-weight:600;
  margin:0}
.candidate-detail-layout {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:24px;
  padding:22px}
.candidate-detail-image {
  background:#f0f0f3;
  aspect-ratio:3/4;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  overflow:hidden}
.candidate-detail-image img {
  width:100%;
  height:100%;
  object-fit:contain}
.candidate-detail-image p {
  color:#6e6e73;
  font-size:14px}
.candidate-detail-info {
  min-width:0;
  font-size:14px}
.candidate-detail-info>p {
  color:#6e6e73;
  font-size:12px;
  line-height:1.6;
  overflow-wrap:anywhere}
.candidate-detail-review {
  display:flex;
  gap:8px;
  margin:18px 0}
.candidate-detail-review button { display:inline-flex; align-items:center; gap:6px; min-height:44px; }
.candidate-card-actions [data-star][aria-pressed=true] .candidate-icon,.candidate-detail-review [data-detail-star][aria-pressed=true] .candidate-icon { fill:currentColor; }
.candidate-detail-review [aria-pressed=true] {
  background:#eaf3ff;
  border-color:#c4ddf7;
  color:#0066cc}
.candidate-detail-info>label {
  display:grid;
  gap:8px}
.candidate-detail-info textarea {
  width:100%;
  resize:vertical;
  min-height:140px;
  line-height:1.6}
.candidate-note-status {
  min-height:19px}
.candidate-detail-info [data-adopt] {
  width:100%;
  margin:8px 0 18px}
.candidate-detail-info details {
  border-top:1px solid #e5e5ea}
.candidate-detail-info summary {
  padding:16px 0;
  font-size:13px}
.candidate-detail-info pre {
  white-space:pre-wrap;
  word-break:break-word;
  color:#6e6e73;
  font:inherit;
  font-size:12px;
  line-height:1.5;
  margin:0}
.candidate-workspace :focus-visible {
  outline:2px solid #0071e3;
  outline-offset:3px}
.candidate-workspace button:disabled {
  opacity:.5;
  cursor:default}
.candidate-workspace [hidden] {
  display:none!important}
@media(max-width:700px) {
  .candidate-workspace {
  padding:20px 16px}
.candidate-header {
  align-items:start;
  flex-direction:column;
  gap:14px}
.candidate-run-picker {
  width:100%;
  max-width:none}
.candidate-compose {
  padding:16px}
.candidate-compose-row {
  flex-wrap:wrap;
  gap:14px}
.candidate-generation-summary {
  flex-basis:100%}
.candidate-count-control { flex:1 1 100%; }
.candidate-mode-options { grid-template-columns:1fr; }
.candidate-mode-content { min-height:70px; padding:12px; }
.candidate-compose [data-start] {
  width:100%}
.candidate-gallery-toolbar {
  align-items:start;
  gap:10px}
.candidate-filters {
  overflow:auto;
  max-width:calc(100% - 82px);
  flex-wrap:nowrap}
.candidate-filters button {
  padding:8px 12px;
  white-space:nowrap}
.candidate-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px}
.candidate-card-body {
  padding:9px}
.candidate-card-heading {
  display:grid;
  gap:4px}
.candidate-card-actions {
  gap:4px}
.candidate-card-actions button {
  flex-direction:column;
  gap:4px;
  min-height:52px;
  padding:5px 3px;
  font-size:11px}
.candidate-detail-layout {
  grid-template-columns:1fr;
  padding:16px;
  gap:18px}
.candidate-detail-image {
  max-height:450px}
.candidate-detail-dialog>header {
  padding:14px 16px}
.candidate-detail-dialog h2 {
  font-size:16px}
}
@media(prefers-reduced-motion:reduce) {
  .candidate-workspace * {
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important}
}

