/* Standalone submitted-brief viewer, scoped to #tdi-viewer. Matches the client form's palette and type. */
#tdi-viewer {
	--tdi-navy: #202b46;
	--tdi-blue: #405cf5;
	--tdi-orange: #f37961;
	--tdi-line: #e2e6f0;
	--tdi-muted: #5d6680;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(16px, 4vw, 48px) 16px;
	background: #f6f8fc;
	color: var(--tdi-navy);
	font: 16px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
#tdi-viewer *, #tdi-viewer *::before, #tdi-viewer *::after { box-sizing: border-box; }
#tdi-viewer h1, #tdi-viewer h2, #tdi-viewer p, #tdi-viewer dl, #tdi-viewer dd, #tdi-viewer ul { margin: 0; padding: 0; }
#tdi-viewer a { color: var(--tdi-blue); }
#tdi-viewer :focus-visible { outline: 3px solid var(--tdi-blue); outline-offset: 2px; border-radius: 6px; }
#tdi-viewer .tdi-bv__boot { text-align: center; color: var(--tdi-muted); padding: 60px 0; }
#tdi-viewer .tdi-bv__card { max-width: 900px; margin: 0 auto; padding: clamp(20px, 4vw, 44px); background: #fff; border-radius: 22px; box-shadow: 0 1px 2px rgba(32, 43, 70, .05), 0 24px 60px -32px rgba(32, 43, 70, .35); animation: tdi-bv-in .2s ease-out both; }
#tdi-viewer .tdi-bv__card--narrow { max-width: 520px; margin-top: 8vh; text-align: center; display: grid; gap: 14px; justify-items: center; }
#tdi-viewer .tdi-bv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--tdi-line); width: 100%; }
#tdi-viewer .tdi-bv__card--narrow .tdi-bv__top { justify-content: center; }
#tdi-viewer .tdi-bv__logo { max-height: 40px; width: auto; display: block; }
#tdi-viewer .tdi-bv__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
#tdi-viewer .tdi-bv__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tdi-navy); color: #fff; font-weight: 800; }
#tdi-viewer .tdi-bv__actions { display: flex; gap: 8px; flex-wrap: wrap; }
#tdi-viewer .tdi-bv__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--tdi-navy); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, opacity .15s; }
#tdi-viewer .tdi-bv__btn:hover { transform: translateY(-1px); }
#tdi-viewer .tdi-bv__btn:disabled { opacity: .6; cursor: progress; transform: none; }
#tdi-viewer .tdi-bv__btn--ghost { background: #fff; color: var(--tdi-navy); box-shadow: inset 0 0 0 1.5px var(--tdi-line); }
#tdi-viewer .tdi-bv__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tdi-blue); }
#tdi-viewer .tdi-bv__title { margin-top: 6px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
#tdi-viewer .tdi-bv__lead { margin-top: 6px; color: var(--tdi-muted); }
#tdi-viewer .tdi-bv__status { min-height: 1.5em; margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: #1f9d6b; }
#tdi-viewer .tdi-bv__section { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--tdi-line); border-radius: 16px; background: #fbfcfe; break-inside: avoid; }
#tdi-viewer .tdi-bv__section h2 { font-size: 1.05rem; font-weight: 750; margin-bottom: 12px; }
#tdi-viewer .tdi-bv__dl { display: grid; grid-template-columns: minmax(150px, 32%) minmax(0, 1fr); gap: 8px 18px; font-size: .95rem; }
#tdi-viewer .tdi-bv__dl dt { color: var(--tdi-muted); }
#tdi-viewer .tdi-bv__dl dd { overflow-wrap: anywhere; }
#tdi-viewer .tdi-bv__pre { white-space: pre-wrap; }
#tdi-viewer .tdi-bv__files { list-style: none; display: grid; gap: 4px; }
#tdi-viewer .tdi-bv__foot { margin-top: 24px; font-size: .85rem; color: var(--tdi-muted); text-align: center; }
@keyframes tdi-bv-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) {
	#tdi-viewer .tdi-bv__dl { grid-template-columns: 1fr; gap: 2px; }
	#tdi-viewer .tdi-bv__dl dd { margin-bottom: 10px; }
	#tdi-viewer .tdi-bv__actions { width: 100%; }
	#tdi-viewer .tdi-bv__actions .tdi-bv__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { #tdi-viewer * { animation: none !important; transition: none !important; } }
@media print {
	#tdi-viewer { padding: 0; background: #fff; }
	#tdi-viewer .tdi-bv__card { box-shadow: none; padding: 0; }
	#tdi-viewer .tdi-bv__actions, #tdi-viewer .tdi-bv__status { display: none; }
}
