.ma2ta-artist-panel {
	display: grid;
	gap: 22px;
	color: var(--text-primary, #172638);
}

.ma2ta-artist-panel__header,
.ma2ta-artist-panel__section,
.ma2ta-artist-panel__stat,
.ma2ta-artist-panel__withdrawal-form {
	border: 1px solid var(--border-color, #dce3ed);
	border-radius: 18px;
	background: var(--bg-surface, #fff);
}

.ma2ta-artist-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px;
	background: radial-gradient(ellipse at 8% 0, rgba(37, 99, 235, .09), transparent 42%), var(--bg-surface, #fff);
}

.ma2ta-artist-panel__header h2,
.ma2ta-artist-panel__header p,
.ma2ta-artist-panel__section-heading h3,
.ma2ta-artist-panel__withdrawal-form h4 {
	margin: 0;
}

.ma2ta-artist-panel__header h2 {
	margin-block: 4px;
	color: var(--heading-ink, #172638);
	font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.ma2ta-artist-panel__header p:not(.ma2ta-artist-panel__eyebrow) {
	color: var(--text-muted, #5b6878);
}

.ma2ta-artist-panel__eyebrow {
	color: var(--brand-blue-link, #2459a6);
	font-size: .82rem;
	font-weight: 700;
}

.ma2ta-artist-panel__profile-link,
.ma2ta-artist-panel__withdrawal-form button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--ma2ta-action-primary, #2156a5);
	color: var(--ma2ta-action-primary-ink, #fff);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
}

.ma2ta-artist-panel__profile-link:hover,
.ma2ta-artist-panel__withdrawal-form button:hover {
	filter: brightness(1.06);
	text-decoration: none;
}

.ma2ta-artist-panel__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ma2ta-artist-panel__stat {
	display: grid;
	align-content: start;
	gap: 8px;
	min-width: 0;
	padding: 17px;
}

.ma2ta-artist-panel__stat > span {
	color: var(--text-muted, #5b6878);
	font-size: .88rem;
}

.ma2ta-artist-panel__stat strong {
	color: var(--heading-ink, #172638);
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.ma2ta-artist-panel__stat small {
	color: var(--text-muted, #5b6878);
	font-size: .76rem;
	line-height: 1.7;
}

.ma2ta-artist-panel__note,
.ma2ta-artist-panel__notice {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--brand-blue-link, #2459a6) 22%, transparent);
	border-inline-start: 4px solid var(--brand-blue-link, #2459a6);
	border-radius: 12px;
	background: color-mix(in srgb, var(--brand-blue-link, #2459a6) 5%, var(--bg-surface, #fff));
	line-height: 1.85;
}

.ma2ta-artist-panel__notice--error {
	border-color: rgba(185, 28, 28, .24);
	border-inline-start-color: #b91c1c;
	background: rgba(185, 28, 28, .06);
}

.ma2ta-artist-panel__section {
	min-width: 0;
	padding: 18px;
}

.ma2ta-artist-panel__app {
	display: grid;
	gap: 12px;
}

.ma2ta-artist-panel__app > p {
	margin: 0;
	color: var(--text-muted, #5b6878);
	line-height: 1.8;
}

.ma2ta-artist-panel__app-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.ma2ta-artist-panel__app-download {
	max-width: 100%;
	text-align: center;
}

.ma2ta-artist-panel__app-status,
.ma2ta-artist-panel__app-meta {
	color: var(--text-muted, #5b6878);
	line-height: 1.8;
}

.ma2ta-artist-panel__section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ma2ta-artist-panel__section-heading h3 {
	color: var(--heading-ink, #172638);
	font-size: 1.05rem;
}

.ma2ta-artist-panel__section-heading > span {
	color: var(--text-muted, #5b6878);
	font-size: .82rem;
}

.ma2ta-artist-panel__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ma2ta-artist-panel__product {
	min-width: 0;
	border: 1px solid var(--border-color, #dce3ed);
	border-radius: 14px;
	background: var(--bg-main, #fff);
	overflow: hidden;
}

.ma2ta-artist-panel__product > div {
	display: grid;
	gap: 9px;
	height: 100%;
	padding: 10px;
	color: var(--text-primary, #172638);
	text-decoration: none;
}

.ma2ta-artist-panel__product img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 9px;
	object-fit: cover;
}

.ma2ta-artist-panel__product span {
	font-weight: 700;
	line-height: 1.7;
}

.ma2ta-artist-panel__product strong {
	color: var(--price-color, #174c91);
	font-size: .88rem;
}

.ma2ta-artist-portal {
	min-height: 100vh;
	margin: 0;
	background: #f3f6fb;
	color: var(--text-primary, #172638);
}

.ma2ta-artist-portal__shell {
	min-height: 100vh;
}

.ma2ta-artist-portal__header {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px max(20px, calc((100vw - 1240px) / 2));
	border-bottom: 1px solid #e1e7ef;
	background: #fff;
}

.ma2ta-artist-portal__brand {
	display: grid;
	gap: 2px;
	color: var(--heading-ink, #172638);
	font-size: 1.2rem;
	font-weight: 800;
	text-decoration: none;
}

.ma2ta-artist-portal__brand small {
	color: var(--text-muted, #5b6878);
	font-size: .78rem;
	font-weight: 600;
}

.ma2ta-artist-portal__logout,
.ma2ta-artist-portal__lost-password a {
	color: var(--brand-blue-link, #2459a6);
	font-weight: 700;
}

.ma2ta-artist-portal__main {
	width: min(1240px, calc(100% - 32px));
	margin: 28px auto 56px;
}

.ma2ta-artist-portal__login,
.ma2ta-artist-portal__denied {
	max-width: 520px;
	margin: 6vh auto;
	padding: clamp(22px, 5vw, 38px);
	border: 1px solid #e1e7ef;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 36px rgb(23 38 56 / 7%);
}

.ma2ta-artist-portal__login h1,
.ma2ta-artist-portal__denied h1 {
	margin: 0 0 10px;
	color: var(--heading-ink, #172638);
	font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.ma2ta-artist-portal__login > p:not(.ma2ta-artist-portal__eyebrow) {
	color: var(--text-muted, #5b6878);
	line-height: 1.9;
}

.ma2ta-artist-portal__eyebrow {
	color: var(--brand-blue-link, #2459a6);
	font-size: .84rem;
	font-weight: 700;
}

#ma2ta-artist-login-form {
	margin-top: 24px;
}

#ma2ta-artist-login-form p {
	margin: 0 0 16px;
}

#ma2ta-artist-login-form label {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
}

#ma2ta-artist-login-form input[type="text"],
#ma2ta-artist-login-form input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	font: inherit;
}

#ma2ta-artist-login-form .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

#ma2ta-artist-login-form .login-submit input {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--ma2ta-action-primary, #2156a5);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ma2ta-artist-portal__lost-password {
	margin-top: 20px;
}

@media (max-width: 600px) {
	.ma2ta-artist-portal__header {
		padding-inline: 16px;
	}

	.ma2ta-artist-portal__main {
		width: min(100% - 24px, 1240px);
		margin-top: 18px;
	}
}

.ma2ta-artist-panel__table-wrap {
	width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
}

.ma2ta-artist-panel__table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	text-align: start;
}

.ma2ta-artist-panel__table--requests {
	min-width: 480px;
}

.ma2ta-artist-panel__table th,
.ma2ta-artist-panel__table td {
	padding: 11px 10px;
	border-bottom: 1px solid var(--border-color, #dce3ed);
	vertical-align: top;
}

.ma2ta-artist-panel__table th {
	color: var(--text-muted, #5b6878);
	font-size: .82rem;
	font-weight: 700;
}

.ma2ta-artist-panel__table td {
	font-size: .9rem;
	line-height: 1.7;
}

.ma2ta-artist-panel__table tbody tr:last-child td {
	border-bottom: 0;
}

.ma2ta-artist-panel__table td:nth-child(1),
.ma2ta-artist-panel__table td:nth-child(2),
.ma2ta-artist-panel__table td:nth-child(4) {
	white-space: nowrap;
}

.ma2ta-artist-panel__empty {
	margin: 0;
	padding: 18px;
	border: 1px dashed var(--border-color, #dce3ed);
	border-radius: 12px;
	color: var(--text-muted, #5b6878);
	text-align: center;
}

.ma2ta-artist-panel__status {
	display: inline-flex;
	padding: 4px 9px;
	border-radius: 999px;
	background: #eef2f7;
	color: #334155;
	font-size: .8rem;
	line-height: 1.6;
}

.ma2ta-artist-panel__status--pending {
	background: #fff7e6;
	color: #8a4b08;
}

.ma2ta-artist-panel__status--approved {
	background: #eff6ff;
	color: #1d4f91;
}

.ma2ta-artist-panel__status--paid {
	background: #eaf7ef;
	color: #17623b;
}

.ma2ta-artist-panel__status--rejected {
	background: #fff0f0;
	color: #9b2424;
}

.ma2ta-artist-panel__withdrawal-form {
	display: grid;
	gap: 10px;
	max-width: 620px;
	margin-top: 18px;
	padding: 18px;
}

.ma2ta-artist-panel__withdrawal-form h4 {
	color: var(--heading-ink, #172638);
	font-size: 1rem;
}

.ma2ta-artist-panel__withdrawal-form p {
	margin: 0 0 4px;
	color: var(--text-muted, #5b6878);
	font-size: .88rem;
	line-height: 1.8;
}

.ma2ta-artist-panel__withdrawal-form label {
	font-weight: 700;
}

.ma2ta-artist-panel__withdrawal-form label span {
	color: var(--text-muted, #5b6878);
	font-size: .82rem;
	font-weight: 400;
}

.ma2ta-artist-panel__amount-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ma2ta-artist-panel__amount-field input,
.ma2ta-artist-panel__withdrawal-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 9px 12px;
	border: 1px solid #8794a7;
	border-radius: 10px;
	background: var(--bg-main, #fff);
	color: var(--text-primary, #172638);
	font: inherit;
}

.ma2ta-artist-panel__amount-field input {
	direction: ltr;
	text-align: start;
}

.ma2ta-artist-panel__withdrawal-form textarea {
	resize: vertical;
}

.ma2ta-artist-panel__amount-field input:focus-visible,
.ma2ta-artist-panel__withdrawal-form textarea:focus-visible,
.ma2ta-artist-panel__profile-link:focus-visible,
.ma2ta-artist-panel__withdrawal-form button:focus-visible {
	outline: 3px solid var(--focus-ring, #1d4ed8);
	outline-offset: 3px;
}

.ma2ta-artist-panel__withdrawal-form button {
	justify-self: start;
	cursor: pointer;
}

html.dark .ma2ta-artist-panel__status {
	background: #273449;
	color: #e2e8f0;
}

html.dark .ma2ta-artist-panel__status--pending {
	background: #3b3020;
	color: #f8d69a;
}

html.dark .ma2ta-artist-panel__status--approved {
	background: #1d2d45;
	color: #b8d6ff;
}

html.dark .ma2ta-artist-panel__status--paid {
	background: #173427;
	color: #a6e0bd;
}

html.dark .ma2ta-artist-panel__status--rejected {
	background: #3d2427;
	color: #ffc0c0;
}

@media (max-width: 900px) {
	.ma2ta-artist-panel__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ma2ta-artist-panel {
		gap: 14px;
	}

	.ma2ta-artist-panel__header {
		align-items: flex-start;
		flex-direction: column;
		padding: 18px;
	}

	.ma2ta-artist-panel__stats {
		gap: 9px;
	}

	.ma2ta-artist-panel__stat {
		padding: 13px;
	}

	.ma2ta-artist-panel__stat small {
		font-size: .72rem;
	}

	.ma2ta-artist-panel__section {
		padding: 14px;
	}

	.ma2ta-artist-panel__section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.ma2ta-artist-panel__app-actions {
		align-items: stretch;
	}

	.ma2ta-artist-panel__app-download {
		width: 100%;
	}

	.ma2ta-artist-panel__withdrawal-form {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ma2ta-artist-panel__profile-link,
	.ma2ta-artist-panel__withdrawal-form button {
		transition: none;
	}
}
