/* Split Large CSV File Online — Handle-Safe Chunker (split-large-csv-online.html) */
/* Zero inline styles (CSP style-src 'self') */

.scsv-bench {
  margin: 1.5rem 0 2rem;
  padding: 1.35rem;
  border: 1px solid #d5cfc2;
  border-radius: 14px;
  background: #fcfbf8;
  box-shadow: 0 8px 24px rgba(17, 25, 34, 0.05);
}

.scsv-preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.scsv-preset-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #556270;
  margin-right: 0.2rem;
}

.scsv-preset-btn {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #cfc8b9;
  background: #fff;
  color: #1f2b37;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.scsv-preset-btn:hover {
  border-color: #1f5c3e;
}

.scsv-preset-btn[aria-pressed="true"] {
  background: #173b29;
  border-color: #173b29;
  color: #fff;
}

.scsv-input-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.scsv-drop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1.5px dashed #bfb8a8;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.scsv-drop:hover {
  border-color: #173b29;
  background: #f8fbf9;
}

.scsv-drop-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d5a3b;
}

.scsv-drop strong {
  font-size: 0.93rem;
  color: #121d28;
}

.scsv-drop-meta {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  color: #53606e;
}

.scsv-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.scsv-config-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  border-radius: 11px;
  background: #f5f2ea;
  border: 1px solid #e2dccf;
}

.scsv-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scsv-config-row label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #17212b;
}

.scsv-select,
.scsv-num {
  max-width: 100%;
  min-width: 0;
  padding: 0.38rem 0.6rem;
  border-radius: 7px;
  border: 1px solid #c6bfb0;
  background: #fff;
  color: #142230;
  font: inherit;
  font-size: 0.81rem;
}

.scsv-num {
  width: 108px;
}

.scsv-paste-drawer {
  margin-bottom: 0.9rem;
  border: 1px solid #e0d9cb;
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.85rem;
}

.scsv-paste-drawer summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #243240;
}

.scsv-textarea {
  display: block;
  width: 100%;
  min-height: 116px;
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbc4b5;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  background: #faf9f6;
  color: #14202b;
  resize: vertical;
}

.scsv-paste-actions {
  margin-top: 0.55rem;
  display: flex;
  justify-content: flex-end;
}

.scsv-summary-banner {
  padding: 0.68rem 0.9rem;
  border-radius: 9px;
  border: 1px solid #cfe2d5;
  background: #f1f8f3;
  color: #173b27;
  font-size: 0.83rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.scsv-summary-banner.is-warn {
  border-color: #f3d098;
  background: #fff9ee;
  color: #7c3a06;
}

.scsv-table-frame {
  border: 1px solid #dcd6c8;
  border-radius: 10px;
  overflow-x: auto;
  background: #fff;
  margin-bottom: 0.85rem;
}

.scsv-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.scsv-table th:nth-child(1) { width: 10%; }
.scsv-table th:nth-child(2) { width: 26%; }
.scsv-table th:nth-child(3) { width: 12%; }
.scsv-table th:nth-child(4) { width: 11%; }
.scsv-table th:nth-child(5) { width: 24%; }
.scsv-table th:nth-child(6) { width: 17%; }

.scsv-table th {
  text-align: left;
  padding: 0.58rem 0.65rem;
  background: #f5f2ea;
  border-bottom: 1px solid #dcd6c8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3f4d5b;
}

.scsv-table td {
  padding: 0.56rem 0.65rem;
  border-bottom: 1px solid #eeeae0;
  vertical-align: middle;
  color: #182430;
  word-break: break-word;
}

.scsv-table tr:last-child td {
  border-bottom: none;
}

.scsv-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.scsv-guard-badge {
  display: inline-block;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #e6f5ec;
  color: #14532d;
}

.scsv-guard-badge.is-shifted {
  background: #fef3c7;
  color: #92400e;
}

.scsv-dl-chunk-btn {
  padding: 0.34rem 0.62rem;
  border-radius: 7px;
  border: 1px solid #173b29;
  background: #fff;
  color: #173b29;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.scsv-dl-chunk-btn:hover {
  background: #173b29;
  color: #fff;
}

.scsv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.scsv-btn-primary {
  padding: 0.56rem 1rem;
  border-radius: 8px;
  border: 1px solid #173b29;
  background: #173b29;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.scsv-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.54rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #c7c0b1;
  background: #fff;
  color: #17232f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.scsv-status {
  font-size: 0.79rem;
  font-weight: 600;
  color: #1d5a3b;
}

@media (max-width: 720px) {
  .scsv-bench {
    padding: 0.95rem;
  }
  .scsv-input-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
