.gs-ls-account {
	display: grid;
	gap: 1.5rem;
	max-width: 48rem;
}

.gs-ls-account__empty,
.gs-ls-account__login {
	margin: 0;
}

.gs-ls-account__card {
	border: 1px solid #dcdcde;
	background: #fff;
	padding: 1.5rem;
	box-sizing: border-box;
}

.gs-ls-account__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eef0f1;
}

.gs-ls-account__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.3;
}

.gs-ls-account__status,
.gs-ls-license-status-badge {
	display: inline-block;
	padding: 0.2em 0.65em;
	border: 1px solid #c3c4c7;
	background: #f6f7f7;
	color: #2c3338;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.4;
	box-sizing: border-box;
}

.gs-ls-license-status {
	line-height: 1;
}

.gs-ls-account__status--active {
	border-color: #68de7c;
	background: #edfaef;
	color: #005c12;
}

.gs-ls-account__status--canceled,
.gs-ls-account__status--expired,
.gs-ls-account__status--revoked {
	border-color: #f0b7b7;
	background: #fcf0f1;
	color: #8a2424;
}

.gs-ls-account__status--past_due,
.gs-ls-account__status--grace {
	border-color: #f0c930;
	background: #fcf9e8;
	color: #614200;
}

.gs-ls-account__status--trialing {
	border-color: #72aee6;
	background: #f0f6fc;
	color: #0a4b78;
}

.gs-ls-account__status--unknown {
	border-color: #c3c4c7;
	background: #f6f7f7;
	color: #2c3338;
}

.gs-ls-account__meta {
	display: grid;
	gap: 0.85rem;
	margin: 0 0 1.5rem;
}

.gs-ls-account__meta-row {
	display: grid;
	gap: 0.25rem;
}

.gs-ls-account__meta-label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #646970;
}

.gs-ls-account__meta-value {
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
	word-break: break-word;
}

.gs-ls-account__key,
.gs-ls-license-key__value {
	display: inline-block;
	padding: 0.35em 0.55em;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
	word-break: break-all;
}

.gs-ls-license-key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.85rem;
}

.gs-ls-license-key__copy {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #2271b1;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.3;
}

.gs-ls-license-key__copy:hover,
.gs-ls-license-key__copy:focus {
	color: #135e96;
	text-decoration: underline;
}

.gs-ls-license-key__copy.is-copied {
	color: #005c12;
	text-decoration: none;
}

.gs-ls-account__downloads {
	margin: 0 0 1.25rem;
}

.gs-ls-account__billing-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding: 1.15rem 1.35rem;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
}

.gs-ls-account__billing-text,
.gs-ls-account__billing-action {
	margin: 0;
}

.gs-ls-account__billing--button {
	display: inline-block;
	padding: 0.5em 1em;
	border: 1px solid #1d2327;
	background: #1d2327;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.gs-ls-account__billing--button:hover,
.gs-ls-account__billing--button:focus {
	background: #2c3338;
	border-color: #2c3338;
	color: #fff;
	text-decoration: none;
}

.gs-ls-account__section-title,
.gs-ls-account__downloads-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	line-height: 1.3;
}

.gs-ls-account__note {
	margin: 0;
	color: #646970;
}

.gs-ls-account__note--inline {
	display: inline;
}

.gs-ls-account__release-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #eef0f1;
}

.gs-ls-account__release {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 1rem;
	row-gap: 0.75rem;
	border-bottom: 1px solid #eef0f1;
	padding: 0.85rem 1rem;
}

.gs-ls-account__release--has-changelog {
	grid-template-columns: minmax(0, 1fr) auto auto;
}

.gs-ls-account__release:last-child {
	border-bottom: 0;
}

.gs-ls-account__release-meta {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.gs-ls-account__version {
	font-weight: 600;
}

.gs-ls-account__latest {
	margin-left: 0.35em;
	font-weight: 500;
	color: #646970;
	font-size: 0.9em;
}

.gs-ls-account__actions {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

.gs-ls-account__changelog-check {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gs-ls-account__changelog-label {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	align-self: center;
	cursor: pointer;
	color: #2271b1;
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
	user-select: none;
}

.gs-ls-account__changelog-label::after {
	content: " ▾";
	font-size: 0.85em;
	opacity: 0.75;
}

.gs-ls-account__changelog-check:checked + .gs-ls-account__changelog-label::after {
	content: " ▴";
}

.gs-ls-account__changelog-check:focus-visible + .gs-ls-account__changelog-label {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* Full-width panel under the entire header row (version + download + label). */
.gs-ls-account__release > .gs-ls-account__changelog {
	display: none;
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 0;
}

.gs-ls-account__changelog-check:checked ~ .gs-ls-account__changelog {
	display: block;
}

.gs-ls-account__download {
	display: inline-block;
	padding: 0.4em 0.9em;
	border: 1px solid #1d2327;
	background: #1d2327;
	color: #fff;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
}

.gs-ls-account__download:hover,
.gs-ls-account__download:focus {
	background: #2c3338;
	border-color: #2c3338;
	color: #fff;
}

.gs-ls-account__download[aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.gs-ls-account__changelog-toggle > summary {
	cursor: pointer;
	color: #2271b1;
	list-style: none;
}

.gs-ls-account__changelog-toggle > summary::-webkit-details-marker {
	display: none;
}

.gs-ls-account__changelog-toggle > summary::after {
	content: " ▾";
	font-size: 0.85em;
	opacity: 0.75;
}

.gs-ls-account__changelog-toggle[open] > summary::after {
	content: " ▴";
}

.gs-ls-account__changelog {
	padding: 0.85rem 1rem;
	border: 1px solid #eef0f1;
	background: #f6f7f7;
	font-size: 0.95rem;
	line-height: 1.5;
}

.gs-ls-account__changelog-toggle .gs-ls-account__changelog {
	margin-top: 0.75rem;
}

.gs-ls-account__changelog > :first-child {
	margin-top: 0;
}

.gs-ls-account__changelog > :last-child {
	margin-bottom: 0;
}

.gs-ls-account__changelog ul {
	margin: 0.35em 0 0;
	padding-left: 1.25em;
}

.gs-ls-account__changelog li {
	margin: 0.25em 0;
}

.gs-ls-account__activations {
	margin: 0 0 1.25rem;
}

.gs-ls-account__activation-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #eef0f1;
}

.gs-ls-account__activation {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #eef0f1;
}

.gs-ls-account__activation:last-child {
	border-bottom: 0;
}

.gs-ls-account__activation-main {
	min-width: 0;
	flex: 1 1 14rem;
}

.gs-ls-account__site {
	font-weight: 600;
	word-break: break-all;
	text-decoration: none;
}

.gs-ls-account__site:hover,
.gs-ls-account__site:focus {
	text-decoration: underline;
}

.gs-ls-account__activation-meta {
	margin: 0.3rem 0 0;
	font-size: 0.88rem;
	color: #646970;
	line-height: 1.4;
}

.gs-ls-account__deactivate {
	font-size: 0.92rem;
	color: #b32d2e;
	text-decoration: none;
	white-space: nowrap;
}

.gs-ls-account__deactivate:hover,
.gs-ls-account__deactivate:focus {
	color: #8a2424;
	text-decoration: underline;
}

.gs-ls-account__footer {
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid #eef0f1;
}

.gs-ls-account__billing {
	font-weight: 600;
	text-decoration: none;
}

.gs-ls-account__billing:hover,
.gs-ls-account__billing:focus {
	text-decoration: underline;
}

.gs-ls-manage {
	position: relative;
	display: inline-block;
}

.gs-ls-manage__summary {
	display: inline-flex;
	align-items: center;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.gs-ls-manage__summary::-webkit-details-marker {
	display: none;
}

.gs-ls-manage:not(.gs-ls-manage--has-icons) .gs-ls-manage__summary::after {
	content: " ▾";
	font-size: 0.85em;
	opacity: 0.85;
}

.gs-ls-manage:not(.gs-ls-manage--has-icons)[open] .gs-ls-manage__summary::after {
	content: " ▴";
}

.gs-ls-manage__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	margin-inline-start: 0.4em;
}

.gs-ls-manage__icon--open {
	display: none;
}

.gs-ls-manage[open] .gs-ls-manage__icon--closed {
	display: none;
}

.gs-ls-manage[open] .gs-ls-manage__icon--open {
	display: inline-flex;
}

.gs-ls-manage__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.gs-ls-manage__menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 0.35rem);
	left: 0;
	min-width: 22rem;
	width: max-content;
	max-width: min(36rem, 95vw);
	padding: 0.65rem 0;
	border: 1px solid #dcdcde;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

.gs-ls-manage__portal-wrap {
	margin: 0;
	padding: 0;
}

.gs-ls-manage__heading {
	margin: 0;
	padding: 0.55rem 0.9rem 0.5rem;
	color: #1d2327;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: #f0f6fc;
	border-top: 1px solid #dcdcde;
	border-bottom: 1px solid #dcdcde;
}

.gs-ls-manage__heading--after-portal {
	margin-top: 0.35rem;
}

.gs-ls-manage__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gs-ls-manage__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	padding: 0.55rem 0.9rem;
	color: #1d2327;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.35;
}

.gs-ls-manage__plan-name {
	font-weight: 600;
}

.gs-ls-manage__plan-due {
	color: #646970;
	font-size: 0.85em;
	font-weight: 400;
	white-space: nowrap;
}

.gs-ls-manage__item:hover,
.gs-ls-manage__item:focus {
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
}

.gs-ls-manage__item:hover .gs-ls-manage__plan-due,
.gs-ls-manage__item:focus .gs-ls-manage__plan-due {
	color: #50575e;
}

.gs-ls-manage__item--portal {
	font-weight: 600;
}

@media (max-width: 600px) {
	.gs-ls-account__card {
		padding: 1.15rem;
	}
}
