/* Tippi demos (chat + mailassistent), scoped to the Tippi page (posts/tippi-ai-assistent.html). */
.tippi-page .tippi-demo {
  --navy: #1e2a46; --navy-soft: #43506e; --green: #0a774a;
  --green-tint: #e4f5ec; --cream: #fbf7f0; --line: #e6dccb; --white: #fff;
  --shadow: 0 1px 2px rgba(30,42,70,.06), 0 12px 32px -12px rgba(30,42,70,.22);
  --font: var(--font-ui), system-ui, sans-serif;
  max-width: 1100px; margin: 28px auto 48px;
  font: 400 1rem/1.6 var(--font); color: var(--navy); text-align: left;
}
.tippi-page .tippi-demo *,
.tippi-page .tippi-demo *::before,
.tippi-page .tippi-demo *::after { box-sizing: border-box; }
.tippi-page .tippi-demo [hidden] { display: none !important; }
.tippi-page .tippi-demo p { margin: 0 0 1em; }
.tippi-page .tippi-demo h3 { font: 800 1.25rem/1.2 var(--font); margin: 0 0 .5em; }
.tippi-page .tippi-demo img,
.tippi-page .tippi-demo svg { max-width: 100%; height: auto; }
.tippi-page .tippi-demo :focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.tippi-page .tippi-demo .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: var(--white);
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.tippi-page .tippi-demo .btn:hover { color: var(--white); background: #075c39; border-color: #075c39; transform: translateY(-1px); }
.tippi-page .tippi-demo .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tippi-page .tippi-demo .btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.tippi-page .tippi-demo .btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.tippi-page .tippi-demo .btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tippi-page .tippi-demo .btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.tippi-page .tippi-demo .btn-light:hover { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.tippi-page .tippi-demo .link-btn { background: none; border: 0; padding: 4px 0; color: var(--green); font: 700 .95rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.tippi-page .tippi-demo .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tippi-page .tippi-demo .chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  color: var(--navy); font: 600 .95rem var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.tippi-page .tippi-demo .chip:hover { border-color: var(--navy); }
.tippi-page .tippi-demo .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tippi-page .tippi-demo .chip-sport[aria-pressed="true"] { background: var(--s-sport); border-color: var(--s-sport); }
.tippi-page .tippi-demo .chip-creatief[aria-pressed="true"] { background: var(--s-creatief); border-color: var(--s-creatief); }
.tippi-page .tippi-demo .chip-reizen[aria-pressed="true"] { background: var(--s-reizen); border-color: var(--s-reizen); }
.tippi-page .tippi-demo .chip-sociaal[aria-pressed="true"] { background: var(--s-sociaal); border-color: var(--s-sociaal); }
.tippi-page .tippi-demo .pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.tippi-page .tippi-demo .pill-green { background: var(--green-tint); color: var(--green); }
.tippi-page .tippi-demo .app-window, .tippi-page .tippi-demo .mb-window { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.tippi-page .tippi-demo .app-bar, .tippi-page .tippi-demo .mb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f6f3ee; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--navy-soft); font-weight: 600; }
.tippi-page .tippi-demo .app-dots { display: flex; gap: 6px; }
.tippi-page .tippi-demo .app-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e1d8c8; }
.tippi-page .tippi-demo .app-body { display: grid; grid-template-columns: 170px 1fr 400px; min-height: 600px; }
.tippi-page .tippi-demo .app-side { background: var(--navy); padding: 18px 12px; display: grid; align-content: start; gap: 4px; }
.tippi-page .tippi-demo .app-side span { color: #b9c2d8; font-size: .9rem; padding: 8px 12px; border-radius: 10px; }
.tippi-page .tippi-demo .app-side .is-active { background: rgba(255, 255, 255, .1); color: var(--white); font-weight: 700; }
.tippi-page .tippi-demo .app-main { padding: 24px; background: #fafbfd; }
.tippi-page .tippi-demo .app-h { font-weight: 800; font-size: 1.2rem; }
.tippi-page .tippi-demo .app-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tippi-page .tippi-demo .app-card { background: var(--white); border: 1px solid #e8ebf2; border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.tippi-page .tippi-demo .app-card span { font-size: .8rem; color: var(--navy-soft); }
.tippi-page .tippi-demo .app-card strong { font-size: 1.5rem; }
.tippi-page .tippi-demo .app-skel { display: grid; gap: 10px; margin-top: 18px; }
.tippi-page .tippi-demo .app-skel i { height: 14px; border-radius: 7px; background: #edf0f5; }
.tippi-page .tippi-demo .app-skel i:nth-child(odd) { width: 80%; }
.tippi-page .tippi-demo .tc { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--white); min-height: 0; }
.tippi-page .tippi-demo .tc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--green); color: var(--white); }
.tippi-page .tippi-demo .tc-head img { background: var(--white); border-radius: 50%; }
.tippi-page .tippi-demo .tc-badge { font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 2px 8px; border-radius: 999px; }
.tippi-page .tippi-demo .tc-reset { margin-left: auto; background: var(--white); color: var(--green); border: 0; border-radius: 999px; padding: 6px 12px; font: 700 .85rem var(--font); cursor: pointer; }
.tippi-page .tippi-demo .tc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 560px; scroll-behavior: smooth; }
.tippi-page .tippi-demo .tc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 16px; border-top: 1px solid var(--line); background: var(--cream); }
.tippi-page .tippi-demo .chip-ask { background: var(--white); border-color: var(--green); color: var(--green); }
.tippi-page .tippi-demo .chip-ask:hover { background: var(--green-tint); }
.tippi-page .tippi-demo .chip-ask:disabled { opacity: .4; cursor: default; }
.tippi-page .tippi-demo .msg { max-width: 92%; border-radius: 16px; padding: 10px 14px; font-size: .95rem; line-height: 1.45; animation: msg-in .3s ease both; }
.tippi-page .tippi-demo .msg p { margin: 0 0 .5em; }
.tippi-page .tippi-demo .msg p:last-child { margin-bottom: 0; }
.tippi-page .tippi-demo .msg-user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.tippi-page .tippi-demo .msg-tippi { align-self: flex-start; background: #f2f5f9; border-bottom-left-radius: 4px; max-width: 100%; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.tippi-page .tippi-demo .work { list-style: none; margin: 0; padding: 10px 12px; border: 1px dashed #c9d3e2; border-radius: 14px; font-size: .88rem; color: var(--navy-soft); display: grid; gap: 6px; align-self: stretch; }
.tippi-page .tippi-demo .work-title { font-weight: 700; color: var(--navy); }
.tippi-page .tippi-demo .work li { display: flex; gap: 8px; align-items: center; }
.tippi-page .tippi-demo .work li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid #c9d3e2; border-top-color: var(--green); animation: spin .8s linear infinite; }
.tippi-page .tippi-demo .work li.is-done::before { animation: none; border: 0; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230a774a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.tippi-page .tippi-demo .answer { display: grid; gap: 12px; }
.tippi-page .tippi-demo .chart { background: var(--white); border: 1px solid #e3e8f0; border-radius: 12px; padding: 10px 12px 6px; }
.tippi-page .tippi-demo .chart-title { font-size: .8rem; font-weight: 700; color: var(--navy-soft); margin: 0 0 4px; }
.tippi-page .tippi-demo .chart svg { display: block; width: 100%; height: auto; }
.tippi-page .tippi-demo .chart .grid { stroke: #edf0f5; }
.tippi-page .tippi-demo .chart .axis { fill: var(--navy-soft); font-size: 11px; font-family: var(--font); }
.tippi-page .tippi-demo .chart .s0 { stroke: var(--green); }
.tippi-page .tippi-demo .chart .s1 { stroke: #9aa6bd; stroke-dasharray: 5 5; }
.tippi-page .tippi-demo .chart path.line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tippi-page .tippi-demo .chart.is-drawing path.line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.2s ease forwards; }
.tippi-page .tippi-demo .chart.is-drawing path.s1 { animation-delay: .15s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tippi-page .tippi-demo .legend { display: flex; gap: 14px; font-size: .8rem; color: var(--navy-soft); margin: 4px 0 0; }
.tippi-page .tippi-demo .legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--green); }
.tippi-page .tippi-demo .legend span + span::before { background: #9aa6bd; }
.tippi-page .tippi-demo .mini-table { width: 100%; border-collapse: collapse; font-size: .85rem; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid #e3e8f0; }
.tippi-page .tippi-demo .mini-table th, .tippi-page .tippi-demo .mini-table td { padding: 7px 9px; text-align: left; border-bottom: 1px solid #eef1f5; }
.tippi-page .tippi-demo .mini-table th { background: #f6f8fb; font-weight: 700; }
.tippi-page .tippi-demo .mini-table td:not(:first-child), .tippi-page .tippi-demo .mini-table th:not(:first-child) { text-align: center; }
.tippi-page .tippi-demo .mini-table .is-short { color: #b23b1f; font-weight: 800; }
.tippi-page .tippi-demo .groups { display: grid; gap: 8px; }
.tippi-page .tippi-demo .group { border-radius: 12px; padding: 8px 12px; background: var(--white); border-left: 4px solid var(--tone); font-size: .88rem; }
.tippi-page .tippi-demo .group-title { font-weight: 800; margin: 0 0 4px; }
.tippi-page .tippi-demo .group ul { margin: 0; padding-left: 18px; }
.tippi-page .tippi-demo .tone-rood { --tone: #d0573c; }
.tippi-page .tippi-demo .tone-geel { --tone: #e2a522; }
.tippi-page .tippi-demo .tone-grijs { --tone: #b5bfcf; }
.tippi-page .tippi-demo .fake-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--green); background: var(--green-tint); border-radius: 999px; padding: 6px 12px; border: 0; cursor: pointer; font-family: var(--font); justify-self: start; }
.tippi-page .tippi-demo .action-card { border: 1.5px solid var(--green); border-radius: 14px; background: var(--white); padding: 12px 14px; display: grid; gap: 8px; }
.tippi-page .tippi-demo .action-card-kicker { font-size: .75rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.tippi-page .tippi-demo .action-card-title { font-weight: 800; margin: 0; }
.tippi-page .tippi-demo .action-card p { margin: 0; font-size: .88rem; color: var(--navy-soft); }
.tippi-page .tippi-demo .action-card-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.tippi-page .tippi-demo .action-card .btn { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.tippi-page .tippi-demo .demo-note { font-size: .82rem; background: #fff6dd; border-radius: 10px; padding: 8px 10px; color: #6b4d06; margin: 0; }
.tippi-page .tippi-demo .thumbs { display: flex; gap: 6px; font-size: .78rem; color: var(--navy-soft); align-items: center; }
.tippi-page .tippi-demo .mb-body { display: grid; grid-template-columns: 160px 300px 1fr; min-height: 560px; }
.tippi-page .tippi-demo .mb-folders { background: #f6f3ee; border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 4px; }
.tippi-page .tippi-demo .mb-folders span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: .9rem; color: var(--navy-soft); }
.tippi-page .tippi-demo .mb-folders .is-active { background: var(--white); color: var(--navy); font-weight: 700; }
.tippi-page .tippi-demo .mb-folders b { font-weight: 800; }
.tippi-page .tippi-demo .mb-concepts.has-new { color: var(--green); font-weight: 800; }
.tippi-page .tippi-demo .mb-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); }
.tippi-page .tippi-demo .mb-item { width: 100%; text-align: left; background: var(--white); border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; cursor: pointer; font-family: var(--font); color: var(--navy); }
.tippi-page .tippi-demo .mb-item:hover { background: var(--cream); }
.tippi-page .tippi-demo .mb-item[aria-pressed="true"] { background: var(--green-tint); box-shadow: inset 4px 0 0 var(--green); }
.tippi-page .tippi-demo .mb-from { font-weight: 800; }
.tippi-page .tippi-demo .mb-time { font-size: .8rem; color: var(--navy-soft); }
.tippi-page .tippi-demo .mb-subject { grid-column: 1 / -1; font-weight: 600; font-size: .92rem; }
.tippi-page .tippi-demo .mb-preview { grid-column: 1 / -1; font-size: .85rem; color: var(--navy-soft); }
.tippi-page .tippi-demo .mb-read { padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tippi-page .tippi-demo .mb-empty { margin: auto; text-align: center; max-width: 34ch; color: var(--navy-soft); }
.tippi-page .tippi-demo .mb-mail-head h3 { margin: 0 0 4px; }
.tippi-page .tippi-demo .mb-mail-head p { margin: 0; font-size: .88rem; color: var(--navy-soft); }
.tippi-page .tippi-demo .mb-mail-text { background: #f8f6f1; border-radius: 14px; padding: 14px 16px; margin: 0; }
.tippi-page .tippi-demo .mb-assist { border: 1px dashed #b9dcc8; background: #f5fbf8; border-radius: 14px; padding: 12px 14px; }
.tippi-page .tippi-demo .mb-assist-title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 8px; font-size: .92rem; }
.tippi-page .tippi-demo .lookups { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tippi-page .tippi-demo .lookup { display: grid; grid-template-columns: 22px 150px 1fr; gap: 8px; align-items: start; font-size: .88rem; padding: 4px 6px; border-radius: 8px; transition: background .2s; }
.tippi-page .tippi-demo .lookup-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--white); font-size: .72rem; font-weight: 800; }
.tippi-page .tippi-demo .lookup.is-pending { opacity: .35; }
.tippi-page .tippi-demo .lookup.is-pending .lookup-num { background: #b9c4d6; }
.tippi-page .tippi-demo .lookup b { font-weight: 700; }
.tippi-page .tippi-demo .lookup.is-hl { background: #fff1c2; }
.tippi-page .tippi-demo .draft { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.tippi-page .tippi-demo .draft-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 14px; background: #f6f3ee; font-size: .85rem; font-weight: 700; }
.tippi-page .tippi-demo .draft-body { padding: 14px 16px; }
.tippi-page .tippi-demo .draft-body p { margin: 0 0 .7em; }
.tippi-page .tippi-demo .draft-src { background: linear-gradient(transparent 60%, #fff1c2 60%); cursor: help; border-radius: 3px; }
.tippi-page .tippi-demo .draft-src.is-hl { background: #ffe38a; }
.tippi-page .tippi-demo .draft-src sup { font-size: .7em; font-weight: 800; color: var(--green); margin-left: 2px; }
.tippi-page .tippi-demo .tok { display: inline-block; background: var(--green-tint); color: var(--green); font-weight: 700; border-radius: 6px; padding: 0 6px; }
.tippi-page .tippi-demo .draft-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--cream); }
.tippi-page .tippi-demo .draft-foot p { margin: 0; font-size: .85rem; color: var(--navy-soft); }
.tippi-page .tippi-demo .tc-head { flex-wrap: wrap; }
.tippi-page .tippi-demo .tc-head img { width: 32px; height: 32px; border-radius: 50%; }
.tippi-page .tippi-demo .tc-log { min-width: 0; }
.tippi-page .tippi-demo .msg { min-width: 0; overflow-wrap: anywhere; }
.tippi-page .tippi-demo .mb-read { overflow-wrap: anywhere; }
.tippi-page .tippi-demo .mb-bar { flex-wrap: wrap; }
.tippi-page .tippi-demo .mb-bar .tc-badge { margin: 0; background: var(--green-tint); color: var(--green); }
.tippi-page .tippi-demo .fineprint { font-size: .875rem; color: var(--navy-soft); margin-top: 18px; }
@media (max-width: 1080px) {
  .tippi-page .tippi-demo .app-body { grid-template-columns: 1fr 380px; }
  .tippi-page .tippi-demo .app-side { display: none; }
  .tippi-page .tippi-demo .mb-body { grid-template-columns: 260px 1fr; }
  .tippi-page .tippi-demo .mb-folders { display: none; }
}
@media (max-width: 860px) {
  .tippi-page .tippi-demo .app-body { grid-template-columns: 1fr; min-height: 0; }
  .tippi-page .tippi-demo .app-main { display: none; }
  .tippi-page .tippi-demo .tc { border-left: 0; }
  .tippi-page .tippi-demo .tc-log { max-height: 520px; min-height: 320px; }
  .tippi-page .tippi-demo .mb-body { grid-template-columns: 1fr; min-height: 0; }
  .tippi-page .tippi-demo .mb-list { border-right: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-bottom: 1px solid var(--line); }
  .tippi-page .tippi-demo .mb-list li { flex: 0 0 78%; scroll-snap-align: start; margin: 0; }
  .tippi-page .tippi-demo .mb-item { height: 100%; border-right: 1px solid var(--line); }
  .tippi-page .tippi-demo .lookup { grid-template-columns: 22px 1fr; }
  .tippi-page .tippi-demo .lookup span:last-child { grid-column: 2; }
  .tippi-page .tippi-demo .mb-read { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tippi-page .tippi-demo *,
  .tippi-page .tippi-demo *::before,
  .tippi-page .tippi-demo *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
