.cm-article-extra-tools {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	margin-top: 2px;
	padding-top: 12px;
}

.cm-article-extra-tools::before {
	position: absolute;
	top: 2px;
	left: 50%;
	width: 24px;
	height: 1px;
	background: var(--cm-border, #29445a);
	content: "";
	transform: translateX(-50%);
}

.cm-article-extra-action {
	position: relative;
	padding: 0;
	font: inherit;
}

.cm-article-extra-action::after {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	z-index: 6;
	width: max-content;
	max-width: 220px;
	padding: 7px 9px;
	border: 1px solid var(--cm-border, #29445a);
	border-radius: 8px;
	color: var(--cm-text, #eef7ff);
	background: var(--cm-surface, #0d1c2c);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	content: attr(data-cm-label);
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.3;
	opacity: 0;
	pointer-events: none;
	transform: translate(5px, -50%);
	transition: opacity 160ms ease, transform 160ms ease;
}

.cm-article-extra-action:hover::after,
.cm-article-extra-action:focus-visible::after {
	opacity: 1;
	transform: translate(0, -50%);
}

.cm-vancouver-action {
	color: var(--cm-secondary, #6fb4ff) !important;
}

.cm-vancouver-action .cm-icon {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
}

.cm-vancouver-modal[hidden] { display: none !important; }
body.cm-vancouver-open { overflow: hidden; }

.cm-vancouver-modal {
	position: fixed;
	inset: 0;
	z-index: 100200;
	display: grid;
	place-items: center;
	padding: 18px;
}

.cm-vancouver-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(2, 8, 17, .75);
	opacity: 0;
	cursor: default;
	backdrop-filter: blur(4px);
	transition: opacity 180ms ease;
}

.cm-vancouver-dialog {
	position: relative;
	z-index: 1;
	width: min(620px, 100%);
	overflow: hidden;
	border: 1px solid var(--cm-border, #29445a);
	border-radius: 22px;
	color: var(--cm-text, #eef7ff);
	background: var(--cm-bg-soft, #091827);
	box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
	opacity: 0;
	transform: translateY(14px) scale(.985);
	transition: opacity 180ms ease, transform 180ms ease;
}

.cm-vancouver-modal.is-open .cm-vancouver-backdrop,
.cm-vancouver-modal.is-open .cm-vancouver-dialog { opacity: 1; }
.cm-vancouver-modal.is-open .cm-vancouver-dialog { transform: none; }

.cm-vancouver-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 22px 17px;
	border-bottom: 1px solid var(--cm-border-soft, rgba(111, 164, 201, .16));
}

.cm-vancouver-header span {
	display: block;
	margin-bottom: 3px;
	color: var(--cm-primary, #20c4c8);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cm-vancouver-header h2 {
	margin: 0;
	color: inherit;
	font-size: 22px;
	line-height: 1.2;
}

.cm-vancouver-header > button {
	display: grid;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--cm-border, #29445a);
	border-radius: 50%;
	color: inherit;
	background: var(--cm-surface, #0d1c2c);
	cursor: pointer;
}

.cm-vancouver-header svg,
.cm-vancouver-footer svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.cm-vancouver-body { padding: 22px; }

.cm-vancouver-style {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.cm-vancouver-style span {
	color: var(--cm-text, #eef7ff);
	font-size: 13px;
	font-weight: 850;
}

.cm-vancouver-style small {
	color: var(--cm-muted, #9ab0c2);
	font-size: 11px;
}

.cm-vancouver-body textarea {
	display: block;
	width: 100%;
	min-height: 150px;
	resize: none;
	padding: 15px 16px;
	border: 1px solid var(--cm-border, #29445a);
	border-radius: 14px;
	outline: 0;
	color: var(--cm-text-soft, #d8e5ef);
	background: #07111f;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 15px;
	line-height: 1.65;
}

.cm-vancouver-body textarea:focus {
	border-color: var(--cm-primary, #20c4c8);
	box-shadow: 0 0 0 3px rgba(32, 196, 200, .12);
}

.cm-vancouver-body > p {
	margin: 10px 0 0;
	color: var(--cm-muted, #9ab0c2);
	font-size: 12px;
	line-height: 1.5;
}

.cm-vancouver-footer {
	display: flex;
	min-height: 74px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 22px;
	border-top: 1px solid var(--cm-border-soft, rgba(111, 164, 201, .16));
	background: rgba(4, 15, 27, .35);
}

.cm-vancouver-footer > span {
	color: var(--cm-success, #70e39b);
	font-size: 12px;
	font-weight: 750;
}

.cm-vancouver-footer > button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 15px;
	border: 0;
	border-radius: 12px;
	color: #03131e;
	background: linear-gradient(135deg, var(--cm-primary, #20c4c8), var(--cm-secondary, #6fb4ff));
	font-weight: 850;
	cursor: pointer;
}

.cm-vancouver-footer > button[data-copied="true"] { background: var(--cm-success, #70e39b); }

@media (max-width: 700px) {
	.cm-mobile-share-option.cm-vancouver-action .cm-icon { width: 25px; height: 25px; }
	.cm-vancouver-modal { align-items: end; padding: 0; }
	.cm-vancouver-dialog { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 24px 24px 0 0; transform: translateY(100%); }
	.cm-vancouver-body { padding: 18px 16px; }
	.cm-vancouver-header, .cm-vancouver-footer { padding-right: 16px; padding-left: 16px; }
	.cm-vancouver-footer { align-items: stretch; flex-direction: column; }
	.cm-vancouver-footer > span:empty { display: none; }
	.cm-vancouver-footer > button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-vancouver-backdrop, .cm-vancouver-dialog { transition: none; }
}

@media print {
	.cm-article-extra-tools, .cm-vancouver-modal { display: none !important; }
}

