/* GitHub Repo Selector Widget - Mobile Friendly */

/* Mobile-first responsive design */
@media (max-width: 768px) {
	.github-repo-dashboard-tools {
		padding: 12px !important;
	}

	.github-repo-dashboard-tools-header {
		margin-bottom: 16px;
	}

	.github-repo-dashboard-tools-header h3 {
		font-size: 18px !important;
		margin-bottom: 8px !important;
	}

	.github-repo-dashboard-tools-header p {
		font-size: 13px !important;
		margin-bottom: 12px !important;
	}

	.github-repo-dashboard-account {
		padding: 12px !important;
		margin-bottom: 16px !important;
		align-items: flex-start !important;
	}

	.github-repo-dashboard-tools-actions {
		margin-bottom: 16px !important;
	}

	.github-repo-dashboard-update-button {
		width: 100% !important;
		padding: 10px !important;
		font-size: 13px !important;
	}

	.github-repo-dashboard-action-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.github-repo-dashboard-action-card {
		padding: 12px !important;
		margin-bottom: 0 !important;
		width: 100% !important;
	}

	.github-repo-dashboard-action-card h5 {
		font-size: 15px !important;
		margin-bottom: 10px !important;
	}

	.github-repo-dashboard-action-card input,
	.github-repo-dashboard-action-card select,
	.github-repo-dashboard-action-card textarea {
		width: 100% !important;
		padding: 8px !important;
		margin-bottom: 8px !important;
		font-size: 13px !important;
		box-sizing: border-box !important;
	}

	.github-repo-dashboard-action-card button {
		width: 100% !important;
		padding: 10px !important;
		font-size: 13px !important;
		margin-bottom: 8px !important;
	}

	.github-repo-dashboard-cache-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.github-repo-dashboard-cache-card {
		padding: 12px !important;
		margin-bottom: 0 !important;
		width: 100% !important;
	}

	.github-repo-dashboard-cache-label {
		font-size: 12px !important;
	}

	.github-repo-dashboard-cache-card strong {
		font-size: 14px !important;
		word-break: break-word !important;
	}

	.github-repo-dashboard-wide-card {
		grid-column: 1 !important;
	}

	.github-dashboard-add-type,
	.github-dashboard-delete-type {
		margin-bottom: 12px !important;
		width: 100% !important;
	}

	.github-dashboard-add-repo-fields,
	.github-dashboard-add-branch-fields {
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
		margin-bottom: 12px !important;
	}

	.github-dashboard-add-repo-fields input,
	.github-dashboard-add-branch-fields select,
	.github-dashboard-add-branch-fields input {
		width: 100% !important;
		padding: 8px !important;
		font-size: 13px !important;
		box-sizing: border-box !important;
	}

	.github-dashboard-field-label {
		font-size: 12px !important;
		font-weight: 600 !important;
		margin-bottom: 6px !important;
		display: block !important;
		color: #24292f !important;
	}

	.github-repo-dashboard-danger-button {
		width: 100% !important;
		padding: 10px !important;
	}

	.github-dashboard-wysiwyg-toolbar {
		flex-wrap: wrap !important;
		gap: 6px !important;
		margin-bottom: 10px !important;
	}

	.github-dashboard-wysiwyg-toolbar button {
		padding: 6px 8px !important;
		font-size: 11px !important;
		flex: 0 1 auto !important;
	}

	.github-dashboard-readme-editor {
		max-height: 250px !important;
		font-size: 13px !important;
		width: 100% !important;
	}

	.github-dashboard-management {
		margin-top: 12px !important;
		padding-top: 12px !important;
	}

	.github-dashboard-management h4 {
		font-size: 16px !important;
		margin: 0 0 6px 0 !important;
	}

	.github-dashboard-management p {
		font-size: 13px !important;
		margin: 0 0 12px 0 !important;
	}

	.github-repo-dashboard-danger-card {
		border-color: #da3633 !important;
	}

	.repo-button, button.repo-button {
		width: 100% !important;
		padding: 10px !important;
		font-size: 13px !important;
	}

	.elementor-alert {
		padding: 12px !important;
		font-size: 13px !important;
		margin-bottom: 12px !important;
	}
}




.github-repo-container {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	color: #24292f;
}

.repo-card {
	background-color: #f6f8fa;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 16px;
	transition: all 0.3s ease;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.repo-card {
		padding: 12px;
		margin-bottom: 12px;
	}
}

.repo-card:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	border-color: #0969da;
}

.repo-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 768px) {
	.repo-header {
		flex-direction: column;
		gap: 6px;
	}
}

.repo-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: v1.0;
}

.repo-title a {
	color: #0969da;
	text-decoration: none;
	transition: color 0.2s;
}

.repo-title a:hover {
	color: #0860ca;
	text-decoration: underline;
}

.repo-language {
	display: inline-block;
	background-color: #e0eef9;
	color: #0969da;
	padding: 4px 8px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

.repo-description {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #57606a;
	line-height: v1.0;
}

.repo-branches {
	margin-bottom: 12px;
}

.repo-branches label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #24292f;
}

.branch-selector {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	font-size: 14px;
	background-color: #ffffff;
	color: #24292f;
	cursor: pointer;
	transition: border-color 0.2s;
}

.branch-selector:focus {
	outline: none;
	border-color: #0969da;
	box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.repo-stats {
	display: flex;
	gap: 16px;
	margin: 12px 0;
	padding: 12px 0;
	border-top: 1px solid #d0d7de;
	border-bottom: 1px solid #d0d7de;
	font-size: 13px;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.repo-stats {
		gap: 12px;
		padding: 8px 0;
	}
}

.stat {
	display: flex;
	align-items: center;
	gap: 6px;
}

.stat-label {
	font-weight: 600;
	color: #57606a;
}

.stat-value {
	color: #24292f;
	font-weight: 500;
}

.repo-readme-container {
	background-color: #ffffff;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	padding: 16px;
	margin: 12px 0;
	font-size: 14px;
	line-height: v1.0;
	overflow-y: auto;
}

.repo-readme-container h1,
.repo-readme-container h2,
.repo-readme-container h3 {
	margin-top: 24px;
	margin-bottom: 12px;
	font-weight: 600;
	border-bottom: 1px solid #d0d7de;
	padding-bottom: 8px;
}

.repo-readme-container h1 {
	font-size: 24px;
	margin-top: 0;
	border-bottom: 2px solid #d0d7de;
}

.repo-readme-container h2 {
	font-size: 20px;
}

.repo-readme-container h3 {
	font-size: 16px;
}

.repo-readme-container p {
	margin: 12px 0;
}

.repo-readme-container code {
	background-color: #f6f8fa;
	border-radius: 4px;
	padding: 2px 6px;
	font-family: 'Courier New', Courier, monospace;
	color: #d1242f;
	font-size: 13px;
}

.repo-readme-container a {
	color: #0969da;
	text-decoration: none;
}

.repo-readme-container a:hover {
	text-decoration: underline;
}

.repo-readme-container ul {
	margin: 12px 0;
	padding-left: 24px;
}

.repo-readme-container li {
	margin: 6px 0;
}

.repo-no-readme {
	text-align: center;
	color: #57606a;
	font-style: italic;
	padding: 16px;
}

.repo-footer {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.repo-footer {
		flex-direction: column;
		gap: 6px;
	}

	.repo-footer .repo-button {
		width: 100%;
	}
}

.repo-button {
	display: inline-block;
	padding: 8px 16px;
	background-color: #238636;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
	border: 1px solid #1a7f37;
}

.repo-button:hover {
	background-color: #2ea043;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.repo-button:active {
	background-color: #1f6feb;
}

/* Loading state */
.github-repo-container.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Empty state */
.elementor-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: v1.0;
}

.elementor-alert-danger {
	background-color: #ffebe9;
	color: #af3930;
	border: 1px solid #d1242f;
}

.elementor-alert-info {
	background-color: #e0eef9;
	color: #0969da;
	border: 1px solid #0969da;
}

/* Responsive */
@media (max-width: 600px) {
	.repo-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.repo-stats {
		flex-direction: column;
		gap: 8px;
	}

	.repo-card {
		padding: 12px;
	}

	.repo-readme-container {
		padding: 12px;
	}

	.branch-selector {
		width: 100%;
	}
}


/* Front-End Dashboard GitHub Tools */
.github-repo-dashboard-tools {
	width: 100%;
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.github-repo-dashboard-tools-header h3 {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.2;
}

.github-repo-dashboard-tools-header p {
	margin: 0 0 16px;
	font-size: 15px;
	opacity: 0.8;
}

.github-repo-dashboard-tools-actions {
	margin-bottom: 16px;
}

.github-repo-dashboard-update-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.github-repo-dashboard-update-button:disabled {
	opacity: 0.65;
	cursor: wait;
}

.github-repo-dashboard-cache-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

@media (max-width: 768px) {
	.github-repo-dashboard-cache-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.github-repo-dashboard-cache-card {
	background: #f6f8fa;
	border: 1px solid #d0d7de;
	border-radius: 10px;
	padding: 14px;
}

.github-repo-dashboard-cache-label {
	display: block;
	font-size: 13px;
	opacity: 0.75;
	margin-bottom: 4px;
}

.github-repo-dashboard-cache-card strong {
	display: block;
	font-size: 20px;
	line-height: 1.25;
}

.github-repo-dashboard-message {
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f6f8fa;
	border: 1px solid #d0d7de;
	font-size: 14px;
}

.github-repo-dashboard-message-success {
	background: #dafbe1;
	border-color: #2da44e;
	color: #1a7f37;
}

.github-repo-dashboard-message-error,
.github-repo-dashboard-message-warning {
	background: #ffebe9;
	border-color: #cf222e;
	color: #cf222e;
}

@media (max-width: 767px) {
	.github-repo-dashboard-cache-grid {
		grid-template-columns: 1fr;
	}

	.github-repo-dashboard-update-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
}


.github-repo-dashboard-repo-heading {
	margin: 24px 0 14px;
	padding-top: 8px;
}

.github-repo-dashboard-repo-heading h3 {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
}

.github-repo-dashboard-repo-heading p {
	margin: 0;
	font-size: 15px;
	opacity: 0.8;
}

.github-repo-dashboard-mode-active {
	width: 100%;
}

.github-repo-selector-live-preview-tools {
	margin-bottom: 24px;
}


.github-repo-dashboard-tools .github-repo-dashboard-update-button.repo-button {
	width: auto;
	text-align: center;
	border: none;
	text-decoration: none;
}

.github-repo-dashboard-management-note {
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f6f8fa;
	border: 1px solid #d0d7de;
	font-size: 14px;
}

@media (max-width: 767px) {
	.github-repo-dashboard-tools .github-repo-dashboard-update-button.repo-button {
		width: 100%;
	}
}


/* Dashboard GitHub management buttons - match View/Download green style */
.github-repo-dashboard-tools .github-repo-dashboard-update-button,
.github-repo-dashboard-tools .github-repo-dashboard-update-button.repo-button,
.github-repo-dashboard-tools .cm-wlfd-github-dashboard-action.repo-button,
.github-repo-dashboard-tools .repo-button.repo-view-button {
	background: #00823b !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 8px;
	padding: 11px 16px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
}

.github-repo-dashboard-tools .github-repo-dashboard-update-button:hover,
.github-repo-dashboard-tools .cm-wlfd-github-dashboard-action.repo-button:hover {
	background: #006f33 !important;
	color: #ffffff !important;
}

.github-repo-dashboard-management {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #d0d7de;
}

.github-repo-dashboard-management h4 {
	margin: 0 0 6px;
	font-size: 20px;
}

.github-repo-dashboard-management p {
	margin: 0 0 14px;
	font-size: 14px;
	opacity: 0.8;
}

.github-repo-dashboard-action-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 768px) {
	.github-repo-dashboard-action-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.github-repo-dashboard-action-card {
	background: #f6f8fa;
	border: 1px solid #d0d7de;
	border-radius: 10px;
	padding: 14px;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.github-repo-dashboard-action-card {
		width: 100%;
		padding: 12px;
	}
}

.github-repo-dashboard-action-card h5 {
	margin: 0 0 10px;
	font-size: 16px;
}

.github-repo-dashboard-action-card input,
.github-repo-dashboard-action-card select {
	width: 100%;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 9px 10px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font-size: 14px;
	background: #ffffff;
}

.github-repo-dashboard-danger-button {
	background: #b32d2e !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 8px;
	padding: 11px 16px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	width: auto;
}

.github-repo-dashboard-danger-button:hover {
	background: #8a2424 !important;
	color: #ffffff !important;
}

@media (max-width: 767px) {
	.github-repo-dashboard-action-grid {
		grid-template-columns: 1fr;
	}

	.github-repo-dashboard-tools .github-repo-dashboard-update-button,
	.github-repo-dashboard-tools .cm-wlfd-github-dashboard-action.repo-button,
	.github-repo-dashboard-danger-button {
		width: 100%;
	}
}


.github-repo-dashboard-action-card textarea {
	width: 100%;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 9px 10px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font-size: 14px;
	background: #ffffff;
	min-height: 120px;
	resize: vertical;
}

.github-repo-dashboard-wide-card {
	grid-column: span 2;
}

@media (max-width: 767px) {
	.github-repo-dashboard-wide-card {
		grid-column: span 1;
	}
}


.github-repo-dashboard-action-card textarea.github-dashboard-file-content {
	min-height: 150px;
	font-family: inherit;
}

.github-dashboard-delete-type,
.github-dashboard-branch-select,
.github-dashboard-source-branch-select {
	width: 100%;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 9px 10px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font-size: 14px;
	background: #ffffff;
}

.github-repo-dashboard-action-card[data-delete-type="delete_repo"] .github-dashboard-branch-select {
	display: none;
}


/* Auto responsive columns for the whole plugin */
.github-repo-container,
.github-repo-dashboard-action-grid,
.github-repo-dashboard-cache-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
	gap: 16px;
}

@media (max-width: 768px) {
	.github-repo-container,
	.github-repo-dashboard-action-grid,
	.github-repo-dashboard-cache-grid {
		grid-template-columns: 1fr !important;
		gap: 12px;
	}
}

.github-repo-container .repo-card {
	width: 100%;
}

/* Dashboard GitHub account identity */
.github-repo-dashboard-account {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0 18px;
	padding: 12px;
	border: 1px solid #d0d7de;
	border-radius: 10px;
	background: #f6f8fa;
}

.github-repo-dashboard-account img,
.github-repo-dashboard-avatar-placeholder {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	flex: 0 0 52px;
	background: #d0d7de;
}

.github-repo-dashboard-account span {
	display: block;
	font-size: 13px;
	opacity: 0.75;
}

.github-repo-dashboard-account strong {
	display: block;
	font-size: 18px;
	line-height: 1.2;
}

.github-repo-dashboard-account a {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
}



/* Keep wide cards responsive instead of forcing fixed two-column layout */
.github-repo-dashboard-wide-card {
	grid-column: auto;
}

@media (min-width: 900px) {
	.github-repo-dashboard-wide-card {
		grid-column: span 2;
	}
}

@media (max-width: 767px) {
	.github-repo-dashboard-account {
		align-items: flex-start;
	}

	.github-repo-dashboard-action-grid,
	.github-repo-dashboard-cache-grid,
	.github-repo-container {
		grid-template-columns: 1fr;
	}
}





.github-repo-dashboard-latest-url-card {
	word-break: break-word;
	overflow-wrap: anywhere;
}

.github-repo-dashboard-latest-url a {
	font-size: 13px;
	line-height: 1.4;
}

.github-dashboard-readme-status {
	margin: 8px 0;
	padding: 8px 10px;
	border-radius: 6px;
	background: #f6f8fa;
	border: 1px solid #d0d7de;
	font-size: 13px;
}

.github-dashboard-load-readme {
	margin-bottom: 8px;
}


.github-dashboard-file-delete-select {
	width: 100%;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 9px 10px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font-size: 14px;
	background: #ffffff;
}

.github-repo-dashboard-action-card[data-delete-type="delete_branch"] .github-dashboard-file-delete-select,
.github-repo-dashboard-action-card[data-delete-type="delete_repo"] .github-dashboard-file-delete-select {
	display: none;
}

.github-repo-dashboard-action-card[data-delete-type="delete_file"] .github-dashboard-branch-select {
	display: block;
}


/* Add repo/branch merged card */
.github-repo-dashboard-add-card[data-add-type="create_repo"] .github-dashboard-add-branch-fields {
	display: none;
}

.github-repo-dashboard-add-card[data-add-type="create_branch"] .github-dashboard-add-repo-fields {
	display: none;
}

.github-dashboard-add-type {
	width: 100%;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 9px 10px;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font-size: 14px;
	background: #ffffff;
}

/* README WYSIWYG-style editor */
.github-dashboard-wysiwyg-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0;
	padding: 8px;
	background: #f6f8fa;
	border: 1px solid #d0d7de;
	border-radius: 8px 8px 0 0;
}

.github-dashboard-wysiwyg-toolbar button {
	border: 1px solid #8c8f94;
	background: #ffffff;
	color: #1d2327;
	border-radius: 5px;
	padding: 6px 9px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.github-dashboard-readme-editor {
	height: 260px !important;
	max-height: 260px !important;
	overflow-y: auto !important;
	resize: vertical;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	line-height: 1.45;
	border-radius: 0 0 8px 8px !important;
}

.github-repo-dashboard-action-card .github-dashboard-file-content {
	max-height: 260px;
	overflow-y: auto;
}


.github-dashboard-field-label {
	display:block;
	font-size:13px;
	font-weight:600;
	margin:4px 0 6px;
}


/* Dashboard all repositories aligned like GitHub Tools */
.github-repo-dashboard-repositories-box {
	width: 100%;
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
	margin-top: 20px;
}

.github-repo-dashboard-repositories-box .github-repo-dashboard-repo-heading {
	margin: 0 0 16px;
	padding: 0;
}

.github-repo-dashboard-repositories-box .github-repo-dashboard-repo-heading h3 {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.2;
}

.github-repo-dashboard-repositories-box .github-repo-dashboard-repo-heading p {
	margin: 0;
	font-size: 15px;
	opacity: 0.8;
}

/* README edit modal */
.github-readme-modal-open {
	overflow: hidden;
}

.github-dashboard-readme-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.github-dashboard-readme-modal.is-open {
	display: block;
}

.github-dashboard-readme-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}

.github-dashboard-readme-modal-panel {
	position: relative;
	width: min(960px, calc(100vw - 28px));
	max-height: calc(100vh - 40px);
	margin: 20px auto;
	background: #ffffff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
}

.github-dashboard-readme-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #d0d7de;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.github-dashboard-readme-modal-header h4 {
	margin: 0;
	font-size: 20px;
}

.github-dashboard-readme-modal-close {
	border: 0;
	background: #f6f8fa;
	color: #1d2327;
	font-size: 26px;
	line-height: 1;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
}

.github-dashboard-readme-modal-note {
	margin: 0 0 10px;
	font-size: 14px;
	opacity: 0.8;
}

.github-dashboard-readme-modal-editor {
	min-height: 360px !important;
	height: min(55vh, 520px) !important;
	max-height: 60vh !important;
	overflow-y: auto !important;
	width: 100%;
	resize: vertical;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	line-height: 1.5;
	border: 1px solid #8c8f94;
	border-radius: 0 0 8px 8px;
	padding: 12px;
}

.github-dashboard-readme-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.github-dashboard-readme-modal-close-button {
	border: 1px solid #8c8f94;
	background: #ffffff;
	color: #1d2327;
	border-radius: 8px;
	padding: 11px 16px;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 767px) {
	.github-repo-dashboard-repositories-box {
		padding: 14px;
	}

	.github-dashboard-readme-modal-panel {
		width: calc(100vw - 16px);
		margin: 8px auto;
		max-height: calc(100vh - 16px);
	}

	.github-dashboard-readme-modal-editor {
		height: 58vh !important;
		min-height: 260px !important;
	}

	.github-dashboard-readme-modal-actions button,
	.github-dashboard-readme-modal-actions .repo-button {
		width: 100%;
		text-align: center;
	}
}


/* Repo cards aligned inside GitHub Tools-style container */
.github-repo-dashboard-repositories-box {
	width: 100%;
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
	margin-top: 20px;
	box-sizing: border-box;
}

.github-repo-dashboard-repositories-box .github-repo-container {
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.github-repo-dashboard-repositories-box .repo-card {
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

/* Add branch/select repo visibility fix */
.github-repo-dashboard-add-card[data-add-type="create_repo"] .github-dashboard-add-branch-fields {
	display: none !important;
}

.github-repo-dashboard-add-card[data-add-type="create_branch"] .github-dashboard-add-branch-fields {
	display: block !important;
}

.github-repo-dashboard-add-card[data-add-type="create_branch"] .github-dashboard-add-repo-fields {
	display: none !important;
}

/* README popup editor */
.github-readme-modal-open {
	overflow: hidden;
}

.github-dashboard-readme-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.github-dashboard-readme-modal.is-open {
	display: block;
}

.github-dashboard-readme-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}

.github-dashboard-readme-modal-panel {
	position: relative;
	width: min(960px, calc(100vw - 28px));
	max-height: calc(100vh - 40px);
	margin: 20px auto;
	background: #ffffff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
}

.github-dashboard-readme-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #d0d7de;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.github-dashboard-readme-modal-header h4 {
	margin: 0;
	font-size: 20px;
}

.github-dashboard-readme-modal-close {
	border: 0;
	background: #f6f8fa;
	color: #1d2327;
	font-size: 26px;
	line-height: 1;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
}

.github-dashboard-readme-modal-note {
	margin: 0 0 10px;
	font-size: 14px;
	opacity: 0.8;
}

.github-dashboard-readme-modal-editor {
	min-height: 360px !important;
	height: min(55vh, 520px) !important;
	max-height: 60vh !important;
	overflow-y: auto !important;
	width: 100%;
	resize: vertical;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	line-height: 1.5;
	border: 1px solid #8c8f94;
	border-radius: 0 0 8px 8px;
	padding: 12px;
	box-sizing: border-box;
}

.github-dashboard-readme-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.github-dashboard-readme-modal-close-button {
	border: 1px solid #8c8f94;
	background: #ffffff;
	color: #1d2327;
	border-radius: 8px;
	padding: 11px 16px;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 767px) {
	.github-repo-dashboard-repositories-box {
		padding: 14px;
	}

	.github-dashboard-readme-modal-panel {
		width: calc(100vw - 16px);
		margin: 8px auto;
		max-height: calc(100vh - 16px);
	}

	.github-dashboard-readme-modal-editor {
		height: 58vh !important;
		min-height: 260px !important;
	}

	.github-dashboard-readme-modal-actions button,
	.github-dashboard-readme-modal-actions .repo-button {
		width: 100%;
		text-align: center;
	}
}

/* Standalone CM front-end dashboard integration */
.github-repo-dashboard-integration {
	width: 100%;
	box-sizing: border-box;
}

.github-repo-dashboard-integration-title {
	margin-bottom: 18px;
}

.github-repo-dashboard-integration-title h2 {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.2;
}

.github-repo-dashboard-integration-title p {
	margin: 0;
	color: #646970;
}

.github-repo-dashboard-settings-panel {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 20px;
	box-sizing: border-box;
}

.github-repo-dashboard-settings-form {
	display: grid;
	gap: 10px;
	margin: 18px 0;
}

.github-repo-dashboard-settings-form input[type="password"] {
	width: 100%;
	max-width: 760px;
	box-sizing: border-box;
	border: 1px solid #8c8f94;
	border-radius: 8px;
	padding: 10px 12px;
	min-height: 42px;
	background: #fff;
	color: #1d2327;
}

.github-repo-dashboard-help {
	margin: 0;
	font-size: 13px;
	color: #646970;
}

.github-repo-dashboard-clear-token {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.github-repo-dashboard-settings-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.github-repo-dashboard-settings-actions .repo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.github-repo-dashboard-settings-actions .repo-secondary-button {
	background: #fff;
	color: #1d2327;
	border: 1px solid #8c8f94;
}

.github-repo-dashboard-settings-cache {
	margin-top: 16px;
}

.github-repo-dashboard-settings-panel > .github-repo-dashboard-update-button {
	margin-top: 14px;
}

@media (max-width: 767px) {
	.github-repo-dashboard-settings-panel {
		padding: 14px;
	}

	.github-repo-dashboard-settings-actions .repo-button,
	.github-repo-dashboard-settings-panel > .github-repo-dashboard-update-button {
		width: 100%;
		text-align: center;
	}
}

/* v1.0.30.75 - nested GitHub Content tabs + internal dashboard viewer */
.github-content-subtabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-bottom: 1px solid #d0d7de;
	margin: 0 0 16px;
	padding: 0 2px;
}

.github-content-subtab {
	appearance: none;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: #4b5563;
	font-weight: 700;
	font-size: 15px;
	padding: 11px 16px 10px;
	cursor: pointer;
	white-space: nowrap;
	border-radius: 0;
}

.github-content-subtab:hover,
.github-content-subtab:focus-visible {
	color: #1d4ed8;
	background: #f6f8fa;
}

.github-content-subtab.is-active {
	color: #2563eb;
	border-bottom-color: #2563eb;
	background: #fff;
}

.github-content-tool-panel[hidden] {
	display: none !important;
}

.github-content-tool-panel.is-active {
	display: block;
}

.github-content-tool-panel > .github-repo-dashboard-action-card,
.github-content-tool-panel > .github-repo-dashboard-action-grid {
	margin: 0;
}

.github-dashboard-internal-url {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	color: #0969da;
	text-decoration: underline;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	word-break: break-word;
}

.github-dashboard-internal-url:hover,
.github-dashboard-internal-url:focus-visible {
	color: #0550ae;
}

.github-dashboard-internal-view {
	margin-top: 18px;
	border: 1px solid #d0d7de;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.github-dashboard-internal-view[hidden] {
	display: none !important;
}

.github-dashboard-internal-view-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #d0d7de;
	background: #f6f8fa;
}

.github-dashboard-internal-view-title {
	display: block;
	font-size: 16px;
	line-height: 1.3;
	word-break: break-word;
}

.github-dashboard-internal-view-close {
	appearance: none;
	border: 1px solid #8c8f94;
	border-radius: 7px;
	background: #fff;
	color: #1f2328;
	padding: 8px 11px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.github-dashboard-internal-view-content {
	padding: 14px;
}

.github-dashboard-internal-loading,
.github-dashboard-internal-result-note {
	padding: 14px;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	background: #f6f8fa;
}

.github-dashboard-internal-result-note p {
	margin: 8px 0 0;
}

@media (max-width: 768px) {
	.github-content-subtabs {
		margin-left: -2px;
		margin-right: -2px;
	}

	.github-content-subtab {
		width: auto !important;
		min-width: max-content;
		margin: 0 !important;
		padding: 10px 14px !important;
		font-size: 13px !important;
	}

	.github-dashboard-internal-view-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.github-dashboard-internal-view-close {
		width: 100%;
	}

	.github-dashboard-internal-view-content {
		padding: 8px;
	}
}
