.guideline-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 20px;
}

.guideline-item {
  text-align: center;
}

.guideline-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.guideline-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.guideline-selector {
  margin-top: 24px;
}

.guideline-details {
  margin-top: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.guideline-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
}

.guideline-detail {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 8px;
  padding: 10px 12px;
}

.guideline-detail-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.guideline-detail-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  word-break: break-word;
}

.guideline-detail-wide {
  grid-column: 1 / -1;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0;
}

.tab {
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--gray-700);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mono {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
}

.text-right {
  text-align: right;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

/* Step navigation bars */
.step-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
}

.step-nav-end {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.step-nav-start {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

/* Alert description text */
.alert-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Section headings */
.section-heading {
  font-size: 1rem;
  margin-bottom: 12px;
}

.section-heading-spaced {
  font-size: 1rem;
  margin: 24px 0 12px;
}

/* Export option cards */
.export-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.export-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.08);
}

.export-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.export-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Feature sections (gray panels) */
.feature-section {
  margin-top: 32px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 8px;
}

.feature-section p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* Submission log output */
.log-output {
  background: white;
  border: 1px solid var(--gray-200);
  padding: 12px;
  max-height: 200px;
  overflow: auto;
  border-radius: 6px;
}

/* Sortable table headers */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  color: var(--primary);
}

/* Full-width buttons */
.btn-block {
  width: 100%;
}

/* Ordered list styling */
.steps-list {
  font-size: 0.875rem;
  color: var(--gray-700);
  padding-left: 20px;
  line-height: 1.8;
}

/* Inline links */
.link {
  color: var(--primary);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Alert icon badges */
.alert-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.alert-info .alert-icon {
  background: #bfdbfe;
  color: #1d4ed8;
}

.alert-success .alert-icon {
  background: #a7f3d0;
  color: #059669;
}

.alert-error .alert-icon {
  background: #fecaca;
  color: #dc2626;
}

/* File icon badge (checkmark) */
.file-icon-badge {
  width: 40px;
  height: 40px;
  background: var(--success);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
}

/* Step connector lines */
.step-connector {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.step-connector::after {
  content: '';
  width: 100%;
  height: 2px;
  background: var(--gray-200);
}

/* Header icon area */
.header-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Button focus states */
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Scrollbar styling */
.table-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: transparent;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Submission status spacing */
.submission-status-area {
  margin-top: 16px;
}

.submission-log-area {
  margin-top: 12px;
}

/* Guideline selector sub-header */
.sub-header {
  padding: 0;
  border: none;
  margin-bottom: 12px;
}

.sub-header .card-title {
  font-size: 1rem;
}

/* Guideline selector help text */
.selector-help {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* Actions bar spacing */
.actions-bar-spaced {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.upload-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.upload-subsection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Form row spacing */
.form-row-spaced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* No-order placeholder text */
.placeholder-text {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Prior year preview area */
.preview-area {
  margin-top: 20px;
}

/* Workflow steps mobile fade */
.workflow-steps-wrapper {
  position: relative;
}

/* Responsive: tablet */
@media (max-width: 1024px) {
  .export-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .upload-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 12px;
  }

  header {
    padding: 16px;
  }

  header h1 {
    font-size: 1.25rem;
  }

  .header-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .app-update-button {
    right: 14px;
    bottom: 14px;
  }

  .card {
    padding: 16px;
  }

  .export-grid {
    grid-template-columns: 1fr;
  }

  /* Workflow steps scroll with fade */
  .workflow-steps-wrapper {
    overflow: hidden;
  }

  .workflow-steps-wrapper::before,
  .workflow-steps-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 24px;
    z-index: 2;
    pointer-events: none;
  }

  .workflow-steps-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--gray-50), transparent);
  }

  .workflow-steps-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--gray-50), transparent);
  }

  .workflow-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 4px;
  }

  .step {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .step-connector {
    flex: 0 0 12px;
  }
}
