.dcaf-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem;
}

.dcaf-wrap {
  width: 100%;
}

.dcaf-search-section {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dcaf-search-box {
  margin-bottom: 0.5rem;
}

.dcaf-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin-bottom: 0.4rem;
}

.dcaf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dcaf-input,
.dcaf-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--text, #1e293b);
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  box-sizing: border-box;
  font-family: inherit;
}

.dcaf-input:focus,
.dcaf-select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.dcaf-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--muted, #64748b);
  cursor: pointer;
  padding: 4px 8px;
  min-height: 36px;
}

.dcaf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dcaf-pill {
  background: transparent;
  color: var(--text, #1e293b);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.15s ease;
}

.dcaf-pill:hover {
  background: rgba(0,0,0,0.04);
}

.dcaf-pill-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.dcaf-pill-active:hover {
  background: #0369a1;
}

/* Call Synth Card */
.dcaf-synth-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dcaf-synth-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.dcaf-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #166534;
}

.dcaf-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.dcaf-card-desc {
  font-size: 0.875rem;
  color: #166534;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.dcaf-synth-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .dcaf-synth-row {
    grid-template-columns: 1fr;
  }
}

.dcaf-synth-field {
  display: flex;
  flex-direction: column;
}

.dcaf-synth-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.dcaf-res-left {
  display: flex;
  flex-direction: column;
}

.dcaf-res-caption {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #15803d;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.dcaf-dial-string {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: monospace;
  color: #0f172a;
}

.dcaf-btn-action {
  background: #15803d;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}

.dcaf-btn-action:hover {
  background: #166534;
}

.dcaf-tip {
  font-size: 0.8rem;
  color: #15803d;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Table Directory */
.dcaf-table-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dcaf-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dcaf-table-card .dcaf-card-title {
  color: var(--text, #1e293b);
}

.dcaf-search-status {
  font-size: 0.85rem;
  color: var(--muted, #64748b);
}

.dcaf-table-wrap {
  overflow-x: auto;
}

.dcaf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dcaf-table th {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 2px solid var(--border, #e2e8f0);
  font-weight: 600;
  color: var(--muted, #64748b);
  white-space: nowrap;
}

.dcaf-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
}

.dcaf-code-tag {
  display: inline-block;
  font-family: monospace;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: #0369a1;
}

.dcaf-flag {
  margin-left: 0.35rem;
  font-size: 1.1rem;
}

.dcaf-th-copy,
.dcaf-td-copy {
  text-align: center;
  width: 50px;
}

.dcaf-btn-copy {
  background: transparent;
  color: #0284c7;
  border: 1px solid #0284c7;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}

.dcaf-btn-copy:hover {
  background: #e0f2fe;
}
