.batch-selection-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  border: 1px solid rgba(39, 45, 42, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 44px rgba(35, 30, 22, 0.22);
  color: #252a28;
  font-size: 13px;
}

.batch-selection-bar[hidden] {
  display: none;
}

.batch-job-indicator {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(39, 45, 42, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 44px rgba(35, 30, 22, 0.22);
  color: #252a28;
  font-size: 13px;
  font-weight: 650;
}

.batch-job-indicator[hidden] {
  display: none;
}

.global-ai-task {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 11px 14px 11px 16px;
  border: 1px solid rgba(39, 45, 42, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 44px rgba(35, 30, 22, 0.22);
  color: #252a28;
  font-size: 13px;
  font-weight: 650;
}

.global-ai-task[hidden] {
  display: none;
}

.global-ai-task button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #2d3430;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.global-ai-task button:hover {
  background: #f3efe7;
}

.batch-job-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(74, 141, 248, 0.25);
  border-top-color: #4a8df8;
  border-radius: 50%;
  animation: batch-spin 0.8s linear infinite;
}

@keyframes batch-spin {
  to {
    transform: rotate(360deg);
  }
}

.batch-selection-bar > span {
  font-weight: 700;
  white-space: nowrap;
}

.batch-selection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-selection-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #2d3430;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.batch-selection-actions button:hover {
  background: #f3efe7;
}

.calendar-event.selected,
.month-event.selected {
  outline: 3px solid rgba(74, 141, 248, 0.75);
  outline-offset: 1px;
  box-shadow: 0 0 0 5px rgba(74, 141, 248, 0.16);
}

.week-header {
  cursor: pointer;
}

.week-header.selected {
  background: rgba(74, 141, 248, 0.12);
}

#miniCalendar span[data-date] {
  cursor: pointer;
}

#miniCalendar span.selected {
  background: rgba(74, 141, 248, 0.18);
}

.collector-status-pattern {
  display: flex;
  justify-content: center;
  width: 38px;
  height: 92px;
  padding: 3px 0;
  border-radius: 18px;
  background: #c9cace;
  transition: background-color 0.3s ease;
}

.collector-status-pattern .collector-toggle-circle {
  width: 30px;
  height: 30px;
  margin-top: 56px;
  border-radius: 50%;
  background: #f7f7f8;
  box-shadow: 0 1px 4px rgba(36, 37, 41, 0.2);
  transition: margin 0.45s cubic-bezier(0.22, 0.78, 0.2, 1);
}

.collector-status-pattern.is-on {
  background: #55585e;
}

.collector-status-pattern.is-on .collector-toggle-circle {
  margin-top: 0;
}

.collector-status-pattern.is-paused .collector-toggle-circle {
  margin-top: 28px;
}

.project-hint {
  margin: -6px 0 12px;
  color: #837c72;
  font-size: 12px;
  line-height: 1.6;
}

#batchProjectSelect {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #252a28;
  font: inherit;
}

.batch-project-dialog {
  width: min(540px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #deded9;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1c;
  font-family: var(--uc-font-text, "Inter Variable", Inter, "Noto Sans SC", sans-serif);
}

.batch-project-dialog::backdrop {
  background: rgba(25, 25, 23, .32);
  backdrop-filter: blur(3px);
}

.batch-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #ecece8;
  background: #fafaf8;
}

.batch-project-head .eyebrow {
  margin: 0 0 7px;
  color: #8b8b86;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
}

.batch-project-head h2 {
  margin: 0;
  font-family: var(--uc-font-editorial, "Noto Serif SC Collector", "Noto Serif SC", serif);
  font-size: 25px;
  font-weight: 520;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.batch-project-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f0f0ed;
  color: #555;
  font: 300 23px/1 var(--uc-font-text, sans-serif);
  cursor: pointer;
}

.batch-project-close:hover { background: #e8e8e4; color: #111; }

.batch-project-hint {
  margin: 0;
  padding: 17px 26px 13px;
  color: #71716d;
  font-size: 13px;
  line-height: 1.5;
}

.batch-project-native-select {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0 !important;
}

.batch-project-choices {
  max-height: min(410px, calc(100vh - 260px));
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c9c9c4 transparent;
  scrollbar-width: thin;
}

.batch-project-choice {
  --batch-project-color: #b8b8b4;
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border: 1px solid #e5e5e1;
  border-radius: 12px;
  background: #fff;
  color: #242423;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.batch-project-choice > i {
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--batch-project-color);
}

.batch-project-choice > span { min-width: 0; }
.batch-project-choice strong,
.batch-project-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-project-choice strong { font-size: 14px; font-weight: 620; }
.batch-project-choice small { margin-top: 5px; color: #82827d; font-size: 11px; }
.batch-project-choice em { color: #858580; font-size: 11px; font-style: normal; white-space: nowrap; }
.batch-project-choice b { color: #aaa; font-size: 15px; font-weight: 500; text-align: center; }

.batch-project-choice:hover {
  border-color: #c8c8c2;
  background: #fbfbf9;
  transform: translateY(-1px);
}

.batch-project-choice.selected {
  border-color: #343432;
  background: #f8f8f6;
  box-shadow: 0 0 0 1px #343432;
}

.batch-project-choice.selected b { color: #20201f; }
.batch-project-choice:focus-visible { outline: 3px solid rgba(35, 35, 33, .13); outline-offset: 2px; }

.batch-project-actions {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-end;
  gap: 9px;
  margin: 0 !important;
  padding: 15px 20px;
  border-top: 1px solid #ecece8;
  background: #fafaf8;
}

.batch-project-actions .button {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 16px;
}

@media (max-width: 560px) {
  .batch-project-head { padding: 20px; }
  .batch-project-hint { padding-inline: 20px; }
  .batch-project-choices { padding-inline: 12px; }
  .batch-project-choice { grid-template-columns: 4px minmax(0, 1fr) 20px; }
  .batch-project-choice em { display: none; }
}

.project-question-dialog {
  width: min(640px, calc(100vw - 32px));
}

.project-question {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: #3c433e;
}

.project-question > span {
  font-size: 14px;
  font-weight: 700;
}

.project-question input,
.project-question textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #252a28;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.project-question input:focus,
.project-question textarea:focus {
  outline: 2px solid rgba(74, 141, 248, 0.35);
  outline-offset: 0;
}

.guide-settings .guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.guide-settings .guide-list > div {
  padding: 14px;
  border: 1px solid rgba(39, 45, 42, 0.12);
  border-radius: 8px;
  background: #fff;
}

.guide-settings .guide-list strong {
  display: block;
  margin-bottom: 6px;
  color: #2d3430;
  font-size: 14px;
}

.guide-settings .guide-list p {
  margin: 4px 0;
  color: #6f6960;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .guide-settings .guide-list {
    grid-template-columns: 1fr;
  }
}
