/* Additive styles for Open Multiple URLs — P0 controls + P1 I/O, lists, bookmarklet. */

.lc-tools-open-urls .lc-tool-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
	gap: 12px 28px;
	align-items: start;
}

.lc-tools-open-urls .lc-open-input-head {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 14px;
}

.lc-tools-open-urls .lc-open-input-head .lc-tool-label {
	margin: 0;
}

.lc-open-file-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.lc-open-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lc-open-file-btn,
.lc-open-file-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin: 0;
	min-height: 36px;
	padding: 7px 12px;
	font-size: 12.5px;
}

.lc-open-file-actions .lc-btn {
	min-height: 36px;
	padding: 7px 12px;
	font-size: 12.5px;
}

.lc-tools-open-urls #lc-open-input {
	grid-column: 1;
	grid-row: 2;
	min-height: 360px;
}

.lc-tools-open-urls .lc-open-sidebar {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.lc-tools-open-urls .lc-tool-actions,
.lc-tools-open-urls .lc-tool-hint,
.lc-tools-open-urls .lc-tool-meta {
	grid-column: auto;
	grid-row: auto;
	margin-top: 0;
}

.lc-open-controls {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.lc-open-controls .lc-tool-label {
	margin-bottom: 6px;
	font-size: 12px;
}

.lc-open-controls .lc-tool-input {
	min-height: 42px;
	padding: 8px 12px;
	font-size: 14px;
}

.lc-open-toggles {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lc-open-toggles .lc-tool-check {
	width: 100%;
	box-sizing: border-box;
}

.lc-open-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.lc-open-stat {
	min-height: 64px;
	padding: 10px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #0d2853;
	border-radius: 8px;
	text-align: center;
}

.lc-open-stat__num {
	color: #fff;
	font-family: 'Sora', sans-serif;
	font-size: 20px;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -.03em;
}

.lc-open-stat__label {
	margin-top: 5px;
	color: rgba(255, 255, 255, .52);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.lc-open-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.lc-tools-open-urls .lc-open-actions .lc-btn {
	width: 100%;
}

.lc-open-bookmarklet {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px;
	background: #f2f5f7;
	border: 1px solid #dce3e7;
	border-radius: 8px;
}

.lc-open-bookmarklet .lc-tool-label {
	margin: 0;
	font-size: 12px;
}

.lc-open-bookmarklet__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px dashed #9aaebb;
	background: #fff;
	color: #0d2853;
	font-family: 'Sora', sans-serif;
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
	text-align: center;
	cursor: grab;
}

.lc-open-bookmarklet__link:hover {
	border-color: #0d2853;
	background: #f8fafb;
}

.lc-open-bookmarklet__link.is-empty {
	opacity: .55;
	cursor: not-allowed;
}

.lc-open-bookmarklet__hint {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #5a6b7a;
}

.lc-open-lists {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lc-open-lists > .lc-tool-label {
	margin: 0;
	font-size: 12px;
}

.lc-open-lists-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.lc-open-lists-row .lc-tool-select,
.lc-open-lists-row .lc-tool-input {
	flex: 1 1 140px;
	min-width: 0;
	min-height: 40px;
	font-size: 13px;
}

.lc-open-lists-row .lc-btn {
	min-height: 40px;
	padding: 8px 12px;
	font-size: 12.5px;
	white-space: nowrap;
}

.lc-open-lists-row--io {
	margin-top: 2px;
}

.lc-open-lists #lc-open-lists-status {
	min-height: 1.2em;
	margin: 0;
	font-size: 12.5px;
}

.lc-tools-open-urls .lc-btn--ghost {
	color: #27384c;
	background: #f3f6f7;
	border: 1px solid #d8e0e4;
	box-shadow: none;
}

.lc-tools-open-urls .lc-btn--ghost:hover:not(:disabled) {
	background: #e8eef2;
	border-color: #c5d0d7;
}

.lc-tools-open-urls .lc-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.lc-tools-open-urls .lc-tool-hint {
	padding: 14px 16px;
	background: #f2f5f7;
	border: 1px solid #dce3e7;
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.5;
	color: #4a5a6a;
}

.lc-tools-open-urls .lc-tool-hint::before {
	display: none;
}

.lc-tools-open-urls .lc-tool-hint strong {
	font-weight: 700;
	color: #27384c;
}

.lc-tools-open-urls .lc-tool-meta {
	min-height: 1.4em;
	font-size: 13px;
	color: #5a6b7a;
}

@media (max-width: 900px) {
	.lc-tools-open-urls .lc-tool-panel {
		grid-template-columns: 1fr;
	}

	.lc-tools-open-urls .lc-open-input-head,
	.lc-tools-open-urls #lc-open-input,
	.lc-tools-open-urls .lc-open-sidebar {
		grid-column: 1;
		grid-row: auto;
	}

	.lc-tools-open-urls #lc-open-input {
		min-height: 240px;
	}

	.lc-open-toggles {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.lc-open-toggles .lc-tool-check {
		width: auto;
	}

	.lc-open-stats {
		grid-template-columns: repeat(4, 1fr);
	}

	.lc-open-stat {
		min-height: 56px;
	}

	.lc-open-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.lc-tools-open-urls .lc-open-actions .lc-btn {
		width: auto;
		flex: 1 1 140px;
	}
}

@media (max-width: 520px) {
	.lc-open-stats {
		grid-template-columns: 1fr 1fr;
	}

	.lc-open-actions {
		flex-direction: column;
	}

	.lc-tools-open-urls .lc-open-actions .lc-btn {
		width: 100%;
	}

	.lc-open-lists-row .lc-btn {
		flex: 1 1 auto;
	}
}
