/* ==========================================================================
 * Feature illustrations and sections: Packages, My Process Packs, Find & Browse, Document activity, Teams activity,
 * Governance Findings, shared-mailbox discussion and the Teams AI Work Assistant.
 * All illustrations are drawn in HTML/CSS from the products' own labels with fictional data. Loaded only on the pages that use them.
 * ========================================================================== */

/* ---- Illustration frame ---- */
.tb-fx { margin: 0 auto; width: 100%; max-width: 520px; }
.tb-fx--wide { max-width: 620px; }
.tb-fx--narrow { max-width: 400px; }
.tb-fx__ui { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(91, 141, 255, 0.35); box-shadow: 0 24px 60px rgba(4, 8, 30, 0.28), 0 0 0 5px rgba(91, 141, 255, 0.08); color: var(--tb-ink-2); text-align: left; font-size: 0.84rem; line-height: 1.4; }
.tb-fx__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; background: var(--tb-navy-700); color: #fff; font-size: 0.82rem; }
.tb-fx__bar .tb-shot__mark { width: 22px; height: 22px; flex: none; }
.tb-fx__bar .tb-shot__brand { font-weight: var(--tb-fw-bold); }
.tb-fx__bar .tb-shot__the { color: var(--tb-blue-400); }
.tb-fx__bar .tb-shot__ctx { margin-left: auto; color: var(--tb-on-dark-muted); }
.tb-fx__bar--teams { background: #4b53bc; }
.tb-fx__bar--cc { background: #11193f; }
.tb-fx__bar b { font-weight: var(--tb-fw-bold); }
.tb-fx__bar span:last-child { margin-left: auto; opacity: 0.75; font-size: 0.74rem; }
.tb-fx__body { display: grid; gap: 0.7rem; padding: 0.95rem 1rem 1.05rem; }
.tb-fx__title { font-size: 1.02rem; font-weight: var(--tb-fw-bold); color: var(--tb-ink); display: flex; align-items: center; gap: 0.5rem; }
.tb-fx__title small { margin-left: auto; font-size: 0.72rem; font-weight: var(--tb-fw-semibold); color: var(--tb-muted); }
.tb-fx__cap { margin: 0.7rem 0 0; font-size: 0.76rem; color: var(--tb-muted); text-align: center; }
.on-dark .tb-fx__cap, .tb-fx__cap--dark { color: var(--tb-on-dark-muted); }
.tb-fx__hint { font-size: 0.76rem; color: var(--tb-muted); }
.tb-fx__note { padding: 0.55rem 0.7rem; border-radius: 10px; background: #eff3ff; border: 1px solid #dce4ff; font-size: 0.78rem; color: #34406b; }
.tb-fx__note--ok { background: #effaf4; border-color: #cfeede; color: #0b6b49; }
.tb-fx__note--warn { background: #fff7e6; border-color: #f5dfae; color: #7a5200; }
.tb-fx__note .tb-icon { vertical-align: -3px; margin-right: 0.3rem; }

/* tabs */
.tb-fx__tabs { display: flex; gap: 0.2rem; border-bottom: 1px solid var(--tb-line); margin: -0.15rem 0 0; }
.tb-fx__tab { position: relative; padding: 0.45rem 0.7rem; font-weight: var(--tb-fw-semibold); color: var(--tb-muted); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.tb-fx__tab.is-on { color: var(--tb-blue-500); }
.tb-fx__tab.is-on::after { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--tb-blue-500); }
.tb-fx__tab b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 0.68rem; }

/* rows, files, chips */
.tb-fx__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.tb-fx__row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.65rem; border: 1px solid #dde4f5; border-radius: 10px; background: #fff; }
.tb-fx__row.is-sel { border-color: var(--tb-blue-500); background: #f2f6ff; }
.tb-fx__row.is-dim { opacity: 0.6; }
.tb-fx__row.is-flag { border-color: #f1c98a; background: #fffaf0; }
.tb-fx__check { flex: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #9aa7cf; background: #fff; display: inline-grid; place-items: center; }
.tb-fx__check.is-on { background: var(--tb-blue-500); border-color: var(--tb-blue-500); }
.tb-fx__check.is-on::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tb-fx__file { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e6eeff; color: #2a55c7; font-size: 0.62rem; font-weight: var(--tb-fw-bold); letter-spacing: 0.02em; }
.tb-fx__file--xlsx { background: #e3f4ea; color: #167a47; }
.tb-fx__file--pdf { background: #fde9ea; color: #c0262d; }
.tb-fx__file--docx { background: #e6eeff; color: #2a55c7; }
.tb-fx__file--msg { background: #efe9ff; color: #5b3fc4; }
.tb-fx__meta { min-width: 0; flex: 1; }
.tb-fx__meta b { display: block; color: var(--tb-ink); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-fx__meta small { display: block; color: var(--tb-muted); font-size: 0.73rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-fx__chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.7rem; font-weight: var(--tb-fw-bold); background: #eef2ff; color: #3d51c9; white-space: nowrap; }
.tb-fx__chip--ok { background: #e6f6ee; color: #0b6b49; }
.tb-fx__chip--warn { background: #fff1d6; color: #8a5a00; }
.tb-fx__chip--red { background: #fde9ea; color: #b4232a; }
.tb-fx__chip--violet { background: #efe9ff; color: #5b3fc4; }
.tb-fx__chip--grey { background: #eef0f6; color: #566083; }
.tb-fx__btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.38rem 0.75rem; border-radius: 8px; border: 1px solid #cfd8ee; background: #fff; color: var(--tb-ink); font-weight: var(--tb-fw-semibold); font-size: 0.78rem; white-space: nowrap; }
.tb-fx__btn.is-primary { background: var(--tb-blue-500); border-color: var(--tb-blue-500); color: #fff; }
.tb-fx__btn.is-ghost { border-color: transparent; color: var(--tb-blue-500); background: transparent; padding-inline: 0.2rem; }
.tb-fx__btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tb-fx__sec { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tb-muted); margin: 0.2rem 0 0; }
.tb-fx__people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.tb-fx__people li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; }
.tb-fx__avatar { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #5b8dff, #8b5cf6); color: #fff; font-size: 0.66rem; font-weight: var(--tb-fw-bold); }
.tb-fx__avatar--2 { background: linear-gradient(135deg, #17b3a3, #3a6bff); }
.tb-fx__avatar--3 { background: linear-gradient(135deg, #f59e0b, #e5484d); }
.tb-fx__people .tb-fx__chip { margin-left: auto; }
.tb-fx__kv { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.8rem; margin: 0; font-size: 0.78rem; }
.tb-fx__kv dt { color: var(--tb-muted); }
.tb-fx__kv dd { margin: 0; color: var(--tb-ink); font-weight: var(--tb-fw-semibold); }
.tb-fx__acc { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.2rem; border-top: 1px solid var(--tb-line); font-weight: var(--tb-fw-semibold); color: var(--tb-ink); font-size: 0.82rem; }
.tb-fx__acc i { width: 7px; height: 7px; border-right: 2px solid #6b749c; border-bottom: 2px solid #6b749c; transform: rotate(-45deg); }
.tb-fx__foot { display: flex; justify-content: space-between; gap: 0.5rem; padding-top: 0.2rem; }

/* ---- Find & Browse and file menu ---- */
.tb-fx__search { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid #cfd8ee; border-radius: 10px; color: var(--tb-muted); }
.tb-fx__select { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.75rem; border: 1.5px solid var(--tb-blue-500); border-radius: 10px; color: var(--tb-ink); font-weight: var(--tb-fw-semibold); }
.tb-fx__selbar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.5rem 0.65rem; border-radius: 10px; background: #14204d; color: #fff; font-size: 0.78rem; }
.tb-fx__selbar b { margin-right: auto; }
.tb-fx__selbar .tb-fx__btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.tb-fx__menu { display: grid; gap: 0.05rem; padding: 0.4rem; border: 1px solid #dde4f5; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 28, 72, 0.14); font-size: 0.8rem; }
.tb-fx__menu h4 { margin: 0.35rem 0.5rem 0.15rem; font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tb-muted); }
.tb-fx__mi { display: flex; align-items: center; gap: 0.5rem; padding: 0.38rem 0.55rem; border-radius: 7px; color: var(--tb-ink); }
.tb-fx__mi.is-hot { background: #eaf0ff; color: #1f45c4; font-weight: var(--tb-fw-semibold); }
.tb-fx__mi .tb-icon { color: #5a6a99; }
.tb-fx__mi em { margin-left: auto; font-style: normal; color: var(--tb-muted); }
.tb-fx__split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.tb-fx__fly { align-self: center; }

/* ---- Teams, Control Center ---- */
.tb-fx__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.tb-fx__card { padding: 0.5rem 0.6rem; border: 1px solid #dde4f5; border-radius: 10px; }
.tb-fx__card b { display: block; font-size: 1.15rem; color: var(--tb-ink); line-height: 1.1; }
.tb-fx__card small { color: var(--tb-muted); font-size: 0.68rem; }
.tb-fx__table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.tb-fx__table th { text-align: left; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tb-muted); padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--tb-line); }
.tb-fx__table td { padding: 0.45rem 0.4rem; border-bottom: 1px solid #eef1f9; color: var(--tb-ink-2); }
.tb-fx__table tr.is-sel td { background: #f2f6ff; }
.tb-fx__ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.tb-fx__ev li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.2rem 0.6rem; align-items: baseline; padding: 0.5rem 0.65rem; border: 1px solid #dde4f5; border-radius: 10px; }
.tb-fx__ev li.is-new { border-color: #b9c9ff; background: #f6f8ff; }
.tb-fx__ev li.is-flag { border-color: #f1c98a; background: #fffaf0; }
.tb-fx__ev b { color: var(--tb-ink); font-size: 0.82rem; }
.tb-fx__ev small { grid-column: 2 / -1; color: var(--tb-muted); font-size: 0.74rem; }
.tb-fx__msg { padding: 0.55rem 0.7rem; border-radius: 10px; background: #f4f6fc; border: 1px solid #e3e9f6; }
.tb-fx__msg--note { background: #fff9e8; border-color: #f2e2ae; }
.tb-fx__msg b { color: var(--tb-ink); }
.tb-fx__msg small { display: block; color: var(--tb-muted); font-size: 0.72rem; margin-bottom: 0.15rem; }
.tb-fx__mention { color: #3d51c9; font-weight: var(--tb-fw-bold); background: #e9eeff; border-radius: 4px; padding: 0 0.2rem; }
.tb-fx__ai { border: 1px solid #d8cffc; background: linear-gradient(180deg, #faf8ff, #fff); border-radius: 12px; padding: 0.7rem 0.8rem; display: grid; gap: 0.45rem; }
.tb-fx__ai ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.2rem; font-size: 0.8rem; }

/* ---- Section layout helpers (Packages page and feature sections) ---- */
.tb-pk-hero__stage { display: grid; gap: 1rem; justify-items: center; }
.tb-pk-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.tb-pk-points { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.tb-pk-points li { display: flex; gap: 0.7rem; align-items: flex-start; }
.tb-pk-points .tb-icon { flex: none; margin-top: 2px; color: var(--tb-blue-500); }
.tb-pk-points strong { display: block; color: var(--tb-ink); }
.tb-pk-points small { display: block; color: var(--tb-muted); font-size: 0.86rem; line-height: 1.5; }
.tb-pk-sec--dark .tb-pk-points strong { color: #fff; }
.tb-pk-sec--dark .tb-pk-points small { color: var(--tb-on-dark-muted); }
.tb-pk-sec--dark .tb-pk-points .tb-icon { color: var(--tb-blue-400); }
.tb-pk-steps { list-style: none; counter-reset: pk; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.tb-pk-steps li { counter-increment: pk; display: flex; gap: 0.7rem; align-items: flex-start; color: var(--tb-ink-2); }
.tb-pk-steps li::before { content: counter(pk); flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tb-blue-500); color: #fff; font-size: 0.78rem; font-weight: var(--tb-fw-bold); }
.tb-pk-avail { margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid #dce4ff; background: #f2f6ff; color: #34406b; font-size: 0.86rem; }
.tb-pk-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tb-pk-three > li { list-style: none; padding: 1.1rem 1.2rem; border: 1px solid var(--tb-line); border-radius: 14px; background: #fff; }
.tb-pk-three h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--tb-ink); }
.tb-pk-three p { margin: 0; font-size: 0.88rem; color: var(--tb-muted); }
.tb-pk-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.tb-pk-compare > div { padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--tb-line); background: #fff; }
.tb-pk-compare h3 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--tb-ink); }
.tb-pk-compare p { margin: 0; font-size: 0.88rem; color: var(--tb-muted); }
.tb-pk-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: var(--tb-fw-semibold); }

@media (max-width: 960px) {
	.tb-pk-pair, .tb-pk-compare { grid-template-columns: minmax(0, 1fr); }
	.tb-pk-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.tb-fx__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-fx__split { grid-template-columns: minmax(0, 1fr); }
	.tb-fx__table th:nth-child(n+4), .tb-fx__table td:nth-child(n+4) { display: none; }
}

/* ---- Homepage Packages section ---- */
.tb-pkhome { background: radial-gradient(720px 480px at 50% -6%, rgba(58, 107, 255, 0.05) 0%, rgba(58, 107, 255, 0) 60%), linear-gradient(180deg, var(--tb-light-1) 0%, var(--tb-white) 100%); color: var(--tb-ink-2); padding-block: clamp(3rem, 6vw, 5rem); }
.tb-pkhome .tb-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; }
.tb-pkhome__inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tb-pkhome__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; color: var(--tb-ink); text-wrap: balance; margin: 0.6rem 0 0; }
.tb-pkhome__lede { margin: 1rem 0 1.2rem; color: var(--tb-muted); max-width: 36rem; }
.tb-pkhome__benefits { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.6rem; color: var(--tb-ink-2); }
.tb-pkhome__benefits li { display: flex; gap: 0.6rem; align-items: flex-start; }
.tb-pkhome__benefits .tb-icon { flex: none; margin-top: 3px; color: var(--tb-blue-500); }
.tb-pkhome__trust { margin: 0 0 1.4rem; font-size: 0.86rem; color: var(--tb-muted); }
.tb-pkhome .tb-fx__ui { box-shadow: 0 18px 50px rgba(18, 28, 72, 0.14), 0 0 0 5px rgba(58, 107, 255, 0.06); }
@media (max-width: 960px) { .tb-pkhome__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---- Packages page sections ---- */
.tb-g2-sec.tb-pk-sec--dark { background: radial-gradient(680px 420px at 85% 30%, rgba(139, 92, 246, 0.2), transparent 70%), linear-gradient(180deg, var(--tb-navy-800) 0%, var(--tb-navy-700) 100%); color: var(--tb-on-dark); }
.tb-pk-sec--dark .tb-g2-title { color: #fff; }
.tb-pk-sec--dark .tb-g2-lede { color: var(--tb-on-dark-muted); }
.tb-pk-sec--dark .tb-pk-avail { background: rgba(255, 255, 255, 0.07); border-color: rgba(143, 178, 255, 0.35); color: var(--tb-on-dark); }
.tb-pk-sec--dark .tb-pk-link a { color: var(--tb-blue-400); }
.tb-pk-sec--dark .tb-fx__cap { color: var(--tb-on-dark-muted); }
.tb-pk-points--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; margin-bottom: 0.5rem; }
.tb-pk-stack { display: grid; gap: 1.6rem; justify-items: center; }
.tb-pk-link a { text-decoration: underline; text-underline-offset: 3px; }
/* Upload & Tag: on narrow screens the two contextual links stack, one per line, and the " · " separator is not shown. */
@media (max-width: 560px) {
	#upload-tag .tb-pk-link { flex-direction: column; align-items: flex-start; gap: 0.25rem; font-size: 0; }
	#upload-tag .tb-pk-link a { font-size: 1rem; }
}
.tb-hero--packages .tb-fx__cap { color: var(--tb-on-dark-muted); }
@media (max-width: 760px) { .tb-pk-points--grid { grid-template-columns: minmax(0, 1fr); } }
.tb-pk-hero__stage { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.tb-pk-hero__stage > .tb-fx, .tb-pk-stack > .tb-fx { min-width: 0; }
.tb-pk-stack { grid-template-columns: minmax(0, 1fr); }
.tb-fx__ui, .tb-fx__body { min-width: 0; }
.tb-fx__body { grid-template-columns: minmax(0, 1fr); }
.tb-fx__body > * { min-width: 0; }
.tb-fx__ev { grid-template-columns: minmax(0, 1fr); }
.tb-fx__list, .tb-fx__people { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .tb-fx__row > .tb-fx__btn.is-ghost { display: none; } }

.tb-fx__list > .tb-fx__chip, .tb-fx__body > .tb-fx__chip { justify-self: start; }

/* ---- Micro-demo clips in feature columns (media component: inc/media.php) ---- */
.tb-g2-duo__b .tb-media--feature { width: 100%; max-width: 40rem; margin-inline: auto; }
.tb-g2-duo__b .tb-media--feature + .tb-fx { margin-top: 1.6rem; }

/* ---- Governance Findings (expanded in place): two feature areas, administration strip, availability ---- */
.tb-gf-area + .tb-gf-area { margin-top: 1.8rem; }
.tb-gf-area h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; color: var(--tb-ink); text-wrap: balance; }
.tb-gf-kicker { display: block; margin-bottom: 0.2rem; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: var(--tb-fw-semibold); color: var(--tb-blue-500); }
.tb-gf-caveat { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--tb-muted); }
.tb-gf-admin { margin-top: clamp(1.8rem, 3.5vw, 2.8rem); }
.tb-gf-admin__title { margin: 0 0 1rem; text-align: center; font-size: 1.3rem; color: var(--tb-ink); text-wrap: balance; }
.tb-gf-admin .tb-g2-pillar h4 { margin: 0 0 0.35rem; font-size: 1.18rem; color: var(--tb-ink); }
.tb-gf-avail { max-width: 62rem; margin-inline: auto; }
.tb-gf-links { justify-content: center; flex-wrap: wrap; text-align: center; }

/* Upload & Tag (Outlook page): the five-step flow shown under the illustration (real text). */
.tb-fx__flow { list-style: none; counter-reset: tb-fx-flow; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.5rem; margin: 0.95rem 0 0; padding: 0; }
.tb-fx__flow li { counter-increment: tb-fx-flow; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.7rem 0.28rem 0.35rem; border-radius: 999px; background: #eef2ff; color: #34406b; font-size: 0.76rem; font-weight: var(--tb-fw-semibold); }
.tb-fx__flow li::before { content: counter(tb-fx-flow); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--tb-blue-500); color: #fff; font-size: 0.66rem; font-weight: var(--tb-fw-bold); }
