/* TECO EQ Bridge — v0.460.0 V2: the light 3D viewer (assets/js/l3d-public.js) — the share page /3d/?k=, public posts
 * ([teco_3d]) and the customer portal's 3D tab. Self-contained (no app.css); the theme (Enfold #top …) is shielded below. */

.tl3d, .tl3d *, .tl3d-page, .tl3d-page *, .tl3d-post *, .tl3d-modal * { box-sizing: border-box; }
.tl3d {
	--tl-blue: #0b5cab; --tl-blue2: #073f78; --tl-ink: #14202e; --tl-ink2: #4d5a6b; --tl-line: #d9e0ea; --tl-bg: #ffffff; --tl-soft: #f1f5fa;
	--tl-chip: #eef3f9; --tl-on: #0b5cab; --tl-onink: #ffffff; --tl-warn: #e8590c; --tl-ok: #2e7d32; --tl-bad: #c62828;
	position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 360px;
	background: var(--tl-bg); color: var(--tl-ink); border: 1px solid var(--tl-line); border-radius: 12px; overflow: hidden;
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans Arabic", Tahoma, sans-serif;
}
.tl3d[dir="rtl"] { font-family: Tahoma, "Noto Sans Arabic", "Segoe UI", Arial, sans-serif; }
.tl3d.tl3d-dark { --tl-ink: #e6ebf2; --tl-ink2: #a9b4c3; --tl-line: #323c48; --tl-bg: #161c23; --tl-soft: #1f2731; --tl-chip: #232c37; --tl-on: #3d8bdb; }
.tl3d.tl3d-max { position: fixed; inset: 0; z-index: 2147483600; border-radius: 0; }
.tl3d:fullscreen { border-radius: 0; }
.tl3d svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.tl3d [hidden], .tl3d-app [hidden], .tl3d-post [hidden], .tl3d-modal [hidden] { display: none !important; }   /* a display rule must never beat [hidden] */

/* ----- bars */
.tl3d-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-bottom: 1px solid var(--tl-line); background: var(--tl-bg); }
.tl3d-bar2 { padding-top: 6px; padding-bottom: 6px; background: var(--tl-soft); }
.tl3d-sp { flex: 1 1 auto; }
.tl3d-k { color: var(--tl-ink2); font-size: 12px; }
.tl3d-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tl3d-sel { position: relative; display: inline-block; }
.tl3d-sel::after { content: ""; position: absolute; inset-inline-end: 10px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--tl-ink2); border-bottom: 2px solid var(--tl-ink2); transform: rotate(45deg); pointer-events: none; }
.tl3d .tl3d-sel select {
	-webkit-appearance: none; appearance: none; height: 34px; min-width: 120px; max-width: 46vw; margin: 0; padding: 0 30px 0 10px; padding-inline: 10px 30px;
	border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-bg); color: var(--tl-ink); font: inherit; font-weight: 600; cursor: pointer; box-shadow: none;
}
.tl3d-views { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--tl-line); border-radius: 9px; background: var(--tl-soft); }
.tl3d .tl3d-b {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; min-width: 30px; margin: 0; padding: 0 9px;
	border: 0; border-radius: 7px; background: transparent; color: var(--tl-ink); font: inherit; font-size: 13px; cursor: pointer; line-height: 1; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.tl3d .tl3d-b:hover { background: var(--tl-chip); }
.tl3d .tl3d-ic { padding: 0 6px; }
.tl3d-bar2 .tl3d-b { border: 1px solid var(--tl-line); background: var(--tl-bg); }
.tl3d .tl3d-chip {
	display: inline-flex; align-items: center; gap: 5px; height: 30px; margin: 0; padding: 0 11px; border: 1px solid var(--tl-line); border-radius: 999px;
	background: var(--tl-bg); color: var(--tl-ink); font: inherit; font-size: 13px; cursor: pointer; line-height: 1; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.tl3d .tl3d-chip svg { width: 16px; height: 16px; }
.tl3d .tl3d-chip.on { background: var(--tl-on); border-color: var(--tl-on); color: var(--tl-onink); }
.tl3d .tl3d-notebtn { border-color: var(--tl-warn); color: var(--tl-warn); font-weight: 600; }
.tl3d .tl3d-notebtn.on { background: var(--tl-warn); border-color: var(--tl-warn); color: #fff; }
.tl3d-cnt { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--tl-chip); color: var(--tl-ink); font-size: 12px; text-align: center; }
.tl3d-cnt:empty { display: none; }
.tl3d-cnt.due { background: var(--tl-warn); color: #fff; }
.tl3d-chip.on .tl3d-cnt { background: rgba(255, 255, 255, .25); color: #fff; }
.tl3d-see { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tl-ink2); }
.tl3d .tl3d-see input[type="range"] { width: 92px; margin: 0; padding: 0; height: auto; border: 0; background: transparent; accent-color: var(--tl-blue); box-shadow: none; }
.tl3d-find { position: relative; display: inline-flex; align-items: center; flex: 1 1 180px; max-width: 280px; }
.tl3d-find-ic { position: absolute; inset-inline-start: 9px; color: var(--tl-ink2); pointer-events: none; }
.tl3d-find-ic svg { width: 16px; height: 16px; }
.tl3d .tl3d-find input {
	width: 100%; height: 34px; margin: 0; padding: 0 10px; padding-inline-start: 32px; border: 1px solid var(--tl-line); border-radius: 8px;
	background: var(--tl-bg); color: var(--tl-ink); font: inherit; font-size: 14px; box-shadow: none;
}
.tl3d-sugg { position: absolute; top: 38px; inset-inline: 0; z-index: 30; max-height: 300px; overflow: auto; background: var(--tl-bg); border: 1px solid var(--tl-line); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 30, 50, .18); padding: 4px; min-width: 240px; }
.tl3d .tl3d-sg { display: flex; gap: 8px; width: 100%; margin: 0; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--tl-ink); font: inherit; font-size: 13px; text-align: start; cursor: pointer; box-shadow: none; text-transform: none; }
.tl3d .tl3d-sg:hover, .tl3d .tl3d-sg:focus { background: var(--tl-chip); }
.tl3d-sg-t { font-weight: 700; white-space: nowrap; }
.tl3d-sg span { color: var(--tl-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl3d-sg-none { padding: 8px; color: var(--tl-ink2); font-size: 13px; }
.tl3d-pick.one .tl3d-sel select { cursor: default; }

/* ----- stage */
.tl3d-main { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.tl3d-stage { position: relative; flex: 1 1 auto; min-width: 0; min-height: 280px; overflow: hidden; background: #eef1f5; touch-action: none; }
.tl3d.tl3d-dark .tl3d-stage { background: #1b2129; }
.tl3d-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: none; cursor: grab; touch-action: none; }
.tl3d-cv:active { cursor: grabbing; }
.tl3d-noting .tl3d-cv { cursor: crosshair; }
.tl3d-labels, .tl3d-pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tl3d .tl3d-tag { position: absolute; left: 0; top: 0; pointer-events: auto; margin: 0; padding: 1px 6px; border: 1px solid rgba(11, 92, 171, .45); border-radius: 5px; background: rgba(255, 255, 255, .92); color: #0b3d74; font: 600 11px/1.4 Arial, sans-serif; cursor: pointer; white-space: nowrap; box-shadow: none; height: auto; text-transform: none; }
.tl3d .tl3d-pin { position: absolute; left: 0; top: 0; pointer-events: auto; width: 28px; height: 28px; margin: -38px 0 0 -14px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--tl-warn); color: #fff; font: 700 12px/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.tl3d .tl3d-pin > span { display: block; line-height: 24px; }
.tl3d .tl3d-pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top: 9px solid #fff; }
.tl3d .tl3d-pin.sent { background: var(--tl-blue); }
.tl3d .tl3d-pin.done { background: var(--tl-ok); }
.tl3d .tl3d-pin.draft { background: #fff; color: var(--tl-warn); border-color: var(--tl-warn); }
.tl3d-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 7px 12px; border-radius: 999px; background: var(--tl-warn); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); pointer-events: none; }
.tl3d-hint svg { width: 16px; height: 16px; }
.tl3d-msg { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--tl-ink); background: rgba(238, 241, 245, .72); font-size: 14px; }
.tl3d.tl3d-dark .tl3d-msg { background: rgba(27, 33, 41, .78); }
.tl3d-msg.err { color: var(--tl-bad); }
.tl3d-msg > span:first-child:not(.tl3d-spin) { max-width: 420px; }
.tl3d-spin, .tl3d-boot .tl3d-spin { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(11, 92, 171, .2); border-top-color: #0b5cab; border-radius: 50%; animation: tl3dspin .8s linear infinite; vertical-align: middle; }
@keyframes tl3dspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tl3d-spin { animation-duration: 2.4s; } }

/* ----- the part card */
.tl3d-card { position: absolute; z-index: 7; top: 10px; inset-inline-end: 10px; width: 300px; max-width: calc(100% - 20px); max-height: calc(100% - 20px); overflow: auto; padding: 12px 14px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-bg); color: var(--tl-ink); box-shadow: 0 10px 30px rgba(15, 30, 50, .2); }
.tl3d-card-t { font-size: 16px; font-weight: 700; padding-inline-end: 28px; word-break: break-word; }
.tl3d-card-d { margin: 4px 0 6px; color: var(--tl-ink2); }
.tl3d-row { margin-top: 4px; font-size: 13px; word-break: break-word; }
.tl3d-parts { margin-top: 8px; border-top: 1px solid var(--tl-line); }
.tl3d-part { padding: 8px 0; border-bottom: 1px solid var(--tl-line); }
.tl3d-part:last-child { border-bottom: 0; }
.tl3d-pn { font-weight: 700; font-family: Consolas, Menlo, monospace; }
.tl3d-pd { color: var(--tl-ink2); }
.tl3d .tl3d-ds { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 5px 10px; border: 1px solid var(--tl-blue); border-radius: 7px; color: var(--tl-blue); background: transparent; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; box-shadow: none; text-transform: none; }
.tl3d .tl3d-ds[disabled] { opacity: .6; cursor: progress; }
.tl3d.tl3d-dark .tl3d-ds { color: #8cc1f5; border-color: #8cc1f5; }
.tl3d .tl3d-ds[hidden] { display: none; }
.tl3d .tl3d-ds svg { width: 16px; height: 16px; }
.tl3d .tl3d-x { position: absolute; top: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--tl-ink2); cursor: pointer; box-shadow: none; }
.tl3d .tl3d-x:hover { background: var(--tl-chip); }
.tl3d-load { margin-top: 8px; display: flex; align-items: center; gap: 8px; color: var(--tl-ink2); font-size: 13px; }

/* ----- note editor + notes drawer */
.tl3d-editor { position: absolute; z-index: 9; width: 300px; padding: 10px; border: 2px solid var(--tl-warn); border-radius: 12px; background: var(--tl-bg); color: var(--tl-ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.tl3d-ed-t { font-weight: 700; margin-bottom: 6px; }
.tl3d .tl3d-editor textarea { display: block; width: 100%; min-height: 76px; margin: 0; padding: 8px; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-bg); color: var(--tl-ink); font: inherit; font-size: 16px; resize: vertical; box-shadow: none; }
.tl3d-ed-b { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tl3d-ed-err { margin-top: 6px; color: var(--tl-bad); font-size: 13px; }
.tl3d .tl3d-btn, .tl3d-gate .tl3d-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; margin: 0; padding: 0 16px; border: 1px solid #0b5cab; border-radius: 9px;
	background: #0b5cab; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: none; text-transform: none; letter-spacing: 0; line-height: 1.2;
}
.tl3d .tl3d-btn:hover, .tl3d-gate .tl3d-btn:hover { background: #094c8e; }
.tl3d .tl3d-btn[disabled], .tl3d-gate .tl3d-btn[disabled] { opacity: .65; cursor: default; }
.tl3d .tl3d-btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.tl3d .tl3d-btn.ghost { background: transparent; color: var(--tl-ink); border-color: var(--tl-line); }
.tl3d .tl3d-btn .tl3d-spin, .tl3d-gate .tl3d-btn .tl3d-spin { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.tl3d-notes { position: relative; flex: 0 0 300px; max-width: 42%; overflow: auto; border-inline-start: 1px solid var(--tl-line); background: var(--tl-bg); padding: 10px 12px 14px; }
.tl3d-notes-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; min-height: 28px; }
.tl3d-notes-h .tl3d-x { position: static; }
.tl3d-empty { color: var(--tl-ink2); font-size: 13px; margin: 6px 0; }
.tl3d-note { padding: 8px 0; border-bottom: 1px solid var(--tl-line); }
.tl3d .tl3d-note-go { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tl-ink2); font: inherit; font-size: 12px; text-align: start; cursor: pointer; box-shadow: none; text-transform: none; }
.tl3d-pin-n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--tl-warn); color: #fff; font-size: 12px; }
.tl3d-pin-n.sent { background: var(--tl-blue); }
.tl3d-pin-n.done { background: var(--tl-ok); }
.tl3d-note-meta { min-width: 0; overflow-wrap: anywhere; }
.tl3d-note-txt { margin: 4px 0 0; padding-inline-start: 30px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl3d .tl3d-link, .tl3d-gate .tl3d-link { margin: 4px 0 0; padding: 0; border: 0; background: transparent; color: #0b5cab; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; box-shadow: none; text-transform: none; }
.tl3d .tl3d-link { margin-inline-start: 30px; }
.tl3d.tl3d-dark .tl3d-link { color: #8cc1f5; }
.tl3d-gate .tl3d-link[disabled] { color: #7a8596; text-decoration: none; cursor: default; }
.tl3d-notes-f { position: sticky; bottom: -14px; margin: 10px -12px -14px; padding: 10px 12px 12px; background: var(--tl-bg); border-top: 1px solid var(--tl-line); display: flex; flex-direction: column; gap: 6px; }
.tl3d-notes-f .tl3d-btn { width: 100%; background: var(--tl-warn); border-color: var(--tl-warn); }
.tl3d-notes-f small { color: var(--tl-ink2); text-align: center; }
.tl3d-toast { position: absolute; z-index: 20; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 10px; background: #1e7b34; color: #fff; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: opacity .35s; }
.tl3d-toast.out { opacity: 0; }
.tl3d-toast.bad { background: #b3261e; }

/* ----- summary strip */
.tl3d-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 7px 12px; border-top: 1px solid var(--tl-line); background: var(--tl-soft); font-size: 13px; color: var(--tl-ink2); }
.tl3d-sum:empty { display: none; }
.tl3d-sum-t { color: var(--tl-ink); font-size: 14px; }
.tl3d-fact b { color: var(--tl-ink); font-weight: 600; margin-inline-end: 3px; }
.tl3d-fact small { color: var(--tl-ink2); }

/* ----- phones */
.tl3d-phone .tl3d-pick .tl3d-k { display: none; }
.tl3d-phone .tl3d-find { flex-basis: 100%; max-width: none; order: 5; }
.tl3d-phone .tl3d-see input[type="range"] { width: 70px; }
@media (max-width: 640px) {
	.tl3d .tl3d-sel select { max-width: 52vw; min-width: 100px; }
	.tl3d .tl3d-b { padding: 0 7px; }
	.tl3d .tl3d-chip { padding: 0 9px; }
	.tl3d-see > span { display: none; }
	.tl3d-notes { position: absolute; z-index: 12; inset-inline: 0; bottom: 0; max-width: none; max-height: 62%; border-inline-start: 0; border-top: 1px solid var(--tl-line); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); }
	.tl3d-card { inset-inline: 8px; top: auto; bottom: 8px; width: auto; max-height: 55%; }
	.tl3d-editor { font-size: 16px; }
	.tl3d .tl3d-find input, .tl3d .tl3d-editor textarea { font-size: 16px; }
}

/* ===== the share page (/3d/?k=) ===== */
body.tl3d-page { margin: 0; min-height: 100vh; min-height: 100dvh; background: #eef2f7; color: #14202e; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans Arabic", Tahoma, sans-serif; }
html[dir="rtl"] body.tl3d-page { font-family: Tahoma, "Noto Sans Arabic", "Segoe UI", Arial, sans-serif; }
.tl3d-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.tl3d-boot { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.tl3d-hd { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #dfe5ee; box-shadow: 0 1px 6px rgba(20, 32, 46, .05); }
.tl3d-hd-in { display: flex; align-items: center; gap: 12px; max-width: 1400px; margin: 0 auto; padding: 8px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.tl3d-logo { display: block; height: 34px; width: auto; }
.tl3d-logo-t { font-weight: 800; font-size: 19px; color: #0b5cab; }
.tl3d-hd-t { color: #4d5a6b; font-size: 14px; padding-inline-start: 12px; border-inline-start: 1px solid #dfe5ee; }
.tl3d-hd .tl3d-sp { flex: 1; }
.tl3d-lang { height: 32px; padding: 0 12px; border: 1px solid #c9d4e2; border-radius: 8px; background: #fff; color: #0b5cab; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tl3d-lang.ghost { color: #4d5a6b; }
.tl3d-gate { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 32px; }
.tl3d-gate-card { width: 100%; max-width: 440px; padding: 28px 26px; background: #fff; border: 1px solid #dfe5ee; border-radius: 16px; box-shadow: 0 14px 40px rgba(20, 40, 70, .08); text-align: center; }
.tl3d-gate-card h1 { margin: 10px 0 8px; font-size: 21px; line-height: 1.3; color: #14202e; }
.tl3d-gate-card p { margin: 0 0 10px; color: #4d5a6b; }
.tl3d-gate-ic { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #e7f0fb; color: #0b5cab; }
.tl3d-gate-ic svg { width: 28px; height: 28px; }
.tl3d-gate-ic.bad { background: #fdecea; color: #c62828; }
.tl3d-dest { font-size: 14px; }
.tl3d-dest b { color: #14202e; }
.tl3d-gate .tl3d-btn.wide { width: 100%; min-height: 46px; margin-top: 10px; font-size: 16px; }
.tl3d-codef { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 12px 0 4px; text-align: start; }
.tl3d-codef label { font-size: 13px; color: #4d5a6b; }
.tl3d-code { width: 100%; height: 56px; padding: 0 12px; border: 1px solid #c9d4e2; border-radius: 10px; background: #fff; color: #14202e; font: 700 28px/1 Consolas, Menlo, monospace; letter-spacing: 10px; text-align: center; }
.tl3d-code:focus, .tl3d-lang:focus-visible, .tl3d .tl3d-b:focus-visible, .tl3d .tl3d-chip:focus-visible, .tl3d-gate .tl3d-btn:focus-visible { outline: 3px solid rgba(11, 92, 171, .35); outline-offset: 1px; }
.tl3d-note-line { margin-top: 12px; padding: 8px 10px; border-radius: 8px; font-size: 14px; background: #f1f5fa; color: #4d5a6b; }
.tl3d-note-line.ok { background: #e8f5e9; color: #1b5e20; }
.tl3d-note-line.bad { background: #fdecea; color: #b71c1c; }
.tl3d-view { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 1400px; margin: 0 auto; padding: 10px 16px 16px; min-height: 0; }
.tl3d-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 2px 2px 10px; }
.tl3d-prj { font-size: 18px; font-weight: 700; color: #14202e; }
.tl3d-meta { font-size: 13px; color: #4d5a6b; }
.tl3d-msgbox { flex-basis: 100%; font-size: 14px; color: #14202e; }
.tl3d-msgbox summary { cursor: pointer; color: #0b5cab; font-weight: 600; }
.tl3d-msgbox > div { margin-top: 6px; padding: 10px 12px; background: #fff; border: 1px solid #dfe5ee; border-radius: 10px; white-space: normal; }
.tl3d-host { flex: 1; display: flex; min-height: 420px; height: calc(100dvh - 150px); }
.tl3d-host > .tl3d { flex: 1 1 auto; height: auto; align-self: stretch; }
@media (max-width: 640px) {
	.tl3d-hd-t { display: none; }
	.tl3d-gate { padding-top: 24px; }
	.tl3d-gate-card { padding: 22px 16px; }
	.tl3d-view { padding: 8px 8px 10px; }
	.tl3d-prj { font-size: 16px; }
	.tl3d-host { height: calc(100dvh - 140px); min-height: 380px; }
}

/* ===== public posts ([teco_3d]) ===== */
.tl3d-post { margin: 1.5em 0; font-family: inherit; }
.tl3d-post-draft { margin-bottom: 10px; padding: 8px 12px; border: 1px dashed #b26a00; border-radius: 8px; background: #fff8e1; color: #8a5200; font-size: 14px; }
.tl3d-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tl3d-post-card { margin: 0; overflow: hidden; border: 1px solid #dfe5ee; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(20, 40, 70, .06); }
#top .tl3d-post .tl3d-post-shot, .tl3d-post .tl3d-post-shot {
	position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0; border: 0; border-radius: 0; background: linear-gradient(160deg, #eef2f7, #dde5ef); cursor: pointer; overflow: hidden; box-shadow: none;
}
.tl3d-post-shot img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.tl3d-post-shot:hover img, .tl3d-post-shot:focus-visible img { transform: scale(1.03); }
.tl3d-post-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 46px/1 Arial, sans-serif; color: #b7c4d6; }
.tl3d-post-badge { position: absolute; inset-inline-end: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: #0b5cab; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px rgba(11, 92, 171, .35); }
.tl3d-post-card figcaption { padding: 10px 12px 12px; }
.tl3d-post-card figcaption strong { display: block; font-size: 16px; color: #14202e; margin-bottom: 4px; }
.tl3d-post-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: #4d5a6b; }
.tl3d-post-facts b { color: #14202e; font-weight: 600; }
.tl3d-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; background: rgba(10, 18, 30, .62); }
.tl3d-modal-card { display: flex; flex-direction: column; width: 100%; max-width: 1400px; height: 100%; max-height: 960px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.tl3d-modal-h { padding: 10px 16px; border-bottom: 1px solid #dfe5ee; font: 600 15px/1.4 -apple-system, "Segoe UI", Roboto, Arial, Tahoma, sans-serif; color: #14202e; }
.tl3d-modal-b { flex: 1; display: flex; min-height: 0; }
.tl3d-modal-b > .tl3d { flex: 1 1 auto; height: auto; align-self: stretch; border: 0; border-radius: 0; }
@media (max-width: 640px) {
	.tl3d-modal { padding: 0; }
	.tl3d-modal-card { border-radius: 0; max-height: none; }
}

/* ===== theme shield (Enfold: #top input / select / button / textarea beat class-only rules) ===== */
#top .tl3d select, #top .tl3d input, #top .tl3d textarea, #top .tl3d button { margin: 0; box-shadow: none; text-transform: none; letter-spacing: 0; min-height: 0; line-height: 1.2; }
#top .tl3d .tl3d-sel select { -webkit-appearance: none; appearance: none; height: 34px; padding: 0 30px 0 10px; padding-inline: 10px 30px; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-bg); color: var(--tl-ink); font-size: 14px; font-weight: 600; width: auto; }
#top .tl3d .tl3d-find input { margin: 0; box-shadow: none; height: 34px; padding: 0 10px; padding-inline-start: 32px; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-bg); color: var(--tl-ink); font-size: 14px; width: 100%; }
#top .tl3d .tl3d-editor textarea { padding: 8px; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-bg); color: var(--tl-ink); font-size: 16px; width: 100%; }
#top .tl3d .tl3d-see input[type="range"] { padding: 0; border: 0; background: transparent; width: 92px; height: auto; }
#top .tl3d .tl3d-b, #top .tl3d .tl3d-chip { height: 30px; padding: 0 9px; border-radius: 7px; font-size: 13px; }
#top .tl3d .tl3d-chip { border-radius: 999px; padding: 0 11px; border: 1px solid var(--tl-line); background: var(--tl-bg); color: var(--tl-ink); }
#top .tl3d .tl3d-chip.on { background: var(--tl-on); border-color: var(--tl-on); color: var(--tl-onink); }
#top .tl3d .tl3d-notebtn { border-color: var(--tl-warn); color: var(--tl-warn); }
#top .tl3d .tl3d-notebtn.on { background: var(--tl-warn); color: #fff; }
#top .tl3d .tl3d-b { border: 0; background: transparent; color: var(--tl-ink); }
#top .tl3d .tl3d-bar2 .tl3d-b { border: 1px solid var(--tl-line); background: var(--tl-bg); }
#top .tl3d .tl3d-btn { min-height: 38px; padding: 0 16px; border: 1px solid #0b5cab; border-radius: 9px; background: #0b5cab; color: #fff; font-size: 14px; font-weight: 700; }
#top .tl3d .tl3d-btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
#top .tl3d .tl3d-btn.ghost { background: transparent; color: var(--tl-ink); border-color: var(--tl-line); }
#top .tl3d .tl3d-notes-f .tl3d-btn { background: var(--tl-warn); border-color: var(--tl-warn); }
#top .tl3d .tl3d-x { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--tl-ink2); }
#top .tl3d .tl3d-tag { padding: 1px 6px; border: 1px solid rgba(11, 92, 171, .45); border-radius: 5px; background: rgba(255, 255, 255, .92); color: #0b3d74; font-size: 11px; height: auto; }
#top .tl3d .tl3d-pin { width: 28px; height: 28px; padding: 0; border: 2px solid #fff; background: var(--tl-warn); color: #fff; }
#top .tl3d .tl3d-pin.sent { background: var(--tl-blue); }
#top .tl3d .tl3d-pin.done { background: var(--tl-ok); }
#top .tl3d .tl3d-sg, #top .tl3d .tl3d-note-go, #top .tl3d .tl3d-link { padding: 0; border: 0; background: transparent; }
#top .tl3d .tl3d-sg { padding: 7px 8px; color: var(--tl-ink); }
#top .tl3d .tl3d-link { color: #0b5cab; font-size: 13px; }

/* =====================================================================================================================
 * v0.463.0 E3 — the customer engagement round: the staff toolbar, lengths, revisions + compare, snapshot markup, note
 * threads, the share page's Chat / Wiring diagram / Approve buttons. Same tokens; night = .tl3d-dark; RTL by logical props.
 * ===================================================================================================================== */
.tl3d { --tl-teal: #0f7b74; --tl-amber: #b26a00; --tl-bubble: #eef3f9; --tl-bubble-me: #fff1e6; }
.tl3d.tl3d-dark { --tl-bubble: #22303d; --tl-bubble-me: #3a2a1c; --tl-teal: #3fb8ae; --tl-amber: #f0b45a; }
.tl3d svg.tl3d-mk { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; display: block; pointer-events: none; overflow: visible; direction: ltr; }   /* the marks are drawn in screen x / y — an RTL page must not flip text-anchor (the JPEG twin draws with direction ltr too) */
.tl3d svg.tl3d-mk.on { pointer-events: auto; cursor: crosshair; touch-action: none; }
.tl3d svg.tl3d-mk[data-mode="hl"].on { cursor: pointer; }
.tl3d svg.tl3d-mk[data-mode="note"].on { cursor: text; }

/* ----- bar 1: revision picker, compare, the notes actions */
.tl3d-acts { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl3d .tl3d-snapbtn { border-color: var(--tl-blue); color: var(--tl-blue); font-weight: 600; }
.tl3d.tl3d-dark .tl3d-snapbtn { border-color: #8cc1f5; color: #8cc1f5; }
.tl3d .tl3d-snapbtn.on { background: var(--tl-blue); border-color: var(--tl-blue); color: #fff; }
.tl3d .tl3d-notesb { position: relative; }
.tl3d-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e5243b; box-shadow: 0 0 0 2px var(--tl-bg); flex: 0 0 auto; }
.tl3d-notesb .tl3d-dot { position: absolute; top: -2px; inset-inline-end: -2px; }
.tl3d .tl3d-revp .tl3d-sel select { min-width: 150px; font-weight: 600; }
.tl3d .tl3d-cmpb.on { background: var(--tl-on); border-color: var(--tl-on); color: var(--tl-onink); }

/* ----- bar 2: the staff visibility set (Doors · See-through · groups · Device tags · Edges) */
.tl3d-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.tl3d-see small { min-width: 34px; color: var(--tl-ink2); font-size: 12px; text-align: end; }
.tl3d .tl3d-grp { padding: 0 10px; }
.tl3d .tl3d-chip.tl3d-vis:not(.on) { color: var(--tl-ink2); background: var(--tl-bg); text-decoration: line-through; text-decoration-color: rgba(127, 140, 160, .55); }
.tl3d .tl3d-chip.tl3d-vis:not(.on) svg { opacity: .55; }
.tl3d-showw { position: relative; display: none; }
.tl3d .tl3d-showb { font-weight: 600; }
.tl3d .tl3d-chip > span { white-space: nowrap; }
.tl3d-showm { position: absolute; top: 36px; inset-inline-start: 0; z-index: 35; display: flex; flex-direction: column; min-width: 210px; max-height: 52vh; overflow-y: auto; padding: 4px; background: var(--tl-bg); border: 1px solid var(--tl-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 30, 50, .22); }
.tl3d .tl3d-mi { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--tl-ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; box-shadow: none; text-transform: none; }
.tl3d .tl3d-mi:hover, .tl3d .tl3d-mi:focus-visible { background: var(--tl-chip); outline: none; }
.tl3d-mi-c { display: inline-flex; width: 18px; height: 18px; border: 1px solid var(--tl-line); border-radius: 4px; color: var(--tl-on); align-items: center; justify-content: center; }
.tl3d-mi[aria-checked="true"] .tl3d-mi-c { border-color: var(--tl-on); }
.tl3d-mi-c svg { width: 14px; height: 14px; }

/* ----- compare */
.tl3d-cmpbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 7px 12px; padding-inline: 12px 44px; border-bottom: 1px solid var(--tl-line); background: var(--tl-soft); font-size: 13px; color: var(--tl-ink); }
.tl3d-cmp-t { font-size: 14px; }
.tl3d-cmp-n, .tl3d-cmp-s { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tl3d-cmp-n small { color: var(--tl-ink2); }
.tl3d .tl3d-nchip { display: inline-flex; align-items: center; height: 24px; margin: 0; padding: 0 9px; border: 1px solid var(--tl-ok); border-radius: 999px; background: rgba(46, 125, 50, .1); color: var(--tl-ok); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: none; }
.tl3d.tl3d-dark .tl3d-nchip { color: #8bd38f; border-color: #8bd38f; }
.tl3d .tl3d-cmpx { top: 50%; margin-top: -14px; }
.tl3d-seg { display: inline-flex; padding: 2px; border: 1px solid var(--tl-line); border-radius: 10px; background: var(--tl-bg); }
.tl3d .tl3d-segb { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--tl-ink); font: inherit; font-size: 13px; cursor: pointer; box-shadow: none; text-transform: none; }
.tl3d .tl3d-segb b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tl-chip); font-size: 12px; }
.tl3d .tl3d-segb.on { background: var(--tl-on); color: var(--tl-onink); }
.tl3d .tl3d-segb.on b { background: rgba(255, 255, 255, .25); }
.tl3d-stage-a { order: -1; border-inline-end: 2px solid var(--tl-line); }
.tl3d-cmp2 .tl3d-stage { flex: 1 1 0; }
.tl3d-cap { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 5; padding: 3px 10px; border-radius: 999px; background: rgba(20, 32, 46, .72); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.tl3d-stage-main .tl3d-cap { background: var(--tl-on); }
.tl3d-revban { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 20px); padding: 6px 8px; padding-inline: 14px 8px; border-radius: 12px; background: #fff4e0; color: #6b4300; border: 1px solid #f0c674; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.tl3d.tl3d-dark .tl3d-revban { background: #3a2c12; color: #f6d79a; border-color: #7a5a1c; }
.tl3d-newrev { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 20px); padding: 8px; padding-inline: 14px 8px; border-radius: 12px; background: var(--tl-on); color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.tl3d .tl3d-newrev .tl3d-btn { background: #fff; color: var(--tl-on); border-color: #fff; }
.tl3d .tl3d-newrev .tl3d-x { position: static; color: #fff; }

/* ----- snapshot markup (twin of the staff markup bar) */
.tl3d-mkbar { position: absolute; z-index: 9; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; max-width: calc(100% - 16px); padding: 6px 8px; border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-bg); box-shadow: 0 10px 30px rgba(15, 30, 50, .25); }
.tl3d-mk-tools, .tl3d-mk-go { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tl3d-mk-go { gap: 6px; }
.tl3d-mk-sep { width: 1px; height: 24px; margin: 0 4px; background: var(--tl-line); }
.tl3d-mk-hint { color: var(--tl-ink2); font-size: 12px; margin-inline-end: 4px; }
.tl3d .tl3d-mkb { display: inline-flex; align-items: center; gap: 5px; height: 32px; margin: 0; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--tl-ink); font: inherit; font-size: 13px; cursor: pointer; box-shadow: none; text-transform: none; }
.tl3d .tl3d-mkb:hover { background: var(--tl-chip); }
.tl3d .tl3d-mkb.on { background: rgba(229, 36, 59, .1); border-color: #e5243b; color: #c01d31; }
.tl3d.tl3d-dark .tl3d-mkb.on { color: #ff8a97; }
.tl3d .tl3d-mkb svg, .tl3d .tl3d-btn svg { width: 16px; height: 16px; }
.tl3d-marking .tl3d-pins, .tl3d-marking .tl3d-labels { opacity: .55; }
.tl3d-mkstale { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 20px); padding: 6px 8px; padding-inline: 14px 8px; border-radius: 12px; background: var(--tl-bg); color: var(--tl-ink); border: 1px solid var(--tl-line); font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
.tl3d-mknote { position: absolute; z-index: 11; width: 240px; max-width: calc(100% - 16px); padding: 8px; border: 2px solid #e5243b; border-radius: 10px; background: var(--tl-bg); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.tl3d .tl3d-mknote textarea, .tl3d .tl3d-snaped textarea, .tl3d .tl3d-rbox textarea {
	display: block; width: 100%; min-height: 60px; margin: 0; padding: 8px; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-bg); color: var(--tl-ink); font: inherit; font-size: 14px; resize: vertical; box-shadow: none; line-height: 1.4;
}
.tl3d-snaped { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(10, 18, 30, .45); }
.tl3d-snaped-in { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 460px; max-height: 100%; overflow: auto; padding: 12px; border: 2px solid var(--tl-warn); border-radius: 12px; background: var(--tl-bg); color: var(--tl-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.tl3d-snaped-img { display: block; width: 100%; max-height: 38vh; object-fit: contain; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-soft); }

/* ----- the part card: lengths */
.tl3d-len { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: var(--tl-soft); font-size: 13px; }
.tl3d-len > .tl3d-k { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.tl3d[dir="rtl"] .tl3d-len > .tl3d-k { text-transform: none; letter-spacing: 0; }
.tl3d-len small { color: var(--tl-ink2); }

/* ----- notes: chips, threads, reply box */
.tl3d .tl3d-pin.staff { background: var(--tl-teal); }
.tl3d .tl3d-pin.unread::before { content: ""; position: absolute; top: -4px; inset-inline-end: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5243b; border: 2px solid #fff; }
.tl3d-pin-n.staff { background: var(--tl-teal); }
.tl3d-note.unread { background: linear-gradient(to right, rgba(229, 36, 59, .06), transparent 60%); }
.tl3d[dir="rtl"] .tl3d-note.unread { background: linear-gradient(to left, rgba(229, 36, 59, .06), transparent 60%); }
.tl3d-note.open { padding-bottom: 10px; }
.tl3d-note-go .tl3d-dot { margin-inline-start: auto; }
.tl3d-chipsn { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 0; padding-inline-start: 30px; }
.tl3d-st, .tl3d-tagc { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.tl3d-st.open { background: #e7f0fb; color: #0b5cab; }
.tl3d-st.reopened { background: #fff1e0; color: #a14a00; }
.tl3d-st.resolved { background: #e8f5e9; color: #1b5e20; }
.tl3d.tl3d-dark .tl3d-st.open { background: #1d3550; color: #9ccaf7; }
.tl3d.tl3d-dark .tl3d-st.reopened { background: #45301a; color: #f5c58c; }
.tl3d.tl3d-dark .tl3d-st.resolved { background: #1d3a22; color: #9fdaa3; }
.tl3d-tagc { background: var(--tl-chip); color: var(--tl-ink2); font-weight: 600; }
.tl3d-tagc.cr { background: rgba(178, 106, 0, .12); color: var(--tl-amber); }
.tl3d-tagc.ok { background: rgba(46, 125, 50, .12); color: var(--tl-ok); }
.tl3d.tl3d-dark .tl3d-tagc.ok { color: #9fdaa3; }
.tl3d-note-a { padding-inline-start: 30px; }
.tl3d-note-a .tl3d-link { margin-inline-start: 0; font-weight: 600; }
.tl3d .tl3d-thumb { display: block; margin: 6px 0 0; padding: 0; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-soft); overflow: hidden; cursor: zoom-in; box-shadow: none; }
.tl3d .tl3d-thumb img { display: block; max-width: 100%; max-height: 150px; object-fit: contain; }
.tl3d .tl3d-note-img { margin-inline-start: 30px; max-width: calc(100% - 30px); }
.tl3d-thr { margin: 8px 0 0; margin-inline-start: 30px; padding: 8px; border: 1px solid var(--tl-line); border-radius: 10px; background: var(--tl-soft); display: flex; flex-direction: column; gap: 6px; }
.tl3d-thr .tl3d-empty { margin: 0; }
.tl3d-mb { max-width: 92%; padding: 6px 9px; border-radius: 10px; background: var(--tl-bubble); font-size: 13px; align-self: flex-start; }
.tl3d-mb.me { background: var(--tl-bubble-me); align-self: flex-end; }
.tl3d-mb.teco { border-inline-start: 3px solid var(--tl-teal); }
.tl3d-mb-h { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--tl-ink2); font-size: 11px; }
.tl3d-mb-h b { color: var(--tl-ink); }
.tl3d-mb-t { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tl-ink); }
.tl3d-sys { align-self: center; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--tl-bg); border: 1px solid var(--tl-line); color: var(--tl-ink2); font-size: 11px; text-align: center; }
.tl3d-rbox { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--tl-line); }
.tl3d-rb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl3d-rb .tl3d-sp { flex: 1 1 auto; }
.tl3d-rthumb { display: flex; align-items: flex-end; gap: 8px; }
.tl3d-rthumb .tl3d-thumb img { max-height: 90px; }
.tl3d-rthumb .tl3d-link { margin: 0; }

/* ----- the picture viewer */
.tl3d-lb { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 40px 16px 16px; background: rgba(8, 14, 22, .86); cursor: zoom-out; }
.tl3d-lb img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #fff; }
.tl3d .tl3d-lb .tl3d-x { top: 8px; inset-inline-end: 8px; color: #fff; background: rgba(255, 255, 255, .14); }

/* ----- the share page: Chat · Wiring diagram · Approve this layout */
.tl3d-eng { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-inline-start: auto; }
.tl3d-eng:empty { display: none; }
.tl3d-eb { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; margin: 0; padding: 0 12px; border: 1px solid #c9d4e2; border-radius: 9px; background: #fff; color: #0b5cab; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: none; text-decoration: none; }
.tl3d-eb svg { width: 17px; height: 17px; display: block; }
.tl3d-eb:hover { background: #f1f6fc; }
.tl3d-eb[disabled] { opacity: .6; cursor: progress; }
.tl3d-eb.go { background: #1e7b34; border-color: #1e7b34; color: #fff; }
.tl3d-eb.go:hover { background: #17652a; }
.tl3d-eb.ok { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; cursor: default; }
.tl3d-eb .tl3d-dot { position: absolute; top: -3px; inset-inline-end: -3px; width: 10px; height: 10px; border-radius: 50%; background: #e5243b; box-shadow: 0 0 0 2px #fff; }
.tl3d-eb:focus-visible { outline: 3px solid rgba(11, 92, 171, .35); outline-offset: 1px; }

/* ----- phones + narrow viewers */
@media (max-width: 640px) {
	.tl3d-bar1 { gap: 6px; }
	.tl3d-acts { order: 6; flex: 1 1 100%; flex-wrap: nowrap; }
	.tl3d-acts .tl3d-chip { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 6px; }
	.tl3d-acts .tl3d-chip > span:not(.tl3d-cnt) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.tl3d-bar2 { flex-wrap: nowrap; }
	.tl3d-chips { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 1px; }
	.tl3d-chips::-webkit-scrollbar { display: none; }
	.tl3d-chips > * { flex: 0 0 auto; }
	.tl3d-see > span { display: none; }
	.tl3d-mkbar { left: 6px; right: 6px; transform: none; max-width: none; bottom: 6px; }
	.tl3d .tl3d-mkb span { display: none; }
	.tl3d-mk-hint { display: none; }
	.tl3d-revban, .tl3d-mkstale { font-size: 12px; }
	.tl3d-cmpbar { padding-inline: 8px 40px; }
	.tl3d-eng { margin-inline-start: 0; flex: 1 1 100%; min-width: 0; flex-wrap: wrap; }
	.tl3d-eb { flex: 1 1 40%; min-width: 0; justify-content: center; height: 34px; padding: 0 6px; font-size: 13px; gap: 5px; }
	.tl3d-eb.go, .tl3d-eb.ok { flex-basis: 100%; height: 38px; font-size: 14px; }
	.tl3d-eb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.tl3d-eb svg { width: 15px; height: 15px; flex: 0 0 auto; }
	.tl3d-msgbox { font-size: 13px; }
	.tl3d-info { gap: 2px 10px; padding-bottom: 8px; }
	.tl3d .tl3d-rbox textarea, .tl3d .tl3d-snaped textarea, .tl3d .tl3d-mknote textarea { font-size: 16px; }
	.tl3d-thr { margin-inline-start: 0; }
	.tl3d-chipsn, .tl3d-note-a { padding-inline-start: 0; }
}
@media (max-width: 379px) {
	.tl3d-chips .tl3d-vis { display: none; }
	.tl3d-showw { display: inline-flex; }
	.tl3d-acts .tl3d-chip > span:not(.tl3d-cnt) { display: none; }
}

/* ----- the share page at night (prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
	body.tl3d-page { background: #10151b; color: #e6ebf2; }
	.tl3d-hd { background: #161c23; border-bottom-color: #2a333e; }
	.tl3d-hd-t { color: #a9b4c3; border-inline-start-color: #2a333e; }
	.tl3d-lang { background: #1f2731; border-color: #34404d; color: #8cc1f5; }
	.tl3d-lang.ghost { color: #a9b4c3; }
	.tl3d-prj { color: #e6ebf2; }
	.tl3d-meta { color: #a9b4c3; }
	.tl3d-msgbox { color: #e6ebf2; }
	.tl3d-msgbox summary { color: #8cc1f5; }
	.tl3d-msgbox > div { background: #161c23; border-color: #2a333e; }
	.tl3d-gate-card { background: #161c23; border-color: #2a333e; }
	.tl3d-gate-card h1, .tl3d-dest b { color: #e6ebf2; }
	.tl3d-gate-card p, .tl3d-codef label { color: #a9b4c3; }
	.tl3d-code { background: #10151b; border-color: #34404d; color: #e6ebf2; }
	.tl3d-note-line { background: #1f2731; color: #a9b4c3; }
	.tl3d-eb { background: #1f2731; border-color: #34404d; color: #8cc1f5; }
	.tl3d-eb:hover { background: #26303c; }
	.tl3d-eb.go { background: #2e7d32; border-color: #2e7d32; color: #fff; }
	.tl3d-eb.ok { background: #1d3a22; border-color: #2e5a33; color: #9fdaa3; }
	.tl3d-eb .tl3d-dot { box-shadow: 0 0 0 2px #1f2731; }
}

/* ----- theme shield for the new controls (Enfold #top input / textarea / button beat class-only rules — the portal tab) */
#top .tl3d .tl3d-rbox textarea, #top .tl3d .tl3d-snaped textarea, #top .tl3d .tl3d-mknote textarea { display: block; width: 100%; min-height: 60px; margin: 0; padding: 8px; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-bg); color: var(--tl-ink); font-size: 14px; line-height: 1.4; }
#top .tl3d .tl3d-revp .tl3d-sel select { min-width: 150px; }
#top .tl3d .tl3d-mkb { height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--tl-ink); font-size: 13px; }
#top .tl3d .tl3d-mkb.on { background: rgba(229, 36, 59, .1); border-color: #e5243b; color: #c01d31; }
#top .tl3d .tl3d-segb { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--tl-ink); font-size: 13px; }
#top .tl3d .tl3d-segb.on { background: var(--tl-on); color: var(--tl-onink); }
#top .tl3d .tl3d-mi { padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--tl-ink); font-size: 14px; }
#top .tl3d .tl3d-nchip { height: 24px; padding: 0 9px; border: 1px solid var(--tl-ok); border-radius: 999px; background: rgba(46, 125, 50, .1); color: var(--tl-ok); font-size: 12px; }
#top .tl3d .tl3d-ds { padding: 5px 10px; border: 1px solid var(--tl-blue); border-radius: 7px; background: transparent; color: var(--tl-blue); font-size: 13px; }
#top .tl3d .tl3d-thumb { padding: 0; border: 1px solid var(--tl-line); border-radius: 8px; background: var(--tl-soft); }
#top .tl3d .tl3d-snapbtn { border-color: var(--tl-blue); color: var(--tl-blue); }
#top .tl3d .tl3d-snapbtn.on, #top .tl3d .tl3d-cmpb.on { background: var(--tl-on); border-color: var(--tl-on); color: #fff; }
#top .tl3d .tl3d-chip.tl3d-vis:not(.on) { color: var(--tl-ink2); background: var(--tl-bg); }
#top .tl3d .tl3d-lb .tl3d-x { color: #fff; background: rgba(255, 255, 255, .14); }
#top .tl3d .tl3d-newrev .tl3d-btn { background: #fff; color: var(--tl-on); border-color: #fff; }
