/* Module telefoon: gesimuleerde AI-telefoonassistent */
.m-telefoon .tf-label { display: flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--info-soft); color: var(--info); font-size: 13.5px; font-weight: 600; }
.m-telefoon .tf-label svg { flex: none; }
.m-telefoon .tf-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 350px; gap: 14px; align-items: start; }
.m-telefoon .tf-grid > *, .m-telefoon .tf-side > * { min-width: 0; }

/* scenario's */
.m-telefoon .tf-scen { padding: 14px; }
.m-telefoon .tf-scenlist { display: grid; gap: 8px; }
.m-telefoon .tf-scenitem { display: flex; gap: 10px; text-align: left; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.m-telefoon .tf-scenitem:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.m-telefoon .tf-scenitem.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.m-telefoon .tf-scen-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.m-telefoon .tf-scen-ic.tone-info { background: var(--info-soft); color: var(--info); }
.m-telefoon .tf-scen-ic.tone-warn { background: var(--warn-soft); color: var(--warn); }
.m-telefoon .tf-scen-ic.tone-bad { background: var(--bad-soft); color: var(--bad); }
.m-telefoon .tf-scen-ic.tone-ok { background: var(--ok-soft); color: var(--ok); }
.m-telefoon .tf-scen-ic.tone-accent { background: var(--accent-soft); color: var(--accent); }
.m-telefoon .tf-scen-main { display: grid; gap: 2px; min-width: 0; }
.m-telefoon .tf-scen-main b { font-size: 14px; line-height: 1.3; }
.m-telefoon .tf-scen-tags { gap: 5px; margin-top: 4px; }
.m-telefoon .tf-assist { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.m-telefoon .tf-assist-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7c3aed)); }

/* gesprek */
.m-telefoon .tf-call { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.m-telefoon .tf-callhead { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, #141a24, color-mix(in srgb, var(--accent) 45%, #141a24)); }
.m-telefoon .tf-ring { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.m-telefoon .tf-ring span { display: grid; place-items: center; }
.m-telefoon .tf-ring.is-ring { background: var(--ok); animation: tf-shake .5s infinite; }
.m-telefoon .tf-ring.is-ring::after, .m-telefoon .tf-ring.is-call::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ok); animation: tf-ping 1.4s infinite; }
.m-telefoon .tf-ring.is-call { background: var(--ok); }
.m-telefoon .tf-ring.is-call.is-paused::after { animation: none; opacity: 0; }
.m-telefoon .tf-ring.is-done { background: rgba(255, 255, 255, .12); }
@keyframes tf-ping { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes tf-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.m-telefoon .tf-callwho { display: grid; line-height: 1.3; min-width: 0; }
.m-telefoon .tf-callwho b { font-size: 16px; }
.m-telefoon .tf-callwho span { font-size: 12.5px; opacity: .75; }
.m-telefoon .tf-timer { font-size: 20px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.m-telefoon .tf-wavewrap { display: flex; align-items: center; gap: 10px; padding: 12px 18px 8px; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.m-telefoon .tf-wave { flex: 1; min-width: 0; height: 64px; display: block; }
.m-telefoon .tf-spk { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 9px; border-radius: 99px; background: var(--line-2); transition: all .2s; white-space: nowrap; }
.m-telefoon .tf-spk.is-on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.m-telefoon .tf-spk.is-c.is-on { background: #5d6573; color: #fff; box-shadow: 0 0 0 4px #e6e8ec; }
.m-telefoon .tf-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.m-telefoon .tf-controls .btn span { pointer-events: none; }
.m-telefoon .tf-speed button { padding: 5px 10px; font-variant-numeric: tabular-nums; }
.m-telefoon .tf-transcript { height: 470px; overflow-y: auto; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.m-telefoon .tf-empty { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 360px; color: var(--ink); }
.m-telefoon .tf-empty svg { width: 34px; height: 34px; color: var(--accent); padding: 8px; box-sizing: content-box; border-radius: 50%; background: var(--accent-soft); margin-bottom: 4px; }
.m-telefoon .tf-empty b { font-size: 16px; }
.m-telefoon .tf-empty > span:not(.small) { color: var(--muted); }
.m-telefoon .tf-msg { display: flex; gap: 9px; align-items: flex-end; max-width: 86%; animation: tf-in .25s ease-out; }
.m-telefoon .tf-msg.is-c { align-self: flex-end; flex-direction: row-reverse; }
.m-telefoon .tf-av { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); }
.m-telefoon .tf-msg.is-c .tf-av { background: #7b8494; }
.m-telefoon .tf-bub { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--accent-soft); color: var(--ink); min-width: 60px; }
.m-telefoon .tf-msg.is-c .tf-bub { border-radius: 16px 16px 4px 16px; background: #eef0f3; }
.m-telefoon .tf-name { display: block; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--accent) 80%, black); margin-bottom: 2px; }
.m-telefoon .tf-msg.is-c .tf-name { color: var(--muted); text-align: right; }
.m-telefoon .tf-bub p { font-size: 14.5px; line-height: 1.5; }
.m-telefoon .tf-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: tf-blink .8s steps(1) infinite; }
.m-telefoon .tf-msg.is-done .tf-caret { display: none; }
@keyframes tf-blink { 50% { opacity: 0; } }
@keyframes tf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.m-telefoon .tf-sys { align-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 600; animation: tf-in .25s ease-out; }
.m-telefoon .tf-sys.is-start, .m-telefoon .tf-sys.is-end { background: transparent; border-style: dashed; }
.m-telefoon .tf-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: tf-spin .7s linear infinite; }
@keyframes tf-spin { to { transform: rotate(360deg); } }
.m-telefoon .tf-sysok { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; }
.m-telefoon .tf-sysok svg { width: 10px; height: 10px; }

/* fiche */
.m-telefoon .tf-side { display: grid; gap: 14px; }
.m-telefoon .tf-fiche { padding: 16px; }
.m-telefoon .tf-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--bad); letter-spacing: .05em; }
.m-telefoon .tf-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: tf-blink 1.2s steps(1) infinite; }
.m-telefoon .tf-fields { display: grid; gap: 2px; }
.m-telefoon .tf-field { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; transition: background-color .4s; }
.m-telefoon .tf-field.is-fresh { animation: tf-fresh 1.6s ease-out; }
@keyframes tf-fresh { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }
.m-telefoon .tf-fl { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.m-telefoon .tf-fv { font-weight: 600; line-height: 1.4; }
.m-telefoon .tf-dots { display: inline-flex; gap: 3px; padding-top: 7px; }
.m-telefoon .tf-dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.m-telefoon .tf-fichehint { margin-top: 8px; }
.m-telefoon .tf-result { animation: tf-in .35s ease-out; }
.m-telefoon .tf-sum { font-size: 14px; line-height: 1.5; }
.m-telefoon .tf-advice { display: flex; gap: 8px; margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: var(--warn-soft); font-size: 13px; }
.m-telefoon .tf-advice svg { flex: none; color: var(--warn); margin-top: 2px; }
.m-telefoon .tf-appt { display: flex; gap: 10px; margin: 12px 0; padding: 11px 12px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--k) 35%, var(--line)); background: color-mix(in srgb, var(--k) 8%, white); }
.m-telefoon .tf-appt-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--k); }
.m-telefoon .tf-appt-main { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.35; }
.m-telefoon .tf-appt-main > b { font-size: 14.5px; }
.m-telefoon .tf-kv { display: grid; grid-template-columns: 100px 1fr; gap: 5px 10px; font-size: 13px; }
.m-telefoon .tf-kv span { color: var(--muted); }
.m-telefoon .tf-kv b { font-weight: 600; }
.m-telefoon .tf-actions { margin-top: 14px; }
.m-telefoon .tf-confirmed { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 13.5px; }
.m-telefoon .tf-sms { margin-top: 10px; padding: 10px; border-radius: 12px; background: #eef0f4; }
.m-telefoon .tf-sms-h { margin-bottom: 6px; }
.m-telefoon .tf-sms-b { background: #fff; padding: 9px 12px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.45; }

/* agenda */
.m-telefoon .tf-agenda { padding: 16px; }
.m-telefoon .tf-agenda .card-head { flex-wrap: wrap; }
.m-telefoon .tf-dayseg button { position: relative; padding: 5px 9px; font-size: 12.5px; text-transform: capitalize; }
.m-telefoon .tf-newdot { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.m-telefoon .tf-cal { position: relative; display: grid; gap: 0 4px; }
.m-telefoon .tf-cal-axis { position: relative; }
.m-telefoon .tf-cal-axis span { position: absolute; left: 0; font-size: 10px; color: #a3a9b3; font-family: var(--mono); transform: translateY(-50%); }
.m-telefoon .tf-cal-head { height: 26px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; overflow: hidden; white-space: nowrap; }
.m-telefoon .tf-cal-head i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.m-telefoon .tf-cal-body { position: relative; border-radius: 8px; background: var(--panel-2) repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--pp) * 2 - 1px), var(--line-2) calc(var(--pp) * 2 - 1px), var(--line-2) calc(var(--pp) * 2)); border: 1px solid var(--line-2); }
.m-telefoon .tf-ap { position: absolute; left: 2px; right: 2px; overflow: hidden; padding: 3px 6px; border-radius: 6px; font-size: 11px; line-height: 1.25; background: color-mix(in srgb, var(--k) 18%, white); box-shadow: inset 3px 0 0 var(--k); color: color-mix(in srgb, var(--k) 35%, #111); }
.m-telefoon .tf-ap b { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.m-telefoon .tf-ap span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-telefoon .tf-ap em { font-style: normal; font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 0 4px; border-radius: 4px; background: var(--k); color: #fff; letter-spacing: .03em; }
.m-telefoon .tf-ap em.is-ok { display: inline-grid; place-items: center; width: 13px; height: 13px; padding: 0; border-radius: 50%; }
.m-telefoon .tf-ap em.is-ok svg { width: 9px; height: 9px; }
.m-telefoon .tf-ap.is-new { background: color-mix(in srgb, var(--k) 28%, white); box-shadow: inset 0 0 0 1.5px var(--k); z-index: 1; }
.m-telefoon .tf-ap.is-hl { animation: tf-hl 1.2s ease-out 3; }
@keyframes tf-hl { 0% { box-shadow: inset 0 0 0 1.5px var(--k), 0 0 0 0 color-mix(in srgb, var(--k) 60%, transparent); } 100% { box-shadow: inset 0 0 0 1.5px var(--k), 0 0 0 10px transparent; } }
.m-telefoon .tf-calnote { margin-top: 10px; }

@media (max-width: 1240px) {
  .m-telefoon .tf-grid { grid-template-columns: 250px minmax(0, 1fr); }
  .m-telefoon .tf-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 860px) {
  .m-telefoon .tf-grid { grid-template-columns: minmax(0, 1fr); }
  .m-telefoon .tf-scenlist { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .m-telefoon .tf-scenitem { flex: 0 0 min(260px, 80%); scroll-snap-align: start; }
  .m-telefoon .tf-assist { display: none; }
  .m-telefoon .tf-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .m-telefoon .tf-callhead { padding: 12px 14px; gap: 10px; }
  .m-telefoon .tf-ring { width: 38px; height: 38px; }
  .m-telefoon .tf-callwho b { font-size: 15px; }
  .m-telefoon .tf-timer { font-size: 16px; }
  .m-telefoon .tf-wavewrap { padding: 10px 12px 6px; gap: 6px; }
  .m-telefoon .tf-wave { height: 48px; }
  .m-telefoon .tf-spk { font-size: 11px; padding: 3px 7px; }
  .m-telefoon .tf-controls { padding: 10px 12px; gap: 6px; }
  .m-telefoon .tf-controls .btn { padding: 8px 10px; }
  .m-telefoon .tf-controls .spacer { display: none; }
  .m-telefoon .tf-transcript { height: 400px; padding: 12px; }
  .m-telefoon .tf-msg { max-width: 94%; }
  .m-telefoon .tf-bub p { font-size: 14px; }
  .m-telefoon .tf-label { font-size: 12.5px; align-items: flex-start; }
}
