/**
 * Admin styling for CodeBold Redirects.
 *
 * Every selector is prefixed — .cbr- for the screen, .codebold-redirect-box for the
 * editor sidebar, .cbr-widget for the dashboard. A plugin that styles bare .card,
 * .button or .form-table redecorates screens belonging to other people.
 *
 * Colours are WordPress's own admin palette, so the screen looks like part of the
 * dashboard rather than something bolted onto it.
 */

.cbr-app {
	--cbr-blue: #2271b1;
	--cbr-blue-dark: #135e96;
	--cbr-blue-soft: #f0f6fc;
	--cbr-text: #1d2327;
	--cbr-muted: #646970;
	--cbr-border: #dcdcde;
	--cbr-border-soft: #f0f0f1;
	--cbr-surface: #fff;
	--cbr-green: #00a32a;
	--cbr-green-soft: #edfaef;
	--cbr-amber: #996800;
	--cbr-amber-soft: #fcf9e8;
	--cbr-red: #d63638;
	--cbr-red-soft: #fcf0f1;
	--cbr-radius: 8px;

	max-width: 1280px;
	margin-top: 12px;
	color: var(--cbr-text);
}

.cbr-boot {
	color: #646970;
}

/* Several pieces here set their own display, which would otherwise beat the browser's
   rule for [hidden] and leave an empty box on the screen. */
.cbr-app [hidden] {
	display: none !important;
}

.cbr-muted {
	color: var(--cbr-muted);
}

.cbr-small {
	font-size: 12px;
}

.cbr-danger {
	color: var(--cbr-red) !important;
}

/* ------------------------------------------------------------------ tabs */

.cbr-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--cbr-border);
}

.cbr-tab {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-bottom: -1px;
	padding: 10px 14px;
	border-bottom: 3px solid transparent;
	color: var(--cbr-muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.cbr-tab:hover,
.cbr-tab:focus {
	color: var(--cbr-text);
	box-shadow: none;
}

.cbr-tab.is-active {
	border-bottom-color: var(--cbr-blue);
	color: var(--cbr-text);
	font-weight: 600;
}

.cbr-tab-count {
	min-width: 20px;
	padding: 1px 7px;
	border-radius: 10px;
	background: var(--cbr-border-soft);
	color: #50575e;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.cbr-tab-count.is-alert {
	background: var(--cbr-red);
	color: #fff;
}

/* ------------------------------------------------------------------ cards */

.cbr-card {
	margin-bottom: 20px;
	padding: 20px 22px;
	border: 1px solid var(--cbr-border);
	border-radius: var(--cbr-radius);
	background: var(--cbr-surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.cbr-card h3 {
	margin: 0 0 10px;
	font-size: 14px;
}

.cbr-card-title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-size: 16px !important;
}

.cbr-card-add {
	border-top: 3px solid var(--cbr-blue);
}

.cbr-card.is-highlighted {
	animation: cbr-glow 1.6s ease-out 1;
}

@keyframes cbr-glow {
	0% { box-shadow: 0 0 0 4px rgba(34, 113, 177, .35); }
	100% { box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
}

.cbr-columns {
	display: grid;
	grid-template-columns: minmax( 0, 3fr ) minmax( 0, 2fr );
	gap: 20px;
	align-items: start;
}

.cbr-intro {
	max-width: 760px;
	margin: -4px 0 16px;
	color: var(--cbr-muted);
	font-size: 13px;
}

/* ------------------------------------------------------------------ banners */

.cbr-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
	padding: 12px 16px;
	border: 1px solid var(--cbr-border);
	border-left-width: 4px;
	border-radius: 4px;
	background: var(--cbr-surface);
}

.cbr-banner-text {
	flex: 1 1 280px;
}

.cbr-banner.is-info {
	border-left-color: var(--cbr-blue);
	background: var(--cbr-blue-soft);
}

.cbr-banner.is-warning {
	border-left-color: #dba617;
	background: var(--cbr-amber-soft);
}

.cbr-banner.is-error {
	border-left-color: var(--cbr-red);
	background: var(--cbr-red-soft);
}

.cbr-banner .dashicons {
	color: var(--cbr-blue);
}

/* ------------------------------------------------------------------ inputs */

.cbr-app .cbr-input,
.cbr-app .cbr-select {
	width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.cbr-app .cbr-select {
	width: auto;
	max-width: 100%;
	height: 36px;
	padding-right: 28px;
	line-height: 1.4;
}

.cbr-app .cbr-input:focus,
.cbr-app .cbr-select:focus {
	border-color: var(--cbr-blue);
	box-shadow: 0 0 0 1px var(--cbr-blue);
	outline: none;
}

.cbr-app .cbr-input-sm {
	width: auto;
	min-width: 160px;
	min-height: 30px;
	font-size: 13px;
}

.cbr-app .cbr-input-lg {
	min-height: 42px;
	font-size: 15px;
}

.cbr-app .cbr-input-num {
	width: 90px;
}

.cbr-textarea {
	font-family: Consolas, Monaco, monospace;
	font-size: 13px !important;
	line-height: 1.5;
}

.cbr-label {
	display: block;
	margin-bottom: 4px;
	color: var(--cbr-muted);
	font-size: 12px;
	font-weight: 600;
}

.cbr-field {
	display: block;
	min-width: 0;
}

.cbr-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

.cbr-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 6px 0;
	line-height: 1.5;
}

.cbr-check input {
	margin-top: 3px !important;
}

/* ------------------------------------------------------------------ the form */

.cbr-form-main {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto minmax( 0, 1.3fr ) auto auto;
	gap: 10px;
	align-items: end;
}

.cbr-arrow {
	padding-bottom: 8px;
	color: var(--cbr-muted);
	font-size: 18px;
}

.cbr-source {
	font-family: Consolas, Monaco, monospace !important;
}

.cbr-field-submit .button {
	min-height: 36px;
	padding: 0 16px;
}

.cbr-app .cbr-field-code .cbr-select {
	height: 36px;
	min-height: 36px;
	line-height: 1.5;
}

.cbr-submit.is-busy {
	opacity: .7;
	cursor: progress;
}

.cbr-gone-note {
	padding: 8px 10px;
	border-radius: 4px;
	background: var(--cbr-border-soft);
	color: var(--cbr-muted);
	font-size: 13px;
}

.cbr-form-footer {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 10px;
}

.cbr-more {
	display: inline-flex;
	gap: 8px;
	align-items: baseline;
	font-weight: 600;
	text-decoration: none !important;
}

.cbr-more::before {
	content: "▸";
	display: inline-block;
	transition: transform .15s;
}

.cbr-more[aria-expanded="true"]::before {
	transform: rotate( 90deg );
}

.cbr-more-hint {
	color: var(--cbr-muted);
	font-weight: 400;
	font-size: 12px;
}

.cbr-advanced {
	margin-top: 14px;
	padding-top: 16px;
	border-top: 1px solid var(--cbr-border-soft);
}

.cbr-advanced-grid {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 18px 28px;
}

.cbr-section h4 {
	margin: 0 0 10px;
	color: var(--cbr-text);
	font-size: 13px;
}

.cbr-section-wide {
	grid-column: 1 / -1;
}

.cbr-match {
	display: grid;
	gap: 8px;
}

.cbr-match-card {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border: 1px solid var(--cbr-border);
	border-radius: 6px;
	background: var(--cbr-surface);
	color: var(--cbr-text);
	text-align: left;
	cursor: pointer;
}

.cbr-match-card span {
	color: var(--cbr-muted);
	font-size: 12px;
}

.cbr-match-card:hover {
	border-color: #8c8f94;
}

.cbr-match-card.is-selected {
	border-color: var(--cbr-blue);
	background: var(--cbr-blue-soft);
	box-shadow: 0 0 0 1px var(--cbr-blue);
}

/* ------------------------------------------------------------------ messages */

.cbr-messages:empty {
	display: none;
}

.cbr-messages {
	display: grid;
	gap: 6px;
	margin-top: 10px;
}

.cbr-message {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
}

.cbr-message .dashicons {
	flex: 0 0 auto;
	font-size: 18px;
}

.cbr-message > span:nth-child(2) {
	flex: 1 1 300px;
}

.cbr-message.is-error {
	background: var(--cbr-red-soft);
	color: #8a2424;
}

.cbr-message.is-warning {
	background: var(--cbr-amber-soft);
	color: #6b4f00;
}

/* ------------------------------------------------------------------ suggestions */

.cbr-suggest {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: 10px;
}

.cbr-suggest-label {
	color: var(--cbr-muted);
	font-size: 12px;
}

.cbr-suggest-chip {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	max-width: 100%;
	padding: 4px 10px;
	border: 1px solid var(--cbr-border);
	border-radius: 14px;
	background: var(--cbr-surface);
	color: var(--cbr-text);
	font-size: 12px;
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cbr-suggest-chip:hover {
	border-color: var(--cbr-blue);
	color: var(--cbr-blue);
}

.cbr-suggest-chip.is-fix {
	border-color: #b8e6bf;
	background: var(--cbr-green-soft);
}

.cbr-suggest-chip.is-fix .dashicons {
	width: 16px;
	height: 16px;
	color: var(--cbr-green);
	font-size: 16px;
}

.cbr-score {
	color: var(--cbr-muted);
	font-size: 11px;
}

.cbr-skeleton {
	display: inline-block;
	width: 120px;
	height: 12px;
	border-radius: 6px;
	background: linear-gradient( 90deg, #f0f0f1, #e2e4e7, #f0f0f1 );
	background-size: 200% 100%;
	animation: cbr-shimmer 1.2s infinite linear;
}

@keyframes cbr-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

/* ------------------------------------------------------------------ the picker */

.cbr-picker {
	position: relative;
}

.cbr-picker-list {
	position: absolute;
	z-index: 50;
	top: calc( 100% + 4px );
	right: 0;
	left: 0;
	max-height: 320px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	border: 1px solid var(--cbr-border);
	border-radius: 6px;
	background: var(--cbr-surface);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	list-style: none;
}

.cbr-picker-item {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 7px 10px;
	border-radius: 4px;
	cursor: pointer;
}

.cbr-picker-item.is-active,
.cbr-picker-item:hover {
	background: var(--cbr-blue-soft);
}

.cbr-picker-title {
	font-weight: 600;
}

.cbr-picker-meta {
	color: var(--cbr-muted);
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Exactly the height of the input it replaces, on one line, so picking a page never moves
   the labels or the button beside it. What "linked" means is in its tooltip and read out
   to screen readers. */
.cbr-picker-chip {
	display: flex;
	gap: 8px;
	align-items: center;
	height: 36px;
	padding: 0 4px 0 10px;
	border: 1px solid var(--cbr-blue);
	border-radius: 4px;
	background: var(--cbr-blue-soft);
	box-sizing: border-box;
}

.cbr-picker-chip .dashicons {
	flex: 0 0 auto;
	color: var(--cbr-blue);
}

.cbr-picker-chip-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cbr-picker-chip-path {
	color: var(--cbr-muted);
	font-size: 12px;
}

.cbr-picker-chip-clear {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 13px;
	background: transparent;
	color: var(--cbr-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.cbr-picker-chip-clear:hover {
	background: #fff;
	color: var(--cbr-red);
}

/* ------------------------------------------------------------------ conditions */

.cbr-conditions {
	display: grid;
	gap: 8px;
}

.cbr-condition {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 8px 10px;
	border: 1px solid var(--cbr-border);
	border-radius: 6px;
	background: #f6f7f7;
}

.cbr-condition-type {
	min-width: 120px;
	font-weight: 600;
}

.cbr-condition-pair {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cbr-app .cbr-condition .cbr-select,
.cbr-app .cbr-condition .cbr-input-sm {
	height: 30px;
	min-height: 30px;
	font-size: 13px;
}

.cbr-condition-remove {
	margin-left: auto !important;
	color: var(--cbr-red) !important;
}

.cbr-app .cbr-condition-add {
	justify-self: start;
	border-style: dashed;
	color: var(--cbr-blue);
}

.cbr-help {
	display: inline-grid;
	width: 18px;
	height: 18px;
	place-items: center;
	border-radius: 9px;
	background: var(--cbr-border);
	color: var(--cbr-muted);
	font-size: 11px;
	font-weight: 700;
	cursor: help;
}

/* ------------------------------------------------------------------ toolbar */

.cbr-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.cbr-toolbar-right {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.cbr-app .cbr-search {
	width: 280px;
}

.cbr-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cbr-pill {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 5px 12px;
	border: 1px solid var(--cbr-border);
	border-radius: 16px;
	background: var(--cbr-surface);
	color: var(--cbr-text);
	font-size: 13px;
	cursor: pointer;
}

.cbr-pill:hover {
	border-color: #8c8f94;
}

.cbr-pill.is-active {
	border-color: var(--cbr-text);
	background: var(--cbr-text);
	color: #fff;
}

.cbr-pill-count {
	color: var(--cbr-muted);
	font-size: 12px;
}

.cbr-pill.is-active .cbr-pill-count {
	color: #c3c4c7;
}

.cbr-pill.is-alert:not(.is-active) {
	border-color: #f0b8b9;
	color: #8a2424;
}

.cbr-bulk {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--cbr-blue-soft);
}

/* ------------------------------------------------------------------ table */

.cbr-table-wrap.is-loading {
	opacity: .55;
	transition: opacity .15s;
}

.cbr-app .cbr-table {
	border-radius: var(--cbr-radius);
	border-color: var(--cbr-border);
	overflow: hidden;
}

.cbr-app .cbr-table td,
.cbr-app .cbr-table th {
	vertical-align: top;
	padding-top: 12px;
	padding-bottom: 12px;
}

.cbr-app .cbr-table thead th,
.cbr-app .cbr-table thead td {
	padding-top: 8px;
	padding-bottom: 8px;
	font-weight: 600;
}

.cbr-app .cbr-table .cbr-check-column {
	width: 2.2em;
	padding: 12px 0 0 10px;
}

.cbr-app .cbr-table thead .cbr-check-column {
	padding-top: 9px;
}

.cbr-app .cbr-table tbody tr:hover {
	background: #f6f7f7;
}

/* Off is shown by the "Off" chip and the switch, and by a quieter colour — never by fading
   the text, which drops it below a readable contrast. #50575e on white is 7:1. */
.cbr-app .cbr-table tr.is-off .cbr-code,
.cbr-app .cbr-table tr.is-off .cbr-target-url,
.cbr-app .cbr-table tr.is-off .cbr-target-title {
	color: #50575e;
}

.cbr-app .cbr-table tr.is-leaving {
	opacity: .3;
	transition: opacity .2s;
}

.cbr-app .cbr-table tr.is-editing {
	background: var(--cbr-blue-soft);
}

.cbr-edit-row > td {
	padding: 4px 18px 18px !important;
	background: var(--cbr-blue-soft);
}

.cbr-sortable button {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.cbr-sort-arrow {
	font-size: 9px;
}

.cbr-cell-source {
	width: 34%;
}

.cbr-cell-target {
	width: 32%;
}

.cbr-cell-num {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cbr-cell-date,
.cbr-cell-referrer {
	color: var(--cbr-muted);
}

.cbr-cell-referrer a {
	display: inline-block;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.cbr-cell-switch {
	width: 52px;
	text-align: center;
}

.cbr-source-line {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.cbr-code {
	padding: 2px 6px;
	border-radius: 4px;
	background: #f6f7f7;
	color: var(--cbr-text);
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	word-break: break-all;
	text-decoration: none;
}

a.cbr-code:hover {
	background: var(--cbr-blue-soft);
	color: var(--cbr-blue);
}

.cbr-meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin-top: 6px;
}

.cbr-meta-line:empty {
	display: none;
}

.cbr-note {
	color: var(--cbr-muted);
	font-size: 12px;
	font-style: italic;
}

.cbr-row-actions {
	position: static !important;
	margin-top: 4px;
	color: var(--cbr-border);
}

.cbr-row-actions .button-link {
	font-size: 13px;
	text-decoration: none;
}

.cbr-target-title {
	display: block;
	margin-bottom: 2px;
}

.cbr-target-url {
	color: var(--cbr-muted);
	font-size: 13px;
	word-break: break-all;
	text-decoration: none;
}

.cbr-target-url:hover {
	color: var(--cbr-blue);
}

.cbr-chip {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	background: var(--cbr-border-soft);
	color: #50575e;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}

.cbr-chip.is-match {
	background: #f0e6fb;
	color: #5b2a86;
}

.cbr-chip.is-condition,
.cbr-chip.is-schedule {
	background: var(--cbr-amber-soft);
	color: #6b4f00;
}

.cbr-chip.is-origin-auto,
.cbr-chip.is-origin-trash,
.cbr-chip.is-origin-post {
	background: var(--cbr-green-soft);
	color: #005c12;
}

.cbr-chip.is-group {
	background: var(--cbr-blue-soft);
	color: var(--cbr-blue-dark);
}

.cbr-chip.is-alert {
	display: block;
	margin-top: 6px;
	background: var(--cbr-red-soft);
	color: #8a2424;
	white-space: normal;
}

.cbr-chip.is-bot {
	background: #f6f7f7;
	color: var(--cbr-muted);
}

.cbr-code-badge {
	display: inline-block;
	min-width: 34px;
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--cbr-blue-soft);
	color: var(--cbr-blue-dark);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.cbr-code-badge.is-302,
.cbr-code-badge.is-307 {
	background: var(--cbr-amber-soft);
	color: #6b4f00;
}

.cbr-code-badge.is-410,
.cbr-code-badge.is-451,
.cbr-code-badge.is-404,
.cbr-code-badge.is-500 {
	background: var(--cbr-red-soft);
	color: #8a2424;
}

.cbr-code-badge.is-200 {
	background: var(--cbr-green-soft);
	color: #005c12;
}

/* The on/off switch. A button with role="switch", so it is one press for a keyboard
   and is announced as on or off rather than as a checkbox in a table cell. */
.cbr-switch {
	position: relative;
	width: 36px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #c3c4c7;
	cursor: pointer;
	transition: background .15s;
}

.cbr-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	transition: transform .15s;
}

.cbr-switch.is-on {
	background: var(--cbr-green);
}

.cbr-switch.is-on::after {
	transform: translateX( 16px );
}

.cbr-switch:focus-visible {
	outline: 2px solid var(--cbr-blue);
	outline-offset: 2px;
}

.cbr-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 10px;
}

.cbr-pager:empty {
	display: none;
}

/* ------------------------------------------------------------------ empty states */

.cbr-empty {
	padding: 28px;
	border: 1px dashed var(--cbr-border);
	border-radius: var(--cbr-radius);
	background: var(--cbr-surface);
	text-align: center;
}

.cbr-empty-first {
	padding: 44px 28px;
}

.cbr-empty-first .dashicons {
	width: 40px;
	height: 40px;
	color: var(--cbr-blue);
	font-size: 40px;
}

.cbr-empty h3 {
	margin: 10px 0 6px;
	font-size: 16px;
}

.cbr-empty p {
	max-width: 560px;
	margin: 6px auto;
	color: var(--cbr-muted);
}

/* ------------------------------------------------------------------ tester */

.cbr-test-form {
	display: flex;
	gap: 8px;
	margin: 12px 0;
}

.cbr-test-form .button {
	min-height: 42px;
	padding: 0 20px;
}

.cbr-visitor summary {
	color: var(--cbr-blue);
	font-weight: 600;
	cursor: pointer;
}

.cbr-visitor-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 10px 18px;
	align-items: end;
	margin-top: 12px;
}

.cbr-verdict {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 20px;
	padding: 18px 20px;
	border: 1px solid var(--cbr-border);
	border-left-width: 4px;
	border-radius: var(--cbr-radius);
	background: var(--cbr-surface);
	font-size: 14px;
}

.cbr-verdict p {
	margin: 4px 0 0;
}

.cbr-verdict.is-redirect {
	border-left-color: var(--cbr-blue);
}

.cbr-verdict.is-none {
	border-left-color: var(--cbr-green);
}

.cbr-verdict.is-answer,
.cbr-verdict.is-loop {
	border-left-color: var(--cbr-red);
}

.cbr-verdict .dashicons {
	color: var(--cbr-green);
}

.cbr-verdict.is-loop .dashicons {
	color: var(--cbr-red);
}

.cbr-verdict .cbr-code-badge {
	padding: 6px 10px;
	font-size: 15px;
}

.cbr-verdict-url {
	display: block;
	margin-top: 2px;
	font-family: Consolas, Monaco, monospace;
	font-size: 15px;
	word-break: break-all;
}

.cbr-chain {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hop;
}

.cbr-chain li {
	position: relative;
	margin: 0;
	padding: 6px 0 6px 28px;
	word-break: break-all;
}

.cbr-chain li::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 9px;
	border-left: 2px solid var(--cbr-border);
}

.cbr-chain li::after {
	content: "";
	position: absolute;
	top: 13px;
	left: 5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--cbr-blue);
}

.cbr-chain li:first-child::before {
	top: 14px;
}

.cbr-chain li:last-child::before {
	bottom: calc( 100% - 14px );
}

.cbr-why {
	margin: 10px 0 0;
}

.cbr-why > li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	padding: 8px 0;
	border-top: 1px solid var(--cbr-border-soft);
}

.cbr-why > li.is-matched {
	color: #005c12;
}

.cbr-why-conditions {
	flex-basis: 100%;
	margin: 4px 0 0 18px;
}

.cbr-why-conditions .is-pass {
	color: #005c12;
}

.cbr-why-conditions .is-fail {
	color: #8a2424;
}

.cbr-details summary {
	font-weight: 600;
	cursor: pointer;
}

.cbr-live {
	margin-top: 4px;
}

/* ------------------------------------------------------------------ import & export */

.cbr-sources {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 10px;
	margin-bottom: 20px;
}

.cbr-source-card {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid var(--cbr-border);
	border-radius: 6px;
	background: var(--cbr-blue-soft);
	text-align: left;
	cursor: pointer;
}

.cbr-source-card:hover {
	border-color: var(--cbr-blue);
}

.cbr-source-card span {
	color: var(--cbr-muted);
	font-size: 12px;
}

.cbr-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	padding: 26px 16px;
	border: 2px dashed var(--cbr-border);
	border-radius: var(--cbr-radius);
	background: #f6f7f7;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.cbr-drop:hover,
.cbr-drop.is-over {
	border-color: var(--cbr-blue);
	background: var(--cbr-blue-soft);
}

.cbr-drop .dashicons {
	width: 32px;
	height: 32px;
	color: var(--cbr-blue);
	font-size: 32px;
}

.cbr-file {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.cbr-or {
	margin: 12px 0 6px;
	color: var(--cbr-muted);
	font-size: 12px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.cbr-preview-wrap {
	max-height: 340px;
	margin-bottom: 14px;
	overflow: auto;
	border: 1px solid var(--cbr-border);
	border-radius: 6px;
}

.cbr-app .cbr-preview {
	border: 0;
}

.cbr-preview code {
	font-size: 12px;
	word-break: break-all;
}

.cbr-problems {
	max-height: 240px;
	margin: 8px 0 0;
	overflow: auto;
	font-size: 13px;
}

.cbr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.cbr-progress {
	height: 10px;
	margin: 6px 0 8px;
	border-radius: 5px;
	background: var(--cbr-border-soft);
	overflow: hidden;
}

.cbr-progress-bar {
	width: 0;
	height: 100%;
	background: var(--cbr-blue);
	transition: width .3s;
}

.cbr-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
}

.cbr-summary li {
	margin: 0;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--cbr-border-soft);
}

.cbr-summary li strong {
	font-size: 18px;
}

.cbr-summary li.is-good {
	background: var(--cbr-green-soft);
}

.cbr-summary li.is-bad {
	background: var(--cbr-red-soft);
}

.cbr-card > .cbr-field + .button {
	margin-top: 14px;
}

.cbr-radios {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
}

.cbr-radio {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid var(--cbr-border);
	border-radius: 6px;
	cursor: pointer;
}

.cbr-radio:has( input:checked ) {
	border-color: var(--cbr-blue);
	background: var(--cbr-blue-soft);
}

.cbr-radio input {
	margin-top: 3px !important;
}

.cbr-radio > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cbr-radio .cbr-muted {
	font-size: 12px;
}

/* ------------------------------------------------------------------ settings */

.cbr-settings {
	max-width: 900px;
}

.cbr-setting {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-top: 1px solid var(--cbr-border-soft);
}

.cbr-card-title + .cbr-setting {
	border-top: 0;
	padding-top: 0;
}

.cbr-setting.is-sub {
	padding-left: 24px;
}

.cbr-setting.is-stacked {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.cbr-setting-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	max-width: 620px;
}

.cbr-setting-text .cbr-muted {
	font-size: 13px;
	line-height: 1.5;
}

.cbr-type-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	justify-content: flex-end;
}

/* A checkbox drawn as a switch. Still a real checkbox underneath, so it keeps every
   bit of keyboard and screen reader behaviour the browser gives one. */
.cbr-app input[type="checkbox"].cbr-toggle {
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 22px;
	margin: 0;
	border: 0;
	border-radius: 11px;
	background: #c3c4c7;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	transition: background .15s;
}

.cbr-app input[type="checkbox"].cbr-toggle::before {
	content: "" !important;
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	transition: transform .15s;
}

.cbr-app input[type="checkbox"].cbr-toggle:checked {
	background: var(--cbr-green);
}

.cbr-app input[type="checkbox"].cbr-toggle:checked::before {
	transform: translateX( 18px );
}

.cbr-app input[type="checkbox"].cbr-toggle:focus-visible {
	outline: 2px solid var(--cbr-blue);
	outline-offset: 2px;
}

.cbr-sticky-save {
	position: sticky;
	z-index: 10;
	bottom: 0;
	padding: 12px 0;
	background: linear-gradient( to top, #f0f0f1 70%, rgba(240, 240, 241, 0) );
}

.cbr-sticky-save .button.is-dirty {
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .25);
}

/* ------------------------------------------------------------------ toasts */

.cbr-toasts {
	position: fixed;
	z-index: 100000;
	right: 20px;
	bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: min( 440px, calc( 100vw - 40px ) );
}

.cbr-toast {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 14px 12px 16px;
	border-radius: 6px;
	background: #1d2327;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	font-size: 13px;
	animation: cbr-in .18s ease-out;
}

.cbr-toast.is-error {
	background: #8a2424;
}

.cbr-toast.is-leaving {
	opacity: 0;
	transform: translateY( 6px );
	transition: opacity .2s, transform .2s;
}

.cbr-toast-text {
	flex: 1 1 auto;
}

.cbr-toast-action {
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.cbr-toast-action:hover {
	background: rgba(255, 255, 255, .12);
}

.cbr-toast-close {
	border: 0;
	background: transparent;
	color: #c3c4c7;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

@keyframes cbr-in {
	from { opacity: 0; transform: translateY( 8px ); }
	to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ narrow screens */

@media ( max-width: 1100px ) {
	.cbr-form-main {
		grid-template-columns: minmax( 0, 1fr ) auto minmax( 0, 1fr );
	}

	.cbr-field-code,
	.cbr-field-submit {
		grid-column: span 1;
	}

	.cbr-columns {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 782px ) {
	.cbr-form-main,
	.cbr-advanced-grid,
	.cbr-row {
		grid-template-columns: 1fr;
	}

	.cbr-arrow {
		display: none;
	}

	.cbr-app .cbr-search {
		width: 100%;
	}

	.cbr-toolbar-right {
		width: 100%;
	}

	.cbr-setting {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	/* The list becomes cards: each cell on its own line, labelled. */
	.cbr-app .cbr-table thead {
		display: none;
	}

	.cbr-app .cbr-table,
	.cbr-app .cbr-table tbody,
	.cbr-app .cbr-table tr,
	.cbr-app .cbr-table td,
	.cbr-app .cbr-table th {
		display: block;
		width: auto !important;
	}

	.cbr-app .cbr-table tr {
		position: relative;
		padding: 8px 0;
		border-bottom: 1px solid var(--cbr-border);
	}

	.cbr-app .cbr-table td,
	.cbr-app .cbr-table th {
		padding: 4px 14px 4px 44px !important;
		text-align: left;
	}

	/* WordPress's own list-table rules draw a label from data-colname in this same spot,
	   positioned absolutely and with more specific selectors — so these have to insist. */
	.cbr-app .cbr-table td[data-label]::before {
		content: attr(data-label) ": " !important;
		position: static !important;
		display: inline !important;
		width: auto !important;
		color: var(--cbr-muted);
		font-size: 12px;
		font-weight: 600;
	}

	.cbr-app .cbr-table td.cbr-cell-source::before {
		content: none !important;
	}

	.cbr-app .cbr-table .cbr-check-column {
		position: absolute;
		top: 10px;
		left: 0;
		padding: 0 0 0 12px !important;
	}

	.cbr-test-form {
		flex-direction: column;
	}
}

/* ------------------------------------------------------------------ editor box */

.codebold-redirect-box label {
	display: block;
	margin-bottom: 4px;
}

.codebold-redirect-box input[type="checkbox"] + span,
.codebold-redirect-box label input[type="checkbox"] {
	margin-right: 4px;
}

.codebold-redirect-box-heading {
	margin: 14px 0 4px;
}

.codebold-redirect-box-list {
	margin: 0;
}

.codebold-redirect-box-list li {
	display: flex;
	gap: 6px;
	justify-content: space-between;
	margin: 0;
	padding: 4px 0;
	border-bottom: 1px solid #f0f0f1;
}

.codebold-redirect-box-list code {
	font-size: 11px;
	word-break: break-all;
}

.codebold-redirect-box-hits {
	flex: 0 0 auto;
	color: #646970;
	font-size: 11px;
}

/* ------------------------------------------------------------------ dashboard */

.cbr-widget-stats {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 8px;
	margin: 0 0 14px;
}

.cbr-widget-stats li {
	margin: 0;
}

.cbr-widget-stats a {
	display: flex;
	flex-direction: column;
	padding: 10px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	color: #1d2327;
	text-decoration: none;
}

.cbr-widget-stats a:hover {
	border-color: #2271b1;
}

.cbr-widget-number {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.cbr-widget-label {
	color: #646970;
	font-size: 12px;
}

.cbr-widget-heading {
	margin: 0 0 6px;
	font-weight: 600;
}

.cbr-widget-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.cbr-widget-table td {
	padding: 6px 0;
	border-top: 1px solid #f0f0f1;
}

.cbr-widget-url code {
	display: block;
	overflow: hidden;
	background: transparent;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cbr-widget-hits {
	width: 50px;
	color: #646970;
	text-align: right;
}

.cbr-widget-fix {
	width: 40px;
	text-align: right;
}

.cbr-widget-empty {
	color: #00a32a;
}

.cbr-widget-warning a {
	color: #d63638;
}

.cbr-widget-footer {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ additions: form */

.cbr-field-hint {
	margin: 4px 0 0;
	color: #5b2a86;
	font-size: 12px;
}

.cbr-field-submit {
	display: flex;
	gap: 8px;
	align-items: center;
}

.cbr-label-row {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: space-between;
}

.cbr-counter {
	color: var(--cbr-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.cbr-counter.is-full {
	color: #8a2424;
	font-weight: 600;
}

.cbr-kept {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	color: #50575e;
	font-size: 12px;
}

.cbr-kept .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.cbr-form-footer {
	flex-wrap: wrap;
	justify-content: space-between;
}

/* The "?" help: a real button, its explanation a tooltip shown on hover and on focus. */
.cbr-help-wrap {
	position: relative;
	display: inline-flex;
}

.cbr-app .cbr-help {
	display: inline-grid;
	width: 20px;
	height: 20px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 10px;
	background: var(--cbr-border);
	color: #3c434a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
}

.cbr-app .cbr-help:focus-visible {
	outline: 2px solid var(--cbr-blue);
	outline-offset: 2px;
}

.cbr-tip {
	position: absolute;
	z-index: 60;
	bottom: calc( 100% + 8px );
	left: 50%;
	display: none;
	width: max-content;
	max-width: 260px;
	padding: 8px 10px;
	transform: translateX( -50% );
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	white-space: normal;
	text-align: left;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.cbr-help-wrap:hover .cbr-tip,
.cbr-help-wrap:focus-within .cbr-tip {
	display: block;
}

/* ------------------------------------------------------------------ additions: lists */

.cbr-hit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.cbr-chip.is-off-chip {
	background: #f0f0f1;
	color: #3c434a;
	font-weight: 600;
}

.cbr-sep {
	margin: 0 4px;
	color: var(--cbr-border);
}

.cbr-when {
	white-space: nowrap;
}

.cbr-filter-note {
	flex-basis: 100%;
	margin: 0;
}

.cbr-actions.is-centered {
	justify-content: center;
}

/* Stays in view while scrolling a long list with rows selected, just under the admin bar. */
.cbr-bulk-wrap.is-active {
	position: sticky;
	z-index: 20;
	top: 32px;
}

.cbr-bulk-wrap .cbr-bulk {
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.cbr-bulk-group {
	display: inline-flex;
}

.cbr-notices:empty {
	display: none;
}

/* ------------------------------------------------------------------ additions: tester, import */

.cbr-verdict.is-warning {
	border-left-color: #dba617;
	background: var(--cbr-amber-soft);
}

.cbr-verdict.is-warning .dashicons {
	color: #996800;
}

.cbr-verdict .button {
	margin-top: 8px;
}

.cbr-test-result.is-loading {
	opacity: .6;
	transition: opacity .15s;
}

.cbr-tech {
	margin-top: 8px;
	font-size: 12px;
}

.cbr-tech summary {
	color: var(--cbr-muted);
	cursor: pointer;
}

.cbr-tech code {
	display: block;
	margin-top: 6px;
	padding: 6px 8px;
	word-break: break-all;
}

.cbr-chip.is-status-ready {
	background: var(--cbr-green-soft);
	color: #005c12;
}

.cbr-chip.is-status-exists,
.cbr-chip.is-status-duplicate {
	background: var(--cbr-amber-soft);
	color: #6b4f00;
}

.cbr-chip.is-status-refused {
	background: var(--cbr-red-soft);
	color: #8a2424;
}

.cbr-preview-why {
	display: block;
	margin-top: 4px;
	color: #50575e;
	font-size: 12px;
}

.cbr-number-unit {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	white-space: nowrap;
}

.cbr-unit {
	color: #3c434a;
}

.cbr-sticky-save {
	display: flex;
	gap: 12px;
	align-items: center;
}

/* ------------------------------------------------------------------ additions: widths */

/* Tablets: the table, not phone cards. Some admin themes switch list tables to their own
   stacked layout well above 782px; this keeps ours a table until the phone breakpoint. */
@media ( min-width: 783px ) {
	.cbr-app .cbr-table {
		display: table !important;
	}

	.cbr-app .cbr-table thead {
		display: table-header-group !important;
	}

	.cbr-app .cbr-table tbody {
		display: table-row-group !important;
	}

	.cbr-app .cbr-table tr {
		display: table-row !important;
	}

	.cbr-app .cbr-table td,
	.cbr-app .cbr-table th {
		display: table-cell !important;
	}

	.cbr-app .cbr-table td::before {
		content: none !important;
	}
}

@media ( min-width: 783px ) and ( max-width: 1023px ) {
	.cbr-cell-referrer a {
		max-width: 140px;
	}

	.cbr-app .cbr-table td,
	.cbr-app .cbr-table th {
		padding-right: 6px;
		padding-left: 6px;
	}
}

/* Phones: every control at least 44 × 44 px to tap, by padding or a larger hit area —
   the visible size of the small ones stays as it was. */
@media ( max-width: 782px ) {
	.cbr-bulk-wrap.is-active {
		top: 46px;
	}

	.cbr-tab,
	.cbr-pill,
	.cbr-app .button,
	.cbr-app .cbr-select,
	.cbr-app .cbr-input,
	.cbr-suggest-chip,
	.cbr-toast-action,
	.cbr-match-card,
	.cbr-source-card {
		min-height: 44px;
	}

	.cbr-row-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 0;
	}

	.cbr-row-actions .button-link,
	.cbr-condition-remove,
	.cbr-more,
	.cbr-kept .button-link,
	.cbr-bulk .button-link {
		min-width: 44px;
		min-height: 44px;
		padding: 0 8px !important;
	}

	.cbr-row-actions .button-link:first-child {
		padding-left: 0 !important;
	}

	.cbr-sep {
		display: none;
	}

	.cbr-hit {
		min-width: 44px;
		min-height: 44px;
	}

	.cbr-app .cbr-table .cbr-check-column {
		top: 2px;
		padding: 0 !important;
	}

	.cbr-switch {
		margin: 12px 0;
	}

	.cbr-switch::before {
		content: "";
		position: absolute;
		inset: -12px -6px;
	}

	.cbr-picker-chip-clear,
	.cbr-toast-close {
		min-width: 44px;
		min-height: 44px;
	}

	.cbr-picker-item {
		min-height: 44px;
		justify-content: center;
	}

	.cbr-app .cbr-help {
		width: 28px;
		height: 28px;
		border-radius: 14px;
	}

	.cbr-help-wrap::before {
		content: "";
		position: absolute;
		inset: -8px;
	}

	.cbr-tip {
		right: auto;
		left: 0;
		transform: none;
	}

	.cbr-field-submit {
		flex-wrap: wrap;
	}

	.cbr-test-form .button {
		min-height: 44px;
	}
}

/* Checkboxes sit in a wrapper that is a comfortable target on phones; on wider screens it
   is just big enough to line the box up with the first line of its row. */
.cbr-app .cbr-table .cbr-check-column .cbr-hit {
	width: 24px;
	height: 24px;
}

.cbr-app .cbr-table .cbr-check-column .cbr-hit input {
	margin: 0;
}

.cbr-app .cbr-table tbody .cbr-check-column {
	padding: 10px 0 0 10px;
}

.cbr-app .cbr-table thead .cbr-check-column {
	padding: 6px 0 0 10px;
	vertical-align: middle;
}

@media ( max-width: 782px ) {
	.cbr-app .cbr-table .cbr-check-column .cbr-hit {
		width: 44px;
		height: 44px;
	}

	.cbr-app .cbr-table tbody .cbr-check-column,
	.cbr-app .cbr-table thead .cbr-check-column {
		padding: 0 !important;
	}
}

@media ( max-width: 782px ) {
	/* One row of tabs that scrolls sideways, rather than three rows of tall ones. The
	   page itself never scrolls sideways; only this strip does. */
	.cbr-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.cbr-tabs::-webkit-scrollbar {
		display: none;
	}

	.cbr-tab {
		flex: 0 0 auto;
		align-items: center;
		padding: 0 12px;
		white-space: nowrap;
	}

	.cbr-field-code .cbr-select,
	.cbr-bulk .cbr-select {
		width: 100%;
	}

	.cbr-more {
		flex-wrap: wrap;
		align-items: center;
	}
}

.cbr-app .cbr-table thead th {
	white-space: nowrap;
}

@media ( min-width: 783px ) and ( max-width: 1100px ) {
	.cbr-field-submit {
		grid-column: span 2;
	}
}

/* ------------------------------------------------------------------ editor box, again */

/* The box borrows the screen's styles (it carries .cbr-app) but not its page layout. */
.codebold-redirect-box.cbr-app {
	max-width: none;
	margin-top: 0;
}

.codebold-redirect-box select,
.codebold-redirect-box .cbr-input {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.codebold-redirect-box label {
	font-weight: 500;
}

.codebold-redirect-box .cbr-picker-list {
	right: auto;
	width: 100%;
	min-width: 220px;
}

/* ------------------------------------------------------------------ round 3 */

/* Tooltips: fixed to the window and placed by picker.js, so an open one can never stick
   out past the edge and widen the page. Shown only when opened. */
.cbr-app .cbr-tip {
	position: fixed;
	top: 0;
	bottom: auto;
	left: 0;
	display: none !important;
	max-width: min( 260px, calc( 100vw - 16px ) );
	transform: none;
}

.cbr-app .cbr-tip.is-open {
	display: block !important;
}

.cbr-app .cbr-help {
	position: relative;
}

.cbr-field-error {
	margin: 6px 0 0;
	color: #8a2424;
	font-size: 13px;
	font-weight: 500;
}

.cbr-field-error:empty {
	display: none;
}

.cbr-app [aria-invalid="true"] {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 1px #d63638;
}

/* The import preview: the two addresses take the room, and wrap only after a "/" or "-"
   (the <wbr> points), with breaking anywhere kept for one impossibly long word. */
.cbr-app .cbr-preview {
	table-layout: fixed;
	width: 100%;
}

.cbr-app .cbr-preview .cbr-col-line {
	width: 44px;
}

.cbr-app .cbr-preview .cbr-col-code {
	width: 52px;
}

.cbr-app .cbr-preview .cbr-col-status {
	width: 30%;
}

.cbr-breakable {
	overflow-wrap: anywhere;
	word-break: normal;
	white-space: normal;
}

/* The checkbox column: the same inset as the other cells, and the header box centred in
   its row rather than sitting on the header's bottom border. */
.cbr-app .cbr-table tbody .cbr-check-column {
	width: 34px;
	padding: 10px 0 10px 10px !important;
	vertical-align: top;
}

.cbr-app .cbr-table thead .cbr-check-column {
	width: 34px;
	padding: 0 0 0 10px !important;
	vertical-align: middle !important;
}

.cbr-app .cbr-table thead .cbr-check-column .cbr-hit {
	display: flex;
	height: 36px;
}

@media ( max-width: 782px ) {
	/* Tabs wrap onto two or three lines, every one in view, rather than scrolling off the
	   side with nothing to say they are there. */
	.cbr-tabs {
		flex-wrap: wrap;
		overflow: visible;
	}

	.cbr-tab {
		flex: 0 1 auto;
		padding: 0 12px;
		white-space: normal;
	}

	/* The "?" stays its size; a transparent layer round it makes it a 44 × 44 target. */
	.cbr-help-wrap::before {
		content: none;
	}

	.cbr-app .cbr-help::before {
		content: "";
		position: absolute;
		inset: -8px;
	}

	.cbr-app .cbr-preview .cbr-col-status {
		width: 34%;
	}

	.cbr-app .cbr-table tbody .cbr-check-column,
	.cbr-app .cbr-table thead .cbr-check-column {
		width: auto;
		padding: 0 !important;
	}
}

/* WordPress positions labels inside list-table checkbox cells absolutely, over the whole
   cell, which pinned ours to the table's left edge whatever the padding said. Ours stays in
   the flow; the top padding lines the box up with the address beside it. */
@media ( min-width: 783px ) {
	.cbr-app .cbr-table .check-column .cbr-hit {
		position: static !important;
		width: 24px;
		height: 24px;
	}

	.cbr-app .cbr-table tbody .cbr-check-column {
		padding: 14px 0 10px 10px !important;
	}
}

/* ==================================================================== 0.1.2 refresh
 *
 * Presentation only: a calmer, more compact screen on the same markup's meaning. The
 * tokens below are the whole visual language — spacing, radii, one shadow, five type
 * sizes and the status colours — and the accent follows the person's admin colour scheme.
 * ================================================================================= */

.cbr-app,
.cbr-menu,
.cbr-toasts {
	--cbr-accent: var(--wp-admin-theme-color, #3858e9);
	--cbr-accent-soft: #f0f4ff;
	--cbr-success: #00a32a;
	--cbr-warning: #dba617;
	--cbr-error: #d63638;

	--cbr-space-1: 4px;
	--cbr-space-2: 8px;
	--cbr-space-3: 12px;
	--cbr-space-4: 16px;
	--cbr-space-5: 24px;
	--cbr-space-6: 32px;

	--cbr-radius-sm: 6px;
	--cbr-radius: 10px;
	--cbr-radius-pill: 999px;

	--cbr-border-card: #e2e4e7;
	--cbr-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);

	--cbr-fs-xs: 12px;
	--cbr-fs-sm: 13px;
	--cbr-fs-md: 14px;
	--cbr-fs-lg: 16px;
	--cbr-fs-xl: 22px;

	--cbr-ease: 150ms ease;
}

@supports ( background: color-mix( in srgb, red 50%, white ) ) {
	.cbr-app,
	.cbr-menu,
	.cbr-toasts {
		--cbr-accent-soft: color-mix( in srgb, var(--cbr-accent) 8%, #fff );
	}
}

/* Cards, inputs and pills: one radius each. */
.cbr-card,
.cbr-empty,
.cbr-app .cbr-table {
	border-color: var(--cbr-border-card);
	border-radius: var(--cbr-radius);
	box-shadow: var(--cbr-shadow);
}

.cbr-card-add {
	border-top: 1px solid var(--cbr-border-card);
}

.cbr-app .cbr-input,
.cbr-app .cbr-select,
.cbr-match-card,
.cbr-source-card {
	border-radius: var(--cbr-radius-sm);
}

.cbr-pill,
.cbr-chip,
.cbr-tab-count {
	border-radius: var(--cbr-radius-pill);
}

.cbr-app .button,
.cbr-pill,
.cbr-match-card,
.cbr-switch,
.cbr-switch::after,
.cbr-app .cbr-input,
.cbr-app .cbr-select {
	transition: background-color var(--cbr-ease), border-color var(--cbr-ease), box-shadow var(--cbr-ease), color var(--cbr-ease), transform var(--cbr-ease);
}

/* One focus ring for everything new: the accent, outside the control. */
.cbr-icon-button:focus-visible,
.cbr-stat:focus-visible,
.cbr-fold-head:focus-visible,
.cbr-menu-item:focus-visible {
	outline: 2px solid var(--cbr-accent);
	outline-offset: 1px;
	box-shadow: none;
}

/* ------------------------------------------------------------------ tabs: a sliding underline */

.cbr-tab {
	position: relative;
	border-bottom-color: transparent !important;
	transition: color var(--cbr-ease);
}

.cbr-tab::after {
	content: "";
	position: absolute;
	right: var(--cbr-space-3);
	bottom: -1px;
	left: var(--cbr-space-3);
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--cbr-accent);
	transform: scaleX( 0 );
	transition: transform 150ms ease;
}

.cbr-tab.is-active::after {
	transform: scaleX( 1 );
}

.cbr-tab:focus-visible {
	outline: 2px solid var(--cbr-accent);
	outline-offset: -2px;
	border-radius: var(--cbr-radius-sm) var(--cbr-radius-sm) 0 0;
}

/* ------------------------------------------------------------------ the four figures */

.cbr-stats {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: var(--cbr-space-3);
	margin: 0 0 var(--cbr-space-4);
}

.cbr-stat {
	display: grid;
	grid-template-areas: "icon number" "icon label";
	grid-template-columns: auto minmax( 0, 1fr );
	column-gap: var(--cbr-space-3);
	align-items: center;
	min-height: 44px;
	padding: var(--cbr-space-3) var(--cbr-space-4);
	border: 1px solid var(--cbr-border-card);
	border-radius: var(--cbr-radius);
	background: #fff;
	box-shadow: var(--cbr-shadow);
	color: var(--cbr-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--cbr-ease), box-shadow var(--cbr-ease), transform var(--cbr-ease);
}

.cbr-stat:hover {
	border-color: var(--cbr-accent);
}

.cbr-stat.is-active {
	border-color: var(--cbr-accent);
	box-shadow: 0 0 0 1px var(--cbr-accent), var(--cbr-shadow);
}

.cbr-stat-icon {
	grid-area: icon;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--cbr-radius-pill);
	background: var(--cbr-accent-soft);
	color: var(--cbr-accent);
	font-size: 18px;
	line-height: 36px;
}

.cbr-stat.is-alert .cbr-stat-icon {
	background: var(--cbr-red-soft);
	color: var(--cbr-error);
}

.cbr-stat-number {
	grid-area: number;
	font-size: var(--cbr-fs-xl);
	font-weight: 600;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.cbr-stat-label {
	grid-area: label;
	overflow: hidden;
	color: var(--cbr-muted);
	font-size: var(--cbr-fs-sm);
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media ( min-width: 600px ) and ( max-width: 1023px ) {
	.cbr-stats {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

/* Phones: two by two, every figure in view — a sideways strip hid the fourth one. */
@media ( max-width: 599px ) {
	.cbr-stats {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: var(--cbr-space-2);
	}

	.cbr-stat {
		column-gap: var(--cbr-space-2);
		padding: var(--cbr-space-2) var(--cbr-space-3);
	}

	.cbr-stat-icon {
		width: 32px;
		height: 32px;
		font-size: 16px;
		line-height: 32px;
	}

	.cbr-stat-number {
		font-size: var(--cbr-fs-lg);
	}

	/* Two short lines rather than one cut short. */
	.cbr-stat-label {
		overflow: visible;
		font-size: var(--cbr-fs-xs);
		line-height: 1.3;
		white-space: normal;
	}
}

/* ------------------------------------------------------------------ icon buttons and the menu */

.cbr-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--cbr-radius-sm);
	background: transparent;
	color: #50575e;
	cursor: pointer;
	transition: background-color var(--cbr-ease), border-color var(--cbr-ease), color var(--cbr-ease);
}

.cbr-icon-button:hover {
	border-color: var(--cbr-border-card);
	background: #f6f7f7;
	color: var(--cbr-text);
}

.cbr-icon-button[aria-expanded="true"] {
	border-color: var(--cbr-accent);
	background: var(--cbr-accent-soft);
	color: var(--cbr-text);
}

.cbr-icon {
	display: block;
	flex: none;
}

.cbr-row-tools {
	display: flex;
	gap: var(--cbr-space-1);
	justify-content: flex-end;
}

.cbr-menu {
	position: fixed;
	z-index: 100001;
	min-width: 200px;
	padding: var(--cbr-space-1);
	border: 1px solid var(--cbr-border-card);
	border-radius: var(--cbr-radius);
	background: #fff;
	box-shadow: 0 12px 28px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
	animation: cbr-menu-in 150ms ease-out;
}

@keyframes cbr-menu-in {
	from { opacity: 0; transform: translateY( -4px ); }
	to { opacity: 1; transform: none; }
}

.cbr-menu-item {
	display: block;
	width: 100%;
	min-height: 36px;
	padding: var(--cbr-space-2) var(--cbr-space-3);
	border: 0;
	border-radius: var(--cbr-radius-sm);
	background: transparent;
	color: #1d2327;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.cbr-menu-item:hover,
.cbr-menu-item:focus {
	background: var(--cbr-accent-soft);
	color: #1d2327;
}

.cbr-menu-item.is-danger {
	margin-top: var(--cbr-space-1);
	border-top: 1px solid #f0f0f1;
	border-radius: 0 0 var(--cbr-radius-sm) var(--cbr-radius-sm);
	color: #b32d2e;
}

.cbr-menu-item.is-danger:hover,
.cbr-menu-item.is-danger:focus {
	background: #fcf0f1;
	color: #8a2424;
}

/* ------------------------------------------------------------------ the list, compact */

.cbr-app .cbr-table-redirects {
	overflow: visible;
	border-collapse: separate;
	border-spacing: 0;
}

.cbr-app .cbr-table-redirects td,
.cbr-app .cbr-table-redirects th {
	padding-top: 10px;
	padding-bottom: 10px;
	vertical-align: middle;
}

.cbr-app .cbr-table-redirects tbody td,
.cbr-app .cbr-table-redirects tbody th {
	border-top: 1px solid #f0f0f1;
}

.cbr-app .cbr-table-redirects tbody tr:first-child td,
.cbr-app .cbr-table-redirects tbody tr:first-child th {
	border-top: 0;
}

.cbr-app .cbr-table-redirects tbody tr {
	transition: background-color var(--cbr-ease);
}

.cbr-app .cbr-table-redirects tbody tr:hover {
	background: #f6f7f7;
	background: var(--cbr-accent-soft);
}

.cbr-app .cbr-table-redirects tbody tr.is-editing,
.cbr-app .cbr-table-redirects .cbr-edit-row > td {
	background: var(--cbr-accent-soft);
}

.cbr-app .cbr-table-redirects .cbr-code {
	padding: 2px 6px;
	font-size: var(--cbr-fs-sm);
	line-height: 20px;
	overflow-wrap: anywhere;
	word-break: normal;
}

.cbr-app .cbr-table-redirects .cbr-meta-line {
	margin-top: var(--cbr-space-1);
	flex-wrap: wrap;
}

.cbr-app .cbr-table-redirects .cbr-meta-line .cbr-chip {
	line-height: 18px;
}

/* The note: one muted line, cut short, whole in its tooltip. */
.cbr-app .cbr-table-redirects .cbr-note {
	flex: 1 1 120px;
	min-width: 0;
	overflow: hidden;
	font-style: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* "To": the destination's title on the first line and its address, in grey, on the
   second. Each is one line, cut short with "…" — never wrapped mid-word — and whole in
   its tooltip. */
.cbr-target-line {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	min-width: 0;
}

.cbr-arrow-inline {
	flex: none;
	color: #646970;
	line-height: 20px;
}

.cbr-target-stack {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.cbr-target-stack > * {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cbr-target-stack .cbr-target-title {
	margin: 0;
	font-weight: 600;
	line-height: 20px;
}

.cbr-target-stack .cbr-target-url {
	color: var(--cbr-muted);
	font-size: var(--cbr-fs-sm);
	line-height: 18px;
	word-break: normal;
}

.cbr-target-stack .cbr-target-gone {
	color: var(--cbr-muted);
	font-weight: 600;
	line-height: 20px;
}

/* Status badges: each family its own colour, every pair at least 4.5 : 1. */
.cbr-code-badge {
	min-width: 40px;
	padding: 2px 8px;
	border-radius: var(--cbr-radius-pill);
	line-height: 18px;
}

.cbr-code-badge.is-301 {
	background: #e9f1fb;
	color: #0a4b78;
}

.cbr-code-badge.is-302,
.cbr-code-badge.is-307 {
	background: #fcf3d6;
	color: #614a00;
}

.cbr-code-badge.is-308 {
	background: #eeedfd;
	color: #3b2fa0;
}

.cbr-code-badge.is-410,
.cbr-code-badge.is-451 {
	background: #fcf0f1;
	color: #8a2424;
}

/*
 * The table: a fixed grid of columns. The six small ones have exact widths; From and To
 * share what is left, 45 : 55. admin.js swaps the table for cards (.is-cards) before that
 * share drops below what either needs, so neither is ever squeezed to a sliver.
 */
@media ( min-width: 783px ) {
	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects {
		table-layout: fixed;
	}

	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > :nth-child(1) { width: 44px; }
	/* From's share is worked out by admin.js from the list's width: browsers ignore a
	   calc() of a percentage on a table column, and an even split left To short. */
	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > :nth-child(2) { width: var(--cbr-from-width, 40%); }

	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > * {
		box-sizing: border-box;
	}
	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > :nth-child(4) { width: 80px; }
	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > :nth-child(5) { width: 72px; }
	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > :nth-child(6) { width: 112px; }
	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > :nth-child(7) { width: 64px; }
	.cbr-app .cbr-table-wrap:not(.is-cards) .cbr-table-redirects thead > tr > :nth-child(8) { width: 96px; }

	.cbr-app .cbr-table-redirects thead th,
	.cbr-app .cbr-table-redirects thead td {
		position: sticky;
		z-index: 5;
		top: 32px;
		border-bottom: 1px solid var(--cbr-border-card);
		background: #f6f7f7;
		color: #50575e;
		font-size: var(--cbr-fs-sm);
	}

	.cbr-app .cbr-table-redirects thead > tr > :first-child {
		border-top-left-radius: var(--cbr-radius);
	}

	.cbr-app .cbr-table-redirects thead > tr > :last-child {
		border-top-right-radius: var(--cbr-radius);
	}

	.cbr-app .cbr-table-redirects .cbr-cell-source,
	.cbr-app .cbr-table-redirects .cbr-cell-target {
		width: auto;
	}

	.cbr-app .cbr-table-redirects .cbr-cell-date {
		overflow: hidden;
		font-size: var(--cbr-fs-sm);
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.cbr-app .cbr-table-redirects .cbr-cell-switch {
		text-align: center;
	}

	.cbr-app .cbr-table-redirects .cbr-cell-actions {
		padding-right: var(--cbr-space-2);
	}

	.cbr-app .cbr-table-redirects tbody .cbr-check-column {
		padding: 0 0 0 10px !important;
		vertical-align: middle;
	}

	.cbr-app .cbr-table-redirects tbody .cbr-check-column .cbr-hit {
		display: flex;
		align-items: center;
	}

	.cbr-app .cbr-table-redirects .cbr-edit-row > td {
		padding: var(--cbr-space-1) var(--cbr-space-4) var(--cbr-space-4) !important;
	}
}

/*
 * Cards — phones, tablets, and any screen where the list is too narrow for every column.
 * Each card is a small grid:
 *
 *   [✓] /old-address            [✎][⋯]
 *       chips
 *       TO  Page title
 *           /page-address
 *       [301]                   On [■]
 *       Visits: 12   Last used: 3 days ago
 *
 * The checkbox sits inside the card's padding, level with the address; Visits and Last
 * used have a line of their own, so neither is ever cut to "Last us…".
 *
 * WordPress's list-table rules for narrow screens position cells and their labels with
 * selectors of their own and !important; the selectors here are more specific on purpose.
 */
.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects {
	display: block !important;
	table-layout: auto;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects thead {
	display: none !important;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody {
	display: block !important;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody > tr:not(.cbr-edit-row) {
	position: relative;
	display: grid !important;
	grid-template-areas:
		"check source source actions"
		".     target target target"
		".     code   code   switch"
		".     num    date   date";
	grid-template-columns: 44px auto minmax( 0, 1fr ) auto;
	column-gap: var(--cbr-space-2);
	align-items: center;
	padding: var(--cbr-space-3) var(--cbr-space-3) var(--cbr-space-3) var(--cbr-space-2);
	border-bottom: 1px solid var(--cbr-border-card);
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody > tr:last-child {
	border-bottom: 0;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody > tr.cbr-edit-row {
	display: block !important;
	border-bottom: 1px solid var(--cbr-border-card);
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody > tr > td,
.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody > tr > th {
	position: static !important;
	display: block !important;
	width: auto !important;
	min-width: 0;
	padding: 0 !important;
	border-top: 0 !important;
	text-align: left;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody > tr.cbr-edit-row > td {
	padding: var(--cbr-space-1) var(--cbr-space-3) var(--cbr-space-4) !important;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects .cbr-check-column {
	grid-area: check;
	align-self: start;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects .cbr-check-column .cbr-hit {
	position: static !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
}

/* The address is centred on the 44px checkbox beside it. */
.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-source {
	grid-area: source;
	align-self: start;
	padding-top: 10px !important;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-actions {
	grid-area: actions;
	align-self: start;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-target {
	grid-area: target;
	display: flex !important;
	flex-wrap: wrap;
	gap: 2px var(--cbr-space-2);
	align-items: baseline;
	padding-top: var(--cbr-space-2) !important;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-target .cbr-target-line {
	flex: 1 1 0;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-target .cbr-chip.is-alert {
	flex-basis: 100%;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects .cbr-arrow-inline {
	display: none;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-code {
	grid-area: code;
	display: flex !important;
	align-items: center;
	min-height: 44px;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-switch {
	grid-area: switch;
	display: flex !important;
	gap: var(--cbr-space-2);
	align-items: center;
	justify-self: end;
	min-height: 44px;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-switch .cbr-switch {
	margin: 0;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-num {
	grid-area: num;
	padding-right: var(--cbr-space-4) !important;
	white-space: nowrap;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-date {
	grid-area: date;
	overflow: visible;
	white-space: normal;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-num::before,
.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-date::before,
.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-switch::before {
	content: attr(data-label) ":" !important;
	position: static !important;
	display: inline !important;
	width: auto !important;
	margin-right: var(--cbr-space-1);
	overflow: visible !important;
	color: var(--cbr-muted);
	font-size: var(--cbr-fs-xs);
	font-weight: 600;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-target::before {
	content: attr(data-label) !important;
	position: static !important;
	display: inline !important;
	flex: none;
	width: auto !important;
	overflow: visible !important;
	color: var(--cbr-muted);
	font-size: var(--cbr-fs-xs);
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-source::before,
.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-code::before,
.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-actions::before {
	content: none !important;
}

.cbr-app .cbr-table-wrap.is-cards .cbr-icon-button {
	width: 44px;
	height: 44px;
}

/* Cards on a tablet or laptop are wide enough for type, visits, last use and the switch
   on one line; phones keep the two-line version above. */
@media ( min-width: 783px ) {
	.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects tbody > tr:not(.cbr-edit-row) {
		grid-template-areas:
			"check source source source actions"
			".     target target target target"
			".     code   num    date   switch";
		grid-template-columns: 44px auto auto minmax( 0, 1fr ) auto;
	}

	.cbr-app .cbr-table-wrap.is-cards .cbr-table-redirects td.cbr-cell-code {
		padding-right: var(--cbr-space-4) !important;
	}
}

/* Phones: every control at least 44 × 44 to tap. */
@media ( max-width: 782px ) {
	.cbr-icon-button {
		width: 44px;
		height: 44px;
	}

	.cbr-menu-item {
		min-height: 44px;
	}

	.cbr-app .cbr-field-code .cbr-select {
		height: 44px;
		min-height: 44px;
	}

	/* The two addresses in a card are links: each gets a 44px-tall target without
	   changing how it looks — the old one through an invisible layer, the new one through
	   padding its own neighbours make room for. */
	.cbr-app .cbr-table-wrap.is-cards a.cbr-code {
		position: relative;
	}

	.cbr-app .cbr-table-wrap.is-cards a.cbr-code::after {
		content: "";
		position: absolute;
		inset: -10px 0;
	}

	.cbr-app .cbr-table-wrap.is-cards .cbr-target-stack a.cbr-target-url {
		margin: -13px 0;
		padding: 13px 0;
	}
}

/* ------------------------------------------------------------------ loading */

.cbr-skeleton-rows {
	padding: var(--cbr-space-2) var(--cbr-space-4);
	border: 1px solid var(--cbr-border-card);
	border-radius: var(--cbr-radius);
	background: #fff;
	box-shadow: var(--cbr-shadow);
}

.cbr-skeleton-row {
	display: flex;
	gap: var(--cbr-space-4);
	align-items: center;
	height: 44px;
}

.cbr-skeleton-row + .cbr-skeleton-row {
	border-top: 1px solid #f0f0f1;
}

.cbr-skeleton {
	display: block;
	height: 12px;
	border-radius: var(--cbr-radius-pill);
	background: linear-gradient( 90deg, #f0f0f1 25%, #e4e5e7 37%, #f0f0f1 63% );
	background-size: 400% 100%;
	animation: cbr-shimmer 1.4s ease infinite;
}

.cbr-skeleton.is-short { flex: 0 0 18%; }
.cbr-skeleton.is-long { flex: 1 1 0; }
.cbr-skeleton.is-tiny { flex: 0 0 48px; }

@keyframes cbr-shimmer {
	from { background-position: 100% 50%; }
	to { background-position: 0 50%; }
}

.cbr-table-wrap.is-loading .cbr-skeleton-rows {
	opacity: 1;
}

/* ------------------------------------------------------------------ empty states */

.cbr-empty {
	border-style: solid;
	background: #fff;
}

.cbr-empty-first {
	padding: var(--cbr-space-6) var(--cbr-space-5);
}

.cbr-illustration {
	display: block;
	margin: 0 auto var(--cbr-space-2);
	color: var(--cbr-accent);
}

.cbr-illustration.is-success {
	color: var(--cbr-success);
}

.cbr-empty .cbr-actions.is-centered {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cbr-space-2);
	justify-content: center;
	margin-top: var(--cbr-space-4);
}

/* ------------------------------------------------------------------ the add form: folds */

.cbr-advanced {
	display: grid;
	gap: var(--cbr-space-2);
}

.cbr-fold {
	border: 1px solid var(--cbr-border-card);
	border-radius: var(--cbr-radius);
	background: #fff;
}

.cbr-fold-heading {
	margin: 0 !important;
	font-size: inherit;
}

.cbr-fold-head {
	display: flex;
	gap: var(--cbr-space-3);
	align-items: center;
	width: 100%;
	min-height: 44px;
	padding: var(--cbr-space-2) var(--cbr-space-4);
	border: 0;
	border-radius: var(--cbr-radius);
	background: transparent;
	color: var(--cbr-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color var(--cbr-ease);
}

.cbr-fold-head:hover {
	background: #f6f7f7;
}

.cbr-fold-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: var(--cbr-radius-sm);
	background: var(--cbr-accent-soft);
	color: var(--cbr-accent);
}

.cbr-fold-title {
	flex: none;
	font-size: var(--cbr-fs-md);
	font-weight: 600;
}

.cbr-fold-summary {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--cbr-muted);
	font-size: var(--cbr-fs-sm);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cbr-fold-chevron {
	display: inline-flex;
	flex: none;
	margin-left: auto;
	color: #50575e;
	transition: transform var(--cbr-ease);
}

.cbr-fold-head[aria-expanded="true"] .cbr-fold-chevron {
	transform: rotate( 90deg );
}

.cbr-fold-body {
	padding: var(--cbr-space-1) var(--cbr-space-4) var(--cbr-space-4);
	border-top: 1px solid #f0f0f1;
}

.cbr-fold-grid {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr );
	gap: var(--cbr-space-4) var(--cbr-space-5);
}

.cbr-subhead {
	margin: var(--cbr-space-3) 0 var(--cbr-space-2);
	color: var(--cbr-text);
	font-size: var(--cbr-fs-sm);
	font-weight: 600;
}

/* Match cards: an icon, then the name over its explanation. */
.cbr-match-card {
	flex-direction: row;
	gap: var(--cbr-space-3);
	align-items: center;
}

.cbr-match-card .cbr-match-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: var(--cbr-radius-sm);
	background: #f6f7f7;
	color: #50575e;
	font-size: inherit;
}

.cbr-match-card.is-selected .cbr-match-icon {
	background: #fff;
	color: var(--cbr-accent);
}

.cbr-match-card .cbr-match-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	color: var(--cbr-text);
	font-size: var(--cbr-fs-sm);
}

.cbr-match-card .cbr-match-text span {
	color: var(--cbr-muted);
	font-size: var(--cbr-fs-xs);
}

.cbr-match-card.is-selected {
	border-color: var(--cbr-accent);
	background: var(--cbr-accent-soft);
	box-shadow: 0 0 0 1px var(--cbr-accent);
}

@media ( max-width: 782px ) {
	.cbr-fold-grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	.cbr-fold-head {
		flex-wrap: wrap;
		row-gap: 0;
		padding: var(--cbr-space-2) var(--cbr-space-3);
	}

	.cbr-fold-chevron {
		order: 3;
	}

	.cbr-fold-summary {
		order: 4;
		flex-basis: 100%;
		padding-left: 40px;
	}

	.cbr-fold-body {
		padding: var(--cbr-space-1) var(--cbr-space-3) var(--cbr-space-3);
	}
}

/* ------------------------------------------------------------------ toasts */

.cbr-toasts {
	flex-direction: column;
}

.cbr-toast {
	border-radius: var(--cbr-radius);
}

.cbr-toast-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: var(--cbr-radius-pill);
	background: rgba(255, 255, 255, .14);
	color: #7ad03a;
}

.cbr-toast.is-error .cbr-toast-icon {
	color: #fff;
}

.cbr-toast.is-undo .cbr-toast-icon {
	color: #9ec2e6;
}

/* ------------------------------------------------------------------ less motion */

@media ( prefers-reduced-motion: reduce ) {
	.cbr-app *,
	.cbr-app *::before,
	.cbr-app *::after,
	.cbr-menu,
	.cbr-toasts * {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.cbr-skeleton {
		animation: none !important;
	}
}

@font-face {
	font-family: "CodeBold Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/instrument-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "CodeBold Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==================================================================== theme: Dark
 *
 * Chosen per person under Settings → Appearance. The screen sits on a dark panel in
 * CodeBold IT Solutions' colours — #0B0B0B and #111111, #F5F5F5 text, lime #D9F266 for
 * the one thing to do — and nothing outside it changes: not the admin background, not the
 * admin menu, not other plugins' notices. The class is on #codebold-redirect-app and on
 * the screen's own pieces attached to <body> (toasts, "⋯" menus).
 * ================================================================================= */

.cbr-theme-dark {
	--cb-void: #0B0B0B;
	--cb-void-2: #111111;
	--cb-void-3: #171717;
	--cb-panel: #1C1C1C;

	--cb-tx: #F5F5F5;
	--cb-tx-2: #B3B3B3;
	--cb-tx-3: #8F8F8F;

	--cb-line: rgba( 255, 255, 255, .09 );
	--cb-line-2: rgba( 255, 255, 255, .16 );
	--cb-line-3: rgba( 255, 255, 255, .28 );

	--cb-lime: #D9F266;
	--cb-lime-deep: #BAE900;
	--cb-lime-soft: rgba( 217, 242, 102, .12 );
	--cb-amber: #FFB020;
	--cb-amber-tx: #FFC966;
	--cb-red: #FF5C4D;
	--cb-red-tx: #FF8F84;
	--cb-blue-tx: #93C5FD;
	--cb-violet-tx: #C4B5FD;

	--cb-display: "Archivo", "CodeBold Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cb-body: "CodeBold Instrument Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cb-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--cb-e: cubic-bezier( .19, 1, .22, 1 );

}

/* The screen's tokens, re-pointed. Most of the stylesheet reads these, so this one block
   repaints most of the screen; the rules after it catch what was set by hand. */
.cbr-app.cbr-theme-dark,
.cbr-menu.cbr-theme-dark,
.cbr-toasts.cbr-theme-dark {
	--cbr-blue: var(--cb-lime);
	--cbr-blue-dark: var(--cb-lime);
	--cbr-blue-soft: var(--cb-lime-soft);
	--cbr-text: var(--cb-tx);
	--cbr-muted: var(--cb-tx-2);
	--cbr-border: var(--cb-line-2);
	--cbr-border-soft: var(--cb-line);
	--cbr-border-card: var(--cb-line);
	--cbr-surface: var(--cb-void-2);
	--cbr-green: var(--cb-lime);
	--cbr-green-soft: var(--cb-lime-soft);
	--cbr-amber: var(--cb-amber);
	--cbr-amber-soft: rgba( 255, 176, 32, .12 );
	--cbr-red: var(--cb-red);
	--cbr-red-soft: rgba( 255, 92, 77, .12 );

	--cbr-accent: var(--cb-lime);
	--cbr-accent-soft: var(--cb-lime-soft);
	--cbr-success: var(--cb-lime);
	--cbr-warning: var(--cb-amber);
	--cbr-error: var(--cb-red);
	--cbr-shadow: 0 1px 0 rgba( 255, 255, 255, .03 ) inset, 0 8px 24px rgba( 0, 0, 0, .35 );
	--cbr-radius: 14px;

	font-family: var(--cb-body);
	-webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ heading */

.cbr-app.cbr-theme-dark h2,
.cbr-app.cbr-theme-dark h3,
.cbr-app.cbr-theme-dark h4,
.cbr-app.cbr-theme-dark h5,
.cbr-app.cbr-theme-dark legend,
.cbr-app.cbr-theme-dark label,
.cbr-app.cbr-theme-dark strong {
	color: var(--cb-tx);
}

.cbr-theme-dark .cbr-card-title,
.cbr-theme-dark .cbr-card h2,
.cbr-theme-dark .cbr-card h3,
.cbr-theme-dark .cbr-empty h3 {
	font-family: var(--cb-display);
	font-weight: 700;
	letter-spacing: -.01em;
}

.cbr-app.cbr-theme-dark p,
.cbr-app.cbr-theme-dark .description,
.cbr-theme-dark .cbr-boot {
	color: var(--cb-tx-2);
}

.cbr-app.cbr-theme-dark a {
	color: var(--cb-lime);
}

.cbr-app.cbr-theme-dark a:hover,
.cbr-app.cbr-theme-dark a:focus {
	color: #E8FA9E;
}

.cbr-app.cbr-theme-dark :focus-visible,
.cbr-menu.cbr-theme-dark :focus-visible {
	outline: 2px solid var(--cb-lime);
	outline-offset: 2px;
	box-shadow: none;
}

.cbr-app.cbr-theme-dark code {
	background: rgba( 255, 255, 255, .07 );
	color: var(--cb-tx);
	font-family: var(--cb-mono);
}

/* The panel itself, and native parts of controls — date pickers, select lists, scrollbars —
   drawn dark inside it. */
.cbr-app.cbr-theme-dark {
	padding: 20px 24px 28px;
	border-radius: 16px;
	background: var(--cb-void);
	color: var(--cb-tx);
	color-scheme: dark;
}

.cbr-menu.cbr-theme-dark,
.cbr-toasts.cbr-theme-dark {
	color-scheme: dark;
}

@media ( max-width: 782px ) {
	.cbr-app.cbr-theme-dark {
		padding: 12px 12px 20px;
		border-radius: 12px;
	}
}

/* ------------------------------------------------------------------ tabs */

.cbr-theme-dark .cbr-tabs {
	border-bottom-color: var(--cb-line);
}

.cbr-theme-dark .cbr-tab {
	color: var(--cb-tx-2);
	font-family: var(--cb-mono);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cbr-theme-dark .cbr-tab:hover,
.cbr-theme-dark .cbr-tab:focus,
.cbr-theme-dark .cbr-tab.is-active {
	color: var(--cb-tx);
}

.cbr-theme-dark .cbr-tab::after {
	height: 2px;
	border-radius: 2px;
	transition: transform 180ms var(--cb-e);
}

.cbr-theme-dark .cbr-tab-count {
	background: rgba( 255, 255, 255, .08 );
	color: var(--cb-tx-2);
	letter-spacing: 0;
}

.cbr-theme-dark .cbr-tab-count.is-alert {
	background: var(--cb-red);
	color: var(--cb-void);
}

/* ------------------------------------------------------------------ cards and figures */

.cbr-theme-dark .cbr-card,
.cbr-theme-dark .cbr-empty,
.cbr-theme-dark .cbr-fold,
.cbr-theme-dark .cbr-skeleton-rows {
	border-color: var(--cb-line);
	background: var(--cb-void-2);
}

/* The add card: a wash of lime from the top instead of a coloured strip, and a "+" mark
   by its title — the one card on the screen that makes something. */
.cbr-theme-dark .cbr-card-add {
	border-color: var(--cb-line-2);
	background: linear-gradient( 180deg, rgba( 217, 242, 102, .10 ), rgba( 217, 242, 102, 0 ) 140px ), var(--cb-void-2);
	box-shadow: var(--cbr-shadow);
}

.cbr-theme-dark .cbr-card-add > .cbr-card-title {
	display: flex;
	gap: 10px;
	align-items: center;
}

.cbr-theme-dark .cbr-card-add > .cbr-card-title::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--cb-lime);
	color: var(--cb-void);
	font-family: var(--cb-mono);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.cbr-theme-dark .cbr-stat {
	border-color: var(--cb-line);
	background: var(--cb-void-2);
	color: var(--cb-tx);
}

.cbr-theme-dark .cbr-stat:hover {
	border-color: var(--cb-line-3);
}

.cbr-theme-dark .cbr-stat.is-active {
	border-color: var(--cb-lime);
	box-shadow: 0 0 0 1px var(--cb-lime), var(--cbr-shadow);
}

.cbr-theme-dark .cbr-stat-number {
	font-family: var(--cb-display);
	font-weight: 800;
	letter-spacing: -.02em;
}

.cbr-theme-dark .cbr-stat-label {
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-stat.is-alert .cbr-stat-icon {
	background: rgba( 255, 92, 77, .14 );
	color: var(--cb-red);
}

.cbr-theme-dark .cbr-banner.is-warning .dashicons,
.cbr-theme-dark .cbr-verdict.is-warning .dashicons {
	color: var(--cb-amber);
}

/* ------------------------------------------------------------------ WordPress's own controls */

.cbr-app.cbr-theme-dark .button,
.cbr-app.cbr-theme-dark .button-secondary {
	border-color: var(--cb-line-2);
	border-radius: 8px;
	background: transparent;
	color: var(--cb-tx);
	box-shadow: none;
}

.cbr-app.cbr-theme-dark .button:hover,
.cbr-app.cbr-theme-dark .button:focus {
	border-color: var(--cb-lime);
	background: rgba( 217, 242, 102, .06 );
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark .button-primary {
	border-color: var(--cb-lime);
	background: var(--cb-lime);
	color: var(--cb-void);
	font-weight: 600;
}

.cbr-app.cbr-theme-dark .button-primary:hover,
.cbr-app.cbr-theme-dark .button-primary:focus {
	border-color: #E8FA9E;
	background: #E8FA9E;
	color: var(--cb-void);
}

.cbr-app.cbr-theme-dark .button[disabled],
.cbr-app.cbr-theme-dark .button:disabled,
.cbr-app.cbr-theme-dark .button.disabled {
	border-color: var(--cb-line) !important;
	background: transparent !important;
	color: var(--cb-tx-3) !important;
}

.cbr-app.cbr-theme-dark .button-primary[disabled],
.cbr-app.cbr-theme-dark .button-primary:disabled {
	background: rgba( 217, 242, 102, .25 ) !important;
	color: var(--cb-tx-2) !important;
}

.cbr-app.cbr-theme-dark .button-link {
	color: var(--cb-lime);
}

.cbr-app.cbr-theme-dark .button-link:hover,
.cbr-app.cbr-theme-dark .button-link:focus {
	color: #E8FA9E;
}

.cbr-app.cbr-theme-dark .cbr-danger,
.cbr-app.cbr-theme-dark .button-link.cbr-danger {
	color: var(--cb-red-tx) !important;
}

.cbr-app.cbr-theme-dark input[type="text"],
.cbr-app.cbr-theme-dark input[type="search"],
.cbr-app.cbr-theme-dark input[type="number"],
.cbr-app.cbr-theme-dark input[type="url"],
.cbr-app.cbr-theme-dark input[type="email"],
.cbr-app.cbr-theme-dark input[type="date"],
.cbr-app.cbr-theme-dark input[type="datetime-local"],
.cbr-app.cbr-theme-dark input[type="password"],
.cbr-app.cbr-theme-dark select,
.cbr-app.cbr-theme-dark textarea,
.cbr-app.cbr-theme-dark .cbr-input,
.cbr-app.cbr-theme-dark .cbr-select {
	border-color: var(--cb-line-2);
	border-radius: 8px;
	background-color: var(--cb-void-3);
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark input::placeholder,
.cbr-app.cbr-theme-dark textarea::placeholder {
	color: var(--cb-tx-3);
	opacity: 1;
}

.cbr-app.cbr-theme-dark input:hover,
.cbr-app.cbr-theme-dark select:hover,
.cbr-app.cbr-theme-dark textarea:hover {
	border-color: var(--cb-line-3);
}

.cbr-app.cbr-theme-dark input:focus,
.cbr-app.cbr-theme-dark select:focus,
.cbr-app.cbr-theme-dark textarea:focus,
.cbr-app.cbr-theme-dark .cbr-input:focus,
.cbr-app.cbr-theme-dark .cbr-select:focus {
	border-color: var(--cb-lime);
	box-shadow: 0 0 0 1px var(--cb-lime);
	outline: 0;
}

/* WordPress draws the select's arrow as a dark picture; this is the same arrow, light. */
.cbr-app.cbr-theme-dark select,
.cbr-app.cbr-theme-dark .cbr-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M5 6l5 5 5-5 2 1-7 7-7-7 2-1z' fill='%23B3B3B3'/%3E%3C/svg%3E");
	background-position: right 8px top 55%;
	background-repeat: no-repeat;
	background-size: 16px 16px;
}

.cbr-app.cbr-theme-dark select option {
	background: var(--cb-void-3);
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark .cbr-code-input,
.cbr-app.cbr-theme-dark .cbr-source {
	font-family: var(--cb-mono);
}

.cbr-app.cbr-theme-dark input[type="checkbox"]:not(.cbr-toggle),
.cbr-app.cbr-theme-dark input[type="radio"] {
	border-color: var(--cb-line-3);
	background: var(--cb-void-3);
	box-shadow: none;
}

.cbr-app.cbr-theme-dark input[type="checkbox"]:not(.cbr-toggle):checked {
	border-color: var(--cb-lime);
	background: var(--cb-lime);
}

.cbr-app.cbr-theme-dark input[type="checkbox"]:not(.cbr-toggle):checked::before {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z' fill='%230B0B0B'/%3E%3C/svg%3E");
}

.cbr-app.cbr-theme-dark input[type="radio"]:checked {
	border-color: var(--cb-lime);
}

.cbr-app.cbr-theme-dark input[type="radio"]:checked::before {
	background: var(--cb-lime);
}

.cbr-app.cbr-theme-dark input[type="checkbox"]:focus,
.cbr-app.cbr-theme-dark input[type="radio"]:focus {
	border-color: var(--cb-lime);
	box-shadow: 0 0 0 1px var(--cb-lime);
}

.cbr-app.cbr-theme-dark [aria-invalid="true"] {
	border-color: var(--cb-red) !important;
	box-shadow: 0 0 0 1px var(--cb-red);
}

.cbr-theme-dark .cbr-field-error,
.cbr-theme-dark .cbr-counter.is-full {
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-label,
.cbr-theme-dark .cbr-subhead {
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-subhead,
.cbr-theme-dark .cbr-label {
	font-family: var(--cb-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cbr-theme-dark .cbr-field-hint {
	color: var(--cb-violet-tx);
}

.cbr-theme-dark .cbr-kept,
.cbr-theme-dark .cbr-unit,
.cbr-theme-dark .cbr-preview-why {
	color: var(--cb-tx-2);
}

.cbr-app.cbr-theme-dark .cbr-help {
	background: rgba( 255, 255, 255, .1 );
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark .cbr-tip {
	border: 1px solid var(--cb-line-2);
	background: var(--cb-panel);
	color: var(--cb-tx);
	box-shadow: 0 12px 28px rgba( 0, 0, 0, .5 );
}

/* Switches and toggles: the track is a dark groove when off, CodeBold lime when on. */
.cbr-theme-dark .cbr-switch,
.cbr-app.cbr-theme-dark input[type="checkbox"].cbr-toggle {
	background: #3A3A3A;
}

.cbr-theme-dark .cbr-switch.is-on,
.cbr-app.cbr-theme-dark input[type="checkbox"].cbr-toggle:checked {
	background: var(--cb-lime);
}

.cbr-theme-dark .cbr-switch::after,
.cbr-app.cbr-theme-dark input[type="checkbox"].cbr-toggle::before {
	background: var(--cb-tx);
	box-shadow: 0 1px 2px rgba( 0, 0, 0, .5 );
}

.cbr-theme-dark .cbr-switch.is-on::after,
.cbr-app.cbr-theme-dark input[type="checkbox"].cbr-toggle:checked::before {
	background: var(--cb-void);
}

/* ------------------------------------------------------------------ the add form */

.cbr-theme-dark .cbr-match-card {
	border-color: var(--cb-line-2);
	background: var(--cb-void-3);
}

.cbr-theme-dark .cbr-match-card:hover {
	border-color: var(--cb-line-3);
}

.cbr-theme-dark .cbr-match-card .cbr-match-icon {
	background: rgba( 255, 255, 255, .06 );
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-match-card.is-selected .cbr-match-icon {
	background: var(--cb-lime);
	color: var(--cb-void);
}

.cbr-theme-dark .cbr-fold-head:hover {
	background: rgba( 255, 255, 255, .03 );
}

.cbr-theme-dark .cbr-fold-body {
	border-top-color: var(--cb-line);
}

.cbr-theme-dark .cbr-fold-chevron {
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-fold-title {
	font-family: var(--cb-display);
}

.cbr-theme-dark .cbr-condition {
	border-color: var(--cb-line-2);
	background: var(--cb-void-3);
}

.cbr-theme-dark .cbr-picker-list {
	border-color: var(--cb-line-2);
	background: var(--cb-panel);
	box-shadow: 0 16px 40px rgba( 0, 0, 0, .55 );
}

.cbr-theme-dark .cbr-picker-chip-clear:hover {
	background: rgba( 255, 255, 255, .08 );
}

.cbr-theme-dark .cbr-suggest-chip.is-fix {
	border-color: rgba( 217, 242, 102, .4 );
}

.cbr-theme-dark .cbr-message.is-error {
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-message.is-warning {
	color: var(--cb-amber-tx);
}

.cbr-theme-dark .cbr-arrow,
.cbr-theme-dark .cbr-arrow-inline {
	color: var(--cb-tx-3);
}

/* ------------------------------------------------------------------ filters and lists */

.cbr-theme-dark .cbr-pill {
	border-color: var(--cb-line-2);
	background: transparent;
	color: var(--cb-tx);
}

.cbr-theme-dark .cbr-pill:hover {
	border-color: var(--cb-line-3);
}

.cbr-theme-dark .cbr-pill.is-active {
	border-color: var(--cb-lime);
	background: var(--cb-lime);
	color: var(--cb-void);
}

.cbr-theme-dark .cbr-pill.is-active .cbr-pill-count {
	color: rgba( 11, 11, 11, .7 );
}

.cbr-theme-dark .cbr-pill.is-alert:not(.is-active) {
	border-color: rgba( 255, 92, 77, .45 );
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-bulk {
	border: 1px solid rgba( 217, 242, 102, .3 );
	background: #1A1D10;
}

.cbr-app.cbr-theme-dark .widefat,
.cbr-app.cbr-theme-dark .cbr-table {
	border-color: var(--cb-line);
	background: var(--cb-void-2);
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark .widefat td,
.cbr-app.cbr-theme-dark .widefat th,
.cbr-app.cbr-theme-dark .widefat tfoot td,
.cbr-app.cbr-theme-dark .widefat tfoot th {
	border-color: var(--cb-line);
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark .widefat thead th,
.cbr-app.cbr-theme-dark .widefat thead td,
.cbr-app.cbr-theme-dark .cbr-table-redirects thead th,
.cbr-app.cbr-theme-dark .cbr-table-redirects thead td {
	border-bottom: 1px solid var(--cb-line);
	background: var(--cb-void-3);
	color: var(--cb-tx-2);
	font-family: var(--cb-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cbr-app.cbr-theme-dark .cbr-sortable button {
	letter-spacing: inherit;
	text-transform: inherit;
}

.cbr-app.cbr-theme-dark .striped > tbody > :nth-child(odd) {
	background: rgba( 255, 255, 255, .02 );
}

.cbr-app.cbr-theme-dark .cbr-table-redirects tbody td,
.cbr-app.cbr-theme-dark .cbr-table-redirects tbody th {
	border-top-color: var(--cb-line);
}

.cbr-app.cbr-theme-dark .cbr-table tbody tr:hover,
.cbr-app.cbr-theme-dark .cbr-table-redirects tbody tr:hover {
	background: rgba( 255, 255, 255, .03 );
}

.cbr-app.cbr-theme-dark .cbr-table-redirects tbody tr.is-editing,
.cbr-app.cbr-theme-dark .cbr-table-redirects .cbr-edit-row > td,
.cbr-app.cbr-theme-dark .cbr-table tr.is-editing,
.cbr-theme-dark .cbr-edit-row > td {
	background: #1A1D10;
}

.cbr-app.cbr-theme-dark .cbr-table tr.is-off .cbr-code,
.cbr-app.cbr-theme-dark .cbr-table tr.is-off .cbr-target-url,
.cbr-app.cbr-theme-dark .cbr-table tr.is-off .cbr-target-title {
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-code {
	background: rgba( 255, 255, 255, .06 );
	color: var(--cb-tx);
	font-family: var(--cb-mono);
}

.cbr-theme-dark a.cbr-code:hover {
	background: var(--cb-lime-soft);
	color: var(--cb-lime);
}

.cbr-theme-dark .cbr-target-line .cbr-target-url,
.cbr-theme-dark .cbr-target-url {
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-target-url:hover {
	color: var(--cb-lime);
}

.cbr-theme-dark .cbr-icon-button {
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-icon-button:hover {
	border-color: var(--cb-line-2);
	background: rgba( 255, 255, 255, .05 );
	color: var(--cb-tx);
}

.cbr-theme-dark .cbr-icon-button[aria-expanded="true"] {
	border-color: var(--cb-lime);
	background: var(--cb-lime-soft);
	color: var(--cb-lime);
}

/* Chips and badges: a tint and a light ink of each family's colour, every pair at least
   4.5 : 1 on the card. */
.cbr-theme-dark .cbr-chip {
	background: rgba( 255, 255, 255, .08 );
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-chip.is-off-chip {
	background: rgba( 255, 255, 255, .12 );
	color: var(--cb-tx);
}

.cbr-theme-dark .cbr-chip.is-match,
.cbr-theme-dark .cbr-code-badge.is-308 {
	background: rgba( 167, 139, 250, .15 );
	color: var(--cb-violet-tx);
}

.cbr-theme-dark .cbr-chip.is-condition,
.cbr-theme-dark .cbr-chip.is-schedule,
.cbr-theme-dark .cbr-chip.is-status-exists,
.cbr-theme-dark .cbr-chip.is-status-duplicate,
.cbr-theme-dark .cbr-code-badge.is-302,
.cbr-theme-dark .cbr-code-badge.is-307 {
	background: rgba( 255, 176, 32, .14 );
	color: var(--cb-amber-tx);
}

.cbr-theme-dark .cbr-chip.is-origin-auto,
.cbr-theme-dark .cbr-chip.is-origin-trash,
.cbr-theme-dark .cbr-chip.is-origin-post,
.cbr-theme-dark .cbr-chip.is-status-ready,
.cbr-theme-dark .cbr-code-badge.is-200 {
	background: var(--cb-lime-soft);
	color: var(--cb-lime);
}

.cbr-theme-dark .cbr-chip.is-group,
.cbr-theme-dark .cbr-code-badge,
.cbr-theme-dark .cbr-code-badge.is-301 {
	background: rgba( 96, 165, 250, .15 );
	color: var(--cb-blue-tx);
}

.cbr-theme-dark .cbr-chip.is-alert,
.cbr-theme-dark .cbr-chip.is-status-refused,
.cbr-theme-dark .cbr-code-badge.is-404,
.cbr-theme-dark .cbr-code-badge.is-410,
.cbr-theme-dark .cbr-code-badge.is-451,
.cbr-theme-dark .cbr-code-badge.is-500 {
	background: rgba( 255, 92, 77, .14 );
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-chip.is-bot {
	background: rgba( 255, 255, 255, .06 );
	color: var(--cb-tx-2);
}

.cbr-theme-dark .cbr-code-badge {
	font-family: var(--cb-mono);
	font-weight: 600;
}

/* ------------------------------------------------------------------ the "⋯" menu, toasts */

.cbr-menu.cbr-theme-dark {
	border-color: var(--cb-line-2);
	background: var(--cb-panel);
	box-shadow: 0 18px 44px rgba( 0, 0, 0, .6 );
}

.cbr-theme-dark .cbr-menu-item {
	color: var(--cb-tx);
	font-family: var(--cb-body);
}

.cbr-theme-dark .cbr-menu-item:hover,
.cbr-theme-dark .cbr-menu-item:focus {
	background: var(--cb-lime-soft);
	color: var(--cb-tx);
}

.cbr-theme-dark .cbr-menu-item.is-danger {
	border-top-color: var(--cb-line);
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-menu-item.is-danger:hover,
.cbr-theme-dark .cbr-menu-item.is-danger:focus {
	background: rgba( 255, 92, 77, .14 );
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-toast {
	border: 1px solid var(--cb-line-2);
	background: var(--cb-panel);
	color: var(--cb-tx);
	box-shadow: 0 18px 44px rgba( 0, 0, 0, .6 );
	font-family: var(--cb-body);
}

.cbr-theme-dark .cbr-toast.is-error {
	border-color: rgba( 255, 92, 77, .5 );
	background: #2A1412;
}

.cbr-theme-dark .cbr-toast-icon {
	background: var(--cb-lime-soft);
	color: var(--cb-lime);
}

.cbr-theme-dark .cbr-toast.is-error .cbr-toast-icon {
	background: rgba( 255, 92, 77, .18 );
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-toast.is-undo .cbr-toast-icon {
	background: rgba( 96, 165, 250, .16 );
	color: var(--cb-blue-tx);
}

.cbr-theme-dark .cbr-toast-action {
	border-color: var(--cb-lime);
	color: var(--cb-lime);
}

.cbr-theme-dark .cbr-toast-action:hover {
	background: var(--cb-lime-soft);
}

.cbr-theme-dark .cbr-toast-close {
	color: var(--cb-tx-2);
}

/* ------------------------------------------------------------------ the other tabs */

.cbr-theme-dark .cbr-why > li.is-matched,
.cbr-theme-dark .cbr-why-conditions .is-pass {
	color: var(--cb-lime);
}

.cbr-theme-dark .cbr-why-conditions .is-fail {
	color: var(--cb-red-tx);
}

.cbr-theme-dark .cbr-drop {
	background: var(--cb-void-3);
}

.cbr-theme-dark .cbr-source-card,
.cbr-theme-dark .cbr-radio {
	background: var(--cb-void-3);
}

.cbr-theme-dark .cbr-source-card:hover,
.cbr-theme-dark .cbr-radio:has( input:checked ) {
	border-color: var(--cb-lime);
	background: #1A1D10;
}

.cbr-theme-dark .cbr-sticky-save {
	background: linear-gradient( to top, var(--cb-void) 70%, rgba( 11, 11, 11, 0 ) );
}

.cbr-theme-dark .cbr-sticky-save .button.is-dirty {
	box-shadow: 0 0 0 3px rgba( 217, 242, 102, .3 );
}

/* ------------------------------------------------------------------ loading */

.cbr-theme-dark .cbr-skeleton {
	background: linear-gradient( 90deg, rgba( 255, 255, 255, .05 ) 25%, rgba( 255, 255, 255, .11 ) 37%, rgba( 255, 255, 255, .05 ) 63% );
	background-size: 400% 100%;
}

.cbr-theme-dark .cbr-skeleton-row + .cbr-skeleton-row {
	border-top-color: var(--cb-line);
}

/* ------------------------------------------------------------------ phones */

@media ( max-width: 782px ) {
	.cbr-theme-dark .wrap.codebold-redirect > h1 {
		font-size: 26px;
	}

	.cbr-app.cbr-theme-dark .cbr-table tr {
		border-bottom-color: var(--cb-line);
	}

	/* The card labels stay in the reading face: in capitals and mono, "Last used" no
	   longer fits beside its date on a 360px phone. */
	.cbr-app.cbr-theme-dark .cbr-table td[data-label]::before {
		color: var(--cb-tx-2);
	}
}

/* Tabs and addresses are links too, but they carry their own colours, not the link lime. */
.cbr-app.cbr-theme-dark a.cbr-tab {
	color: var(--cb-tx-2);
}

.cbr-app.cbr-theme-dark a.cbr-tab:hover,
.cbr-app.cbr-theme-dark a.cbr-tab:focus,
.cbr-app.cbr-theme-dark a.cbr-tab.is-active {
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark a.cbr-code {
	color: var(--cb-tx);
}

.cbr-app.cbr-theme-dark a.cbr-code:hover,
.cbr-app.cbr-theme-dark a.cbr-code:focus {
	color: var(--cb-lime);
}

.cbr-theme-dark .cbr-sep {
	color: var(--cb-tx-3);
}

/* ==================================================================== theme: Light
 *
 * Chosen per person under Settings → Appearance: white cards on WordPress's own grey, in
 * CodeBold IT Solutions' black and lime. Lime is only ever a fill behind black text —
 * buttons, the "+" mark, a switch's knob — never text or a line on white, where it
 * would all but disappear. Scoped like Dark: the screen and its own pieces only.
 * ================================================================================= */

.cbr-theme-light {
	--cb-ink: #0B0B0B;
	--cb-ink-2: rgba( 11, 11, 11, .68 );
	--cb-ink-3: rgba( 11, 11, 11, .6 );
	--cb-sand: #F1EFE8;
	--cb-card: #FFFFFF;
	--cb-on-ink: #F5F5F5;

	--cb-line: rgba( 11, 11, 11, .1 );
	--cb-line-2: rgba( 11, 11, 11, .16 );
	--cb-line-3: rgba( 11, 11, 11, .32 );

	--cb-lime: #D9F266;
	--cb-lime-soft: #F1FFCF;
	--cb-olive: #6B7C1A;
	--cb-olive-ink: #5C6B12;
	--cb-red: #C21313;
	--cb-red-soft: #FCECEC;
	--cb-amber-tx: #7A5A00;
	--cb-amber-soft: #FFF4D1;
	--cb-indigo-tx: #3F2F99;
	--cb-indigo-soft: #ECE9FF;

	--cb-head: "CodeBold Instrument Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cb-body: var(--cb-head);

	--cb-glow: 0 0 0 3px rgba( 217, 242, 102, .75 );
}

/* The screen's tokens, re-pointed. Most of the stylesheet reads these, so this one block
   repaints most of the screen; the rules after it catch what was set by hand. */
.cbr-app.cbr-theme-light,
.cbr-menu.cbr-theme-light,
.cbr-toasts.cbr-theme-light {
	--cbr-blue: var(--cb-ink);
	--cbr-blue-dark: var(--cb-olive-ink);
	--cbr-blue-soft: var(--cb-lime-soft);
	--cbr-text: var(--cb-ink);
	--cbr-muted: var(--cb-ink-2);
	--cbr-border: var(--cb-line-2);
	--cbr-border-soft: var(--cb-line);
	--cbr-border-card: var(--cb-line);
	--cbr-surface: var(--cb-card);
	--cbr-green: var(--cb-olive);
	--cbr-green-soft: var(--cb-lime-soft);
	--cbr-amber: var(--cb-amber-tx);
	--cbr-amber-soft: var(--cb-amber-soft);
	--cbr-red: var(--cb-red);
	--cbr-red-soft: var(--cb-red-soft);

	--cbr-accent: var(--cb-olive);
	--cbr-accent-soft: var(--cb-lime-soft);
	--cbr-success: var(--cb-olive);
	--cbr-warning: var(--cb-amber-tx);
	--cbr-error: var(--cb-red);
	--cbr-shadow: 0 1px 2px rgba( 11, 11, 11, .04 );
	--cbr-radius: 16px;
	--cbr-radius-sm: 10px;

	color: var(--cb-ink);
	font-family: var(--cb-body);
	-webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ heading */

.cbr-app.cbr-theme-light h2,
.cbr-app.cbr-theme-light h3,
.cbr-app.cbr-theme-light h4,
.cbr-app.cbr-theme-light h5,
.cbr-app.cbr-theme-light legend,
.cbr-theme-light .cbr-card-title,
.cbr-theme-light .cbr-fold-title,
.cbr-theme-light .cbr-empty h3 {
	color: var(--cb-ink);
	font-family: var(--cb-head);
	letter-spacing: -.01em;
}

.cbr-app.cbr-theme-light label,
.cbr-app.cbr-theme-light strong {
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light p,
.cbr-app.cbr-theme-light .description,
.cbr-theme-light .cbr-boot {
	color: var(--cb-ink-2);
}

.cbr-app.cbr-theme-light a {
	color: var(--cb-olive-ink);
}

.cbr-app.cbr-theme-light a:hover,
.cbr-app.cbr-theme-light a:focus {
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light :focus-visible,
.cbr-menu.cbr-theme-light :focus-visible {
	outline: 2px solid var(--cb-ink);
	outline-offset: 2px;
	box-shadow: none;
}

.cbr-app.cbr-theme-light code {
	background: var(--cb-sand);
	color: var(--cb-ink);
}

/* ------------------------------------------------------------------ tabs: the black bar */

.cbr-theme-light .cbr-tabs {
	gap: 2px;
	padding: 4px 6px;
	border-bottom: 0;
	border-radius: 14px;
	background: var(--cb-ink);
}

.cbr-app.cbr-theme-light a.cbr-tab {
	margin-bottom: 0;
	border-radius: 10px;
	color: rgba( 245, 245, 245, .74 );
	font-family: var(--cb-head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}

.cbr-app.cbr-theme-light a.cbr-tab:hover,
.cbr-app.cbr-theme-light a.cbr-tab:focus {
	color: var(--cb-on-ink);
}

.cbr-app.cbr-theme-light a.cbr-tab.is-active {
	color: var(--cb-lime);
}

.cbr-theme-light .cbr-tab::after {
	right: 14px;
	bottom: 4px;
	left: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--cb-lime);
}

.cbr-app.cbr-theme-light a.cbr-tab:focus-visible {
	outline: 2px solid var(--cb-lime);
	outline-offset: -2px;
}

.cbr-theme-light .cbr-tab-count {
	background: rgba( 255, 255, 255, .14 );
	color: var(--cb-on-ink);
}

.cbr-theme-light .cbr-tab.is-active .cbr-tab-count {
	background: var(--cb-lime);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-tab-count.is-alert,
.cbr-theme-light .cbr-tab.is-active .cbr-tab-count.is-alert {
	background: var(--cb-red);
	color: #fff;
}

/* ------------------------------------------------------------------ cards and figures */

.cbr-theme-light .cbr-card,
.cbr-theme-light .cbr-empty,
.cbr-theme-light .cbr-fold,
.cbr-theme-light .cbr-skeleton-rows,
.cbr-app.cbr-theme-light .cbr-table {
	border: 1.5px solid var(--cb-line);
	background: var(--cb-card);
	box-shadow: var(--cbr-shadow);
}

.cbr-theme-light .cbr-card-add {
	border-radius: 20px;
}

/* The add card's mark: a lime disc with a "+", the site's button colour. */
.cbr-theme-light .cbr-card-add > .cbr-card-title {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 18px !important;
	font-weight: 700;
}

.cbr-theme-light .cbr-card-add > .cbr-card-title::before {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border: 1px solid rgba( 0, 0, 0, .25 );
	border-radius: 999px;
	background: var(--cb-lime);
	color: var(--cb-ink);
	font-family: var(--cb-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.cbr-theme-light .cbr-stat {
	border: 1.5px solid var(--cb-line);
	background: var(--cb-card);
	color: var(--cb-ink);
	box-shadow: none;
}

.cbr-theme-light .cbr-stat:hover {
	border-color: var(--cb-line-3);
}

.cbr-theme-light .cbr-stat.is-active {
	border-color: var(--cb-ink);
	box-shadow: 0 0 0 1px var(--cb-ink);
}

.cbr-theme-light .cbr-stat-icon {
	background: var(--cb-lime);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-stat.is-alert .cbr-stat-icon {
	background: var(--cb-red-soft);
	color: var(--cb-red);
}

.cbr-theme-light .cbr-stat-number {
	font-family: var(--cb-head);
	font-weight: 700;
	letter-spacing: -.02em;
}

.cbr-theme-light .cbr-stat-label {
	color: var(--cb-ink-2);
}

.cbr-theme-light .cbr-illustration,
.cbr-theme-light .cbr-illustration.is-success {
	color: var(--cb-olive);
}

/* ------------------------------------------------------------------ WordPress's own controls */

/* Buttons are the site's pills: lime for the one thing to do, outlined for the rest. */
.cbr-app.cbr-theme-light .button,
.cbr-app.cbr-theme-light .button-secondary {
	border: 1.5px solid var(--cb-line-2);
	border-radius: 999px;
	background: var(--cb-card);
	color: var(--cb-ink);
	font-family: var(--cb-head);
	font-weight: 600;
	box-shadow: none;
}

.cbr-app.cbr-theme-light .button:hover,
.cbr-app.cbr-theme-light .button:focus {
	border-color: var(--cb-ink);
	background: var(--cb-card);
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light .button-primary {
	border: 1px solid rgba( 0, 0, 0, .25 );
	background: var(--cb-lime);
	color: var(--cb-ink);
	font-weight: 700;
}

.cbr-app.cbr-theme-light .button-primary:hover,
.cbr-app.cbr-theme-light .button-primary:focus {
	border-color: var(--cb-ink);
	background: #CBE650;
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light .button[disabled],
.cbr-app.cbr-theme-light .button:disabled,
.cbr-app.cbr-theme-light .button.disabled {
	border-color: var(--cb-line) !important;
	background: var(--cb-sand) !important;
	color: var(--cb-ink-3) !important;
}

.cbr-app.cbr-theme-light .button-link {
	color: var(--cb-olive-ink);
	font-weight: 600;
}

.cbr-app.cbr-theme-light .button-link:hover,
.cbr-app.cbr-theme-light .button-link:focus {
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light .cbr-danger,
.cbr-app.cbr-theme-light .button-link.cbr-danger {
	color: var(--cb-red) !important;
}

.cbr-app.cbr-theme-light input[type="text"],
.cbr-app.cbr-theme-light input[type="search"],
.cbr-app.cbr-theme-light input[type="number"],
.cbr-app.cbr-theme-light input[type="url"],
.cbr-app.cbr-theme-light input[type="email"],
.cbr-app.cbr-theme-light input[type="date"],
.cbr-app.cbr-theme-light input[type="datetime-local"],
.cbr-app.cbr-theme-light input[type="password"],
.cbr-app.cbr-theme-light select,
.cbr-app.cbr-theme-light textarea,
.cbr-app.cbr-theme-light .cbr-input,
.cbr-app.cbr-theme-light .cbr-select {
	border: 1.5px solid var(--cb-line-2);
	border-radius: 10px;
	background-color: var(--cb-card);
	color: var(--cb-ink);
	font-family: var(--cb-body);
}

.cbr-app.cbr-theme-light input::placeholder,
.cbr-app.cbr-theme-light textarea::placeholder {
	color: rgba( 11, 11, 11, .5 );
	opacity: 1;
}

.cbr-app.cbr-theme-light input:hover,
.cbr-app.cbr-theme-light select:hover,
.cbr-app.cbr-theme-light textarea:hover {
	border-color: var(--cb-line-3);
}

.cbr-app.cbr-theme-light input:focus,
.cbr-app.cbr-theme-light select:focus,
.cbr-app.cbr-theme-light textarea:focus,
.cbr-app.cbr-theme-light .cbr-input:focus,
.cbr-app.cbr-theme-light .cbr-select:focus {
	border-color: var(--cb-ink);
	box-shadow: var(--cb-glow);
	outline: 0;
}

.cbr-app.cbr-theme-light input[type="checkbox"]:not(.cbr-toggle),
.cbr-app.cbr-theme-light input[type="radio"] {
	border: 1.5px solid rgba( 11, 11, 11, .45 );
	background: var(--cb-card);
	box-shadow: none;
}

.cbr-app.cbr-theme-light input[type="checkbox"]:not(.cbr-toggle) {
	border-radius: 5px;
}

.cbr-app.cbr-theme-light input[type="checkbox"]:not(.cbr-toggle):checked {
	border-color: var(--cb-ink);
	background: var(--cb-ink);
}

/* WordPress's own tick, drawn in lime on the black box. */
.cbr-app.cbr-theme-light input[type="checkbox"]:not(.cbr-toggle):checked::before {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z' fill='%23D9F266'/%3E%3C/svg%3E");
}

.cbr-app.cbr-theme-light input[type="radio"]:checked {
	border-color: var(--cb-ink);
}

.cbr-app.cbr-theme-light input[type="radio"]:checked::before {
	background: var(--cb-ink);
}

.cbr-app.cbr-theme-light input[type="checkbox"]:focus,
.cbr-app.cbr-theme-light input[type="radio"]:focus {
	border-color: var(--cb-ink);
	box-shadow: var(--cb-glow);
}

.cbr-app.cbr-theme-light [aria-invalid="true"] {
	border-color: var(--cb-red) !important;
	box-shadow: 0 0 0 1px var(--cb-red);
}

.cbr-theme-light .cbr-field-error,
.cbr-theme-light .cbr-counter.is-full {
	color: var(--cb-red);
}

/* Field labels in the site's eyebrow style. */
.cbr-theme-light .cbr-label,
.cbr-theme-light .cbr-subhead {
	color: var(--cb-ink-2);
	font-family: var(--cb-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.cbr-theme-light .cbr-more-hint,
.cbr-theme-light .cbr-kept,
.cbr-theme-light .cbr-unit,
.cbr-theme-light .cbr-preview-why {
	color: var(--cb-ink-2);
}

.cbr-theme-light .cbr-field-hint {
	color: var(--cb-indigo-tx);
}

.cbr-app.cbr-theme-light .cbr-help {
	background: rgba( 11, 11, 11, .08 );
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light .cbr-tip {
	border-radius: 10px;
	background: var(--cb-ink);
	color: var(--cb-on-ink);
	box-shadow: 0 10px 26px rgba( 11, 11, 11, .2 );
}

/* Switches: a grey groove when off; black with a lime knob when on — the site's two
   strongest colours, together. */
.cbr-theme-light .cbr-switch,
.cbr-app.cbr-theme-light input[type="checkbox"].cbr-toggle {
	background: #8E8C88;
}

.cbr-theme-light .cbr-switch.is-on,
.cbr-app.cbr-theme-light input[type="checkbox"].cbr-toggle:checked {
	background: var(--cb-ink);
}

.cbr-theme-light .cbr-switch::after,
.cbr-app.cbr-theme-light input[type="checkbox"].cbr-toggle::before {
	background: #fff;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, .3 );
}

.cbr-theme-light .cbr-switch.is-on::after,
.cbr-app.cbr-theme-light input[type="checkbox"].cbr-toggle:checked::before {
	background: var(--cb-lime);
}

.cbr-theme-light .cbr-switch:focus-visible,
.cbr-app.cbr-theme-light input[type="checkbox"].cbr-toggle:focus-visible {
	outline: 2px solid var(--cb-ink);
	box-shadow: var(--cb-glow);
}

/* ------------------------------------------------------------------ the add form */

.cbr-theme-light .cbr-more {
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-match-card {
	border: 1.5px solid var(--cb-line-2);
	border-radius: 12px;
	background: var(--cb-card);
}

.cbr-theme-light .cbr-match-card:hover {
	border-color: var(--cb-line-3);
}

.cbr-theme-light .cbr-match-card .cbr-match-icon {
	border-radius: 999px;
	background: var(--cb-sand);
	color: var(--cb-ink-2);
}

.cbr-theme-light .cbr-match-card.is-selected {
	border-color: var(--cb-ink);
	background: var(--cb-lime-soft);
	box-shadow: 0 0 0 1px var(--cb-ink);
}

.cbr-theme-light .cbr-match-card.is-selected .cbr-match-icon {
	background: var(--cb-lime);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-fold {
	border-radius: 14px;
}

.cbr-theme-light .cbr-fold-head {
	border-radius: 14px;
}

.cbr-theme-light .cbr-fold-head:hover {
	background: var(--cb-sand);
}

.cbr-theme-light .cbr-fold-icon {
	border-radius: 999px;
	background: var(--cb-lime);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-fold-body {
	border-top-color: var(--cb-line);
}

.cbr-theme-light .cbr-fold-chevron {
	color: var(--cb-ink-2);
}

.cbr-theme-light .cbr-condition {
	border-color: var(--cb-line-2);
	border-radius: 12px;
	background: var(--cb-sand);
}

.cbr-theme-light .cbr-picker-list {
	border: 1.5px solid var(--cb-line-2);
	border-radius: 12px;
	background: var(--cb-card);
	box-shadow: 0 20px 50px rgba( 11, 11, 11, .12 );
}

.cbr-theme-light .cbr-picker-chip {
	border-color: var(--cb-ink);
}

.cbr-theme-light .cbr-picker-chip .dashicons {
	color: var(--cb-olive-ink);
}

.cbr-theme-light .cbr-picker-chip-clear:hover {
	background: var(--cb-card);
}

.cbr-theme-light .cbr-suggest-chip {
	border-radius: 999px;
}

.cbr-theme-light .cbr-suggest-chip.is-fix {
	border-color: rgba( 107, 124, 26, .45 );
}

.cbr-theme-light .cbr-suggest-chip.is-fix .dashicons {
	color: var(--cb-olive-ink);
}

.cbr-theme-light .cbr-message.is-error {
	color: var(--cb-red);
}

.cbr-theme-light .cbr-message.is-warning {
	color: var(--cb-amber-tx);
}

.cbr-theme-light .cbr-arrow,
.cbr-theme-light .cbr-arrow-inline {
	color: var(--cb-ink-3);
}

/* ------------------------------------------------------------------ filters and lists */

.cbr-theme-light .cbr-pill {
	border: 1.5px solid var(--cb-line-2);
	background: var(--cb-card);
	color: var(--cb-ink);
	font-family: var(--cb-head);
	font-weight: 600;
}

.cbr-theme-light .cbr-pill:hover {
	border-color: var(--cb-ink);
}

.cbr-theme-light .cbr-pill.is-active {
	border-color: var(--cb-ink);
	background: var(--cb-ink);
	color: var(--cb-on-ink);
}

.cbr-theme-light .cbr-pill.is-active .cbr-pill-count {
	color: var(--cb-lime);
}

.cbr-theme-light .cbr-pill.is-alert:not(.is-active) {
	border-color: rgba( 194, 19, 19, .35 );
	color: var(--cb-red);
}

.cbr-theme-light .cbr-bulk {
	border: 1.5px solid rgba( 107, 124, 26, .35 );
	border-radius: 12px;
	background: var(--cb-lime-soft);
}

.cbr-app.cbr-theme-light .widefat {
	border-color: var(--cb-line);
	background: var(--cb-card);
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light .widefat td,
.cbr-app.cbr-theme-light .widefat th,
.cbr-app.cbr-theme-light .widefat tfoot td,
.cbr-app.cbr-theme-light .widefat tfoot th {
	border-color: var(--cb-line);
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light .widefat thead th,
.cbr-app.cbr-theme-light .widefat thead td,
.cbr-app.cbr-theme-light .cbr-table-redirects thead th,
.cbr-app.cbr-theme-light .cbr-table-redirects thead td {
	border-bottom: 1.5px solid var(--cb-line);
	background: var(--cb-sand);
	color: var(--cb-ink-2);
	font-family: var(--cb-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.cbr-app.cbr-theme-light .cbr-sortable button {
	letter-spacing: inherit;
	text-transform: inherit;
}

.cbr-app.cbr-theme-light .striped > tbody > :nth-child(odd) {
	background: #FBFAF7;
}

.cbr-app.cbr-theme-light .cbr-table-redirects tbody td,
.cbr-app.cbr-theme-light .cbr-table-redirects tbody th {
	border-top-color: rgba( 11, 11, 11, .07 );
}

.cbr-app.cbr-theme-light .cbr-table tbody tr:hover,
.cbr-app.cbr-theme-light .cbr-table-redirects tbody tr:hover {
	background: #FBFAF7;
}

.cbr-app.cbr-theme-light .cbr-table-redirects tbody tr.is-editing,
.cbr-app.cbr-theme-light .cbr-table-redirects .cbr-edit-row > td,
.cbr-app.cbr-theme-light .cbr-table tr.is-editing,
.cbr-theme-light .cbr-edit-row > td {
	background: var(--cb-sand);
}

.cbr-app.cbr-theme-light .cbr-table tr.is-off .cbr-code,
.cbr-app.cbr-theme-light .cbr-table tr.is-off .cbr-target-url,
.cbr-app.cbr-theme-light .cbr-table tr.is-off .cbr-target-title {
	color: var(--cb-ink-2);
}

.cbr-theme-light .cbr-code {
	border-radius: 6px;
	background: var(--cb-sand);
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light a.cbr-code {
	color: var(--cb-ink);
}

.cbr-app.cbr-theme-light a.cbr-code:hover,
.cbr-app.cbr-theme-light a.cbr-code:focus {
	background: var(--cb-lime);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-target-title {
	font-family: var(--cb-head);
}

.cbr-app.cbr-theme-light .cbr-target-url {
	color: var(--cb-ink-2);
}

.cbr-app.cbr-theme-light .cbr-target-url:hover {
	color: var(--cb-ink);
	text-decoration: underline;
}

.cbr-theme-light .cbr-icon-button {
	border-radius: 999px;
	color: var(--cb-ink-2);
}

.cbr-theme-light .cbr-icon-button:hover {
	border-color: var(--cb-line-2);
	background: var(--cb-card);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-icon-button[aria-expanded="true"] {
	border-color: var(--cb-ink);
	background: var(--cb-lime);
	color: var(--cb-ink);
}

/* Chips and badges: a pale tint and a dark ink of each family, every pair at least
   4.5 : 1. A plain 301 — the everyday redirect — is the site's black and lime. */
.cbr-theme-light .cbr-chip {
	background: rgba( 11, 11, 11, .06 );
	color: var(--cb-ink-2);
	font-family: var(--cb-head);
	font-weight: 600;
}

.cbr-theme-light .cbr-chip.is-off-chip {
	background: var(--cb-ink);
	color: var(--cb-on-ink);
}

.cbr-theme-light .cbr-chip.is-match,
.cbr-theme-light .cbr-code-badge.is-308 {
	background: var(--cb-indigo-soft);
	color: var(--cb-indigo-tx);
}

.cbr-theme-light .cbr-chip.is-condition,
.cbr-theme-light .cbr-chip.is-schedule,
.cbr-theme-light .cbr-chip.is-status-exists,
.cbr-theme-light .cbr-chip.is-status-duplicate,
.cbr-theme-light .cbr-code-badge.is-302,
.cbr-theme-light .cbr-code-badge.is-307 {
	background: var(--cb-amber-soft);
	color: var(--cb-amber-tx);
}

.cbr-theme-light .cbr-chip.is-origin-auto,
.cbr-theme-light .cbr-chip.is-origin-trash,
.cbr-theme-light .cbr-chip.is-origin-post,
.cbr-theme-light .cbr-chip.is-status-ready,
.cbr-theme-light .cbr-code-badge.is-200 {
	background: var(--cb-lime-soft);
	color: var(--cb-olive-ink);
}

.cbr-theme-light .cbr-chip.is-group {
	background: var(--cb-sand);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-code-badge,
.cbr-theme-light .cbr-code-badge.is-301 {
	background: var(--cb-ink);
	color: var(--cb-lime);
}

.cbr-theme-light .cbr-chip.is-alert,
.cbr-theme-light .cbr-chip.is-status-refused,
.cbr-theme-light .cbr-code-badge.is-404,
.cbr-theme-light .cbr-code-badge.is-410,
.cbr-theme-light .cbr-code-badge.is-451,
.cbr-theme-light .cbr-code-badge.is-500 {
	background: var(--cb-red-soft);
	color: var(--cb-red);
}

.cbr-theme-light .cbr-chip.is-bot {
	background: var(--cb-sand);
	color: var(--cb-ink-2);
}

.cbr-theme-light .cbr-code-badge {
	font-family: var(--cb-head);
	font-weight: 700;
}

/* ------------------------------------------------------------------ the "⋯" menu, toasts */

.cbr-menu.cbr-theme-light {
	border: 1.5px solid var(--cb-line);
	border-radius: 14px;
	background: var(--cb-card);
	box-shadow: 0 20px 50px rgba( 11, 11, 11, .14 );
}

.cbr-theme-light .cbr-menu-item {
	border-radius: 8px;
	color: var(--cb-ink);
	font-family: var(--cb-body);
}

.cbr-theme-light .cbr-menu-item:hover,
.cbr-theme-light .cbr-menu-item:focus {
	background: var(--cb-sand);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-menu-item.is-danger {
	border-top-color: var(--cb-line);
	color: var(--cb-red);
}

.cbr-theme-light .cbr-menu-item.is-danger:hover,
.cbr-theme-light .cbr-menu-item.is-danger:focus {
	background: var(--cb-red-soft);
	color: var(--cb-red);
}

/* Toasts are the site's black bar, with a lime mark. */
.cbr-theme-light .cbr-toast {
	border-radius: 14px;
	background: var(--cb-ink);
	color: var(--cb-on-ink);
	box-shadow: 0 20px 50px rgba( 11, 11, 11, .25 );
	font-family: var(--cb-body);
}

.cbr-theme-light .cbr-toast.is-error {
	background: #3A0C0C;
}

.cbr-theme-light .cbr-toast-icon {
	background: var(--cb-lime);
	color: var(--cb-ink);
}

.cbr-theme-light .cbr-toast.is-error .cbr-toast-icon {
	background: #FF8F84;
	color: #3A0C0C;
}

.cbr-theme-light .cbr-toast.is-undo .cbr-toast-icon {
	background: rgba( 255, 255, 255, .16 );
	color: var(--cb-lime);
}

.cbr-theme-light .cbr-toast-action {
	border: 1px solid rgba( 0, 0, 0, .25 );
	border-radius: 999px;
	background: var(--cb-lime);
	color: var(--cb-ink);
	font-family: var(--cb-head);
}

.cbr-theme-light .cbr-toast-action:hover {
	background: #fff;
}

.cbr-theme-light .cbr-toast-close {
	color: rgba( 245, 245, 245, .74 );
}

/* ------------------------------------------------------------------ the other tabs */

.cbr-theme-light .cbr-why > li.is-matched,
.cbr-theme-light .cbr-why-conditions .is-pass {
	color: var(--cb-olive-ink);
}

.cbr-theme-light .cbr-why-conditions .is-fail {
	color: var(--cb-red);
}

.cbr-theme-light .cbr-verdict {
	border-radius: 14px;
}

.cbr-theme-light .cbr-verdict .dashicons {
	color: var(--cb-olive-ink);
}

.cbr-theme-light .cbr-drop {
	border-color: var(--cb-line-3);
	border-radius: 16px;
	background: var(--cb-sand);
}

.cbr-theme-light .cbr-drop:hover,
.cbr-theme-light .cbr-drop.is-over {
	border-color: var(--cb-ink);
	background: var(--cb-lime-soft);
}

.cbr-theme-light .cbr-drop .dashicons {
	color: var(--cb-olive-ink);
}

.cbr-theme-light .cbr-source-card,
.cbr-theme-light .cbr-radio {
	border-radius: 12px;
	background: var(--cb-card);
}

.cbr-theme-light .cbr-source-card:hover,
.cbr-theme-light .cbr-radio:has( input:checked ) {
	border-color: var(--cb-ink);
	background: var(--cb-lime-soft);
}

.cbr-theme-light .cbr-progress-bar {
	background: var(--cb-ink);
}

.cbr-theme-light .cbr-sticky-save {
	background: linear-gradient( to top, var(--cb-sand) 70%, rgba( 247, 244, 239, 0 ) );
}

.cbr-theme-light .cbr-sticky-save .button.is-dirty {
	box-shadow: var(--cb-glow);
}

.cbr-theme-light .cbr-sep {
	color: var(--cb-ink-3);
}

/* ------------------------------------------------------------------ loading */

.cbr-theme-light .cbr-skeleton {
	background: linear-gradient( 90deg, rgba( 11, 11, 11, .05 ) 25%, rgba( 11, 11, 11, .1 ) 37%, rgba( 11, 11, 11, .05 ) 63% );
	background-size: 400% 100%;
}

.cbr-theme-light .cbr-skeleton-row + .cbr-skeleton-row {
	border-top-color: var(--cb-line);
}

/* ------------------------------------------------------------------ phones */

@media ( max-width: 782px ) {
	.cbr-theme-light .cbr-tabs {
		padding: 4px;
	}

	.cbr-app.cbr-theme-light .cbr-table tr {
		border-bottom-color: var(--cb-line);
	}

	.cbr-app.cbr-theme-light .cbr-table td[data-label]::before {
		color: var(--cb-ink-2);
		font-family: var(--cb-head);
	}
}

/* ==================================================================== brand heading
 *
 * The screen's heading in the Light and Dark themes: Instrument Sans with CodeBold's mark
 * above it. It sits on WordPress's own background in both, so it keeps WordPress's ink.
 * ================================================================================= */

.wrap.codebold-redirect.cbr-theme-light > h1,
.wrap.codebold-redirect.cbr-theme-dark > h1 {
	display: block;
	margin: 6px 0 16px;
	padding: 0;
	color: #1d2327;
	font-family: "CodeBold Instrument Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.1;
}

.wrap.codebold-redirect.cbr-theme-light > h1::before,
.wrap.codebold-redirect.cbr-theme-dark > h1::before {
	content: "CodeBold";
	display: block;
	margin-bottom: 8px;
	color: #50575e;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1;
	text-transform: uppercase;
}

.wrap.codebold-redirect.cbr-theme-light > .wp-header-end,
.wrap.codebold-redirect.cbr-theme-dark > .wp-header-end {
	display: none;
}

/* ==================================================================== dashboard widget
 *
 * Three figures as cards, the worst broken links with their visit count as a chip and a
 * "Fix" button — in whichever appearance this person chose for the Redirects screen.
 * ================================================================================= */

.cbr-widget-stats a {
	gap: 2px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff;
	transition: border-color 150ms ease;
}

.cbr-widget-stats a:hover,
.cbr-widget-stats a:focus {
	border-color: var(--wp-admin-theme-color, #2271b1);
}

.cbr-widget-label {
	color: #50575e;
}

.cbr-widget-table td {
	vertical-align: middle;
}

.cbr-widget-hits {
	width: 64px;
	padding-right: 8px !important;
}

.cbr-widget-chip {
	display: inline-block;
	min-width: 28px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #f0f0f1;
	color: #3c434a;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.cbr-widget-fix {
	width: 56px;
}

.cbr-widget .cbr-widget-fix-button {
	min-width: 48px;
	text-align: center;
}

.cbr-widget-empty {
	color: #00701a;
	font-weight: 600;
}

.cbr-widget-warning a {
	color: #b32d2e;
}

@media ( max-width: 782px ) {
	.cbr-widget .cbr-widget-fix-button {
		min-height: 44px;
		line-height: 42px;
	}

	.cbr-widget-fix {
		width: 64px;
	}
}

/* Light: CodeBold's black and lime. */
.cbr-widget.cbr-theme-light {
	font-family: "CodeBold Instrument Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.cbr-widget.cbr-theme-light .cbr-widget-stats a {
	border: 1.5px solid rgba( 11, 11, 11, .1 );
	border-radius: 12px;
	color: #0B0B0B;
}

.cbr-widget.cbr-theme-light .cbr-widget-stats a:hover,
.cbr-widget.cbr-theme-light .cbr-widget-stats a:focus {
	border-color: #0B0B0B;
}

.cbr-widget.cbr-theme-light .cbr-widget-number {
	font-weight: 700;
	letter-spacing: -.02em;
}

.cbr-widget.cbr-theme-light .cbr-widget-chip {
	background: #F1EFE8;
	color: #0B0B0B;
}

.cbr-widget.cbr-theme-light .button {
	border: 1.5px solid rgba( 11, 11, 11, .16 );
	border-radius: 999px;
	background: #fff;
	color: #0B0B0B;
	font-weight: 600;
}

.cbr-widget.cbr-theme-light .button:hover,
.cbr-widget.cbr-theme-light .button:focus {
	border-color: #0B0B0B;
	color: #0B0B0B;
}

.cbr-widget.cbr-theme-light .cbr-widget-fix-button {
	border-color: rgba( 0, 0, 0, .25 );
	background: #D9F266;
	font-weight: 700;
}

.cbr-widget.cbr-theme-light .cbr-widget-fix-button:hover,
.cbr-widget.cbr-theme-light .cbr-widget-fix-button:focus {
	background: #CBE650;
}

.cbr-widget.cbr-theme-light .cbr-widget-empty {
	color: #5C6B12;
}

/* Dark: the widget's inside as a small dark panel; the box around it stays WordPress's. */
.cbr-widget.cbr-theme-dark {
	margin-top: 12px;
	padding: 12px;
	border-radius: 12px;
	background: #0B0B0B;
	color: #F5F5F5;
	font-family: "CodeBold Instrument Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: dark;
}

.cbr-widget.cbr-theme-dark .cbr-widget-stats a {
	border-color: rgba( 255, 255, 255, .12 );
	background: #111111;
	color: #F5F5F5;
}

.cbr-widget.cbr-theme-dark .cbr-widget-stats a:hover,
.cbr-widget.cbr-theme-dark .cbr-widget-stats a:focus {
	border-color: #D9F266;
}

.cbr-widget.cbr-theme-dark .cbr-widget-label,
.cbr-widget.cbr-theme-dark .cbr-widget-heading {
	color: #B3B3B3;
}

.cbr-widget.cbr-theme-dark .cbr-widget-table td {
	border-top-color: rgba( 255, 255, 255, .09 );
}

.cbr-widget.cbr-theme-dark .cbr-widget-url code {
	color: #F5F5F5;
}

.cbr-widget.cbr-theme-dark .cbr-widget-chip {
	background: rgba( 255, 255, 255, .1 );
	color: #F5F5F5;
}

.cbr-widget.cbr-theme-dark .button {
	border-color: rgba( 255, 255, 255, .2 );
	border-radius: 8px;
	background: transparent;
	color: #F5F5F5;
}

.cbr-widget.cbr-theme-dark .button:hover,
.cbr-widget.cbr-theme-dark .button:focus {
	border-color: #D9F266;
	color: #F5F5F5;
}

.cbr-widget.cbr-theme-dark .cbr-widget-fix-button {
	border-color: #D9F266;
	background: #D9F266;
	color: #0B0B0B;
	font-weight: 700;
}

.cbr-widget.cbr-theme-dark .cbr-widget-fix-button:hover,
.cbr-widget.cbr-theme-dark .cbr-widget-fix-button:focus {
	border-color: #E8FA9E;
	background: #E8FA9E;
	color: #0B0B0B;
}

.cbr-widget.cbr-theme-dark .cbr-widget-empty {
	color: #D9F266;
}

.cbr-widget.cbr-theme-dark .cbr-widget-warning a {
	color: #FF8F84;
}

.cbr-widget.cbr-theme-dark :focus-visible {
	outline: 2px solid #D9F266;
	outline-offset: 2px;
	box-shadow: none;
}

/* WordPress greys out a disabled button to 3 : 1; on this screen it stays readable. */
.cbr-app.cbr-theme-wp .button[disabled],
.cbr-app.cbr-theme-wp .button:disabled {
	color: #646970 !important;
}

.cbr-app.cbr-theme-wp .cbr-sep {
	color: #646970;
}

/* ==================================================================== the dark-mode button
 *
 * Beside the tabs: one click for dark, another for the normal light look. On phones it
 * takes the top-right corner above the tabs, so the tabs keep the full width.
 * ================================================================================= */

.cbr-topbar {
	display: flex;
	gap: var(--cbr-space-3);
	align-items: flex-start;
}

.cbr-topbar > .cbr-tabs {
	flex: 1 1 auto;
	min-width: 0;
}

.cbr-theme-toggle {
	display: inline-flex;
	flex: none;
	gap: 6px;
	align-items: center;
	min-height: 36px;
	margin-top: 4px;
	padding: 0 14px 0 12px;
	border: 1px solid var(--cbr-border);
	border-radius: var(--cbr-radius-pill);
	background: var(--cbr-surface);
	color: var(--cbr-text);
	font: inherit;
	font-size: var(--cbr-fs-sm);
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--cbr-ease), background-color var(--cbr-ease), color var(--cbr-ease);
}

.cbr-theme-toggle:hover {
	border-color: var(--cbr-text);
}

.cbr-theme-toggle:focus-visible {
	outline: 2px solid var(--cbr-accent);
	outline-offset: 2px;
	box-shadow: none;
}

.cbr-theme-toggle-icon {
	display: inline-flex;
}

@media ( max-width: 782px ) {
	.cbr-topbar {
		flex-wrap: wrap;
		gap: 0;
	}

	.cbr-theme-toggle {
		order: -1;
		min-height: 44px;
		margin: 0 0 var(--cbr-space-2) auto;
	}
}

.cbr-app.cbr-theme-dark .cbr-theme-toggle {
	border-color: var(--cb-line-2);
	background: transparent;
	color: var(--cb-tx);
	font-family: var(--cb-body);
}

.cbr-app.cbr-theme-dark .cbr-theme-toggle:hover {
	border-color: var(--cb-lime);
}

.cbr-app.cbr-theme-dark .cbr-theme-toggle[aria-pressed="true"] .cbr-theme-toggle-icon {
	color: var(--cb-lime);
}

.cbr-app.cbr-theme-dark .cbr-theme-toggle:focus-visible {
	outline-color: var(--cb-lime);
}

.cbr-app.cbr-theme-light .cbr-theme-toggle {
	border: 1.5px solid var(--cb-line-2);
	background: var(--cb-card);
	color: var(--cb-ink);
	font-family: var(--cb-head);
}

.cbr-app.cbr-theme-light .cbr-theme-toggle:hover {
	border-color: var(--cb-ink);
}

.cbr-app.cbr-theme-light .cbr-theme-toggle:focus-visible {
	outline-color: var(--cb-ink);
}

/* ==================================================================== who made it
 *
 * One quiet line at the end of the screen, in every appearance — muted, never in the way
 * of the work above it.
 * ================================================================================= */

.cbr-credit {
	margin: var(--cbr-space-6) 0 0;
	padding-top: var(--cbr-space-4);
	border-top: 1px solid var(--cbr-border-card);
	color: var(--cbr-muted);
	font-size: var(--cbr-fs-sm);
	text-align: center;
}

.cbr-credit a {
	color: var(--cbr-text);
	font-weight: 600;
}

.cbr-app.cbr-theme-light .cbr-credit {
	border-top-color: var(--cb-line);
	color: var(--cb-ink-2);
}

.cbr-app.cbr-theme-light .cbr-credit a {
	color: var(--cb-olive-ink);
}

.cbr-app.cbr-theme-dark .cbr-credit {
	border-top-color: var(--cb-line);
	color: var(--cb-tx-2);
}

.cbr-app.cbr-theme-dark .cbr-credit a {
	color: var(--cb-lime);
}
