﻿:root
{
	--bg: #F4F3EF;
	--surface: #FAFAF7;
	--white: #FFFFFF;
	--ink: #111110;
	--ink2: #2c2c2a;
	--muted: #87877F;
	--faint: #C5C3BB;
	--border: #E4E2DA;
	--border2: #D3D1C9;
	--accent: #1A56DB;
	--warn: #DC2626;
	--ok: #16A34A;
	--amber: #D97706;
	--mono: 'DM Mono', monospace;
	--sans: 'DM Sans', sans-serif;
}

#chat_section *, #chat_section *::before, #chat_section *::after
{
	box-sizing: border-box;
	margin: 0;
	padding: 0
}

#chat_section
{
	height: 100%;
	overflow: hidden font-family: var(--sans);
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column
}

/* ── ANIMATIONS ── */
@keyframes fadeUp
{
	from
	{
		opacity: 0;
		transform: translateY(14px)
	}

	to
	{
		opacity: 1;
		transform: translateY(0)
	}
}

@keyframes msgIn
{
	from
	{
		opacity: 0;
		transform: translateY(8px)
	}

	to
	{
		opacity: 1;
		transform: translateY(0)
	}
}

@keyframes blink
{
	0%, 100%
	{
		opacity: .25
	}

	50%
	{
		opacity: 1
	}
}

@keyframes shimmer
{
	from
	{
		background-position: -200% 0
	}

	to
	{
		background-position: 200% 0
	}
}

/* ══ TOPBAR ══ */
#chat_section .topbar
{
	height: 54px;
	background: var(--white);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	flex-shrink: 0;
	z-index: 100;
}

#chat_section .logo
{
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: -.3px;
	text-decoration: none;
	color: var(--ink)
}

#chat_section .logo-mark
{
	width: 28px;
	height: 28px;
	background: var(--ink);
	border-radius: 7px;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
	color: white;
	font-family: var(--mono)
}

#chat_section .topbar-right
{
	display: flex;
	align-items: center;
	gap: 10px
}

#chat_section .tb-btn
{
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 999px;
	cursor: pointer;
	border: 1px solid var(--border2);
	background: transparent;
	color: var(--ink);
	transition: all .18s;
	text-decoration: none
}

	#chat_section .tb-btn:hover
	{
		background: var(--ink);
		color: white;
		border-color: var(--ink)
	}

	#chat_section .tb-btn.solid
	{
		background: var(--ink);
		color: white;
		border-color: var(--ink)
	}

		#chat_section .tb-btn.solid:hover
		{
			opacity: .8
		}

/* ══ LAYOUT ══ */
#chat_section .app
{
	display: grid;
	grid-template-columns: 240px 1fr;
	flex: 1;
	overflow: hidden
}

/* ══ SIDEBAR ══ */
#chat_section .sidebar
{
	background: var(--white);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	overflow: hidden
}

#chat_section .sb-header
{
	padding: 16px 16px 10px
}

#chat_section .sb-label
{
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 8px;
	padding: 0 2px
}

#chat_section .new-btn
{
	width: 100%;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	padding: 9px 12px;
	border-radius: 10px;
	border: 1.5px dashed var(--border2);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 7px;
	transition: all .18s;
	margin-bottom: 14px;
}

	#chat_section .new-btn:hover
	{
		border-color: var(--ink);
		color: var(--ink);
		background: var(--bg)
	}

#chat_section .doc-row
{
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
	transition: all .15s;
}

	#chat_section .doc-row:hover
	{
		background: var(--bg);
		color: var(--ink)
	}

	#chat_section .doc-row.active
	{
		background: var(--bg);
		color: var(--ink);
		font-weight: 600
	}

#chat_section .doc-icon
{
	font-size: 13px;
	flex-shrink: 0
}

#chat_section .doc-name
{
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap
}

#chat_section .doc-badge
{
	font-size: 9px;
	font-weight: 700;
	font-family: var(--mono);
	padding: 2px 6px;
	border-radius: 4px;
	flex-shrink: 0
}

#chat_section .db-h
{
	background: rgba(220,38,38,.1);
	color: #b91c1c
}

#chat_section .db-m
{
	background: rgba(217,119,6,.1);
	color: #92400e
}

#chat_section .db-ok
{
	background: rgba(22,163,74,.09);
	color: #15803d
}

#chat_section .sb-div
{
	height: 1px;
	background: var(--border);
	margin: 10px 16px
}

/* sidebar score card */
#chat_section .score-card
{
	margin: auto 14px 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 14px
}

#chat_section .sc-label
{
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 10px
}

#chat_section .sc-main
{
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 10px
}

#chat_section .sc-num
{
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -1.5px;
	color: var(--amber)
}

#chat_section .sc-of
{
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 4px
}

#chat_section .sc-track
{
	height: 5px;
	background: var(--border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px
}

#chat_section .sc-fill
{
	height: 100%;
	background: linear-gradient(90deg,var(--amber),var(--warn));
	border-radius: 999px;
	width: 72%
}

#chat_section .sc-row
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11.5px;
	margin-bottom: 4px
}

	#chat_section .sc-row:last-child
	{
		margin-bottom: 0
	}

#chat_section .sc-k
{
	color: var(--muted);
	font-weight: 500
}

#chat_section .sc-v
{
	font-weight: 700
}

	#chat_section .sc-v.r
	{
		color: var(--warn)
	}

	#chat_section .sc-v.a
	{
		color: var(--amber)
	}

	#chat_section .sc-v.g
	{
		color: var(--ok)
	}

/* ══ MAIN AREA ══ */
#chat_section .main
{
	display: flex;
	flex-direction: column;
	overflow: hidden
}

/* step indicator (shows only when no messages) */
#chat_section .onboard
{
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
	text-align: center;
}

#chat_section .ob-title
{
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -1px;
	margin-bottom: 8px
}

#chat_section .ob-sub
{
	font-size: 15px;
	color: var(--muted);
	max-width: 420px;
	line-height: 1.65;
	margin-bottom: 40px
}

#chat_section .steps-row
{
	display: flex;
	gap: 0;
	margin-bottom: 40px;
	width: 100%;
	max-width: 600px
}

#chat_section .step-item
{
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	position: relative
}

	#chat_section .step-item:not(:last-child)::after
	{
		content: '';
		position: absolute;
		top: 18px;
		left: calc(50% + 18px);
		right: calc(-50% + 18px);
		height: 1px;
		background: var(--border)
	}

#chat_section .step-circle
{
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ink);
	color: white;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0
}

#chat_section .step-text
{
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink2);
	text-align: center
}

#chat_section .step-sub
{
	font-size: 11.5px;
	color: var(--muted);
	text-align: center;
	line-height: 1.5
}

/* ── CHAT FEED ── */
#chat_section .chat-feed
{
	flex: 1;
	overflow-y: auto;
	padding: 28px 32px 16px;
	display: flex;
	flex-direction: column;
	gap: 22px
}

	#chat_section .chat-feed::-webkit-scrollbar
	{
		width: 4px
	}

	#chat_section .chat-feed::-webkit-scrollbar-thumb
	{
		background: var(--border2);
		border-radius: 4px
	}

/* message rows */
#chat_section .msg
{
	display: flex;
	gap: 10px;
	align-items: flex-start;
	animation: msgIn .35s ease both
}

	#chat_section .msg.user
	{
		flex-direction: row-reverse
	}

#chat_section .av
{
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 10.5px;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 2px
}

	#chat_section .av.ai
	{
		background: var(--ink);
		color: white
	}

	#chat_section .av.user
	{
		background: var(--accent);
		color: white
	}

#chat_section .mw
{
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 82%
}

#chat_section .msg.user .mw
{
	align-items: flex-end
}

#chat_section .bubble
{
	padding: 12px 15px;
	/*font-size: 13.5px;*/
	font-size: 9pt;
	line-height: 1.7;
	border-radius: 14px
}

#chat_section .msg.ai .bubble
{
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 3px 14px 14px 14px;
	color: var(--ink)
}

#chat_section .msg.user .bubble
{
	background: var(--accent);
	color: white;
	border-radius: 14px 3px 14px 14px
}

#chat_section .bubble strong
{
	font-weight: 700
}

#chat_section .bubble em
{
	font-style: italic
}

/* typing */
#chat_section .typing-row
{
	display: flex;
	gap: 10px;
	align-items: center;
	animation: msgIn .25s ease
}

#chat_section .t-bub
{
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 3px 14px 14px 14px;
	padding: 12px 15px;
	display: flex;
	gap: 4px
}

#chat_section .t-dot
{
	width: 6px;
	height: 6px;
	background: var(--muted);
	border-radius: 50%;
	animation: blink 1.2s ease infinite
}

	#chat_section .t-dot:nth-child(2)
	{
		animation-delay: .2s
	}

	#chat_section .t-dot:nth-child(3)
	{
		animation-delay: .4s
	}

/* quick chips */
#chat_section .chips
{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px
}

#chat_section .chip
{
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	background: var(--white);
	border: 1px solid var(--border);
	padding: 5px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition: all .18s
}

	#chat_section .chip:hover
	{
		color: var(--ink);
		border-color: var(--border2);
		background: var(--bg)
	}

/* ═══════════════════════════════════
	   CLAUSE CARD
	═══════════════════════════════════ */
#chat_section .clause-card
{
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	max-width: 560px;
	box-shadow: 0 2px 14px rgba(0,0,0,.06),0 1px 0 var(--border);
}

/* card top header */
#chat_section .cc-top
{
	padding: 13px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

#chat_section .risk-pill
{
	font-size: 10px;
	font-weight: 700;
	font-family: var(--mono);
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px
}

#chat_section .rp-high
{
	background: rgba(220,38,38,.1);
	color: #b91c1c;
	border: 1px solid rgba(220,38,38,.2)
}

#chat_section .rp-med
{
	background: rgba(217,119,6,.1);
	color: #92400e;
	border: 1px solid rgba(217,119,6,.2)
}

#chat_section .rp-low
{
	background: rgba(22,163,74,.09);
	color: #15803d;
	border: 1px solid rgba(22,163,74,.2)
}

#chat_section .cc-clause-name
{
	font-size: 13px;
	font-weight: 700;
	flex: 1
}

/* accordion row */
#chat_section .acc
{
	border-bottom: 1px solid var(--border)
}

	#chat_section .acc:last-child
	{
		border-bottom: none
	}

#chat_section .acc-header
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: background .15s;
	user-select: none;
}

	#chat_section .acc-header:hover
	{
		background: rgba(0,0,0,.02)
	}

#chat_section .acc-chevron
{
	color: var(--muted);
	font-size: 11px;
	transition: transform .22s;
	flex-shrink: 0;
	margin-left: 8px
}

	#chat_section .acc-chevron.open
	{
		transform: rotate(180deg)
	}

#chat_section .acc-body
{
	padding: 0 16px;
	overflow: hidden;
	max-height: 0;
	transition: max-height .3s cubic-bezier(0.4,0,0.2,1), padding .3s ease;
}

	#chat_section .acc-body.open
	{
		max-height: 800px;
		padding: 2px 16px 16px
	}

	#chat_section .acc-body p
	{
		font-size: 13px;
		color: var(--ink2);
		line-height: 1.72;
		margin-bottom: 8px
	}

		#chat_section .acc-body p:last-child
		{
			margin-bottom: 0
		}

	#chat_section .acc-body ul
	{
		margin: 8px 0 8px 4px;
		display: flex;
		flex-direction: column;
		gap: 7px
	}

	#chat_section .acc-body li
	{
		font-size: 13px;
		color: var(--ink2);
		line-height: 1.6;
		display: flex;
		gap: 8px;
		align-items: flex-start
	}

		#chat_section .acc-body li::before
		{
			content: '';
			display: none
		}

#chat_section .li-num
{
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
	flex-shrink: 0;
	min-width: 16px;
	font-family: var(--mono)
}

/* Clause text block */
#chat_section .clause-text-box
{
	background: var(--bg);
	border-radius: 8px;
	padding: 12px 14px;
	font-family: var(--mono);
	font-size: 11.5px;
	line-height: 1.75;
	color: var(--ink2);
	border-left: 3px solid var(--border2);
}

/* Market gauge */
#chat_section .gauge-wrap
{
	margin: 4px 0 8px;
	position: relative
}

#chat_section .gauge-bg
{
	height: 10px;
	border-radius: 999px;
	background: linear-gradient(90deg,#16a34a 0%,#84cc16 20%,#eab308 40%,#f97316 65%,#dc2626 100%);
	position: relative;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
/* curve overlay to mimic the bell/hump shape */
#chat_section .gauge-curve
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg,rgba(255,255,255,.4) 0%,rgba(255,255,255,0) 35%,rgba(0,0,0,0) 100%);
	border-radius: 999px;
}

#chat_section .gauge-midmarket
{
	position: absolute;
	top: -14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	transform: translateX(-50%);
}

#chat_section .gauge-midmarket-dot
{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #15803d;
	border: 2px solid white;
	box-shadow: 0 1px 3px rgba(0,0,0,.2)
}

#chat_section .gauge-midmarket-label
{
	font-size: 9px;
	font-weight: 600;
	color: var(--ok);
	white-space: nowrap;
	background: white;
	padding: 1px 5px;
	border-radius: 4px;
	border: 1px solid rgba(22,163,74,.2)
}

#chat_section .gauge-thisclause
{
	position: absolute;
	top: -14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	transform: translateX(-50%);
}

#chat_section .gauge-thisclause-dot
{
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ink);
	border: 2px solid white;
	box-shadow: 0 2px 6px rgba(0,0,0,.3)
}

#chat_section .gauge-thisclause-label
{
	font-size: 9px;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
	background: white;
	padding: 1px 6px;
	border-radius: 4px;
	border: 1px solid var(--border2)
}

#chat_section .gauge-labels
{
	display: flex;
	justify-content: space-between;
	margin-top: 22px;
	font-size: 10px;
	color: var(--muted);
	font-weight: 500
}

/* recommendation box */
#chat_section .rec-box
{
	background: rgba(26,86,219,.05);
	border: 1px solid rgba(26,86,219,.15);
	border-radius: 9px;
	padding: 11px 13px;
	font-size: 13px;
	color: var(--ink2);
	line-height: 1.65;
}

#chat_section .rec-icon
{
	font-size: 14px;
	margin-right: 6px
}

/* ═══════════════════════════════════
	   SERVICE / PAYMENT CARD
	═══════════════════════════════════ */
#chat_section .service-card
{
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	max-width: 560px;
	box-shadow: 0 2px 14px rgba(0,0,0,.05);
}

#chat_section .sc-header-row
{
	padding: 13px 16px;
	background: rgba(255,200,50,.08);
	border-bottom: 1px solid rgba(217,119,6,.15);
	display: flex;
	align-items: center;
	gap: 8px;
}

#chat_section .sc-tag
{
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--amber)
}

#chat_section .sc-body-pad
{
	padding: 16px
}

#chat_section .sc-service-label
{
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 7px
}

#chat_section .sc-service-desc
{
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink2);
	line-height: 1.65;
	margin-bottom: 14px
}

#chat_section .sc-price-row
{
	display: flex;
	align-items: center;
	justify-content: space-between
}

#chat_section .sc-price
{
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -1px;
	color: var(--ink)
}

	#chat_section .sc-price span
	{
		font-size: 13px;
		font-weight: 500;
		color: var(--muted)
	}

#chat_section .pay-btn
{
	font-family: var(--sans);
	font-size: 13.5px;
	font-weight: 700;
	background: var(--accent);
	color: white;
	border: none;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 7px;
	transition: all .18s;
}

	#chat_section .pay-btn:hover
	{
		background: #1344b8;
		transform: translateY(-1px);
		box-shadow: 0 4px 14px rgba(26,86,219,.3)
	}

	#chat_section .pay-btn svg
	{
		width: 14px;
		height: 14px
	}

#chat_section .sc-note
{
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 5px
}

/* ═══════════════════════════════════
	   SUMMARY BOX
	═══════════════════════════════════ */
#chat_section .summary-box
{
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 18px;
	width: 100%;
	max-width: 560px;
	box-shadow: 0 2px 14px rgba(0,0,0,.05);
}

	#chat_section .summary-box .sb-icon
	{
		font-size: 20px;
		margin-bottom: 10px
	}

	#chat_section .summary-box .sb-title
	{
		font-size: 14px;
		font-weight: 700;
		margin-bottom: 8px
	}

	#chat_section .summary-box .sb-text
	{
		font-size: 13px;
		color: var(--ink2);
		line-height: 1.7
	}

	#chat_section .summary-box.warn
	{
		border-color: rgba(217,119,6,.25);
		background: rgba(255,247,237,.6)
	}

	#chat_section .summary-box .sb-cta
	{
		margin-top: 14px;
		font-family: var(--sans);
		font-size: 13px;
		font-weight: 700;
		background: var(--ink);
		color: white;
		border: none;
		padding: 10px 20px;
		border-radius: 999px;
		cursor: pointer;
		transition: opacity .18s;
	}

		#chat_section .summary-box .sb-cta:hover
		{
			opacity: .8
		}

/* ══ INPUT BAR ══ */
#chat_section .input-bar
{
	padding: 14px 32px 20px;
	background: var(--bg);
	border-top: 1px solid var(--border);
	flex-shrink: 0
}

#chat_section .file-chip
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(26,86,219,.07);
	border: 1px solid rgba(26,86,219,.2);
	color: var(--accent);
	padding: 4px 11px;
	border-radius: 999px;
	margin-bottom: 10px;
}

	#chat_section .file-chip.empty
	{
		background: var(--white);
		border: 1px solid var(--border);
		color: var(--muted);
		cursor: pointer
	}

		#chat_section .file-chip.empty:hover
		{
			border-color: var(--border2);
			color: var(--ink)
		}

#chat_section .input-shell
{
	background: var(--white);
	border: 1px solid var(--border2);
	border-radius: 14px;
	padding: 10px 12px;
	box-shadow: 0 1px 4px rgba(0,0,0,.04);
	transition: border-color .2s
}

	#chat_section .input-shell:focus-within
	{
		border-color: var(--ink)
	}

#chat_section .input-top
{
	display: flex;
	gap: 8px;
	align-items: flex-end
}

#chat_section textarea.ci
{
	flex: 1;
	font-family: var(--sans);
	font-size: 14px;
	color: var(--ink);
	background: transparent;
	border: none;
	outline: none;
	resize: none;
	line-height: 1.55;
	min-height: 24px;
	max-height: 130px;
}

	#chat_section textarea.ci::placeholder
	{
		color: var(--muted)
	}

#chat_section .send-btn
{
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--ink);
	border: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: opacity .18s,transform .15s;
}

	#chat_section .send-btn:hover
	{
		opacity: .8;
		transform: scale(1.05)
	}

#chat_section .input-bottom
{
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px solid var(--border);
}

#chat_section .ib-btn
{
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 6px;
	transition: color .18s,background .18s;
}

	#chat_section .ib-btn:hover
	{
		color: var(--ink);
		background: var(--bg)
	}

#chat_section .mode-group
{
	display: flex;
	gap: 4px;
	margin-left: auto
}

#chat_section .mode-pill
{
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: all .18s;
}

	#chat_section .mode-pill.active
	{
		background: var(--ink);
		color: white;
		border-color: var(--ink)
	}

	#chat_section .mode-pill:hover:not(.active)
	{
		color: var(--ink);
		border-color: var(--border2)
	}

/* modal */
#chat_section .modal-overlay
{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	backdrop-filter: blur(4px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeUp .2s ease;
}

#chat_section .modal
{
	background: var(--white);
	border-radius: 20px;
	padding: 28px;
	max-width: 440px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

	#chat_section .modal h3
	{
		font-size: 18px;
		font-weight: 700;
		margin-bottom: 6px
	}

	#chat_section .modal .modal-sub
	{
		font-size: 14px;
		color: var(--muted);
		margin-bottom: 20px;
		line-height: 1.6
	}

	#chat_section .modal .service-line
	{
		background: var(--bg);
		border-radius: 10px;
		padding: 13px 15px;
		margin-bottom: 12px;
	}

		#chat_section .modal .service-line .sl-title
		{
			font-size: 13.5px;
			font-weight: 600;
			margin-bottom: 3px
		}

		#chat_section .modal .service-line .sl-desc
		{
			font-size: 12.5px;
			color: var(--muted);
			line-height: 1.55
		}

	#chat_section .modal .price-summary
	{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 14px 0;
		border-top: 1px solid var(--border);
		margin-top: 4px;
	}

	#chat_section .modal .ps-label
	{
		font-size: 14px;
		font-weight: 600
	}

	#chat_section .modal .ps-price
	{
		font-size: 22px;
		font-weight: 800;
		letter-spacing: -1px
	}

	#chat_section .modal .modal-buttons
	{
		display: flex;
		gap: 10px;
		margin-top: 16px
	}

	#chat_section .modal .mb-cancel
	{
		flex: 1;
		font-family: var(--sans);
		font-size: 14px;
		font-weight: 600;
		padding: 11px;
		border-radius: 10px;
		border: 1px solid var(--border2);
		background: transparent;
		color: var(--ink);
		cursor: pointer;
		transition: background .18s;
	}

		#chat_section .modal .mb-cancel:hover
		{
			background: var(--bg)
		}

	#chat_section .modal .mb-pay
	{
		flex: 2;
		font-family: var(--sans);
		font-size: 14px;
		font-weight: 700;
		padding: 11px;
		border-radius: 10px;
		border: none;
		background: var(--accent);
		color: white;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		transition: all .18s;
	}

		#chat_section .modal .mb-pay:hover
		{
			background: #1344b8;
			transform: translateY(-1px)
		}

	/* success state */
	#chat_section .modal .success-icon
	{
		font-size: 40px;
		text-align: center;
		margin-bottom: 12px
	}

	#chat_section .modal .success-title
	{
		font-size: 18px;
		font-weight: 700;
		text-align: center;
		margin-bottom: 8px
	}

	#chat_section .modal .success-sub
	{
		font-size: 14px;
		color: var(--muted);
		text-align: center;
		line-height: 1.6
	}

	#chat_section .modal .mb-done
	{
		width: 100%;
		font-family: var(--sans);
		font-size: 14px;
		font-weight: 700;
		padding: 12px;
		border-radius: 10px;
		border: none;
		background: var(--ink);
		color: white;
		cursor: pointer;
		margin-top: 18px;
		transition: opacity .18s;
	}

		#chat_section .modal .mb-done:hover
		{
			opacity: .8
		}

@media(max - width:680px)
{
	#chat_section .app
	{
		grid-template-columns: 1fr
	}

	#chat_section .sidebar
	{
		display: none
	}
}
