.bt-portal {
	max-width: 960px;
	margin: 0 auto;
	font-family: Inter, system-ui, sans-serif;
}
.bt-portal__license {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}
.bt-portal__license--expired {
	border-color: #fecaca;
	background: #fef2f2;
}
.bt-portal__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}
.bt-portal__title {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
}
.bt-portal__meta,
.bt-portal__dates p {
	margin: 0.25rem 0;
	color: #6b7280;
	font-size: 0.9rem;
}
.bt-portal__alert {
	color: #b45309;
	font-weight: 600;
}
.bt-portal__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}
@media (max-width: 768px) {
	.bt-portal__grid {
		grid-template-columns: 1fr;
	}
}
.bt-portal__card {
	background: #f9fafb;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
}
.bt-portal__card h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}
.bt-portal__card .description {
	font-size: 0.85rem;
	color: #6b7280;
	margin-bottom: 0.75rem;
}
.bt-portal__sites {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}
.bt-portal__sites li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0;
}
.bt-portal__inline-form {
	display: inline;
}
.bt-portal__link-btn {
	background: none;
	border: none;
	color: #dc2626;
	cursor: pointer;
	font-size: 0.85rem;
	text-decoration: underline;
}
/* Form labels + text inputs (frontend — not wp-admin .widefat) */
.bt-portal__add-site label,
.bt-portal__leads label {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.bt-portal input[type="url"],
.bt-portal input[type="text"],
.bt-portal input[type="email"] {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.625rem 0.75rem;
	margin-top: 0.35rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
	color: #111827;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bt-portal__add-site input[type="url"],
.bt-portal__add-site input[type="text"] {
	max-width: 360px;
	margin-bottom: 0.25rem;
}

.bt-portal input[type="url"]:focus,
.bt-portal input[type="text"]:focus,
.bt-portal input[type="email"]:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bt-portal input[type="url"]::placeholder,
.bt-portal input[type="text"]::placeholder,
.bt-portal input[type="email"]::placeholder {
	color: #9ca3af;
}

.bt-portal__branding input[type="color"] {
	display: block;
}

.bt-portal__branding {
	margin-top: 0.25rem;
}

.bt-portal__branding label {
	display: block;
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.bt-portal__branding label input.widefat {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	font-weight: 400;
}

/* Portal buttons (frontend — not wp-admin .button classes) */
.bt-portal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.5rem;
	padding: 0.625rem 1.25rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.bt-portal__btn--primary {
	color: #fff;
	background: #1d4ed8;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bt-portal__btn--primary:hover {
	color: #fff;
	background: #1e40af;
	box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.bt-portal__btn--primary:active {
	transform: translateY(1px);
}

.bt-portal__btn--secondary {
	color: #1e40af;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}

.bt-portal__btn--secondary:hover {
	background: #dbeafe;
	color: #1e3a8a;
}

.bt-portal__btn:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}
.bt-portal__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 0.75rem;
}
.bt-portal__colors label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: #374151;
}

.bt-portal__colors input[type="color"] {
	width: 3rem;
	height: 2.25rem;
	padding: 2px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
}
.bt-portal__tool {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 0.5rem;
	background: #fff;
}
.bt-portal__tool summary {
	cursor: pointer;
	padding: 0.75rem 1rem;
	font-weight: 600;
}
.bt-portal__tool-body {
	padding: 0 1rem 1rem;
}
.bt-portal__code {
	width: 100%;
	font-family: ui-monospace, monospace;
	font-size: 0.8rem;
	margin-bottom: 0.75rem;
	padding: 0.5rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #f3f4f6;
}
.bt-portal__guide ol {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
	font-size: 0.9rem;
	color: #4b5563;
}
.bt-portal__key {
	font-size: 0.85rem;
	color: #6b7280;
}
.bt-portal__leads {
	margin-top: 0.25rem;
}
.bt-portal__lead-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}
.bt-portal__lead-actions .bt-portal__btn {
	margin-top: 0;
}
.bt-portal button.bt-portal__btn {
	appearance: none;
	-webkit-appearance: none;
}
