/* ============================================================
   Note: the entry-view home redesign (left rail, centered hero,
   recent projects strip, plugins-home section, new-project modal)
   lives in `src/styles/home/`. Imported from `app/layout.tsx`
   alongside this file so upstream `index.css` rebases stay narrow.
   ============================================================ */
.settings-skills .skills-row-summary-btn:hover .skills-row-chevron {
  color: var(--text-muted);
}
.settings-skills .skills-row-expanded .skills-row-chevron {
  transform: rotate(180deg);
  color: var(--text-muted);
}

.settings-skills .skills-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.settings-skills .skills-row-actions .icon-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-faint);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease,
    color 120ms ease;
}
.settings-skills .skills-row-actions .icon-btn:hover {
  background: var(--bg-panel);
  border-color: var(--border);
  color: var(--text);
}
.settings-skills .skills-row-enable {
  margin-left: 4px;
}
.settings-skills .skills-delete-confirm {
  display: inline-flex;
  gap: 6px;
}
.settings-skills .skills-delete-confirm .btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.settings-skills .skills-row-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 14px 14px;
  border-top: 1px dashed var(--border);
  margin: 0 4px;
}
.settings-skills .skills-row-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.settings-skills .skills-row-section h5 {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.settings-skills .skills-row-section .library-preview-body {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
}
.settings-skills .skills-file-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text-muted);
  overflow-y: auto;
  max-height: 240px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.settings-skills .skills-file-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.settings-skills .skills-file-entry-directory {
  color: var(--text);
  font-weight: 500;
}
.settings-skills .skills-file-size {
  margin-left: auto;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.settings-skills > .skills-draft {
  margin: 0;
}
.settings-skills .skills-row > .skills-draft {
  border: none;
  border-top: 1px dashed var(--border);
  border-radius: 0 0 10px 10px;
  margin: 0;
  background: transparent;
}
.settings-skills .skills-draft .skills-draft-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.settings-skills .skills-draft .skills-draft-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.settings-skills .skills-draft .skills-draft-sub {
  margin: 0;
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
}

.mcp-json-helper {
	margin-top: 10px;

	border: 1px solid var(--border);
	border-radius: var(--radius);

	background: var(--bg-subtle);

	overflow: hidden;
}

.mcp-json-helper-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;

  border: none;
  border-radius: calc(var(--radius) - 2px);

  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;

  transition:
    color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.mcp-json-helper-toggle:hover {
  color: var(--text);
  background: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 30%, transparent);
}

.mcp-json-helper.is-open .mcp-json-helper-toggle {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--border);
}

.mcp-json-helper.is-open .mcp-json-helper-toggle:hover {
  box-shadow: inset 0 -1px 0 var(--border);
}
.mcp-json-helper-toggle span:first-child {
	text-align: left;
}

.mcp-json-helper-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex-shrink: 0;

	color: var(--text-soft);
}

.mcp-json-helper-example {
	display: flex;
	flex-direction: column;
}

.mcp-json-helper-example-head {
	padding: 10px 12px 0;

	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;

	color: var(--text-soft);
}

.mcp-json-helper-code {
	margin: 0 12px 12px;

	padding: 14px;

	border: 1px solid var(--border);
	border-radius: calc(var(--radius) - 4px);

	background:
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--bg) 92%, black) 0%,
			color-mix(in srgb, var(--bg) 86%, black) 100%
		);

	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.7;

	color: var(--text);

	overflow-x: auto;
}

.mcp-json-helper-code code {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

.json-key {
	color: var(--accent);
}

.json-string {
	color: var(--green);
}

.json-punctuation {
	color: var(--text-soft);
}

.mcp-json-helper-conversion {
	display: flex;
	flex-direction: column;
	gap: 10px;

	padding: 12px;

	border-top: 1px solid var(--border);

	background: transparent;
}

.mcp-json-helper-conversion div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mcp-json-helper-conversion strong {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;

	color: var(--text-soft);
}

.mcp-json-helper-conversion code {
	width: fit-content;
}

.mcp-json-helper-toggle-content {
	display: flex;
	align-items: flex-start;
	gap: 10px;

	min-width: 0;
	flex: 1;
}

.mcp-json-helper-eye {
	width: 22px;
	height: 22px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	border-radius: 999px;

	background: var(--accent-tint);

	color: var(--accent);

	flex-shrink: 0;
}

.mcp-json-helper-toggle-text {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;

	color: inherit;

	text-align: left;
}

