.site-header {
  box-shadow: 0 1px 0 rgba(44, 47, 61, 0.08);
}

body {
  background: #f7f7fb;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.back-link::before {
  content: "<-";
  margin-right: 8px;
}

.bulk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 26px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 24px;
}

.bulk-hero-copy,
.bulk-hero-board,
.bulk-panel,
.bulk-results {
  border: 1px solid #e6e8f0;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(41, 44, 61, 0.06);
}

.bulk-hero-copy {
  border-radius: 18px;
  padding: 34px;
}

.bulk-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #2c2f3d;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.bulk-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: #555b6d;
  font-size: 16px;
  line-height: 1.58;
}

.bulk-hero-board {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.12), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.queue-card {
  position: relative;
  z-index: 1;
  max-width: 270px;
  border: 1px solid #e1e3ec;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(41, 44, 61, 0.08);
}

.queue-card.is-done {
  justify-self: end;
}

.queue-card span,
.queue-preview strong,
.progress-grid span {
  color: #62687a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-card strong {
  display: block;
  margin: 6px 0 12px;
  color: #2c2f3d;
  font-size: 24px;
  letter-spacing: 0;
}

.queue-card i {
  display: block;
  height: 9px;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 999px;
  background: #eef0f6;
}

.queue-card i:nth-of-type(2) {
  width: 76%;
}

.queue-card i:nth-of-type(3) {
  width: 48%;
}

.queue-flow {
  position: absolute;
  inset: 38px 42px;
  border: 1px dashed rgba(255, 90, 79, 0.35);
  border-radius: 22px;
}

.bulk-workbench {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 28px;
}

.bulk-panel,
.bulk-results {
  border-radius: 12px;
  padding: 24px;
}

.panel-heading,
.results-top,
.queue-preview,
.action-row,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2,
.results-top h2 {
  margin: 0;
  color: #2c2f3d;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.limit-pill {
  border: 1px solid rgba(255, 90, 79, 0.24);
  border-radius: 999px;
  background: #fff1ee;
  color: #bd342e;
  font-size: 12px;
  font-weight: 950;
  padding: 9px 12px;
}

.bulk-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #4b5063;
  font-size: 13px;
  font-weight: 850;
}

textarea,
input,
select {
  width: 100%;
  border: 1.5px solid #d9dce7;
  border-radius: 10px;
  background: #ffffff;
  color: #252936;
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 13px 14px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(255, 90, 79, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 90, 79, 0.12);
}

#bulk-input {
  min-height: 280px;
  resize: vertical;
}

.file-drop {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  border: 1.5px dashed #ccd2e1;
  border-radius: 12px;
  background: #fafbfe;
  padding: 16px;
}

.file-drop.is-dragging {
  border-color: rgba(255, 90, 79, 0.7);
  background: #fff5f2;
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop label {
  place-items: center;
  min-height: 162px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.file-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ff5a4f;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
}

.file-drop small {
  max-width: 250px;
  color: #707688;
  font-size: 12px;
  line-height: 1.45;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-item {
  border: 1px solid #e1e3ec;
  border-radius: 10px;
  background: #ffffff;
  color: #4f5669;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 10px;
}

.bulk-guide-grid,
.bulk-options,
.progress-grid,
.output-grid,
.bulk-use-grid {
  display: grid;
  gap: 12px;
}

.bulk-guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.bulk-guide-grid article,
.progress-grid article,
.bulk-use-grid article {
  border: 1px solid #e1e3ec;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.bulk-guide-grid span {
  display: inline-flex;
  color: #2c2f3d;
  font-size: 13px;
  font-weight: 950;
}

.bulk-guide-grid p,
.queue-preview p,
.bulk-use-grid p {
  margin: 8px 0 0;
  color: #636879;
  font-size: 12px;
  line-height: 1.45;
}

.bulk-guide-grid code {
  border: 1px solid #e4e7ef;
  border-radius: 6px;
  background: #f8fafc;
  color: #2c2f3d;
  padding: 1px 5px;
}

.bulk-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  margin-top: 16px;
}

.inline-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid #e1e3ec;
  border-radius: 10px;
  background: #fbfcfe;
  padding: 10px 12px;
}

.inline-toggle input {
  width: 16px;
  margin: 0;
}

.queue-preview {
  margin-top: 16px;
  border: 1px solid #e1e3ec;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 14px;
}

.queue-chips {
  display: flex;
  flex: 1 1 280px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.queue-chip {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #dfe3ed;
  border-radius: 999px;
  background: #ffffff;
  color: #414757;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
}

.action-row {
  justify-content: flex-start;
  margin-top: 16px;
}

.secondary-cta.compact {
  min-height: 43px;
  cursor: pointer;
}

.primary-cta {
  border: 0;
  cursor: pointer;
}

.status-line {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.status-line[data-tone="error"] {
  color: #c8332e;
}

.status-line[data-tone="success"] {
  color: #17865c;
}

.status-line[data-tone="warn"] {
  color: #8a5b00;
}

.bulk-results {
  max-width: 1180px;
  margin: 0 auto 36px;
}

.hidden {
  display: none !important;
}

.results-actions {
  justify-content: flex-end;
}

.results-actions button {
  border: 1px solid #d9dce7;
  border-radius: 999px;
  background: #ffffff;
  color: #343746;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
}

.progress-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.progress-grid strong {
  display: block;
  margin-top: 8px;
  color: #252936;
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1;
}

.output-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 18px;
}

#bulk-output {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.batch-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1e3ec;
  border-radius: 12px;
  background: #ffffff;
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}

.batch-table th,
.batch-table td {
  border-bottom: 1px solid #edf0f5;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.batch-table th {
  color: #4b5063;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.batch-table td {
  color: #4f5669;
  font-size: 13px;
  line-height: 1.4;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.status-pill[data-state="ok"] {
  background: #effaf5;
  color: #117149;
}

.status-pill[data-state="review"] {
  background: #fff8e8;
  color: #8a5b00;
}

.status-pill[data-state="error"] {
  background: #fff0ef;
  color: #a02d28;
}

.status-pill[data-state="pending"] {
  background: #f1f4fa;
  color: #62687a;
}

.confidence-pill {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  padding: 6px 9px;
}

.confidence-pill[data-tone="high"] {
  background: #effaf5;
  color: #117149;
}

.confidence-pill[data-tone="medium"] {
  background: #fff8e8;
  color: #8a5b00;
}

.confidence-pill[data-tone="low"] {
  background: #fff0ef;
  color: #a02d28;
}

.evidence-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  color: #4f5669;
  font-size: 12px;
  line-height: 1.4;
}

.evidence-list strong {
  color: #303341;
}

.bulk-seo-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 70px;
}

.bulk-use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bulk-use-grid h3 {
  margin: 0;
  color: #303341;
  font-size: 18px;
}

.bulk-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bulk-faq-list details {
  border: 1px solid #e1e3ec;
  border-radius: 12px;
  background: #ffffff;
  padding: 15px 16px;
}

.bulk-faq-list summary {
  color: #2c2f3d;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
}

.bulk-faq-list p {
  margin: 10px 0 0;
  color: #636879;
  font-size: 14px;
  line-height: 1.55;
}

.tool-footer {
  border-top: 1px solid #e5e7ef;
  color: #727786;
  font-size: 13px;
  padding: 28px 24px 36px;
  text-align: center;
}

@media (max-width: 940px) {
  .bulk-hero,
  .bulk-input-grid,
  .bulk-options,
  .bulk-use-grid {
    grid-template-columns: 1fr;
  }

  .bulk-guide-grid,
  .progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bulk-hero,
  .bulk-workbench,
  .bulk-seo-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bulk-hero {
    padding-top: 24px;
  }

  .bulk-hero-copy,
  .bulk-panel,
  .bulk-results {
    padding: 18px;
  }

  .bulk-guide-grid,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .queue-chips {
    justify-content: flex-start;
  }
}
