.ssa-app {
	--ssa-ink: #2f4658;
	--ssa-title: #273f52;
	--ssa-muted: #687e8e;
	--ssa-line: #d8e5eb;
	--ssa-brand: #347b9f;
	--ssa-brand-dark: #28637f;
	--ssa-sky: #83c9e9;
	--ssa-sky-soft: #e8f5fb;
	--ssa-warm: #f7efe2;
	--ssa-sidebar: #294b60;
	--ssa-sidebar-dark: #223d50;
	width: min(1500px, calc(100vw - 32px));
	max-width: none;
	margin: 26px 50%;
	transform: translateX(-50%);
	color: var(--ssa-ink);
	font-family: inherit;
}

.ssa-app,
.ssa-app * {
	box-sizing: border-box;
}

.ssa-app [hidden] {
	display: none !important;
}

.ssa-app a {
	text-decoration: none;
}

html.ssa-agent-page,
body.ssa-agent-fullscreen {
	min-width: 320px;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: hidden;
	background: #eef5f8 !important;
	overscroll-behavior-x: none;
}

body.ssa-agent-fullscreen #header,
body.ssa-agent-fullscreen #footer,
body.ssa-agent-fullscreen #top-bar,
body.ssa-agent-fullscreen .header-wrapper,
body.ssa-agent-fullscreen .footer-wrapper,
body.ssa-agent-fullscreen .absolute-footer,
body.ssa-agent-fullscreen .page-title,
body.ssa-agent-fullscreen .back-to-top {
	display: none !important;
}

body.ssa-agent-fullscreen #wrapper,
body.ssa-agent-fullscreen #main,
body.ssa-agent-fullscreen .ssa-fullscreen-wrapper,
body.ssa-agent-fullscreen .ssa-fullscreen-main {
	width: 100% !important;
	max-width: none !important;
	min-height: 100vh;
	margin: 0 !important;
	padding: 0 !important;
	background: #eef5f8 !important;
}

body.ssa-agent-fullscreen .ssa-app {
	width: 100%;
	max-width: none;
	min-height: 100vh;
	margin: 0;
	transform: none;
}

body.ssa-agent-fullscreen .ssa-app-frame {
	min-height: 100vh;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.admin-bar.ssa-agent-fullscreen .ssa-app,
body.admin-bar.ssa-agent-fullscreen .ssa-app-frame {
	min-height: calc(100vh - 32px);
}

.ssa-app-frame {
	display: grid;
	grid-template-columns: 238px minmax(0, 1fr);
	min-height: 880px;
	overflow: hidden;
	border: 1px solid #cfdee5;
	border-radius: 20px;
	background: #eef5f8;
	box-shadow: 0 24px 70px rgba(47, 70, 88, .14);
}

.ssa-sidebar {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px 15px 20px;
	background:
		radial-gradient(circle at 12% 5%, rgba(131, 201, 233, .20), transparent 28%),
		linear-gradient(180deg, var(--ssa-sidebar), var(--ssa-sidebar-dark));
	color: #fff;
}

.ssa-console-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 0 8px 25px;
	color: #fff !important;
}

.ssa-console-brand-mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 13px;
	background: linear-gradient(145deg, #bfe5f5, var(--ssa-sky));
	box-shadow: 0 8px 20px rgba(13, 40, 57, .22);
	color: #385365;
	font-size: 22px;
	font-weight: 800;
}

.ssa-console-brand-mark img {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.ssa-console-brand > span:last-child {
	display: grid;
	line-height: 1.15;
}

.ssa-console-brand strong {
	color: #fff;
	font-size: 17px;
	letter-spacing: .02em;
}

.ssa-console-brand small {
	margin-top: 5px;
	color: rgba(226, 244, 252, .68);
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .14em;
}

.ssa-sidebar-nav {
	display: grid;
	gap: 5px;
}

.ssa-sidebar-label {
	margin: 18px 12px 6px;
	color: rgba(226, 244, 252, .58);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.ssa-sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	color: rgba(244, 251, 254, .78) !important;
	font-size: 14px;
	font-weight: 600;
	transition: background-color .18s, border-color .18s, color .18s;
}

.ssa-sidebar-nav a > span {
	display: grid;
	place-items: center;
	width: 22px;
	color: #a7dcef;
	font-size: 16px;
}

.ssa-sidebar-nav a:hover,
.ssa-sidebar-nav a.is-active {
	border-color: rgba(177, 224, 243, .26);
	background: rgba(255, 255, 255, .11);
	color: #fff !important;
}

.ssa-sidebar-nav a.is-active {
	box-shadow: inset 3px 0 0 #91d6f1;
}

.ssa-sidebar-note {
	margin-top: auto;
	padding: 15px;
	border: 1px solid rgba(188, 225, 240, .20);
	border-radius: 12px;
	background: rgba(255, 255, 255, .07);
}

.ssa-sidebar-note span {
	color: #aee0f2;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .08em;
}

.ssa-sidebar-note p {
	margin: 7px 0 0;
	color: rgba(239, 249, 253, .70);
	font-size: 12px;
	line-height: 1.55;
}

.ssa-console-main {
	min-width: 0;
	background: #eef5f8;
}

.ssa-console-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 88px;
	padding: 15px 26px;
	border-bottom: 1px solid var(--ssa-line);
	background: rgba(255, 255, 255, .91);
	box-shadow: 0 5px 20px rgba(52, 82, 99, .04);
}

.ssa-topbar-kicker {
	display: block;
	margin-bottom: 3px;
	color: var(--ssa-brand);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .13em;
}

.ssa-console-topbar h2 {
	margin: 0;
	color: var(--ssa-title);
	font-size: 23px;
	line-height: 1.2;
}

.ssa-topbar-actions {
	display: flex;
	align-items: center;
	gap: 11px;
}

.ssa-project-chip {
	display: grid;
	min-width: 118px;
	max-width: 190px;
	min-height: 42px;
	padding: 7px 13px;
	border: 1px solid #c9e1eb;
	border-radius: 10px;
	background: #f3f9fb;
	color: var(--ssa-title) !important;
}

.ssa-project-chip:hover {
	border-color: var(--ssa-sky);
	background: var(--ssa-sky-soft);
}

.ssa-project-chip small {
	color: var(--ssa-muted);
	font-size: 9px;
	line-height: 1.2;
}

.ssa-project-chip strong {
	overflow: hidden;
	font-size: 12px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssa-recharge-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid #bedce9;
	border-radius: 10px;
	background: var(--ssa-sky-soft);
	color: var(--ssa-brand-dark) !important;
	font-size: 13px;
	font-weight: 700;
}

.ssa-recharge-link:hover {
	border-color: var(--ssa-sky);
	background: #dff1f9;
}

.ssa-balance {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 7px 14px;
	border-right: 1px solid var(--ssa-line);
	color: var(--ssa-title) !important;
}

.ssa-balance small {
	color: var(--ssa-muted);
	font-size: 11px;
}

.ssa-balance strong {
	color: var(--ssa-brand-dark);
	font-size: 21px;
	line-height: 1;
}

.ssa-user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--ssa-title) !important;
}

.ssa-user-chip img {
	width: 42px;
	height: 42px;
	border: 2px solid #d7e9f0;
	border-radius: 50%;
}

.ssa-user-chip > span {
	display: grid;
	min-width: 0;
}

.ssa-user-chip small {
	color: var(--ssa-muted);
	font-size: 10px;
}

.ssa-user-chip strong {
	max-width: 130px;
	overflow: hidden;
	color: var(--ssa-title);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssa-console-content {
	padding: 22px;
}

.ssa-project-workspace {
	max-width: 1050px;
	margin: 8px auto 42px;
	scroll-margin-top: 22px;
}

.ssa-project-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 18px;
	padding: 28px 30px;
	border: 1px solid #bedce9;
	border-radius: 16px;
	background:
		radial-gradient(circle at 87% 20%, rgba(247, 239, 226, .95), transparent 31%),
		linear-gradient(128deg, #dff1f8, #f8fbfc 64%, #faf2e7);
	box-shadow: 0 10px 28px rgba(55, 89, 107, .07);
}

.ssa-project-hero h1 {
	margin: 7px 0 8px;
	color: var(--ssa-title);
	font-size: clamp(25px, 3vw, 36px);
	line-height: 1.2;
}

.ssa-project-hero p {
	max-width: 660px;
	margin: 0;
	color: #587080;
	line-height: 1.7;
}

.ssa-project-progress {
	display: flex;
	align-items: center;
	min-width: 250px;
	padding-bottom: 4px;
}

.ssa-project-progress span {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #7b8f9d;
	font-size: 12px;
	font-weight: 650;
	white-space: nowrap;
}

.ssa-project-progress b {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	border: 1px solid #c5dbe5;
	border-radius: 50%;
	background: #fff;
	color: #738996;
}

.ssa-project-progress span.is-current {
	color: var(--ssa-brand-dark);
}

.ssa-project-progress span.is-current b {
	border-color: var(--ssa-brand);
	background: var(--ssa-brand);
	color: #fff;
}

.ssa-project-progress i {
	width: 40px;
	height: 1px;
	margin: 0 8px;
	background: #bfd5df;
}

.ssa-project-form {
	display: grid;
	gap: 18px;
}

.ssa-project-card {
	padding: 0 28px 28px;
	border: 1px solid var(--ssa-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(50, 78, 94, .06);
}

.ssa-project-card-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 -28px 25px;
	padding: 17px 28px;
	border-bottom: 1px solid #d7e5eb;
	border-radius: 15px 15px 0 0;
	background: linear-gradient(90deg, #e2f1f7, #f3f8fa);
}

.ssa-project-card-title > span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--ssa-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 750;
}

.ssa-project-card-title h3,
.ssa-project-card-title p {
	margin: 0;
}

.ssa-project-card-title h3 {
	color: var(--ssa-title);
	font-size: 17px;
}

.ssa-project-card-title p {
	margin-top: 3px;
	color: var(--ssa-muted);
	font-size: 12px;
}

.ssa-project-url-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
}

.ssa-project-url-row .ssa-field {
	margin: 0;
}

.ssa-project-inspect {
	min-width: 158px;
	margin-bottom: 0 !important;
}

.ssa-project-message {
	min-height: 20px;
	margin: 0;
	color: var(--ssa-muted);
	font-size: 12px;
}

.ssa-project-message-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 32px;
	margin-top: 6px;
}

.ssa-project-message-row .ssa-text-button {
	flex: 0 0 auto;
}

.ssa-project-message.is-loading {
	color: var(--ssa-brand);
}

.ssa-project-message.is-success {
	color: #067647;
}

.ssa-project-message.is-error {
	color: #b42318;
}

.ssa-project-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.ssa-project-wide {
	grid-column: 1 / -1;
}

.ssa-project-grid .ssa-field > span,
.ssa-project-url-row .ssa-field > span {
	display: block;
	margin-bottom: 7px;
	color: var(--ssa-title);
	font-size: 13px;
	font-weight: 650;
}

.ssa-project-grid .ssa-field em {
	margin-left: 6px;
	color: var(--ssa-brand);
	font-size: 10px;
	font-style: normal;
	font-weight: 600;
}

.ssa-project-grid textarea[name="product_service"] {
	min-height: 112px !important;
}

.ssa-project-grid textarea[name="target_customer"] {
	min-height: 125px !important;
}

.ssa-project-grid textarea[name="core_keywords"] {
	min-height: 210px !important;
	line-height: 1.65;
}

.ssa-project-save-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 4px;
}

.ssa-project-save-row p {
	margin: 0;
	color: var(--ssa-muted);
	font-size: 12px;
}

.ssa-project-workspace.is-existing .ssa-project-progress {
	display: none;
}

.ssa-console-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 18px;
	padding: 26px 28px;
	border: 1px solid #bedce9;
	border-radius: 15px;
	background:
		radial-gradient(circle at 88% 25%, rgba(247, 239, 226, .95), transparent 28%),
		linear-gradient(125deg, #dff1f8 0%, #f8fbfc 62%, #f9f1e5 100%);
	box-shadow: 0 8px 25px rgba(55, 89, 107, .06);
}

.ssa-eyebrow {
	color: var(--ssa-brand);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.ssa-console-intro h1 {
	margin: 6px 0 7px;
	color: var(--ssa-title);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.18;
}

.ssa-console-intro p {
	max-width: 760px;
	margin: 0;
	color: #587080;
	line-height: 1.65;
}

.ssa-intro-badge {
	display: grid;
	min-width: 156px;
	padding: 16px 18px;
	border: 1px solid rgba(73, 135, 163, .18);
	border-radius: 12px;
	background: rgba(255, 255, 255, .66);
}

.ssa-intro-badge span,
.ssa-intro-badge small {
	color: var(--ssa-muted);
	font-size: 10px;
}

.ssa-intro-badge strong {
	position: relative;
	margin: 3px 0;
	padding-left: 14px;
	color: #247a60;
	font-size: 15px;
}

.ssa-intro-badge strong::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #42a884;
	content: "";
	transform: translateY(-50%);
}

.ssa-layout {
	display: grid;
	grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
	gap: 18px;
}

.ssa-panel {
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--ssa-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 7px 24px rgba(50, 78, 94, .055);
}

.ssa-panel-heading {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: -22px -22px 22px;
	padding: 15px 18px;
	border-bottom: 1px solid #d3e2e9;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(90deg, #e0eef5, #edf6f9);
}

.ssa-panel-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--ssa-brand);
	color: #fff;
}

.ssa-panel-heading small {
	display: block;
	color: var(--ssa-brand);
	font-size: 9px;
	font-weight: 750;
	letter-spacing: .13em;
}

.ssa-panel-heading h3 {
	margin: 2px 0 0;
	color: var(--ssa-title);
	font-size: 17px;
}

.ssa-form-panel,
.ssa-result-panel,
.ssa-history-panel {
	scroll-margin-top: 22px;
}

.ssa-field {
	margin-bottom: 16px;
}

.ssa-field label {
	display: block;
	margin-bottom: 7px;
	color: var(--ssa-title);
	font-size: 13px;
	font-weight: 650;
}

.ssa-field input,
.ssa-field select,
.ssa-field textarea {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #c8d8e0;
	border-radius: 8px;
	background: #fbfdfe;
	box-shadow: none;
	color: var(--ssa-ink);
	font: inherit;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.ssa-field textarea {
	resize: vertical;
}

.ssa-field input:focus,
.ssa-field select:focus,
.ssa-field textarea:focus {
	outline: 0;
	border-color: var(--ssa-brand);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(52, 123, 159, .12);
}

.ssa-two-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
}

.ssa-submit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 2px;
}

.ssa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 20px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: linear-gradient(135deg, var(--ssa-brand), #449ac0) !important;
	box-shadow: 0 7px 17px rgba(52, 123, 159, .20);
	color: #fff !important;
	font-weight: 700 !important;
	line-height: 1.2;
	cursor: pointer;
}

.ssa-button:hover {
	background: linear-gradient(135deg, var(--ssa-brand-dark), var(--ssa-brand)) !important;
}

.ssa-button:disabled {
	opacity: .62;
	cursor: wait;
}

.ssa-cost {
	color: var(--ssa-muted);
	font-size: 12px;
	text-align: right;
}

.ssa-cost strong {
	color: var(--ssa-brand-dark);
}

.ssa-form-message {
	min-height: 21px;
	margin: 13px 0 0;
	font-size: 12px;
}

.ssa-form-message.is-error {
	color: #b42318;
}

.ssa-form-message.is-success {
	color: #067647;
}

.ssa-form-message.is-loading {
	color: var(--ssa-brand);
}

.ssa-result-panel {
	min-height: 650px;
	max-height: 970px;
	overflow: auto;
}

.ssa-empty-state {
	display: flex;
	min-height: 602px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px;
	text-align: center;
	color: var(--ssa-muted);
}

.ssa-empty-state > span {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border: 1px solid #cce3ed;
	border-radius: 18px;
	background: linear-gradient(145deg, var(--ssa-sky-soft), var(--ssa-warm));
	color: var(--ssa-brand);
	font-size: 27px;
}

.ssa-empty-state h3 {
	margin: 17px 0 5px;
	color: var(--ssa-title);
}

.ssa-empty-state p {
	max-width: 400px;
	margin: 0;
	line-height: 1.65;
}

.ssa-report-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ssa-report-meta {
	color: var(--ssa-muted);
	font-size: 12px;
	text-align: right;
}

.ssa-summary {
	margin: 18px 0;
	padding: 18px;
	border: 1px solid #d4e8ef;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--ssa-sky-soft), #f9f4eb);
	font-size: 16px;
	line-height: 1.75;
}

.ssa-report-title {
	margin: 27px 0 12px;
	color: var(--ssa-title);
	font-size: 18px;
}

.ssa-opportunity-grid,
.ssa-insight-list {
	display: grid;
	gap: 11px;
}

.ssa-opportunity,
.ssa-insight-card {
	padding: 15px;
	border: 1px solid var(--ssa-line);
	border-radius: 10px;
	background: #fff;
}

.ssa-opportunity h4,
.ssa-insight-card h4 {
	margin: 8px 0 6px;
	color: var(--ssa-title);
	line-height: 1.5;
}

.ssa-opportunity p,
.ssa-insight-card p {
	margin: 0 0 8px;
	color: var(--ssa-muted);
	line-height: 1.55;
}

.ssa-opportunity > strong {
	display: block;
	color: var(--ssa-brand);
	font-size: 13px;
}

.ssa-impact,
.ssa-status {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 700;
}

.ssa-impact.is-high {
	background: #fee4e2;
	color: #b42318;
}

.ssa-impact.is-medium {
	background: #fef0c7;
	color: #b54708;
}

.ssa-impact.is-low,
.ssa-status.is-running,
.ssa-status.is-queued {
	background: #eaf2ff;
	color: #175cd3;
}

.ssa-status {
	background: #f2f4f7;
	color: #475467;
}

.ssa-status.is-completed {
	background: #dcfae6;
	color: #067647;
}

.ssa-status.is-failed,
.ssa-status.is-rejected {
	background: #fee4e2;
	color: #b42318;
}

.ssa-table-wrap {
	overflow: auto;
}

.ssa-app table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 13px;
}

.ssa-app th,
.ssa-app td {
	padding: 11px 10px;
	border-bottom: 1px solid var(--ssa-line);
	text-align: left;
	vertical-align: top;
}

.ssa-app th {
	color: var(--ssa-muted);
	font-size: 10px;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ssa-keyword {
	min-width: 140px;
	font-weight: 650;
}

.ssa-keyword-advice {
	min-width: 210px;
	color: var(--ssa-muted);
}

.ssa-lead-score {
	color: var(--ssa-brand);
	font-size: 16px;
	font-weight: 750;
}

.ssa-insight-card.is-geo {
	border-left: 4px solid var(--ssa-brand);
}

.ssa-insight-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ssa-insight-tag {
	color: var(--ssa-brand);
	font-size: 11px;
	font-weight: 700;
}

.ssa-insight-card small {
	display: block;
	color: var(--ssa-muted);
}

.ssa-copy-button {
	padding: 5px 9px;
	border: 1px solid var(--ssa-line);
	border-radius: 7px;
	background: #fff;
	color: var(--ssa-brand);
	font: inherit;
	font-size: 11px;
	font-weight: 650;
	cursor: pointer;
}

.ssa-copy-button:hover {
	border-color: var(--ssa-brand);
	background: var(--ssa-sky-soft);
}

.ssa-action-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ssa-step;
}

.ssa-action-list li {
	position: relative;
	padding: 0 0 17px 42px;
	counter-increment: ssa-step;
}

.ssa-action-list li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ssa-brand);
	color: #fff;
	font-weight: 700;
	content: counter(ssa-step);
}

.ssa-action-list strong {
	display: block;
	padding-top: 3px;
}

.ssa-action-list p {
	margin: 5px 0 0;
	color: var(--ssa-muted);
}

.ssa-content-ideas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ssa-content-ideas article {
	padding: 14px;
	border-radius: 10px;
	background: #f2f8fb;
}

.ssa-content-ideas small {
	color: var(--ssa-brand);
}

.ssa-content-ideas h4 {
	margin: 5px 0 0;
	font-size: 14px;
}

.ssa-warning {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #fffaeb;
	color: #7a2e0e;
}

.ssa-warning ul {
	margin: 7px 0 0 18px;
}

.ssa-history-panel {
	margin-top: 18px;
}

.ssa-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.ssa-section-heading h3 {
	margin: 3px 0 0;
	color: var(--ssa-title);
}

.ssa-text-button {
	padding: 6px;
	border: 0;
	background: none;
	color: var(--ssa-brand);
	font: inherit;
	font-size: 12px;
	font-weight: 650;
	cursor: pointer;
}

.ssa-tabs {
	display: flex;
	gap: 8px;
	margin: 18px 0 10px;
	border-bottom: 1px solid var(--ssa-line);
}

.ssa-tabs button {
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--ssa-muted);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.ssa-tabs button.is-active {
	border-color: var(--ssa-brand);
	color: var(--ssa-brand);
	font-weight: 700;
}

.ssa-credit-positive {
	color: #067647;
	font-weight: 700;
}

.ssa-credit-negative {
	color: #b42318;
	font-weight: 700;
}

.ssa-ledger-type {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
}

.ssa-login-card {
	max-width: 620px;
	margin: 35px auto;
	padding: 35px;
	border: 1px solid var(--ssa-line, #d8e5eb);
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.ssa-login-card h3 {
	margin-top: 0;
}

@media (max-width: 1100px) {
	.ssa-app-frame {
		grid-template-columns: 205px minmax(0, 1fr);
	}

	.ssa-layout {
		grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
	}

	.ssa-project-chip {
		display: none;
	}
}

@media (max-width: 900px) {
	.ssa-app {
		width: min(100%, calc(100vw - 22px));
		margin-top: 16px;
		margin-bottom: 16px;
	}

	body.ssa-agent-fullscreen .ssa-app {
		width: 100%;
		margin: 0;
	}

	body.ssa-agent-fullscreen .ssa-app-frame {
		border-radius: 0;
	}

	.ssa-app-frame {
		grid-template-columns: 1fr;
		border-radius: 15px;
	}

	.ssa-sidebar {
		padding: 15px;
	}

	.ssa-console-brand {
		padding-bottom: 12px;
	}

	.ssa-sidebar-nav {
		display: flex;
		overflow-x: auto;
		padding-bottom: 3px;
	}

	.ssa-sidebar-label,
	.ssa-sidebar-note {
		display: none;
	}

	.ssa-sidebar-nav a {
		flex: 0 0 auto;
		min-height: 39px;
		padding: 8px 10px;
	}

	.ssa-sidebar-nav a.is-active {
		box-shadow: inset 0 -2px 0 #91d6f1;
	}

	.ssa-console-topbar {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px 19px;
	}

	.ssa-topbar-actions {
		width: 100%;
		justify-content: space-between;
	}

	.ssa-layout {
		grid-template-columns: 1fr;
	}

	.ssa-project-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.ssa-result-panel {
		min-height: 390px;
		max-height: none;
	}

	.ssa-empty-state {
		min-height: 340px;
	}
}

@media (max-width: 782px) {
	body.admin-bar.ssa-agent-fullscreen .ssa-app,
	body.admin-bar.ssa-agent-fullscreen .ssa-app-frame {
		min-height: calc(100vh - 46px);
	}
}

@media (max-width: 560px) {
	html.ssa-agent-page,
	body.ssa-agent-fullscreen,
	body.ssa-agent-fullscreen #wrapper,
	body.ssa-agent-fullscreen #main {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden !important;
	}

	.ssa-app-frame {
		min-height: 100svh;
		overflow: visible;
	}

	.ssa-sidebar {
		padding: 11px 10px 10px;
		overflow: hidden;
	}

	.ssa-console-brand {
		gap: 8px;
		padding: 0 4px 10px;
	}

	.ssa-console-brand-mark {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
		border-radius: 10px;
	}

	.ssa-console-brand-mark img {
		width: 29px;
		height: 29px;
	}

	.ssa-console-brand strong {
		font-size: 15px;
	}

	.ssa-console-brand small {
		display: none;
	}

	.ssa-sidebar-nav {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
		width: 100%;
		overflow: visible;
		padding: 0;
	}

	.ssa-sidebar-nav a {
		display: grid;
		min-width: 0;
		min-height: 52px;
		align-content: center;
		justify-items: center;
		gap: 2px;
		padding: 5px 2px;
		font-size: 10px;
		line-height: 1.15;
		text-align: center;
		white-space: normal;
	}

	.ssa-sidebar-nav a > span {
		width: auto;
		font-size: 15px;
	}

	.ssa-console-topbar {
		min-height: 0;
		gap: 10px;
		padding: 12px 14px;
	}

	.ssa-topbar-kicker {
		font-size: 9px;
	}

	.ssa-console-topbar h2 {
		font-size: 18px;
	}

	.ssa-topbar-actions {
		min-width: 0;
		gap: 8px;
	}

	.ssa-recharge-link {
		min-height: 38px;
		flex: 0 0 auto;
		padding: 6px 10px;
		font-size: 12px;
		white-space: nowrap;
	}

	.ssa-balance {
		min-width: 0;
		min-height: 38px;
		flex: 1 1 auto;
		justify-content: space-between;
		padding: 6px 11px;
		border: 1px solid #d5e6ed;
		border-radius: 9px;
		background: #f4fafc;
	}

	.ssa-balance strong {
		font-size: 18px;
	}

	.ssa-user-chip {
		flex: 0 0 auto;
	}

	.ssa-user-chip img {
		width: 38px;
		height: 38px;
	}

	.ssa-console-content {
		width: 100%;
		min-width: 0;
		padding: 10px;
	}

	.ssa-console-intro {
		align-items: flex-start;
		flex-direction: column;
		gap: 17px;
		padding: 18px 16px;
		border-radius: 13px;
	}

	.ssa-project-workspace {
		margin-top: 0;
	}

	.ssa-project-hero {
		gap: 18px;
		padding: 18px 16px;
		border-radius: 13px;
	}

	.ssa-project-progress {
		min-width: 0;
		width: 100%;
	}

	.ssa-project-progress span {
		gap: 5px;
		font-size: 11px;
	}

	.ssa-project-progress b {
		width: 24px;
		height: 24px;
	}

	.ssa-project-progress i {
		width: auto;
		min-width: 12px;
		flex: 1 1 auto;
		margin: 0 5px;
	}

	.ssa-project-card {
		padding: 0 17px 20px;
	}

	.ssa-project-card-title {
		align-items: flex-start;
		margin-right: -17px;
		margin-left: -17px;
		padding: 15px 17px;
	}

	.ssa-project-card-title > span {
		width: 32px;
		height: 32px;
		flex: 0 0 32px;
	}

	.ssa-project-card-title p {
		font-size: 11px;
		line-height: 1.55;
	}

	.ssa-project-url-row,
	.ssa-project-grid {
		grid-template-columns: 1fr;
	}

	.ssa-project-wide {
		grid-column: auto;
	}

	.ssa-project-save-row {
		align-items: stretch;
		flex-direction: column;
	}

	.ssa-intro-badge {
		width: 100%;
	}

	.ssa-console-intro h1,
	.ssa-project-hero h1 {
		font-size: 24px;
	}

	.ssa-user-chip small,
	.ssa-user-chip strong {
		display: none;
	}

	.ssa-panel {
		width: 100%;
		min-width: 0;
		padding: 16px;
		border-radius: 12px;
	}

	.ssa-panel-heading {
		margin: -16px -16px 18px;
		padding: 13px 15px;
		border-radius: 12px 12px 0 0;
	}

	.ssa-field input,
	.ssa-field select,
	.ssa-field textarea {
		max-width: 100%;
		font-size: 16px;
	}

	.ssa-two-columns,
	.ssa-content-ideas {
		grid-template-columns: 1fr;
	}

	.ssa-submit-row,
	.ssa-report-top,
	.ssa-section-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.ssa-button {
		width: 100%;
	}

	.ssa-result-panel {
		min-height: 320px;
		padding-bottom: 18px;
		overflow: visible;
	}

	.ssa-empty-state {
		min-height: 285px;
		padding: 24px 12px;
	}

	.ssa-table-wrap {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
	}

	.ssa-table-wrap table {
		min-width: 600px;
	}

	.ssa-summary,
	.ssa-opportunity,
	.ssa-insight-card,
	.ssa-content-ideas article {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.ssa-tabs {
		max-width: 100%;
		overflow-x: auto;
	}

	.ssa-tabs button {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.ssa-cost,
	.ssa-report-meta {
		text-align: left;
	}
}

@media (max-width: 360px) {
	.ssa-sidebar-nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ssa-console-topbar {
		padding-right: 10px;
		padding-left: 10px;
	}

	.ssa-console-content {
		padding: 7px;
	}
}
