.inthea-brand {
	--inthea-radius-card: 14px;
	--inthea-color-primary: #2563eb;
	--inthea-color-active: #16a34a;
	--inthea-color-inactive: #94a3b8;
	--inthea-color-warn: #d97706;
	--inthea-border: #e2e8f0;
	--inthea-bg-page: #f1f5f9;
	--inthea-bg-soft: #f8fafc;
	--inthea-text-muted: #64748b;
	--inthea-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--inthea-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #0f172a;
	line-height: 1.55;
}

.inthea-brand *,
.inthea-brand *::before,
.inthea-brand *::after {
	box-sizing: border-box;
}

.inthea-brand--frontend {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 20px 48px;
	background: var(--inthea-bg-page);
	border-radius: 18px;
}

.inthea-brand--login-required {
	display: flex;
	justify-content: center;
	padding-top: 48px;
	padding-bottom: 48px;
}

.inthea-brand__login-card {
	width: 100%;
	max-width: 420px;
	padding: 32px 28px;
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	box-shadow: var(--inthea-shadow-md);
	text-align: center;
}

.inthea-brand__login-title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 600;
}

.inthea-brand__login-text {
	margin: 0 0 20px;
	color: var(--inthea-text-muted);
}

.inthea-brand__header {
	background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #f8fafc 100%);
	border: 1px solid #bfdbfe;
	border-radius: var(--inthea-radius-card);
	padding: 24px 28px;
	margin: 0 0 24px;
	box-shadow: var(--inthea-shadow-md);
}

.inthea-brand__header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.inthea-brand__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: #0f172a;
}

.inthea-brand__subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--inthea-text-muted);
}

.inthea-brand__back {
	margin: 0 0 12px;
}

.inthea-brand__back a {
	color: var(--inthea-color-primary);
	text-decoration: none;
	font-weight: 600;
}

.inthea-brand__header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.inthea-brand__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.2;
}

.inthea-brand__button--primary {
	background: var(--inthea-color-primary);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.inthea-brand__button--secondary {
	background: #fff;
	border-color: var(--inthea-border);
	color: #334155 !important;
}

.inthea-brand__alert {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
}

.inthea-brand__alert--success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.inthea-brand__alert--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.inthea-brand__alert--warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

.inthea-brand__section--filters {
	margin-bottom: 20px;
}

.inthea-brand__filters {
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	padding: 16px 18px;
	box-shadow: var(--inthea-shadow-sm);
}

.inthea-brand__filters-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.inthea-brand__input--search {
	flex: 1 1 280px;
	max-width: 420px;
	min-width: 180px;
}

.inthea-brand__filters-row .inthea-brand__select,
.inthea-brand__filters-row .inthea-brand__select--compact {
	min-width: 130px;
	width: auto;
	max-width: 190px;
	flex: 0 1 180px;
}

.inthea-brand__filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--inthea-border);
	border-radius: 999px;
	background: #fff;
	color: #334155;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.inthea-brand__filter-chip:hover,
.inthea-brand__filter-chip:focus {
	border-color: var(--inthea-color-primary);
	color: var(--inthea-color-primary);
}

.inthea-brand__filter-chip--active {
	border-color: var(--inthea-color-primary);
	background: #eff6ff;
	color: var(--inthea-color-primary);
}

.inthea-brand__filters-submit {
	flex-shrink: 0;
}

.inthea-brand__pagination {
	margin-top: 16px;
}

.inthea-brand__pagination-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.inthea-brand__pagination-link,
.inthea-brand__pagination-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--inthea-border);
	border-radius: 8px;
	background: #fff;
	color: var(--inthea-color-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
}

.inthea-brand__pagination-link--edge {
	min-width: 44px;
	padding: 0 10px;
}

.inthea-brand__pagination-page--current {
	background: var(--inthea-color-primary);
	border-color: var(--inthea-color-primary);
	color: #fff;
}

.inthea-brand__pagination-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 40px;
	color: var(--inthea-text-muted);
	font-size: 14px;
}

.inthea-brand__pagination-link:hover,
.inthea-brand__pagination-link:focus,
.inthea-brand__pagination-page:hover,
.inthea-brand__pagination-page:focus {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.inthea-brand__pagination-link--disabled {
	color: var(--inthea-text-muted);
	background: var(--inthea-bg-soft);
	cursor: default;
}

.inthea-brand__result-count {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.inthea-brand__list-actions {
	margin: 0 0 12px;
}

.inthea-brand__list-actions-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.inthea-brand__list-actions-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-left: auto;
}

.inthea-brand__segmented {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var(--inthea-border);
	border-radius: 10px;
	background: #f8fafc;
}

.inthea-brand__segmented-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border: 0;
	border-right: 1px solid var(--inthea-border);
	background: transparent;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}

.inthea-brand__segmented-btn:last-child {
	border-right: 0;
}

.inthea-brand__segmented-btn:hover,
.inthea-brand__segmented-btn:focus-visible {
	background: #eff6ff;
	color: var(--inthea-color-primary);
	outline: none;
}

.inthea-brand__segmented-btn.is-active {
	background: var(--inthea-color-primary);
	color: #fff;
}

.inthea-brand__segmented-btn.is-active:hover,
.inthea-brand__segmented-btn.is-active:focus-visible {
	background: #1d4ed8;
	color: #fff;
}

.inthea-brand__segmented-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.inthea-brand__per-page {
	margin: 0;
}

.inthea-brand__per-page-select {
	min-width: 118px;
	min-height: 38px;
	padding: 7px 32px 7px 12px;
	border: 1px solid var(--inthea-border);
	border-radius: 8px;
	background-color: #fff;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.inthea-brand__bulk-scope-badge {
	margin: 10px 0 0;
	padding: 9px 12px;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.inthea-brand__table-wrap--all-filtered {
	outline: 1px solid #bfdbfe;
	outline-offset: 2px;
	border-radius: 8px;
}

@media (max-width: 782px) {
	.inthea-brand__list-actions-row {
		flex-direction: column;
		align-items: stretch;
	}

	.inthea-brand__list-actions-right {
		width: 100%;
		margin-left: 0;
		flex-direction: column;
		align-items: stretch;
	}

	.inthea-brand__segmented,
	.inthea-brand__per-page-select,
	.inthea-brand__list-actions-right .inthea-brand__bulk-open,
	.inthea-brand__list-actions-right .button {
		width: 100%;
	}

	.inthea-brand__segmented-btn {
		flex: 1 1 50%;
	}
}

.inthea-brand__section {
	margin-bottom: 28px;
}

.inthea-brand__section--summary {
	margin-bottom: 24px;
}

.inthea-brand__section-head,
.inthea-brand__panel-head {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--inthea-border);
}

.inthea-brand__section-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.inthea-brand__section-subtitle {
	margin: 0;
	font-size: 13px;
	color: var(--inthea-text-muted);
}

.inthea-brand__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 16px;
}

.inthea-brand__card,
.inthea-brand__stat-card {
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	padding: 16px 18px;
	min-width: 150px;
	flex: 1 1 150px;
	box-shadow: var(--inthea-shadow-sm);
}

.inthea-brand__card-icon {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 18px;
	line-height: 1;
}

.inthea-brand__card-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--inthea-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.inthea-brand__card-value {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
}

.inthea-brand__stat-card--link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.inthea-brand__stat-card--link:hover {
	border-color: var(--inthea-color-primary);
}

.inthea-brand__stat-card--active {
	border-color: var(--inthea-color-primary);
	background: #eff6ff;
	box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.inthea-brand__stat--ok {
	color: var(--inthea-color-active);
}

.inthea-brand__stat--warn {
	color: var(--inthea-color-warn);
}

.inthea-brand__stat--muted {
	color: var(--inthea-color-inactive);
}

.inthea-brand .required {
	color: #dc2626;
	font-weight: 700;
}

.inthea-brand__panel {
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	padding: 20px 22px;
	margin-bottom: 20px;
	box-shadow: var(--inthea-shadow-sm);
}

.inthea-brand__panel--create {
	border-color: #bfdbfe;
	box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08);
}

.inthea-brand__panel--history {
	background: #fafafa;
}

.inthea-brand__steps {
	margin: 0 0 20px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: 10px;
}

.inthea-brand__steps-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.inthea-brand__step {
	flex: 1 1 140px;
}

.inthea-brand__step-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--inthea-border);
	border-radius: 10px;
	background: var(--inthea-bg-soft);
	color: #0f172a;
	text-decoration: none;
	font-weight: 600;
}

.inthea-brand__step-link:hover,
.inthea-brand__step-link:focus {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: var(--inthea-color-primary);
}

.inthea-brand__step-num,
.inthea-brand__form-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	font-weight: 700;
	color: var(--inthea-color-primary);
}

.inthea-brand__form-step-num {
	margin-right: 6px;
}

.inthea-brand__form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.inthea-brand__form-group {
	background: var(--inthea-bg-soft);
	border: 1px solid var(--inthea-border);
	border-radius: 10px;
	padding: 16px 18px;
}

.inthea-brand__form-group--wide {
	grid-column: 1 / -1;
}

.inthea-brand__form-group-title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--inthea-border);
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.inthea-brand__field-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.inthea-brand__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.inthea-brand__field-label {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.inthea-brand__field-value {
	font-size: 14px;
}

.inthea-brand__input,
.inthea-brand__select,
.inthea-brand__textarea {
	width: 100%;
	max-width: 520px;
	padding: 10px 12px;
	border: 1px solid var(--inthea-border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: #0f172a;
}

.inthea-brand__textarea {
	min-height: 96px;
	resize: vertical;
}

.inthea-brand__input:focus,
.inthea-brand__select:focus,
.inthea-brand__textarea:focus {
	outline: none;
	border-color: #93c5fd;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.inthea-brand__hint,
.inthea-brand__field-hint {
	margin: 0;
	font-size: 13px;
	color: var(--inthea-text-muted);
}

.inthea-brand__input-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 520px;
}

.inthea-brand__input-wrap .inthea-brand__input {
	flex: 1 1 220px;
	min-width: 0;
}

.inthea-brand__url-open {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border: 1px solid var(--inthea-border);
	border-radius: 8px;
	background: #fff;
	color: var(--inthea-color-primary);
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.inthea-brand__url-open:hover,
.inthea-brand__url-open:focus {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.inthea-brand__form-actions--create {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px dashed var(--inthea-border);
	display: flex;
	justify-content: center;
	align-items: center;
}

.inthea-brand__form-actions--bottom,
.inthea-brand__form-actions--centered {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.inthea-brand__form-actions--bottom,
.inthea-brand__submit-row {
	margin: 8px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--inthea-border);
}

.inthea-brand__required-notice {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--inthea-text-muted);
}

.inthea-brand__field--error .inthea-brand__field-label {
	color: #b91c1c;
}

.inthea-brand__input--error,
.inthea-brand__field--error .inthea-brand__input--error {
	border-color: #ef4444;
	box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15);
}

.inthea-brand__field-error {
	margin: 6px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: #b91c1c;
}

.inthea-brand__duplicate-hint {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.inthea-brand__duplicate-hint--available {
	color: #15803d;
}

.inthea-brand__duplicate-hint--taken {
	color: #b91c1c;
	font-weight: 600;
}

.inthea-brand__duplicate-hint--taken a {
	color: #b91c1c;
	text-decoration: underline;
}

.inthea-brand__duplicate-hint--checking {
	color: #64748b;
}

.inthea-brand__alert--duplicate-link a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.inthea-brand__verify-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.inthea-brand__verify-row .inthea-brand__select {
	min-width: 220px;
}

.inthea-brand__verify-link {
	white-space: nowrap;
}

.inthea-brand__verify-hint {
	margin: 0;
}

.inthea-brand__field-hint--preline {
	white-space: pre-line;
}

.inthea-brand__step-save-label {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.inthea-brand__table-wrap {
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	overflow-x: auto;
	box-shadow: var(--inthea-shadow-sm);
}

.inthea-brand__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.inthea-brand__table thead th {
	background: var(--inthea-bg-soft);
	text-align: left;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	border-bottom: 1px solid var(--inthea-border);
}

.inthea-brand__table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f7;
	vertical-align: middle;
}

.inthea-brand__table tbody tr:last-child td {
	border-bottom: 0;
}

.inthea-brand__table tbody tr:hover {
	background: #f8fbff;
}

.inthea-brand__table-empty {
	text-align: center;
	color: var(--inthea-text-muted);
	padding: 28px 16px !important;
	line-height: 1.6;
}

.inthea-brand__row--inactive {
	opacity: 0.65;
}

.inthea-brand__link {
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
}

.inthea-brand__link:hover {
	color: var(--inthea-color-primary);
}

.inthea-brand__name-en {
	font-weight: 400;
	color: var(--inthea-text-muted);
	font-size: 13px;
}

.inthea-brand__code {
	display: inline-block;
	padding: 2px 8px;
	background: #f1f5f9;
	border-radius: 6px;
	font-size: 12px;
}

.inthea-brand__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #f1f5f9;
	color: #475569;
}

.inthea-brand__badge--active {
	background: #dcfce7;
	color: #166534;
}

.inthea-brand__badge--inactive {
	background: #f1f5f9;
	color: #64748b;
}

.inthea-brand__badge--pending {
	background: #fef3c7;
	color: #92400e;
}

.inthea-brand__badge--terminated {
	background: #fee2e2;
	color: #991b1b;
}

.inthea-brand__history-empty {
	margin: 0;
	padding: 20px;
	border: 1px dashed var(--inthea-border);
	border-radius: 10px;
	color: var(--inthea-text-muted);
	text-align: center;
	line-height: 1.6;
}

.inthea-brand__history-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.inthea-brand__history-item {
	padding: 14px 16px;
	border: 1px solid var(--inthea-border);
	border-radius: 10px;
	background: #fff;
	margin-bottom: 10px;
}

.inthea-brand__history-item:last-child {
	margin-bottom: 0;
}

.inthea-brand__history-message {
	margin: 0 0 6px;
	font-weight: 600;
	color: #0f172a;
}

.inthea-brand__history-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	font-size: 12px;
	color: var(--inthea-text-muted);
}

.inthea-brand__num {
	font-variant-numeric: tabular-nums;
}

.inthea-brand__muted {
	color: var(--inthea-text-muted);
	font-size: 13px;
}

.inthea-brand__hint--panel {
	margin: -8px 0 20px;
	padding: 0 4px;
}

@media (max-width: 782px) {
	.inthea-brand--frontend {
		padding: 16px 14px 32px;
		border-radius: 12px;
	}

	.inthea-brand__header-row {
		flex-direction: column;
	}

	.inthea-brand__form-grid {
		grid-template-columns: 1fr;
	}

	.inthea-brand__cards {
		flex-direction: column;
	}

	.inthea-brand__filters-row {
		flex-direction: column;
		align-items: stretch;
	}

	.inthea-brand__input--search,
	.inthea-brand__filters-row .inthea-brand__select {
		max-width: none;
		width: 100%;
	}
}

.inthea-brand__field--attachment .inthea-brand__media-status {
	margin-bottom: 8px;
}

.inthea-brand__media-link {
	font-weight: 600;
	color: var(--inthea-color-primary);
}

.inthea-brand__media-empty {
	color: var(--inthea-text-muted);
}

.inthea-brand__order-sheet-field {
	display: none;
}

.inthea-brand__field-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 720px;
}

.inthea-brand__field-item {
	min-width: 0;
}

.inthea-brand__field-stack .inthea-brand__field-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.inthea-brand__field-stack .inthea-brand__input-wrap {
	max-width: none;
	width: 100%;
}

.inthea-brand__field-stack .inthea-brand__input,
.inthea-brand__field-stack .inthea-brand__select,
.inthea-brand__field-stack textarea.inthea-brand__textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.inthea-brand__field-item--row {
	max-width: 960px;
	width: 100%;
}

.inthea-brand__field-row {
	display: grid;
	gap: 16px 20px;
}

.inthea-brand__field-row--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inthea-brand__field-row--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inthea-brand__field-row-cell {
	min-width: 0;
}

.inthea-brand__field-row-cell .inthea-brand__input-wrap,
.inthea-brand__field-row-cell .inthea-brand__input,
.inthea-brand__field-row-cell .inthea-brand__select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.inthea-brand__field--legacy-hint .inthea-brand__field-hint {
	margin: 0;
}

.inthea-brand__media-field--uploading .inthea-brand__media-actions {
	opacity: 0.6;
}

.inthea-brand__panel-head--split {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.inthea-brand__panel-head-aside {
	flex: 0 0 auto;
	min-width: 180px;
}

.inthea-brand__panel-status-field .inthea-brand__field-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

@media (max-width: 782px) {
	.inthea-brand__field-row--2,
	.inthea-brand__field-row--3 {
		grid-template-columns: 1fr;
	}

	.inthea-brand__panel-head-aside {
		width: 100%;
	}
}

/* Brand logo upload + thumbnails */
.inthea-brand__media-field--logo .inthea-brand__logo-preview-wrap {
	margin-bottom: 10px;
}

.inthea-brand__logo-preview,
.inthea-brand__logo-thumb,
.inthea-brand__detail-logo,
.inthea-brand__list-logo {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid var(--inthea-border, rgba(255, 255, 255, 0.12));
	background: rgba(255, 255, 255, 0.04);
}

.inthea-brand__logo-preview,
.inthea-brand__logo-thumb,
.inthea-brand__detail-logo {
	width: 120px;
	height: 120px;
}

.inthea-brand__list-logo {
	width: 40px;
	height: 40px;
}

.inthea-brand__link--with-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.inthea-brand__list-logo-wrap {
	flex: 0 0 auto;
}

.inthea-brand__detail-title-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
}

.inthea-brand__detail-logo-wrap {
	flex: 0 0 auto;
}

.inthea-brand__logo-empty {
	display: inline-block;
	padding: 12px 0;
}

/* SmartStore verification row (section I) */
.inthea-brand__field-row--verify {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 782px) {
	.inthea-brand__field-row--verify {
		grid-template-columns: 1fr;
	}
}

/* Safe status actions (no hard delete) */
.inthea-brand__panel--status-actions {
	margin-top: 24px;
	border-color: rgba(240, 184, 73, 0.45);
}

.inthea-brand__status-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.inthea-brand__status-form {
	margin: 0;
}

.inthea-brand__button--danger-soft {
	border-color: var(--inthea-danger, #f87171);
	color: var(--inthea-danger, #f87171);
}

.inthea-brand__input--uppercase {
	text-transform: uppercase;
}

body.inthea-brand-center-page .entry-header,
body.inthea-brand-center-page .page-header,
body.inthea-brand-center-page .wp-block-post-title {
	display: none;
}

.inthea-brand__bulk-open:disabled,
.inthea-brand__bulk-open[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.inthea-brand__bulk-col {
	width: 36px;
	text-align: center;
}

.inthea-brand__checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px 16px;
	margin-top: 8px;
}

.inthea-brand__field--sales-channels .inthea-brand__checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

/* Reusable INTHEA history / audit panels */
.inthea-history-panel {
	margin-top: 24px;
}

.inthea-history-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.inthea-history-header__text {
	flex: 1 1 auto;
	min-width: 0;
}

.inthea-history-header__title {
	margin: 0 0 4px;
}

.inthea-history-header__subtitle {
	margin: 0;
}

.inthea-history-header__actions {
	flex: 0 0 auto;
	padding-top: 2px;
}

.inthea-history-header__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 4px 12px;
	border: 1px solid rgba(148, 163, 184, 0.45);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.inthea-history-header__action:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(148, 163, 184, 0.7);
}

.inthea-history-body {
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	padding: 10px 12px;
	scrollbar-width: thin;
	scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.inthea-history-body::-webkit-scrollbar {
	width: 6px;
}

.inthea-history-body::-webkit-scrollbar-track {
	background: transparent;
}

.inthea-history-body::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.35);
}

.inthea-history-body--220 {
	height: 220px;
	max-height: 220px;
}

.inthea-history-body--300 {
	height: 300px;
	max-height: 300px;
}

.inthea-history-body--450 {
	height: 450px;
	max-height: 450px;
}

.inthea-history-body--empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.inthea-history-empty {
	margin: 0;
	opacity: 0.75;
	font-size: 13px;
	text-align: center;
}

.inthea-history-entries {
	display: grid;
	gap: 10px;
}

.inthea-history-entry {
	padding: 10px 12px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.inthea-history-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 6px;
	opacity: 0.8;
	font-size: 12px;
	line-height: 1.4;
}

.inthea-history-entry__date {
	font-weight: 600;
}

.inthea-history-entry__title {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.inthea-history-entry__detail {
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.9;
	white-space: pre-wrap;
	word-break: break-word;
}

.inthea-history-entry__change {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.inthea-history-entry__value {
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(148, 163, 184, 0.15);
	word-break: break-word;
}

.inthea-history-entry__value--new {
	background: rgba(59, 130, 246, 0.18);
}

.inthea-history-entry__arrow {
	opacity: 0.7;
	font-weight: 700;
}

.inthea-history-overflow {
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px dashed rgba(148, 163, 184, 0.35);
	opacity: 0.75;
	font-size: 12px;
	text-align: center;
}

.inthea-brand__mini-form {
	margin-top: 12px;
	padding-top: 16px;
	border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.inthea-brand__mini-form-title {
	margin-top: 0;
}

.inthea-brand__mini-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.inthea-brand__mini-form-grid label {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.inthea-brand__mini-form-span {
	grid-column: 1 / -1;
}
