.cs-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6, 1.5em);
  padding: var(--gutter, 1.25em);
}
.cs-modes {
  margin-bottom: 0;
}
.cs-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3, 0.75em);
  width: 100%;
}
.cs-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2, 0.5em);
  width: 100%;
}
.cs-options {
  display: flex;
  justify-content: center;
  gap: var(--sp-3, 0.75em);
  width: 100%;
}
.cs-options .tlabel {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
.cs-area {
  min-height: 160px;
  resize: vertical;
  padding: 0.55em 0.65em;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.cs-area:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.cs-rail {
  justify-content: center;
}
.cs-hint {
  display: block;
  text-align: center;
}
.cs-results {
  margin-top: 1.25em;
}
.cs-file-list {
  display: flex;
  flex-direction: column;
}
.cs-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2, 0.5em);
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--border-color);
}
.cs-file:last-child {
  border-bottom: none;
}
.cs-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
}
.cs-file-name {
  font-weight: 700;
  color: var(--text-color);
  overflow-wrap: anywhere;
}
.cs-pre {
  margin: 0;
  max-height: 440px;
  overflow: auto;
  padding: 1em;
  background: var(--panel-bg);
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.cs-body,
.cs-pre,
.cs-file-list,
.tpanel {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .cs-options {
    flex-direction: column;
    align-items: stretch;
  }
  .cs-options .tlabel,
  .cs-options .tinput,
  .cs-options select,
  .cs-options .tsel {
    width: 100%;
    max-width: none;
  }
  .cs-modes {
    align-self: stretch;
  }
  .cs-modes button {
    flex: 1 1 auto;
  }
  .cs-pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
