.tta-message-alert{color:#c42332!important;animation:tta-message-pulse 1.2s ease-in-out infinite!important}.tta-message-banner{display:flex;align-items:center;width:100%;margin:0 0 13px;padding:9px 13px;border:1px solid #efc5c9;border-left:4px solid #d84550;border-radius:10px;background:#fffafa;color:#8f2530;text-align:left;font:600 .84rem/1.25 inherit;box-shadow:0 4px 14px rgb(148 37 48/.07);transition:border-color .15s,background .15s}.tta-message-banner:hover,.tta-message-banner:focus-visible{border-color:#dc7780;background:#fff5f5;outline:none}.tta-message-banner::before{content:'✉';display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;margin-right:9px;border-radius:7px;background:#fde7e8;color:#c63240;font-size:.86rem}.tta-message-floating-alert{position:fixed;z-index:1001;right:22px;bottom:22px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 14px;border:1px solid #edb5ba;border-radius:999px;background:#fff;color:#a12631;font:700 .86rem/1 inherit;box-shadow:0 8px 24px rgb(75 20 25/.2);animation:tta-float-pulse 1.4s ease-in-out infinite}.tta-message-floating-alert::before{content:'✉';font-size:1rem}.tta-message-floating-alert[data-message-count]::after{content:attr(data-message-count);position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border:2px solid #fff;border-radius:999px;background:#d72d3b;color:#fff;font:800 10px/1 Arial,sans-serif;box-shadow:0 2px 6px rgb(111 22 30/.3)}.tta-message-floating-alert:hover,.tta-message-floating-alert:focus-visible{background:#fff5f5;outline:3px solid #f5ced1;outline-offset:2px}.tta-message-dialog{position:fixed;z-index:10050;inset:0;margin:0;border:0;background:rgb(10 22 17/.55);display:grid;place-items:center;padding:18px}.tta-message-card{width:min(460px,100%);max-height:min(620px,calc(100vh - 36px));overflow:auto;background:#fff;border-radius:18px;padding:18px;color:#193027;box-shadow:0 22px 70px rgb(0 0 0/.28)}.tta-message-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;border-bottom:1px solid #dde7df;padding-bottom:13px}.tta-message-heading strong{display:block;font-size:1.2rem}.tta-message-heading small{display:block;margin-top:4px;color:#617168}.tta-message-heading button{border:1px solid #cfdcd2;border-radius:10px;background:white;font-size:1.4rem;width:38px;height:38px}.tta-message-feed{display:grid;gap:9px;min-height:86px;max-height:290px;overflow:auto;padding:14px 0;color:#5b6c62}.tta-message{max-width:86%;border-radius:12px;padding:9px 11px;background:#eff5f0;color:#183027}.tta-message.admin{margin-left:auto;background:#e5f0ff}.tta-message p{margin:4px 0 0;white-space:pre-wrap}.tta-message small{font-size:.74rem;color:#64756b}.tta-message-receipt{font-weight:700;color:#82948a}.tta-message-receipt.is-read{color:#17865b}.tta-message-compose,.tta-message-form [type=submit]{border:0;border-radius:10px;background:#176a4b;color:white;padding:10px 13px;font-weight:700}.tta-message-compose{display:grid;place-items:center;width:46px;height:46px;margin:0 0 0 auto;padding:0;border-radius:50%;box-shadow:0 4px 12px rgb(23 106 75/.2)}.tta-message-compose svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tta-message-compose:hover,.tta-message-compose:focus-visible{background:#0f5b3e;outline:3px solid #bfe0d0;outline-offset:2px}.tta-message-form label{display:grid;gap:6px;font-weight:700}.tta-message-form textarea{min-height:96px;resize:vertical;border:1px solid #b9cbbd;border-radius:10px;padding:9px;font:inherit}.tta-message-form div{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.tta-message-cancel{border:1px solid #c9d6cc;background:white;border-radius:10px;padding:10px 13px}@keyframes tta-message-pulse{50%{transform:scale(1.1);filter:drop-shadow(0 0 5px #d94752)}}@keyframes tta-float-pulse{50%{transform:translateY(-2px);box-shadow:0 10px 28px rgb(171 35 48/.3)}}
.tta-message-floating-alert[data-message-count]::after{top:1px;right:5px;min-width:16px;height:16px;padding:0 3px;font-size:9px}
@media(min-width:651px){.tta-message-floating-alert[data-message-count]::after{display:none}}
body:has(.sheet.duty-pdf-active) .tta-message-floating-alert{display:none!important}
@media(max-width:650px){.tta-message-floating-alert{right:16px;bottom:calc(60px + env(safe-area-inset-bottom))!important;width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;gap:0!important;border:2px solid #ad2635!important;border-radius:50%!important;font-size:0!important}.tta-message-floating-alert::before{font-size:1.15rem!important}body:has(.timeline-return-now) .tta-message-floating-alert{bottom:calc(118px + env(safe-area-inset-bottom))!important}}
@media(min-width:651px){body:has(.timeline-return-now) .tta-message-floating-alert{bottom:78px}}
:root.dark-mode .tta-message-dialog{background:rgb(3 10 7/.74)!important}
:root.dark-mode .tta-message-card{background:#18231e!important;color:#edf4ef!important;border:1px solid #3a4c42;box-shadow:0 22px 70px rgb(0 0 0/.58)!important}
:root.dark-mode .tta-message-heading{border-bottom-color:#3a4c42!important}
:root.dark-mode .tta-message-heading strong{color:#f2f8f3!important}
:root.dark-mode .tta-message-heading small,:root.dark-mode .tta-message-feed,:root.dark-mode .tta-message small{color:#afc0b4!important}
:root.dark-mode .tta-message-heading button,:root.dark-mode .tta-message-cancel{background:#26352d!important;color:#edf4ef!important;border-color:#50665a!important}
:root.dark-mode .tta-message-heading button:hover,:root.dark-mode .tta-message-cancel:hover{background:#32443a!important}
:root.dark-mode .tta-message{background:#24342b!important;color:#edf4ef!important}
:root.dark-mode .tta-message.admin{background:#243d55!important;color:#edf5ff!important}
:root.dark-mode .tta-message p{color:inherit!important}
:root.dark-mode .tta-message-receipt{color:#aabdb0!important}:root.dark-mode .tta-message-receipt.is-read{color:#7fd3a0!important}
:root.dark-mode .tta-message-form textarea{background:#202d26!important;color:#edf4ef!important;border-color:#50665a!important}
:root.dark-mode .tta-message-compose{background:#1c805b!important}:root.dark-mode .tta-message-compose:hover{background:#25986d!important}
@media(max-width:650px){
  .tta-message-dialog{padding:12px}
  .tta-message-card{max-height:calc(100vh - 24px);border-radius:16px;padding:16px}
  .tta-message-heading{gap:12px;padding-bottom:11px}
  .tta-message-heading strong{font-size:1.08rem}
  .tta-message-heading small{margin-top:3px;font-size:.8rem}
  .tta-message-heading button{width:36px;height:36px;font-size:1.25rem}
  .tta-message-feed{gap:7px;max-height:250px;padding:12px 0}
  .tta-message{border-radius:11px;padding:8px 10px;font-size:.92rem}
  .tta-message p{margin-top:3px}
  .tta-message small{font-size:.69rem}
  .tta-message-compose{width:42px;height:42px}
  .tta-message-compose svg{width:19px;height:19px}
}
.app .header-actions button[aria-label="Meldingen"]:not(.tta-message-trigger){visibility:hidden}.tta-message-trigger{position:relative!important}.tta-message-trigger-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tta-message-trigger[data-message-unread]::after{content:attr(data-message-unread);position:absolute;top:2px;right:1px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#d72d3b;color:#fff;font:800 9px/1 Arial,sans-serif;box-shadow:0 2px 5px rgb(111 22 30/.2)}
.tta-message-compose{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;height:auto;margin:0 0 0 auto;padding:9px 12px;border-radius:10px}.tta-message-compose svg{width:18px;height:18px}.tta-message-compose span{font-size:.84rem;font-weight:750}
:root.dark-mode .tta-message-trigger[data-message-unread]::after{border-color:#17201d}
.tta-message-dialog{padding:10px}.tta-message-card{width:min(420px,100%);max-height:min(560px,calc(100vh - 20px));padding:13px;border-radius:15px}.tta-message-heading{align-items:center;gap:10px;padding-bottom:8px}.tta-message-heading strong{font-size:1rem;line-height:1.2}.tta-message-heading button{width:32px;height:32px;min-height:32px;padding:0;border-radius:8px;font-size:1.1rem}.tta-message-feed{gap:6px;min-height:66px;max-height:270px;padding:9px 0;font-size:.86rem}.tta-message{max-width:90%;padding:7px 9px;border-radius:10px}.tta-message p{margin-top:2px;line-height:1.4}.tta-message small{font-size:.66rem}.tta-message-compose{gap:6px;padding:7px 10px}.tta-message-compose svg{width:16px;height:16px}.tta-message-compose span{font-size:.76rem}.tta-message-form{font-size:.84rem}.tta-message-form label{gap:4px}.tta-message-form textarea{min-height:78px;padding:7px;font-size:.84rem}.tta-message-form div{gap:6px;margin-top:7px}.tta-message-form button{min-height:34px;padding:7px 10px;font-size:.78rem}
.tta-message-form-hint{margin:4px 0 0;color:#687970;font-size:.7rem;line-height:1.3}:root.dark-mode .tta-message-form-hint{color:#afc0b4!important}
/* Calmer message discovery and dialog presentation. */
.tta-message-dialog{padding:16px;background:rgba(18,31,26,.42);backdrop-filter:blur(3px)}
.tta-message-card{width:min(410px,100%);max-height:min(540px,calc(100vh - 32px));padding:17px 18px 18px;border:1px solid rgba(60,84,72,.14);border-radius:18px;background:#fff;color:#20372d;box-shadow:0 24px 70px rgba(14,31,23,.25)}
.tta-message-heading{align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid #e6ece8}
.tta-message-heading strong{font-size:16px;font-weight:700;letter-spacing:-.015em}
.tta-message-heading button{width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:9px;background:#f2f5f3;color:#40564b;font-size:18px;font-weight:400;line-height:1;cursor:pointer}
.tta-message-heading button:hover,.tta-message-heading button:focus-visible{background:#e9efeb;color:#1d382b;outline:3px solid rgba(69,127,97,.16);outline-offset:2px}
.tta-message-feed{min-height:104px;max-height:270px;padding:12px 0;color:#63736b;font-size:13px}
.tta-message-feed:not(:has(.tta-message)){display:grid;place-content:center;justify-items:center;gap:5px;text-align:center;color:#607169}
.tta-message-feed:not(:has(.tta-message))::before{content:"✉";display:grid;width:30px;height:30px;place-items:center;border-radius:10px;background:#f0f4f2;color:#667a70;font-size:13px;box-shadow:inset 0 0 0 1px #e2e9e5}
.tta-message-feed:not(:has(.tta-message))::after{content:"Nieuwe berichten verschijnen hier.";color:#89958f;font-size:10px}
:root.dark-mode .tta-message-feed:not(:has(.tta-message))::before{background:#24332b;box-shadow:inset 0 0 0 1px #405248}
:root.dark-mode .tta-message-feed:not(:has(.tta-message))::after{color:#91a39a}
@media(max-width:650px){.tta-message-dialog{padding:12px}.tta-message-card{max-height:calc(100vh - 24px);padding:15px;border-radius:16px}.tta-message-feed{min-height:96px}.tta-message-heading strong{font-size:15px}}
.tta-message.user{position:relative;padding-right:32px}.tta-message-remove{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:24px;height:24px;min-height:24px;padding:3px;border:0;border-radius:7px;background:transparent;color:#71837a;cursor:pointer}.tta-message-remove svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tta-message-remove:hover,.tta-message-remove:focus-visible{background:#dfeae2;color:#9d2933;outline:2px solid #bfd3c4;outline-offset:1px}.tta-message-remove:disabled{opacity:.45;cursor:wait}:root.dark-mode .tta-message-remove{color:#aebfb5}:root.dark-mode .tta-message-remove:hover,:root.dark-mode .tta-message-remove:focus-visible{background:#35483d;color:#ff8b94;outline-color:#597064}

/* Conversation layout: keep the heading and reply box visible while only the
   message history scrolls. Dynamic viewport units prevent overflow on iOS. */
.tta-message-card{display:flex;flex-direction:column;overflow:hidden}
.tta-message-heading,.tta-message-form,.tta-message-compose{flex:0 0 auto}
.tta-message-feed{flex:1 1 auto;align-content:start;min-height:clamp(220px,42dvh,390px);max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
.tta-message{display:grid;gap:5px;width:fit-content;min-width:min(190px,72%);max-width:min(86%,560px);padding:10px 12px;border:1px solid #dbe7df;border-radius:14px 14px 14px 5px;background:#f3f7f4;box-shadow:0 2px 8px rgba(28,61,43,.045)}
.tta-message.admin{justify-self:end;margin-left:0;border-color:#c9dcf2;border-radius:14px 14px 5px 14px;background:#eaf3ff}
.tta-message.user{justify-self:start}
.tta-message-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#66776e;font-size:.7rem;line-height:1.3}
.tta-message-meta>span{min-width:0}
.tta-message-author{color:#40564b;font-weight:800}
.tta-message-time{font-variant-numeric:tabular-nums;white-space:nowrap}
.tta-message-receipt{display:inline-flex;align-items:center;margin-left:4px;white-space:nowrap}
.tta-message p{margin:0;font-size:.92rem;line-height:1.48}
.tta-message-form{padding-top:12px;border-top:1px solid #e2eae5;background:inherit}
.tta-message-form textarea{width:100%;box-sizing:border-box}

@media(max-width:650px){
  .tta-message-dialog{align-items:stretch;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .tta-message-card{width:100%;height:calc(100dvh - max(16px,env(safe-area-inset-top) + env(safe-area-inset-bottom)));max-height:none;padding:14px 14px 12px;border-radius:15px}
  .tta-message-heading{flex:0 0 auto;align-items:flex-start}
  .tta-message-heading>div{min-width:0}
  .tta-message-heading strong,.tta-message-heading small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tta-message-feed{min-height:0;max-height:none;padding:12px 1px 14px}
  .tta-message{min-width:min(170px,74%);max-width:92%;padding:9px 10px}
  .tta-message-meta{align-items:flex-start;flex-direction:column;gap:1px}
  .tta-message.admin .tta-message-meta{align-items:flex-end}
  .tta-message p{font-size:.95rem;line-height:1.45}
  .tta-message-form{padding-top:10px}
  .tta-message-form textarea{min-height:82px;max-height:20dvh;resize:none;font-size:16px}
  .tta-message-form>div,.tta-message-dialog-actions{flex-wrap:wrap}
  .tta-message-form button{min-height:44px}
}
