/* App-specific styles. Blok ships its own CSS (sitecore-blok.css) — keep this minimal. */

html, body {
	margin: 0;
	padding: 0;
}

.sts-panel {
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
}

.sts-panel__body {
	flex: 1 1 auto;
	overflow: auto;
}

/* ── form + layout primitives ─────────────────────────────────────────────── */
.sts-field {
	margin-bottom: 0.85rem;
}

.sts-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.sts-req {
	color: var(--colors-danger-500, #d7373f);
}

.sts-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sts-row--between {
	justify-content: space-between;
	margin: 0.5rem 0;
}

.sts-select,
.sts-input,
.sts-textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.45rem 0.6rem;
	font: inherit;
	color: inherit;
	background: var(--colors-neutral-0, #fff);
	border: 1px solid var(--colors-neutral-300, #cfcfd4);
	border-radius: 0.375rem;
}

.sts-select {
	flex: 1 1 auto;
}

.sts-input--sm {
	padding: 0.3rem 0.45rem;
	font-size: 0.85rem;
}

.sts-input--invalid {
	border-color: var(--colors-danger-500, #d7373f);
	box-shadow: 0 0 0 1px var(--colors-danger-500, #d7373f);
}

.sts-textarea {
	resize: vertical;
}

.sts-hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	opacity: 0.7;
}

.sts-mb {
	margin-bottom: 1rem;
}

.sts-h2 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
}

.sts-h3 {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
}

.sts-muted {
	font-size: 0.85rem;
	opacity: 0.6;
}

.sts-divider {
	border: 0;
	border-top: 1px solid var(--colors-neutral-200, #e5e5e5);
	margin: 1rem 0;
}

/* ── status banner ────────────────────────────────────────────────────────── */
.sts-status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	border-radius: 0.375rem;
}

.sts-status--ok {
	background: #f0fdf4;
	color: #15803d;
}

.sts-status--error {
	background: #fef2f2;
	color: #b91c1c;
}

.sts-status span {
	flex: 1;
}

.sts-status__dismiss {
	font-size: 0.75rem;
	text-decoration: underline;
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
}

/* ── channels table ───────────────────────────────────────────────────────── */
.sts-table {
	border: 1px solid var(--colors-neutral-200, #e5e5e5);
	border-radius: 0.375rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.sts-table__head,
.sts-table__row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 0.5rem;
	align-items: center;
	padding: 0.5rem 0.75rem;
}

.sts-table__head {
	background: var(--colors-neutral-50, #f7f7f8);
	border-bottom: 1px solid var(--colors-neutral-200, #e5e5e5);
	font-size: 0.8rem;
	font-weight: 600;
}

.sts-table__row {
	border-bottom: 1px solid var(--colors-neutral-100, #ececee);
}

	.sts-table__row:last-child {
		border-bottom: 0;
	}

	.sts-table__row:hover {
		background: var(--colors-neutral-50, #f7f7f8);
	}

.sts-table__actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.35rem;
}

.sts-url {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.75rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.8;
}

/* ── setup block ──────────────────────────────────────────────────────────── */
.sts-setup__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.sts-setup__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}
