/* ============================================================
 * AI Abilities page (gosmtp-abilities)
 * ============================================================ */

.gosmtp-abilities-root{
	--ab-bg:          #f6f7f9;
	--ab-surface:     #ffffff;
	--ab-border:      #e5e7eb;
	--ab-border-soft: #eef0f3;
	--ab-text:        #0f172a;
	--ab-text-soft:   #475569;
	--ab-text-muted:  #6b7280;
	--ab-primary:     #00308F;
	--ab-primary-700: #0529f7;
	--ab-primary-50:  #eef2ff;
	--ab-success:     #16a34a;
	--ab-success-bg:  #ecfdf5;
	--ab-warning:     #d97706;
	--ab-warning-bg:  #fef3c7;
	--ab-error:       #dc2626;
	--ab-error-bg:    #fef2f2;
	--ab-neutral:     #6b7280;
	--ab-neutral-bg:  #f1f5f9;
	--ab-code-bg:     #0f172a;
	--ab-code-text:   #e2e8f0;
	--ab-radius:      10px;
	--ab-radius-sm:   8px;
	--ab-shadow:      0 1px 2px rgba(15, 23, 42, 0.04);
	--ab-shadow-md:   0 4px 12px rgba(15, 23, 42, 0.08);
	margin: 18px 0 40px;
	padding: 20px 40px 40px 40px;
	color: var(--ab-text);
	font-size: 14px;
	line-height: 1.55;
}

/* ----- Page header ----- */
.gosmtp-abilities-header{
	margin: 0 0 24px;
}

.gosmtp-abilities-subtitle{
	color: var(--ab-text-soft);
	font-size: 14px;
}

/* ----- Layout ----- */
.gosmtp-abilities-layout{
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 22px;
	align-items: start;
}

/* ----- Card ----- */
.gosmtp-abilities-card{
	background: var(--ab-surface);
	border: 1px solid var(--ab-border);
	border-radius: var(--ab-radius);
	box-shadow: var(--ab-shadow);
	padding: 22px 24px;
	margin-bottom: 18px;
}
.gosmtp-abilities-card-head{
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.gosmtp-abilities-h2{
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--ab-text);
}
.gosmtp-abilities-h3{
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ab-text);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.gosmtp-abilities-meta{
	font-size: 12px;
	color: var(--ab-text-muted);
}

/* ----- Pills (shared) ----- */
.gosmtp-abilities-pill{
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	line-height: 1.4;
	white-space: nowrap;
}
.gosmtp-abilities-pill-success{ background: var(--ab-success-bg); color: var(--ab-success); }
.gosmtp-abilities-pill-warning{ background: var(--ab-warning-bg); color: var(--ab-warning); }
.gosmtp-abilities-pill-error{   background: var(--ab-error-bg);   color: var(--ab-error); }
.gosmtp-abilities-pill-neutral{ background: var(--ab-neutral-bg); color: var(--ab-neutral); }

/* ----- Stepper ----- */
.gosmtp-abilities-stepper{
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 4px 0 14px;
}
.gosmtp-abilities-stepper-track{
	position: absolute;
	left: 12.5%;
	right: 12.5%;
	top: 13px;
	height: 3px;
	background: var(--ab-border);
	border-radius: 999px;
	z-index: 0;
}
.gosmtp-abilities-stepper-fill{
	display: block;
	height: 100%;
	background: var(--ab-success);
	border-radius: 999px;
	transition: width 0.3s ease;
}
.gosmtp-abilities-stepper-node{
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.gosmtp-abilities-stepper-circle{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ab-surface);
	border: 2px solid var(--ab-border);
	color: var(--ab-text-muted);
	font-size: 12px;
	font-weight: 700;
}
.gosmtp-abilities-stepper-node-done .gosmtp-abilities-stepper-circle{
	background: var(--ab-success);
	border-color: var(--ab-success);
	color: #fff;
}
.gosmtp-abilities-stepper-label{
	font-size: 11.5px;
	color: var(--ab-text-muted);
	font-weight: 600;
	text-align: center;
}
.gosmtp-abilities-stepper-node-done .gosmtp-abilities-stepper-label{ color: var(--ab-text); }

.gosmtp-abilities-nextup{
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--ab-text-muted);
}
.gosmtp-abilities-nextup-done{
	color: var(--ab-success);
}

/* ----- Step rows (accordion) ----- */
.gosmtp-abilities-rows{
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gosmtp-abilities-row{
	border: 1px solid var(--ab-border);
	border-radius: var(--ab-radius-sm);
	background: var(--ab-surface);
	overflow: hidden;
	transition: border-color 0.15s ease;
}
.gosmtp-abilities-row:hover{ border-color: #cbd5e1; }
.gosmtp-abilities-row-done{ border-color: #bbf7d0; background: #fbfffd; }

.gosmtp-abilities-row-toggle{
	display: grid;
	grid-template-columns: 32px 1fr auto;
	gap: 14px;
	align-items: center;
	width: 100%;
	background: transparent;
	border: 0;
	padding: 14px 16px;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
}
.gosmtp-abilities-row-toggle:focus{ outline: 2px solid var(--ab-primary-50); outline-offset: -2px; }
.gosmtp-abilities-row-indicator{
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ab-neutral-bg);
	color: var(--ab-text-soft);
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--ab-border);
}
.gosmtp-abilities-row-done .gosmtp-abilities-row-indicator{
	background: var(--ab-success);
	color: #fff;
	border-color: var(--ab-success);
}
.gosmtp-abilities-row-text{ min-width: 0; }
.gosmtp-abilities-row-title{
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ab-text);
	line-height: 1.3;
}
.gosmtp-abilities-row-sub{
	display: block;
	font-size: 12px;
	color: var(--ab-text-muted);
	margin-top: 2px;
}
.gosmtp-abilities-row-body{
	padding: 0 16px 16px 60px;
	font-size: 13.5px;
	color: var(--ab-text-soft);
	border-top: 1px dashed var(--ab-border);
	margin-top: -1px;
}
.gosmtp-abilities-row-body > p:first-child{ margin-top: 14px; }
.gosmtp-abilities-row-body > p:last-child{ margin-bottom: 0; }
.gosmtp-abilities-row-body[hidden],
.gosmtp-abilities-row-body[style*="display:none"]{
	padding: 0 16px;
}
.gosmtp-abilities-btn{ margin-top: 10px; }

/* ----- Inline feedback ----- */
.gosmtp-abilities-feedback{
	display: none;
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: var(--ab-radius-sm);
	font-size: 13px;
	line-height: 1.45;
}
.gosmtp-abilities-feedback[hidden]{ display: none; }
.gosmtp-abilities-feedback.is-success{
	display: block;
	background: var(--ab-success-bg);
	color: var(--ab-success);
	border: 1px solid #bbf7d0;
}
.gosmtp-abilities-feedback.is-error{
	display: block;
	background: var(--ab-error-bg);
	color: var(--ab-error);
	border: 1px solid #fecaca;
}

/* ----- App password fields ----- */
.gosmtp-abilities-app-pass-fields{
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0 14px;
	padding: 14px;
	background: var(--ab-neutral-bg);
	border: 1px solid var(--ab-border);
	border-radius: var(--ab-radius-sm);
}
.gosmtp-abilities-app-pass-fields[data-hidden="true"]{ display: none; }
.gosmtp-abilities-field{
	flex: 1;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: var(--ab-text-soft);
	font-weight: 600;
}
.gosmtp-abilities-field span{ margin-bottom: 4px; }
.gosmtp-abilities-field input{
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	padding: 6px 10px;
	border: 1px solid var(--ab-border);
	border-radius: 6px;
	background: #fff;
}
.gosmtp-abilities-profile-link{
	align-self: flex-end;
	font-size: 12px;
	color: var(--ab-primary);
	text-decoration: none;
}
.gosmtp-abilities-profile-link:hover{ text-decoration: underline; }

/* ----- Test result ----- */
.gosmtp-abilities-test-result{
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: var(--ab-radius-sm);
	font-size: 13px;
	line-height: 1.45;
}
.gosmtp-abilities-test-result[data-hidden="true"]{ display: none; }
.gosmtp-abilities-test-result-ok{
	background: var(--ab-success-bg);
	border: 1px solid #bbf7d0;
	color: var(--ab-success);
}
.gosmtp-abilities-test-result-error{
	background: var(--ab-error-bg);
	border: 1px solid #fecaca;
	color: var(--ab-error);
}

/* ----- Abilities list (step 1) ----- */
.gosmtp-abilities-list {
    display: block;
    column-width: 250px;
    column-gap: 45px;
    margin-top: 10px;
}

.gosmtp-abilities-group {
    display: inline-block;
    width: 100%;
    background: var(--ab-neutral-bg);
    border: 1px solid var(--ab-border);
    border-radius: 2px;
    padding: 15px;
    margin-bottom: 15px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}
.gosmtp-abilities-group h4{
	margin: 0 0 8px;
	font-size: 11px;
	color: var(--ab-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
}
.gosmtp-abilities-group ul{
	margin: 0;
	padding: 0;
	list-style: none;
}
.gosmtp-abilities-group li{
	padding: 8px 0;
	border-top: 1px solid var(--ab-border);
	font-size: 12.5px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex-wrap: wrap;
}
.gosmtp-abilities-group li:first-child{ border-top: 0; padding-top: 0; }
.gosmtp-abilities-ability-name{
	display: block;
	font-weight: 600;
	color: var(--ab-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	flex: 1 1 auto;
}
.gosmtp-abilities-ability-desc{
	display: block;
	color: var(--ab-text-muted);
	margin-top: 2px;
	font-size: 12px;
	flex-basis: 100%;
}
.gosmtp-abilities-ability-pro{
	display: inline-block;
	background: var(--ab-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex: 0 0 auto;
}

/* ----- Segmented client tabs ----- */
.gosmtp-abilities-segmented{
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	background: var(--ab-neutral-bg);
	border: 1px solid var(--ab-border);
	border-radius: var(--ab-radius-sm);
	padding: 4px;
	margin: 4px 0 18px;
}
.gosmtp-abilities-segmented-btn{
	background: transparent;
	border: 0;
	padding: 7px 13px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ab-text-muted);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.gosmtp-abilities-segmented-btn:hover{ color: var(--ab-text); }
.gosmtp-abilities-segmented-btn.active{
	background: var(--ab-surface);
	color: var(--ab-primary);
	box-shadow: var(--ab-shadow);
}
.gosmtp-abilities-segmented-btn:disabled,
.gosmtp-abilities-segmented-btn[aria-disabled="true"]{ opacity: 0.5; cursor: not-allowed; }

/* ----- Client panel ----- */
.gosmtp-abilities-client-panel{
	background: var(--ab-neutral-bg);
	border: 1px solid var(--ab-border);
	border-radius: var(--ab-radius-sm);
	padding: 16px;
}
.gosmtp-abilities-client-meta{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 10px;
	font-size: 12px;
}
.gosmtp-abilities-client-path-label{
	color: var(--ab-text-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 10.5px;
}
.gosmtp-abilities-client-path-value{
	background: #fff;
	border-radius: 6px;
	padding: 4px 10px;
	color: var(--ab-text-soft);
	white-space: pre-wrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	border: 1px solid var(--ab-border-soft);
}

/* ----- Snippet ----- */
.gosmtp-abilities-snippet-wrap{
	position: relative;
	margin-bottom: 14px;
}
.gosmtp-abilities-snippet{
	display: block;
	background: var(--ab-code-bg);
	color: var(--ab-code-text);
	padding: 16px 18px;
	border-radius: var(--ab-radius-sm);
	overflow: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.55;
	white-space: pre;
	margin: 0;
	min-height: 64px;
	max-height: 360px;
	tab-size: 2;
}
.gosmtp-abilities-snippet.unsupported{ opacity: 0.65; }
.gosmtp-abilities-copy-btn{
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ab-code-text);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.gosmtp-abilities-copy-btn:hover{ background: rgba(255, 255, 255, 0.18); }
.gosmtp-abilities-copy-btn:focus{ outline: 2px solid var(--ab-primary-50); outline-offset: 1px; }
.gosmtp-abilities-copy-btn.is-copied{
	background: var(--ab-success);
	border-color: var(--ab-success);
	color: #fff;
}
.gosmtp-abilities-copy-btn:disabled{ opacity: 0.5; cursor: not-allowed; }

/* ----- Instructions ----- */
.gosmtp-abilities-instructions{
	margin: 0;
	padding-left: 22px;
	color: var(--ab-text-soft);
	font-size: 13px;
	counter-reset: abstep;
	list-style: none;
}
.gosmtp-abilities-instructions li{
	position: relative;
	margin-bottom: 6px;
	padding-left: 4px;
	line-height: 1.55;
	counter-increment: abstep;
}
.gosmtp-abilities-instructions li::before{
	content: counter(abstep);
	position: absolute;
	left: -22px;
	top: 1px;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ab-primary-50);
	color: var(--ab-primary);
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
}

/* ----- Sidebar ----- */
.gosmtp-abilities-side{
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 16px;
}
.gosmtp-abilities-side-card{ padding: 18px 20px; }
.gosmtp-abilities-side-card .gosmtp-abilities-h3{
	margin-bottom: 12px;
	border-bottom: 1px solid var(--ab-border-soft);
	padding-bottom: 8px;
}
.gosmtp-abilities-tip-list,
.gosmtp-abilities-resource-list{
	list-style: none;
	margin: 0;
	padding: 0;
}
.gosmtp-abilities-tip-list li{
	position: relative;
	padding: 6px 0 6px 22px;
	font-size: 13px;
	color: var(--ab-text-soft);
	line-height: 1.55;
}
.gosmtp-abilities-tip-list li::before{
	content: "";
	position: absolute;
	left: 4px;
	top: 13px;
	width: 6px;
	height: 6px;
	background: var(--ab-primary);
	border-radius: 50%;
}
.gosmtp-abilities-resource-list li{
	padding: 8px 0;
	border-top: 1px solid var(--ab-border-soft);
}
.gosmtp-abilities-resource-list li:first-child{ border-top: 0; padding-top: 0; }
.gosmtp-abilities-resource-list a{
	display: block;
	color: var(--ab-text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.gosmtp-abilities-resource-list a:hover{ color: var(--ab-primary); }
.gosmtp-abilities-resource-sub{
	display: block;
	color: var(--ab-text-muted);
	font-size: 12px;
	margin-top: 2px;
}

/* ----- Status list (sidebar) ----- */
.gosmtp-abilities-status-list{
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gosmtp-abilities-status-list > div{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.gosmtp-abilities-status-list dt{
	margin: 0;
	font-size: 12.5px;
	color: var(--ab-text-soft);
	font-weight: 500;
}
.gosmtp-abilities-status-list dd{
	margin: 0;
}

/* ----- Empty state ----- */
.gosmtp-abilities-empty{
	color: var(--ab-text-muted);
	font-size: 13px;
	margin: 8px 0;
}

/* ----- Toast ----- */
.gosmtp-toast{
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 99999;
	padding: 12px 18px;
	border-radius: 8px;
	background: #16a34a;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	display: none;
}

.gosmtp-toast.error{ 
background: #dc2626;
}

.gosmtp-deprecated-badge {
background-color: #ffebee;
color: #c62828;
font-size: 8px;
padding: 2px 6px;
border-radius: 4px;
text-transform: uppercase;
font-weight: bold;
border: 1px solid #ef9a9a;
display: inline-block;
vertical-align: middle;
}

.gosmtp-abilities-checkbox{
display: flex;
align-items: end;
gap:45%;
}