/*
 * "Upload one document" visual story (Partner Hub 1.0.410).
 * TLA Identity System v1.1: navy, gold and white for TLA; technology purple
 * only on the ORBIT, Ask TLA and AI review moments inside the stage.
 * Follows the homepage tokens (--o-*) for light and dark themes.
 */
.tla-ds {
	--ds-navy: #10243A;
	--ds-gold: #B39558;
	--ds-purple: #6D28D9;
	--ds-purple-soft: #F0EAFB;
	--ds-ok: #1D7A4E;
	--ds-ok-soft: #E6F4EC;
	--ds-text: var(--o-text, #10243A);
	--ds-muted: var(--o-muted, #526174);
	--ds-line: var(--o-line, #D9DEE5);
	--ds-card: var(--o-card, #FFFFFF);
	--ds-panel: var(--o-bg-2, #F6F4EF);
	--ds-step: 3800ms;
	color: var(--ds-text);
}
html[data-tla-theme="dark"] .tla-ds {
	--ds-purple: #C4B5FD;
	--ds-purple-soft: rgba(196, 181, 253, .12);
	--ds-ok: #86E0B1;
	--ds-ok-soft: rgba(134, 224, 177, .12);
}
.tla-ds *, .tla-ds *::before, .tla-ds *::after { box-sizing: border-box; }
.tla-ds > .tlh3-wrap { container-type: inline-size; container-name: tlads; }
/* Neutralise theme button and focus styles; v1.1 focus ring instead. */
.tla-ds button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
.tla-ds button:focus { outline: none; }
.tla-ds button:focus-visible { outline: 2px solid var(--ds-purple) !important; outline-offset: 3px; box-shadow: 0 0 0 3px #FFFFFF; }
.tla-ds .tla-ds-step-btn:hover, .tla-ds .tla-ds-step-btn:focus { color: var(--ds-text); }
.tla-ds .tla-ds-step:not(.is-active) .tla-ds-step-btn:focus { border-color: transparent; }
.tla-ds p, .tla-ds li { letter-spacing: normal; }
.tla-ds .tla-ds-head { max-width: 720px; margin: 0 auto 2.25rem; text-align: center; }
.tla-ds .tla-ds-head .tlh3-sub { margin-top: .75rem; }

.tla-ds .tla-ds-body {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px;
	align-items: stretch;
}

/* Steps */
.tla-ds .tla-ds-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: center; }
.tla-ds .tla-ds-step-btn {
	position: relative;
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 14px;
	align-items: start;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--ds-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: background-color .25s ease, border-color .25s ease;
}
.tla-ds .tla-ds-step-btn:hover { background: var(--ds-panel); }
.tla-ds .tla-ds-num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--ds-line);
	border-radius: 50%;
	font-weight: 700;
	font-size: .875rem;
	color: var(--ds-muted);
	background: var(--ds-card);
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.tla-ds .tla-ds-step-copy { display: grid; gap: 2px; padding-top: 5px; }
.tla-ds .tla-ds-step-copy strong { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ds-text); }
.tla-ds .tla-ds-step-copy span { font-size: .875rem; line-height: 1.45; color: var(--ds-muted); }
.tla-ds .tla-ds-bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: transparent; }
.tla-ds .tla-ds-bar span { display: block; width: 0; height: 100%; background: var(--ds-gold); }
.tla-ds .tla-ds-step.is-active .tla-ds-step-btn { background: var(--ds-card); border-color: var(--ds-line); box-shadow: 0 1px 2px rgba(16, 36, 58, .05); }
.tla-ds .tla-ds-step.is-active .tla-ds-num { background: var(--ds-navy); border-color: var(--ds-navy); color: #FFFFFF; }
html[data-tla-theme="dark"] .tla-ds .tla-ds-step.is-active .tla-ds-num { background: var(--ds-gold); border-color: var(--ds-gold); color: #10243A; }
.tla-ds .tla-ds-step.is-done .tla-ds-num { border-color: var(--ds-gold); color: var(--ds-text); }
.tla-ds[data-playing="1"] .tla-ds-step.is-active .tla-ds-bar span { animation: tla-ds-fill var(--ds-step) linear forwards; }
.tla-ds[data-paused="1"] .tla-ds-step.is-active .tla-ds-bar span { animation-play-state: paused; }
@keyframes tla-ds-fill { from { width: 0; } to { width: 100%; } }

/* Stage */
.tla-ds .tla-ds-stage {
	position: relative;
	min-height: 380px;
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	background: var(--ds-panel);
	overflow: hidden;
}
.tla-ds .tla-ds-scene {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 40px 32px 64px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.tla-ds .tla-ds-scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.tla-ds .tla-ds-scene > * { width: 100%; max-width: 440px; }

.tla-ds .tla-ds-label { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); }
.tla-ds .tla-ds-label.is-product { color: var(--ds-purple); }

/* 1. Upload */
.tla-ds .tla-ds-drop { padding: 28px; border: 2px dashed var(--ds-line); border-radius: 8px; background: var(--ds-card); text-align: center; }
.tla-ds .tla-ds-file {
	display: grid;
	grid-template-columns: 40px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	background: var(--ds-card);
	text-align: left;
	box-shadow: 0 10px 24px -14px rgba(16, 36, 58, .35);
}
.tla-ds .tla-ds-file-ico { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 8px; color: var(--ds-navy); background: var(--ds-panel); }
html[data-tla-theme="dark"] .tla-ds .tla-ds-file-ico { color: #FFFFFF; }
.tla-ds .tla-ds-file-name { font-size: 1rem; line-height: 1.3; font-weight: 600; color: var(--ds-text); }
.tla-ds .tla-ds-file-meta { font-size: .8125rem; line-height: 1.3; color: var(--ds-muted); }
.tla-ds .tla-ds-progress { height: 6px; margin: 18px 0 14px; border-radius: 3px; background: var(--ds-panel); overflow: hidden; }
.tla-ds .tla-ds-progress span { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--ds-gold); }
.tla-ds .tla-ds-drop-label { margin: 0; font-size: .875rem; color: var(--ds-muted); }
.tla-ds .tla-ds-drop-label strong { color: var(--ds-text); }
.tla-ds .is-active .tla-ds-file { animation: tla-ds-drop .7s cubic-bezier(.2, .8, .2, 1) both; }
.tla-ds .is-active .tla-ds-progress span { animation: tla-ds-load 1.4s .6s ease-out both; }
.tla-ds .is-active .tla-ds-drop-label { animation: tla-ds-in .4s 2s both; }
@keyframes tla-ds-drop { from { opacity: 0; transform: translateY(-28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tla-ds-load { from { width: 0; } to { width: 100%; } }
@keyframes tla-ds-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 2. Review */
.tla-ds .tla-ds-review { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; max-width: 460px; }
.tla-ds .tla-ds-doc { position: relative; display: grid; gap: 9px; align-content: start; height: 156px; padding: 16px 14px; border: 1px solid var(--ds-line); border-radius: 6px; background: var(--ds-card); overflow: hidden; }
.tla-ds .tla-ds-doc-line { display: block; height: 6px; border-radius: 3px; background: var(--ds-line); }
.tla-ds .tla-ds-doc-band { display: block; height: 26px; border-radius: 3px; background: linear-gradient(90deg, #1D7A4E 0 20%, #7FB04F 20% 40%, #E3C341 40% 60%, #E79B3C 60% 80%, #C8513A 80%); opacity: .8; }
.tla-ds .w80 { width: 80%; } .tla-ds .w70 { width: 70%; } .tla-ds .w60 { width: 60%; } .tla-ds .w50 { width: 50%; }
.tla-ds .tla-ds-scan { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: linear-gradient(180deg, transparent, var(--ds-purple-soft) 70%, var(--ds-purple) 100%); opacity: 0; }
.tla-ds .is-active .tla-ds-scan { animation: tla-ds-scan 1.5s ease-in-out both; }
@keyframes tla-ds-scan { 0% { opacity: 1; transform: translateY(-28px); } 90% { opacity: 1; transform: translateY(150px); } 100% { opacity: 0; transform: translateY(150px); } }
.tla-ds .tla-ds-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tla-ds .tla-ds-fields li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--ds-line); border-radius: 6px; background: var(--ds-card); font-size: .875rem; }
.tla-ds .tla-ds-fields li span { color: var(--ds-muted); }
.tla-ds .tla-ds-fields li strong { color: var(--ds-text); font-weight: 600; text-align: right; }
.tla-ds .tla-ds-fields .tla-ds-confirm { justify-content: flex-start; align-items: center; border-color: var(--ds-ok); background: var(--ds-ok-soft); }
.tla-ds .tla-ds-tick { position: relative; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--ds-ok); }
.tla-ds .tla-ds-tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tla-ds .is-active .tla-ds-fields li { animation: tla-ds-in .4s both; }
.tla-ds .is-active .tla-ds-fields li:nth-child(1) { animation-delay: .9s; }
.tla-ds .is-active .tla-ds-fields li:nth-child(2) { animation-delay: 1.2s; }
.tla-ds .is-active .tla-ds-fields li:nth-child(3) { animation-delay: 1.5s; }
.tla-ds .is-active .tla-ds-fields li:nth-child(4) { animation-delay: 2.1s; }

/* 3. Record */
.tla-ds .tla-ds-record { padding: 22px; border: 1px solid var(--ds-line); border-radius: 8px; background: var(--ds-card); }
.tla-ds .tla-ds-record-title { margin: 0 0 14px; font-size: 1.125rem; font-weight: 600; color: var(--ds-text); }
.tla-ds .tla-ds-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.tla-ds .tla-ds-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ds-line); font-size: .9375rem; }
.tla-ds .tla-ds-rows li span { color: var(--ds-text); }
.tla-ds .tla-ds-rows em { font-style: normal; font-size: .8125rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--ds-panel); color: var(--ds-muted); }
.tla-ds .tla-ds-rows em.ok { background: var(--ds-ok-soft); color: var(--ds-ok); }
.tla-ds .tla-ds-rows li.is-new { position: relative; }
.tla-ds .is-active .tla-ds-rows li.is-new { animation: tla-ds-highlight 1.6s .5s both; }
.tla-ds .is-active .tla-ds-rows li.is-new + li.is-new { animation-delay: 1.1s; }
@keyframes tla-ds-highlight { 0% { opacity: 0; transform: translateX(-8px); background: transparent; } 30% { opacity: 1; transform: none; background: var(--ds-purple-soft); } 100% { opacity: 1; background: transparent; } }

/* 4. Ask TLA */
.tla-ds .tla-ds-chat { display: grid; gap: 12px; }
.tla-ds .tla-ds-q, .tla-ds .tla-ds-a { margin: 0; padding: 14px 16px; border-radius: 8px; font-size: .9375rem; line-height: 1.5; }
.tla-ds .tla-ds-q { justify-self: end; max-width: 85%; background: var(--ds-navy); color: #FFFFFF; }
html[data-tla-theme="dark"] .tla-ds .tla-ds-q { background: #FFFFFF; color: #10243A; }
.tla-ds .tla-ds-a { max-width: 92%; border: 1px solid var(--ds-line); border-left: 3px solid var(--ds-purple); background: var(--ds-card); color: var(--ds-text); }
.tla-ds .is-active .tla-ds-q { animation: tla-ds-in .4s .2s both; }
.tla-ds .is-active .tla-ds-a { animation: tla-ds-in .5s 1.1s both; }

/* 5. Health */
.tla-ds .tla-ds-health { position: relative; display: grid; justify-items: center; text-align: center; max-width: 260px; }
.tla-ds .tla-ds-ring { width: 168px; height: 168px; transform: rotate(-90deg); }
.tla-ds .tla-ds-ring circle { fill: none; stroke-width: 10; }
.tla-ds .tla-ds-ring-bg { stroke: var(--ds-line); }
.tla-ds .tla-ds-ring-fg { stroke: var(--ds-gold); stroke-linecap: round; stroke-dasharray: 78 100; }
.tla-ds .is-active .tla-ds-ring-fg { animation: tla-ds-ring 1.6s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tla-ds-ring { from { stroke-dasharray: 62 100; } to { stroke-dasharray: 78 100; } }
.tla-ds .tla-ds-score { position: absolute; top: 56px; left: 0; right: 0; margin: 0; color: var(--ds-text); }
.tla-ds .tla-ds-score-num { font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tla-ds .tla-ds-score-of { font-size: .875rem; color: var(--ds-muted); }
.tla-ds .tla-ds-health-label { margin: 12px 0 2px; font-weight: 600; color: var(--ds-text); }
.tla-ds .tla-ds-health-delta { margin: 0; font-size: .875rem; color: var(--ds-ok); font-weight: 600; }
.tla-ds .is-active .tla-ds-health-delta { animation: tla-ds-in .4s 1.7s both; }

/* 6. Ahead */
.tla-ds .tla-ds-ahead { max-width: 400px; }
.tla-ds .tla-ds-timeline { list-style: none; margin: 0 0 16px; padding: 0 0 0 18px; display: grid; gap: 14px; border-left: 2px solid var(--ds-line); }
.tla-ds .tla-ds-timeline li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--ds-line); border-radius: 8px; background: var(--ds-card); font-size: .9375rem; }
.tla-ds .tla-ds-timeline strong { color: var(--ds-text); font-weight: 600; }
.tla-ds .tla-ds-timeline li > span:last-child { color: var(--ds-muted); }
.tla-ds .tla-ds-dot { position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 2px solid var(--ds-card); border-radius: 50%; background: var(--ds-gold); }
.tla-ds .tla-ds-ahead-line { margin: 0; text-align: center; font-weight: 600; color: var(--ds-text); }
.tla-ds .is-active .tla-ds-timeline li { animation: tla-ds-in .4s both; }
.tla-ds .is-active .tla-ds-timeline li:nth-child(2) { animation-delay: .35s; }
.tla-ds .is-active .tla-ds-timeline li:nth-child(3) { animation-delay: .7s; }
.tla-ds .is-active .tla-ds-ahead-line { animation: tla-ds-in .4s 1.2s both; }

/* Pause control */
.tla-ds .tla-ds-pause {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--ds-line);
	border-radius: 6px;
	background: var(--ds-card);
	color: var(--ds-text);
	font: 600 .8125rem/1 Inter, Arial, sans-serif;
	cursor: pointer;
}
.tla-ds .tla-ds-pause-ico { position: relative; width: 10px; height: 12px; }
.tla-ds .tla-ds-pause-ico::before, .tla-ds .tla-ds-pause-ico::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; border-radius: 1px; }
.tla-ds .tla-ds-pause-ico::before { left: 0; } .tla-ds .tla-ds-pause-ico::after { right: 0; }
.tla-ds .tla-ds-pause[aria-pressed="true"] .tla-ds-pause-ico::before { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; background: none; border-radius: 0; }
.tla-ds .tla-ds-pause[aria-pressed="true"] .tla-ds-pause-ico::after { display: none; }

.tla-ds .tla-ds-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 2rem; }
.tla-ds .tla-ds-note { margin: 0; font-size: .875rem; color: var(--ds-muted); }

/* Tablet and mobile: one column, the stage first, compact steps. */
@container tlads (max-width: 859px) {
	.tla-ds .tla-ds-body { grid-template-columns: 1fr; gap: 16px; }
	.tla-ds .tla-ds-stage { order: -1; min-height: 360px; }
	.tla-ds .tla-ds-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.tla-ds .tla-ds-step-btn { grid-template-columns: 28px 1fr; gap: 10px; padding: 10px; align-items: center; }
	.tla-ds .tla-ds-num { width: 28px; height: 28px; font-size: .8125rem; }
	.tla-ds .tla-ds-step-copy { padding-top: 0; }
	.tla-ds .tla-ds-step-copy strong { font-size: .875rem; }
	.tla-ds .tla-ds-step-copy span { display: none; }
}
@container tlads (max-width: 600px) {
	.tla-ds .tla-ds-fields li { flex-wrap: wrap; }
	.tla-ds .tla-ds-stage { min-height: 404px; }
	.tla-ds .tla-ds-head { margin-bottom: 1.5rem; }
	.tla-ds .tla-ds-scene { padding: 24px 18px 72px; }
	.tla-ds .tla-ds-review { grid-template-columns: 84px 1fr; gap: 12px; }
	.tla-ds .tla-ds-doc { height: 120px; padding: 12px 10px; gap: 7px; }
	.tla-ds .tla-ds-fields li { padding: 8px 10px; font-size: .8125rem; }
	.tla-ds .tla-ds-timeline li { grid-template-columns: 76px 1fr; }
	.tla-ds .tla-ds-foot { flex-direction: column; }
	.tla-ds .tla-ds-foot .tlh3-btn { width: 100%; }
}
@container tlads (max-width: 340px) {
	.tla-ds .tla-ds-steps { grid-template-columns: 1fr; }
	.tla-ds .tla-ds-review { grid-template-columns: 1fr; }
	.tla-ds .tla-ds-doc { display: none; }
}

/* Reduced motion: still scenes, no autoplay (the script also stops). */
@media (prefers-reduced-motion: reduce) {
	.tla-ds .tla-ds-scene, .tla-ds .tla-ds-scene.is-active { transition: none; transform: none; }
	.tla-ds .is-active * { animation: none !important; }
}

/* ------------------------------------------------------------------
 * Stage backdrop (Partner Hub 1.0.413).
 * A softly blurred, decorative mock of the ORBIT workspace sits behind
 * the scenes and pans to the part of the workspace each step happens
 * in: upload, review, property record, Ask TLA, Portfolio Health and
 * the calendar. Pure HTML and CSS, aria-hidden, no images, no clicks.
 * ------------------------------------------------------------------ */
.tla-ds {
	--ds-bg-scale: 1.2;
	--ds-bg-blur: 3.5px;
	--ds-bg-card: #FFFFFF;
	--ds-bg-ink: rgba(16, 36, 58, .55);
	--ds-bg-soft: rgba(16, 36, 58, .14);
	--ds-frost: rgba(255, 255, 255, .72);
	--ds-shadow: 0 1px 2px rgba(16, 36, 58, .06), 0 10px 28px -12px rgba(16, 36, 58, .28);
}
html[data-tla-theme="dark"] .tla-ds {
	--ds-bg-card: #1A2942;
	--ds-bg-ink: rgba(255, 255, 255, .45);
	--ds-bg-soft: rgba(255, 255, 255, .10);
	--ds-frost: rgba(16, 27, 49, .74);
	--ds-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
}
.tla-ds .tla-ds-stage { isolation: isolate; }
.tla-ds .tla-ds-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	user-select: none;
}
.tla-ds .tla-ds-bg-canvas {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1200px;
	height: 820px;
	transform-origin: 0 0;
	--fx: 256px; --fy: 198px;
	transform: translate(calc(var(--fx) * var(--ds-bg-scale) * -1), calc(var(--fy) * var(--ds-bg-scale) * -1)) scale(var(--ds-bg-scale));
	transition: transform 1.6s cubic-bezier(.45, 0, .2, 1);
	filter: blur(var(--ds-bg-blur));
	opacity: .95;
	will-change: transform;
}
/* Where each step happens in the workspace. */
.tla-ds .tla-ds-stage[data-step="2"] .tla-ds-bg-canvas { --fx: 598px; --fy: 238px; }
.tla-ds .tla-ds-stage[data-step="3"] .tla-ds-bg-canvas { --fx: 970px; --fy: 218px; }
.tla-ds .tla-ds-stage[data-step="4"] .tla-ds-bg-canvas { --fx: 266px; --fy: 490px; }
.tla-ds .tla-ds-stage[data-step="5"] .tla-ds-bg-canvas { --fx: 608px; --fy: 540px; }
.tla-ds .tla-ds-stage[data-step="6"] .tla-ds-bg-canvas { --fx: 970px; --fy: 520px; }

.tla-ds .tla-ds-bg i { display: block; }
.tla-ds .tla-ds-bg-rail {
	position: absolute; left: 0; top: 0; bottom: 0; width: 64px;
	display: grid; justify-items: center; align-content: start; gap: 18px; padding-top: 18px;
	background: #10243A;
}
.tla-ds .tla-ds-bg-rail i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.tla-ds .tla-ds-bg-rail i.logo { width: 30px; height: 30px; margin-bottom: 10px; background: #B39558; }
.tla-ds .tla-ds-bg-rail i.on { background: #B39558; }
.tla-ds .tla-ds-bg-top {
	position: absolute; left: 64px; right: 0; top: 0; height: 56px;
	display: flex; align-items: center; gap: 14px; padding: 0 32px;
	background: var(--ds-bg-card); border-bottom: 1px solid var(--ds-bg-soft);
}
.tla-ds .tla-ds-bg-top .search { width: 340px; height: 30px; border-radius: 15px; background: var(--ds-bg-soft); }
.tla-ds .tla-ds-bg-top .pill { width: 120px; height: 30px; margin-left: auto; border-radius: 15px; background: #B39558; opacity: .8; }
.tla-ds .tla-ds-bg-top .avatar { width: 32px; height: 32px; border-radius: 50%; background: #10243A; opacity: .7; }

.tla-ds .tla-ds-bg-card {
	position: absolute;
	display: grid; align-content: start; gap: 12px;
	padding: 20px;
	border: 1px solid var(--ds-bg-soft);
	border-radius: 10px;
	background: var(--ds-bg-card);
	box-shadow: 0 6px 18px -10px rgba(16, 36, 58, .35);
}
.tla-ds .c-upload { left: 96px;  top: 88px;  width: 320px; height: 220px; }
.tla-ds .c-doc    { left: 448px; top: 88px;  width: 300px; height: 300px; }
.tla-ds .c-prop   { left: 780px; top: 88px;  width: 380px; height: 260px; }
.tla-ds .c-ask    { left: 96px;  top: 340px; width: 340px; height: 300px; background-image: linear-gradient(180deg, rgba(109, 40, 217, .08), transparent 60%); }
.tla-ds .c-health { left: 468px; top: 420px; width: 280px; height: 240px; justify-items: center; }
.tla-ds .c-cal    { left: 780px; top: 380px; width: 380px; height: 280px; }
.tla-ds .c-prop2  { left: 96px;  top: 672px; width: 340px; height: 130px; }
.tla-ds .c-wide   { left: 468px; top: 692px; width: 692px; height: 110px; }

.tla-ds .tla-ds-bg-card .h { width: 45%; height: 12px; border-radius: 6px; background: var(--ds-bg-ink); justify-self: start; }
.tla-ds .tla-ds-bg-card .l { height: 8px; border-radius: 4px; background: var(--ds-bg-soft); }
.tla-ds .tla-ds-bg-card .w80 { width: 80%; } .tla-ds .tla-ds-bg-card .w70 { width: 70%; }
.tla-ds .tla-ds-bg-card .w60 { width: 60%; } .tla-ds .tla-ds-bg-card .w50 { width: 50%; }
.tla-ds .tla-ds-bg-card .drop { height: 110px; border: 2px dashed rgba(179, 149, 88, .7); border-radius: 8px; background: rgba(179, 149, 88, .08); }
.tla-ds .tla-ds-bg-card .band { height: 34px; border-radius: 6px; background: rgba(109, 40, 217, .16); }
.tla-ds .tla-ds-bg-card .row { position: relative; height: 34px; padding-left: 24px; border-bottom: 1px solid var(--ds-bg-soft); }
.tla-ds .tla-ds-bg-card .row::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--ds-bg-soft); }
.tla-ds .tla-ds-bg-card .row.ok::before { background: #1D7A4E; opacity: .7; }
.tla-ds .tla-ds-bg-card .bubble { height: 44px; border-radius: 12px; }
.tla-ds .tla-ds-bg-card .bubble.q { width: 62%; justify-self: end; background: #10243A; opacity: .75; }
.tla-ds .tla-ds-bg-card .bubble.a { width: 86%; background: rgba(109, 40, 217, .18); border-left: 3px solid rgba(109, 40, 217, .6); }
.tla-ds .tla-ds-bg-card .bubble.short { width: 58%; }
.tla-ds .tla-ds-bg-card .ring { width: 120px; height: 120px; margin: 4px 0; border-radius: 50%; background: radial-gradient(closest-side, var(--ds-bg-card) 74%, transparent 75%), conic-gradient(#B39558 0 78%, var(--ds-bg-soft) 78% 100%); }
.tla-ds .tla-ds-bg-card .date { position: relative; height: 46px; padding-left: 58px; border: 1px solid var(--ds-bg-soft); border-radius: 8px; }
.tla-ds .tla-ds-bg-card .date::before { content: ""; position: absolute; left: 8px; top: 7px; width: 40px; height: 30px; border-radius: 6px; background: rgba(179, 149, 88, .35); }

/* Veil: keeps the centre calm and readable, with a faint brand glow. */
.tla-ds .tla-ds-bg-veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 90% at 50% 50%, color-mix(in srgb, var(--ds-panel) 40%, transparent) 0%, color-mix(in srgb, var(--ds-panel) 12%, transparent) 70%, color-mix(in srgb, var(--ds-panel) 30%, transparent) 100%),
		radial-gradient(60% 50% at 100% 0%, rgba(179, 149, 88, .16), transparent 70%),
		radial-gradient(60% 50% at 0% 100%, rgba(16, 36, 58, .10), transparent 70%);
}
html[data-tla-theme="dark"] .tla-ds .tla-ds-bg-veil {
	background:
		radial-gradient(120% 90% at 50% 50%, color-mix(in srgb, var(--ds-panel) 62%, transparent) 0%, color-mix(in srgb, var(--ds-panel) 35%, transparent) 70%, color-mix(in srgb, var(--ds-panel) 60%, transparent) 100%),
		radial-gradient(60% 50% at 100% 0%, rgba(179, 149, 88, .12), transparent 70%);
}

/* Foreground sits above the backdrop on solid or frosted surfaces. */
.tla-ds .tla-ds-scene, .tla-ds .tla-ds-pause { z-index: 1; }
.tla-ds .tla-ds-drop, .tla-ds .tla-ds-record { box-shadow: var(--ds-shadow); }
.tla-ds .tla-ds-drop { border-color: rgba(179, 149, 88, .55); }
.tla-ds .tla-ds-review, .tla-ds .tla-ds-chat, .tla-ds .tla-ds-health, .tla-ds .tla-ds-ahead {
	padding: 18px;
	border: 1px solid var(--ds-line);
	border-radius: 10px;
	background: var(--ds-frost);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--ds-shadow);
}
.tla-ds .tla-ds-health { padding: 22px 28px; }
.tla-ds .tla-ds-health .tla-ds-score { top: 78px; }

@container tlads (max-width: 600px) {
	.tla-ds { --ds-bg-scale: 1; --ds-bg-blur: 3px; }
	.tla-ds .tla-ds-review, .tla-ds .tla-ds-chat, .tla-ds .tla-ds-ahead { padding: 14px; }
	.tla-ds .tla-ds-timeline { gap: 8px; margin-bottom: 12px; }
	.tla-ds .tla-ds-timeline li { padding: 8px 12px; font-size: .875rem; }
	.tla-ds .tla-ds-ahead-line { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
	.tla-ds .tla-ds-bg-canvas { transition: none; }
}
@media (forced-colors: active) {
	.tla-ds .tla-ds-bg { display: none; }
}
