/* Scanners — detail (show) styles */
.scanner-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Framed two-card shell: filters | jobs */
.scanner-shell {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}
.scanner-config {
  background: #f7f8fb;
  border-radius: 1rem 1rem 0 0;
}
.scanner-feed {
  background: #f7f8fb;
  padding: 1.25rem;
  border-radius: 0 0 1rem 1rem;
}

/* Left config sections become divided rows inside the one card */
.scanner-config .panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 !important;
  border-bottom: 1px solid #e9ecf1;
}
.scanner-config .panel:last-child {
  border-bottom: 0;
}

@media (min-width: 992px) {
  .scanner-config {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 1rem 0 0 1rem;
  }
  .scanner-feed {
    border-left: 1px solid #e5e7eb;
    border-radius: 0 1rem 1rem 0;
  }
}
.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
}
.chip-cat {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.chip-inc {
  background: #e8f1ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.chip-exc {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.chip-lang {
  background: #ecfdf5;
  color: #047857;
}
.tab-link {
  color: #6b7280;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.tab-link.active {
  color: #111827;
  border-bottom-color: #111827;
}
.trend-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  height: 100%;
}
.trend-ic {
  width: 38px;
  height: 38px;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.skill-chip {
  background: #f9fafb;
  border: 1px solid #eef0f2;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}
.job-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
}
.job-card:hover {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}
.meta-sep {
  color: #d1d5db;
}
.soft {
  color: #6b7280;
}

/* Scanners — list (index) styles */
.si-toolbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.si-title {
  font-weight: 700;
}
.si-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  display: grid;
  place-items: center;
}
.si-search {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 0.4rem 0.7rem;
  min-width: 240px;
}
.si-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
}
.si-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f3f5;
  text-decoration: none;
}
.si-row:hover {
  background: #f9fafb;
}
.si-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.btn-create {
  background: #0f172a;
  color: #fff;
}
.btn-create:hover {
  background: #1e293b;
  color: #fff;
}

/* Category picker dropdown */
.cat-menu {
  width: 360px;
  max-width: 90vw;
}
.cat-options {
  max-height: 360px;
  overflow-y: auto;
}
.cat-opt {
  cursor: pointer;
  border-radius: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.cat-opt:hover {
  background: #eef2ff;
}
/* Search hides options with the hidden attribute. Each option also carries
   Bootstrap's .d-flex (display: flex !important), which sits later in
   Bootstrap's file than its own [hidden] rule and so beats it. Two selectors
   outrank one, so this wins regardless of order. */
.cat-opt[hidden],
.cat-group[hidden] {
  display: none !important;
}
.cat-group-header {
  text-transform: none;
  letter-spacing: 0.01em;
}

/* Dark/filled checkbox when checked (matches GetMany) */
.cat-opt .form-check-input {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 0.4rem;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
}
.cat-opt .form-check-input:checked {
  background-color: #111827;
  border-color: #111827;
}
.cat-opt .form-check-input:focus {
  box-shadow: none;
  border-color: #94a3b8;
}

/* Combined picker box: acts as the dropdown trigger AND holds selected chips */
.ms-control {
  position: relative;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.5rem;
  min-height: 46px;
  cursor: pointer;
  background: #fff;
}
.ms-control[aria-expanded="true"] {
  border-color: #94a3b8;
}
.ms-empty {
  min-height: 26px;
}
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 1.4rem;
}
.cat-x {
  cursor: pointer;
  opacity: 0.6;
}
.cat-x:hover {
  opacity: 1;
}
.cat-clear {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.cat-clear:hover {
  color: #111827;
}

/* Job Duration checkboxes */
.dur-opt {
  cursor: pointer;
  font-size: 0.95rem;
}
.dur-opt .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.4rem;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
}
.dur-opt .form-check-input:checked {
  background-color: #111827;
  border-color: #111827;
}
.dur-opt .form-check-input:focus {
  box-shadow: none;
  border-color: #94a3b8;
}

/* Include/Exclude location rows */
.loc-row:hover {
  background: #f3f4f6;
}
.loc-inc,
.loc-exc {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.loc-inc {
  color: #059669;
}
.loc-exc {
  color: #dc2626;
}
.loc-inc.active {
  border-color: #059669;
}
.loc-exc.active {
  border-color: #dc2626;
}

/* Proficiency + language dropdowns */
.prof-menu {
  width: 300px;
  max-width: 90vw;
}
.prof-opt {
  white-space: normal;
}
.prof-opt:hover {
  background: #f3f4f6;
}
.lang-menu {
  width: 320px;
  max-width: 90vw;
}
.lang-opts {
  max-height: 280px;
  overflow-y: auto;
}
.lang-opt:hover {
  background: #f3f4f6;
}

/* Rating slider badges */
.rating-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
}
.rating-red {
  background: #fee2e2;
  color: #7f1d1d;
}
.rating-yellow {
  background: #fef9c3;
  color: #713f12;
}

/* Collapsible sections */
.section-head {
  cursor: pointer;
}
.section-summary .chip {
  font-weight: 500;
}

/* Budget number inputs */
.budget-input {
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  font-size: 0.95rem;
  text-align: right;
}
.budget-input::placeholder {
  color: #94a3b8;
}
.budget-input:focus {
  border-color: #94a3b8;
  box-shadow: none;
}

/* Inline-editable scanner name */
.name-input {
  font-size: 1.15rem;
  font-weight: 700;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  padding: 0.15rem 0.4rem;
  background: transparent;
}
.name-input:hover {
  border-color: #e5e7eb;
}
.name-input:focus {
  border-color: #94a3b8;
  outline: none;
  background: #fff;
}

/* Keyword tag inputs (free text) */
.kw-switch {
  display: inline-flex;
  flex: none;
  font-size: 0.85rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px;
}
.kw-switch a {
  text-decoration: none;
  color: #64748b;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.kw-switch a.active {
  background: #fff;
  color: #111827;
  border: 1.5px solid #0f172a;
  font-weight: 600;
}
.kw-section > .d-flex {
  gap: 0.5rem;
}
.kw-section > .d-flex > .fw-semibold {
  white-space: nowrap;
}
.kw-box {
  max-height: 220px;
  overflow-y: auto;
  position: relative;
}
/* GetMany: collapse a long chip list, fade the bottom, offer Show All. */
.kw-box.is-collapsed {
  max-height: 6.75rem;
  overflow: hidden;
}
.kw-box.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%);
}
.kw-show-all {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb !important;
  text-decoration: none !important;
  margin-top: 0.15rem;
}
.kw-tags .chip {
  font-weight: 500;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.kw-help-link {
  font-size: 0.85rem !important;
  color: #64748b !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.kw-input {
  border: 0;
  outline: none;
  min-width: 120px;
  background: transparent;
  font-size: 0.9rem;
}
.chip-inc .bi-x,
.chip-exc .bi-x {
  cursor: pointer;
}

/* GetMany-style keyword box: a card per list, dark tick boxes, the body
   hidden while the list is switched off. */
.kw-section {
  background: #fff;
  border-radius: 1rem;
  padding: 0.9rem 1rem 1rem;
}
.kw-section.is-off .kw-body {
  display: none !important;
}
.kw-section.is-off > form > .d-flex {
  margin-bottom: 0 !important;
}
.kw-head .fw-semibold {
  font-size: 1.05rem;
}
.kw-check.form-check-input {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
}
.kw-check.form-check-input:checked {
  background-color: #0f172a;
  border-color: #0f172a;
}
.kw-check.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.12);
}
.kw-picker .kw-box {
  min-height: 2.9rem;
  border-color: #e2e8f0 !important;
  border-radius: 0.6rem !important;
}
.kw-picker .kw-input::placeholder {
  color: #94a3b8;
}
.kw-suggestions {
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  top: calc(100% + 0.25rem);
  left: 0;
}
.kw-suggestions .dropdown-item.active,
.kw-suggestions .dropdown-item:active {
  background: #eef2ff;
  color: #111827;
}
.kw-adv-toggle {
  color: #111827 !important;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.95rem;
}

/* Bidder configuration wizard */
.bidder-config {
  background: #f9fafb;
  min-height: 100vh;
}
.bidder-config .panel {
  border: 1px solid #edeef1;
  border-radius: 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Form controls — taller, softly rounded, GetMany-style */
.bidder-config .form-label {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.45rem;
}
.bidder-config .form-select {
  padding: 0.7rem 0.95rem;
  height: auto;
  border-radius: 0.7rem;
  border: 1px solid #e5e7eb;
  font-size: 0.98rem;
  color: #1f2937;
  background-position: right 0.95rem center;
}
.bidder-config .form-select:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.12);
}

/* Header */
.bc-num {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #374151;
}
.bidder-config .btn-dark {
  border-radius: 0.7rem;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
}

/* Required pill */
.bc-req {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

/* Left nav */
.bidder-config aside h4 {
  font-size: 1.4rem;
}
.bidder-config aside .btn-light {
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border: 1px solid #d1d5db;
}
.bc-steps {
  position: relative;
  padding-top: 0.25rem;
}
.bc-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.25rem;
  color: #6b7280;
}
.bc-step-ic {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 1.1rem;
  color: #9ca3af;
  z-index: 1;
}
/* Vertical connector line between step icons */
.bc-step:not(:last-child) .bc-step-ic::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.4rem;
  background: #e5e7eb;
  z-index: 0;
}
.bc-step.active {
  color: #2563eb;
}
.bc-step.active .bc-step-label {
  font-weight: 700;
}
.bc-step.active .bc-step-ic {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.bc-step-label {
  font-weight: 600;
  line-height: 1.2;
}
.bc-step.locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.bc-step.locked .bc-step-ic {
  background: #f3f4f6;
}
.bc-step.completed {
  color: #2563eb;
}
.bc-step.completed .bc-step-label {
  font-weight: 600;
}
.bc-step.completed .bc-step-ic {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #2563eb;
}
.bc-step.completed .bc-step-ic::after,
.bc-step.active .bc-step-ic::after {
  background: #bfdbfe;
}

/* Schedule box + ring */
.bc-schedule {
  background: #f8fafc;
  border: 1px solid #eef0f2;
  border-radius: 0.9rem;
  padding: 1.1rem;
}
.bc-ring {
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#22c55e 0 75%, #e5e7eb 75% 100%);
  position: relative;
}
.bc-ring span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f8fafc;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #16a34a;
}
.bidder-config .form-switch .form-check-input {
  width: 2.6em;
  height: 1.4em;
}
.bidder-config .form-switch .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Searchable timezone combobox */
.tz-combo .form-select {
  cursor: pointer;
}
.tz-menu {
  width: 100%;
  min-width: 100%;
}
.tz-options {
  max-height: 320px;
  overflow-y: auto;
}
.tz-opt {
  padding: 0.55rem 0.9rem;
  white-space: normal;
  font-size: 0.95rem;
}
.tz-opt:hover {
  background: #eef2ff;
}

/* Terms & Boosting step */
.bidder-config main h5 {
  font-size: 1.1rem;
}
.bidder-config main h4 {
  font-size: 1.25rem;
}
.bidder-config main .form-label,
.bidder-config main .fw-bold {
  font-size: 0.95rem;
}
.tb-ic {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.tb-ic-green {
  background: #dcfce7;
  color: #16a34a;
}
.tb-ic-orange {
  background: #ffedd5;
  color: #ea580c;
}
.seg {
  display: inline-flex;
  background: #eef0f2;
  border-radius: 999px;
  padding: 0.2rem;
}
.seg-opt {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.95rem;
}
.seg-opt.active {
  background: #2563eb;
  color: #fff;
}

/* Set Bid Percentage slider + bubble */
.slider-wrap {
  position: relative;
  padding-top: 2.4rem;
}
.slider-bubble {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(-50%);
  background: #4a9d5b;
  color: #fff;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.slider-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #4a9d5b;
}
.bid-range {
  width: 100%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.bid-range::-webkit-slider-runnable-track {
  height: 2px;
  background: #111827;
  border-radius: 2px;
}
.bid-range::-moz-range-track {
  height: 2px;
  background: #111827;
  border-radius: 2px;
}
.bid-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  background: #fff;
  border: 2px solid #111827;
  border-radius: 50%;
  cursor: pointer;
}
.bid-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid #111827;
  border-radius: 50%;
  cursor: pointer;
}
.tb-info {
  background: #eff6ff;
  color: #1e40af;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}
.tb-info .bi {
  color: #2563eb;
}
.tb-warn {
  background: #fef9c3;
  color: #854d0e;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}
.tb-warn .bi {
  color: #a16207;
}
.fixed-modes label {
  font-size: 0.9rem;
}
.fixed-modes .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0;
  flex: none;
}

/* Single-box hourly rate input ($ … /hr) */
.hr-box {
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  width: 108px;
}
.hr-box:focus-within {
  border-color: #94a3b8;
}
.hr-input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-weight: 500;
}
.hr-input:focus {
  outline: 0;
}
.hr-input::-webkit-outer-spin-button,
.hr-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hr-input {
  -moz-appearance: textfield;
}
.tb-beta {
  background: #fef9c3;
  color: #a16207;
  font-weight: 600;
}
.milestone-card {
  background: #f7f8fb;
  border: 1px solid #eef0f2;
  border-radius: 0.9rem;
  padding: 1.1rem;
}
.add-milestone {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
}
.add-milestone:hover {
  background: #dbeafe;
}

/* Proposal Boosting expanded panel */
.boost-sub {
  background: #f7f8fb;
  border: 1px solid #eef0f2;
  border-radius: 0.9rem;
  padding: 1.25rem;
}
.connects-input {
  background: #eef0f2;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
  color: #374151;
}
.connects-input:focus {
  outline: 0;
  background: #e6e9ee;
}
.auction-bar {
  flex: 1;
  background: #e5e7eb;
  border-radius: 0.6rem;
}
.coming-soon {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 600;
}
@media (min-width: 992px) {
  .boost-divider {
    border-left: 2px dotted #d1d5db;
  }
}

/* Decision Maker preview switcher */
.preview-stack {
  position: relative;
  padding: 1.5rem 0;
}
.preview-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}
.preview-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}
.preview-nav:hover {
  background: #1d4ed8;
}
/* At the first / last job the arrow has nowhere to go. */
.preview-nav:disabled {
  background: #93c5fd;
  cursor: default;
}
.preview-up {
  top: -4px;
}
.preview-down {
  bottom: -4px;
}

/* Cover Letter step */
.cl-model {
  background: #f5f3ff;
  border: 1px solid #ece9fe;
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
}

/* AI Model dropdown */
.cl-model-dd {
  max-width: 360px;
}
.cl-model-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  color: #111827;
}
.cl-model-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.cl-model-icon {
  font-size: 1.1rem;
}
.cl-model-name {
  flex: 1;
  text-align: left;
}
.cl-model-caret {
  color: #9ca3af;
  font-size: 0.8rem;
}
.cl-model-menu {
  width: 360px;
  max-height: 340px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
}
.cl-model-group {
  padding: 0.5rem 0.6rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
}
.cl-model-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: #111827;
}
.cl-model-opt:hover {
  background: #f5f3ff;
}
.cl-model-check {
  visibility: hidden;
  color: #4f46e5;
  font-size: 0.95rem;
  width: 1rem;
}
.cl-model-opt.selected .cl-model-check {
  visibility: visible;
}
.cl-model-opt-icon {
  font-size: 1.15rem;
}
.cl-model-opt-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cl-model-opt-name {
  font-weight: 600;
}
.cl-model-opt-desc {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Template dropdown */
.cl-tpl-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  color: #111827;
  min-width: 190px;
}
.cl-tpl-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.cl-tpl-icon {
  color: #6b7280;
}
.cl-tpl-name {
  flex: 1;
  text-align: left;
}
.cl-tpl-caret {
  color: #9ca3af;
  font-size: 0.8rem;
}
.cl-tpl-menu {
  min-width: 260px;
  padding: 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
}
.cl-tpl-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}
.cl-tpl-opt:hover {
  background: #f5f3ff;
}
.cl-tpl-check {
  visibility: hidden;
  color: #4f46e5;
  width: 1rem;
}
.cl-tpl-opt.selected .cl-tpl-check {
  visibility: visible;
}

/* Notifications step */
.nt-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nt-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.nt-ic {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: #f3f4f6;
  color: #4b5563;
}
.nt-ic-telegram {
  color: #229ed9;
}
.nt-ic-slack {
  color: #4a154b;
}
.nt-ic-discord {
  color: #5865f2;
}
.nt-body {
  flex-grow: 1;
  min-width: 0;
}
.nt-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.nt-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.nt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #111827;
  color: #fff;
  border-radius: 1rem;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.nt-badge .bi {
  color: #22c55e;
}
.nt-desc {
  color: #6b7280;
  max-width: 640px;
}
.nt-connect {
  flex-shrink: 0;
  background: #f3f4f6;
  color: #374151;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
}
.nt-connect:hover:not(:disabled) {
  background: #e5e7eb;
}

/* Generated cover-letter result */
.cl-result-body {
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 0.7rem;
  padding: 1rem;
  white-space: pre-wrap;
  line-height: 1.55;
  color: #1f2937;
}
.cl-result-body p {
  margin-bottom: 0.75rem;
}
.cl-result-body p:last-child {
  margin-bottom: 0;
}
.cl-editor {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 1rem;
}
.cl-editor textarea:focus {
  box-shadow: none;
}
.cl-tool {
  border: 0;
  background: #eff2ff;
  color: #2563eb;
  border-radius: 0.6rem;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
}
.cl-tool:hover {
  background: #dbe4ff;
}
.cl-tool-wide {
  width: auto;
  padding: 0 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cl-joblist {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 0.3rem;
}
.cl-jobcard {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
}
.cl-jobcard:hover {
  border-color: #cbd5e1;
}
.cl-jobcard.selected {
  border-color: #2563eb;
  background: #f5f8ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}
.cl-preview-pane {
  border-left: 1px solid #eef0f2;
}
.cl-preview-btn {
  background: #eff2ff;
  color: #2563eb;
  font-weight: 600;
}
.cl-preview-btn:hover {
  background: #dbe4ff;
  color: #1d4ed8;
}

/* Attachments step */
.smart-attach {
  background: #fbfce8;
  border: 1px solid #eef0c9;
  border-radius: 0.9rem;
  padding: 1.25rem;
}
.paid-addon {
  background: #fde68a;
  color: #92400e;
  font-weight: 600;
}
.dropzone {
  background: #f7f8fb;
  border: 1px solid #eef0f2;
  border-radius: 0.9rem;
  padding: 2.75rem 1.5rem;
}

/* Questions step */
.q-banner {
  background: #eff4ff;
  border: 1px solid #dbe4ff;
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
}
.q-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 1.5rem;
}
.q-answer {
  background: #f7f8fb;
  border: 1px solid #eef0f2;
  border-radius: 0.7rem;
  padding: 1rem;
}
.q-add {
  background: #eff2ff;
  color: #2563eb;
  font-weight: 600;
}
.q-add:hover {
  background: #dbe4ff;
  color: #1d4ed8;
}
.q-collapsed {
  cursor: pointer;
}
.q-editor {
  border: 1px solid #94a3b8;
  border-radius: 0.9rem;
  overflow: hidden;
}
.q-editor > textarea {
  border: 0;
  border-radius: 0;
}
.q-editor > textarea:focus {
  box-shadow: none;
}
.q-toolbar {
  border-top: 1px solid #eef0f2;
}
.q-tip {
  position: relative;
  display: inline-block;
}
.q-tip-box {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 250px;
  background: #2f3a4a;
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 20;
}
.q-tip:hover .q-tip-box {
  opacity: 1;
  visibility: visible;
}
.q-suggest {
  flex: none;
  width: 100%;
  background: #f7f8fb;
  border: 1px solid #eef0f2;
  border-radius: 0.9rem;
  padding: 1.25rem;
  max-height: 620px;
  overflow-y: auto;
}
@media (min-width: 992px) {
  .q-suggest {
    width: 360px;
  }
}
.q-suggest-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eef0f2;
  cursor: pointer;
}
.q-suggest-item:last-child {
  border-bottom: 0;
}
.q-suggest-item:hover {
  color: #2563eb;
}
.ta-pill {
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 600;
}

/* Typeable number combobox (Daily Proposal Limit) */
.num-combo .form-select {
  cursor: pointer;
}
.num-menu {
  width: 100%;
  min-width: 100%;
}
.num-options {
  max-height: 300px;
  overflow-y: auto;
}
.num-opt {
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
}
.num-opt:hover {
  background: #eef2ff;
}

/* Weekly schedule day rows + slots */
.day-row {
  padding: 0.35rem 0;
}
.day-row .form-check-input {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 0.4rem;
  border: 1.5px solid #cbd5e1;
}
.day-row .form-check-input:checked {
  background-color: #111827;
  border-color: #111827;
}
.slot-row .form-select {
  min-width: 120px;
}
.slot-row .form-select:disabled {
  background-color: #f8fafc;
  color: #9ca3af;
}
.slot-remove {
  line-height: 1;
}
.add-slot {
  font-weight: 600;
}

/* Bidder tab */
.bidder-hero {
  background: #f7f8fb;
  border: 1px solid #eef0f2;
}
.bidder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
}
.bidder-play {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #eef2ff, #f7f8fb);
  display: grid;
  place-items: center;
  color: #1e293b;
}
.bidder-play i {
  font-size: 2.4rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.bidder-play:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.bidder-subtabs {
  border-bottom: 1px solid #e5e7eb;
}
.bidder-subtab {
  padding-bottom: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.bidder-subtab.active {
  color: #111827;
  border-bottom-color: #111827;
}
.bid-metric {
  border: 1px solid transparent;
  border-radius: 0.85rem;
  padding: 1rem;
}
.bid-metric.active {
  border-color: #e5e7eb;
  background: #fafbfc;
}
.bid-metric-ic {
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.bid-metric-sent      { background: #fef9c3; color: #ca8a04; }
.bid-metric-views     { background: #dbeafe; color: #2563eb; }
.bid-metric-replies   { background: #ede9fe; color: #7c3aed; }
.bid-metric-skipped   { background: #fee2e2; color: #dc2626; }
.bid-metric-scheduled { background: #ffedd5; color: #ea580c; }

/* Decision Maker verdict card */
.dm-verdict {
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
}
.dm-skip {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.dm-apply {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.dm-ic {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
}
.dm-ic-skip {
  background: #ef4444;
}
.dm-ic-apply {
  background: #22c55e;
}

/* Job detail slide-over */
.job-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
}
.job-detail-overlay.open {
  display: block;
}
.job-detail-overlay .jd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}
.jd-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(1180px, 92vw);
  background: #fff;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  animation: jdSlideIn 0.18s ease-out;
}
@keyframes jdSlideIn {
  from {
    transform: translateX(24px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.jd-topbar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.jd-client {
  background: #fbfcfe;
  border-left: 1px solid #eef0f2;
}
.jd-signals {
  border: 1px solid #eef0f2;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
}
.jd-score {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
}
.jd-score-ic {
  width: 34px;
  height: 34px;
  border-radius: 0.55rem;
  background: #fde047;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.jd-cinfo:first-of-type {
  border-top: 0;
}

/* Bidder activate/pause switch: green track when on, grey when paused. */
.bid-switch {
  display: inline-block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  vertical-align: middle;
  transition: background 0.15s ease;
}
.bid-switch.on {
  background: #16a34a;
}
.bid-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left 0.15s ease;
}
.bid-switch.on .bid-switch-knob {
  left: 23px;
}
button:disabled .bid-switch {
  opacity: 0.5;
}

/* Bidding Performance: one job per card, under a status banner (GetMany layout) */
a.bid-metric:hover { background: #fafbfc; }
.bid-activity {
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
  position: relative; /* the decision popover overflows the card */
}
.bid-activity .bid-activity-job {
  border: 0;
  border-radius: 0 0 1.25rem 1.25rem;
  margin: 0;
  box-shadow: none;
}
.bid-activity-banner {
  padding: 1rem 1.5rem;
  border-radius: 1.25rem 1.25rem 0 0;
}
.bid-activity-label { font-size: 1.15rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.55rem; margin-right: 1.5rem; }
.bid-activity-label .bi { font-size: 1.35rem; }
.bid-activity-meta { font-weight: 500; }
.bid-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.bid-activity-applied   .bid-activity-banner { background: #e3fbe9; }
.bid-activity-applied   .bid-activity-label { color: #166534; }
.bid-activity-applied   .bid-activity-label .bi { color: #15803d; }
.bid-activity-applied   .bid-activity-meta { color: #16a34a; }
.bid-activity-skipped   .bid-activity-banner { background: #fde8e8; }
.bid-activity-skipped   .bid-activity-label,
.bid-activity-skipped   .bid-activity-meta { color: #dc2626; }
.bid-activity-failed    .bid-activity-banner { background: #f3f4f6; }
.bid-activity-failed    .bid-activity-label,
.bid-activity-failed    .bid-activity-meta { color: #b91c1c; }
.bid-activity-scheduled .bid-activity-banner { background: #ffedd5; }
.bid-activity-scheduled .bid-activity-label,
.bid-activity-scheduled .bid-activity-meta { color: #c2410c; }

/* "AI Decision Maker" → hover/focus popover with the reasons */
.dm-pop-wrap { position: relative; cursor: default; outline: none; }
.dm-pop-trigger { display: inline-flex; align-items: center; gap: 0.35rem; }
.dm-pop {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -4rem;
  z-index: 30;
  width: min(30rem, calc(100vw - 2rem));
  background: #fff;
  color: #111827;
  border-radius: 1.25rem;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.18);
  font-weight: 400;
  overflow: hidden;
}
.dm-pop-wrap:hover .dm-pop,
.dm-pop-wrap:focus-within .dm-pop { display: block; }
.dm-pop-head { padding: 1.1rem 1.4rem; }
.bid-activity-applied .dm-pop-head { background: linear-gradient(180deg, #ecfdf3, #fff); }
.bid-activity-skipped .dm-pop-head { background: linear-gradient(180deg, #fef2f2, #fff); }
.dm-pop-badge { width: 2.75rem; height: 2.75rem; border-radius: 0.8rem; display: grid; place-items: center; font-size: 1.4rem; }
.bid-activity-applied .dm-pop-badge { background: #dcfce7; color: #16a34a; }
.bid-activity-skipped .dm-pop-badge { background: #fee2e2; color: #dc2626; }
.dm-pop-title { font-weight: 700; font-size: 1.1rem; }
.bid-activity-applied .dm-pop-title { color: #166534; }
.bid-activity-skipped .dm-pop-title { color: #b91c1c; }
.dm-pop-body { padding: 0.4rem 1.4rem 1rem 2rem; line-height: 1.5; }
.dm-pop-body ul { padding-left: 1.1rem; }
.dm-pop-foot { border-top: 1px solid #eef0f3; margin: 0 1.4rem; padding: 0.8rem 0 1rem; }
.dm-thumb { padding: 0.15rem 0.35rem; color: #6b7280; border: 0; font-size: 1.15rem; }
.dm-thumb:hover, .dm-thumb.on { color: #111827; }

/* GetMany-style job card (jobs feed and bidder) */
.gm-card { padding: 1.4rem 1.5rem; }
.gm-title { font-weight: 700; font-size: 1.15rem; }
.gm-title a { color: #111827; text-decoration: none; }
.gm-title a:hover { color: #2563eb; }
.gm-meta, .gm-client { color: #4b5563; font-weight: 500; }
.gm-budget { font-weight: 700; color: #111827; font-size: 1.05rem; }
.gm-ic { color: #4b5563; }
.gm-sep { width: 1px; height: 1.1rem; background: #e5e7eb; display: inline-block; margin: 0 0.35rem; }
.gm-desc { color: #111827; }
.gm-chip {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: #4b5563;
  background: #fff;
  font-size: 0.92rem;
}
.gm-exp { position: relative; color: #4b5563; }
.gm-exp sup { font-size: 0.65rem; margin-left: 1px; }
.gm-stars { color: #4b5563; letter-spacing: 0.15rem; }
.gm-stars .bi-star-fill, .gm-stars .bi-star-half { color: #f59e0b; }
.gm-dollar {
  width: 1.15rem; height: 1.15rem; border-radius: 0.3rem; background: #64748b; color: #fff;
  display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}
.gm-score {
  background: #f7fbd7; border-radius: 0.6rem; padding: 0.2rem 0.55rem; font-weight: 700; color: #111827;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.gm-score .bi { background: #e4ef6a; border-radius: 0.4rem; padding: 0.1rem 0.25rem; }
.gm-btn-square {
  width: 2.75rem; height: 2.75rem; border-radius: 0.8rem; background: #eef1f5; border: 0;
  display: inline-grid; place-items: center; color: #374151; font-size: 1.1rem;
}
.gm-btn-square:hover { background: #e2e6ec; }
.gm-btn-square.on { color: #f59e0b; }
.gm-btn-outline { border: 1px solid #111827; border-radius: 0.8rem; font-weight: 500; }
.min-w-0 { min-width: 0; }
@media (max-width: 576px) {
  .bid-activity-banner { padding: 0.85rem 1rem; }
  .gm-card { padding: 1.1rem; }
  .dm-pop { left: -1rem; }
}

/* Bidder job slide-over additions (GetMany layout) */
.jd-status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: 999px; padding: 0.35rem 0.9rem; font-weight: 600; color: #fff;
}
.jd-status-applied   { background: #15803d; }
.jd-status-skipped   { background: #dc2626; }
.jd-status-failed    { background: #6b7280; }
.jd-status-scheduled { background: #ea580c; }
.jd-decision { border-radius: 1.1rem; padding: 0.9rem 1.1rem; }
.jd-decision-match { background: #e3fbe9; border: 1px solid #bbf7d0; }
.jd-decision-miss  { background: #fde8e8; border: 1px solid #fecaca; }
.jd-decision summary { list-style: none; cursor: pointer; }
.jd-decision summary::-webkit-details-marker { display: none; }
.jd-decision-title { font-weight: 700; font-size: 1.1rem; }
.jd-decision-match .jd-decision-title { color: #166534; }
.jd-decision-miss  .jd-decision-title { color: #b91c1c; }
.jd-decision-match .dm-pop-badge { background: #dcfce7; color: #16a34a; }
.jd-decision-miss  .dm-pop-badge { background: #fee2e2; color: #dc2626; }
.jd-decision-why { padding: 0.75rem 0 0.25rem 3.75rem; line-height: 1.5; }
.jd-decision-foot { border-top: 1px solid rgba(17, 24, 39, 0.08); margin-top: 0.75rem; padding-top: 0.65rem; }
details[open] > summary .jd-chevron { transform: rotate(180deg); }
.jd-chevron { transition: transform 0.15s; color: #374151; }
.jd-note { background: #f9fafb; border: 1px solid #eef0f2; border-radius: 0.9rem; padding: 0.85rem 1rem; }
.jd-desc { color: #111827; line-height: 1.6; }
.jd-proposal { border: 1px solid #e5e7eb; border-radius: 1.1rem; padding: 1.1rem 1.25rem; }
.jd-proposal summary { list-style: none; cursor: pointer; }
.jd-proposal summary::-webkit-details-marker { display: none; }
.jd-proposal-body { border-top: 1px solid #eef0f2; margin-top: 1rem; padding-top: 1rem; }
.jd-avatar {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #e0e7ff; color: #3730a3;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.jd-connects { border: 1px solid #16a34a; color: #15803d; border-radius: 999px; padding: 0.15rem 0.65rem; font-weight: 500; }
.jd-tag-viewed  { border-color: #2563eb; color: #2563eb; }
.jd-tag-replied { border-color: #7c3aed; color: #7c3aed; }
.jd-score-ic .bi { font-size: 1.2rem; }
.jd-score-value { color: #854d0e; }
.jd-frame-loading { min-height: 60vh; display: grid; place-items: center; }
.bid-activity .gm-card[data-action] { cursor: pointer; }
.gm-modal { border: 0; border-radius: 1.25rem; }
.gm-btn-outline:disabled { border-color: #9ca3af; color: #6b7280; opacity: 1; }
.job-card.gm-card[data-action*="job-feed#open"] { cursor: pointer; }
/* The confirm dialog can open from inside a job slide-over (z-index 1080). */
#apply-skipped-modal { z-index: 1095; }

/* History tab (GetMany layout) */
.hist-panel { background: #eef4fd; border: 0; overflow: hidden; }
.hist-timeline { padding: 1.25rem 1.25rem 0.5rem; }
.hist-item { position: relative; display: flex; gap: 1rem; padding-bottom: 1.6rem; }
.hist-item:not(:last-child)::before {
  content: ""; position: absolute; left: 1.35rem; top: 2.8rem; bottom: 0; width: 1px; background: #cbd5e1;
}
.hist-dot {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #fff;
  border: 1px solid #d1d5db; display: grid; place-items: center; color: #374151; font-size: 1.1rem;
}
.hist-body { flex: 1; min-width: 0; padding-top: 0.45rem; }
.hist-title { font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hist-matched { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 1.05rem; }
.hist-up { color: #15803d; font-weight: 600; }
.hist-down { color: #dc2626; font-weight: 600; }
.hist-details summary { list-style: none; cursor: pointer; color: #2563eb; font-weight: 500; margin-top: 0.4rem; display: inline-block; }
.hist-details summary::-webkit-details-marker { display: none; }
.hist-details .hist-hide { display: none; }
.hist-details[open] .hist-hide { display: inline; }
.hist-details[open] .hist-show { display: none; }
.hist-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.9rem; margin-top: 0.85rem; overflow: hidden; }
.hist-card-head { background: #f8fafc; padding: 0.75rem 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; }
.hist-card-cols { display: grid; grid-template-columns: 1fr 1fr; }
.hist-card-cols > div { padding: 0.9rem 1rem; min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.hist-card-cols > div + div { border-left: 1px solid #e5e7eb; }
.hist-before { color: #dc2626; }
.hist-after { color: #16a34a; }
@media (max-width: 576px) {
  .hist-card-cols { grid-template-columns: 1fr; }
  .hist-card-cols > div + div { border-left: 0; border-top: 1px solid #e5e7eb; }
}
