[hidden]:not([hidden="until-found" i]) { display: none !important; }
@font-face { font-family: "Inter"; src: url("/inbox/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/inbox/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/inbox/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/inbox/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Team-inbox: eigen, zakelijker stijl. Inter i.p.v. Pally, kleinere rondingen. Merkkleuren blijven. */
:root { --la-font: "Inter", system-ui, sans-serif; --la-r-card: 14px; --la-r-input: 10px; --la-r-button: 10px; --la-button-h: 48px; }
body { font-feature-settings: "cv11", "ss01"; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--la-font); color: var(--la-navy); background: var(--la-brand-bg); }
::selection { background: var(--la-brand-soft); color: var(--la-navy); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--la-brand-dark); outline-offset: 2px; }

/* Inloggen */
.ti-login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.ti-login-card { width: min(380px, 100%); background: #fff; border: 1px solid var(--la-border); border-radius: var(--la-r-card); padding: 28px 24px; }
.ti-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ti-mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--la-brand); color: #fff; font-weight: 700; }
.ti-brand b { font-size: 17px; }
.ti-login h1 { margin: 0 0 6px; font-size: 24px; }
.ti-login p { margin: 0 0 20px; color: var(--la-muted); font-size: 15px; line-height: 1.5; }
.ti-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.ti-field input { height: 48px; padding: 0 14px; border: 1px solid var(--la-border); border-radius: var(--la-r-input); background: #fff; box-shadow: var(--la-shadow-input); }
.ti-field input:focus { outline: none; border-color: var(--la-brand-dark); }
.ti-err { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--la-error-bg); color: #B91C1C; font-size: 14px; }
.ti-btn { width: 100%; height: var(--la-button-h); border: 0; border-radius: var(--la-r-button); background: var(--la-navy); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }

/* App */
.ti-app { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.ti-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--la-border); }
.ti-top .ti-brand { margin: 0; }
.ti-me { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--la-muted); }
.ti-link { border: 0; background: none; color: var(--la-link); font-weight: 700; cursor: pointer; padding: 8px 4px; }
.ti-main { min-height: 0; display: grid; grid-template-columns: 380px 1fr; }
.ti-list { min-height: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--la-border); }
.ti-filter { display: flex; gap: 4px; margin: 14px 16px; padding: 4px; border-radius: 14px; background: var(--la-grey-bg); }
.ti-filter button { flex: 1; height: 38px; white-space: nowrap; border: 0; border-radius: 10px; background: transparent; color: var(--la-muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.ti-filter button[aria-pressed="true"] { background: #fff; color: var(--la-navy); box-shadow: 0 1px 3px rgba(2,6,23,.08); }
.ti-filter .n { font-variant-numeric: tabular-nums; }
.ti-rows { list-style: none; margin: 0; padding: 0 8px 16px; overflow-y: auto; }
.ti-row { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; padding: 12px; border: 0; border-radius: 16px; background: none; text-align: left; cursor: pointer; color: inherit; }
.ti-row:hover { background: var(--la-brand-bg); }
.ti-row[aria-current="true"] { background: var(--la-brand-soft); }
.ti-av { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--la-grey-bg); color: var(--la-brand-dark); font-weight: 700; }
.ti-who { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.ti-who b { flex: none; max-width: 60%; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-src { min-width: 0; font-size: 12px; color: var(--la-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-prev { margin: 3px 0 0; font-size: 14px; line-height: 1.4; color: var(--la-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ti-row.is-open .ti-prev { color: var(--la-navy); font-weight: 500; }
.ti-right { display: grid; justify-items: end; gap: 6px; font-size: 12px; color: var(--la-muted); font-variant-numeric: tabular-nums; }
.ti-badge { padding: 2px 8px; border-radius: 999px; background: var(--la-navy); color: #fff; font-size: 11px; font-weight: 700; }
.ti-empty { margin: 40px 24px; text-align: center; color: var(--la-muted); font-size: 15px; line-height: 1.5; }
.ti-empty b { display: block; color: var(--la-navy); font-size: 17px; margin-bottom: 4px; }

.ti-thread { min-height: 0; display: grid; grid-template-rows: auto 1fr auto; background: var(--la-brand-bg); }
.ti-thead { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--la-border); }
.ti-back { display: none; width: 44px; height: 44px; border: 1px solid var(--la-border); border-radius: 14px; background: #fff; cursor: pointer; }
.ti-thead h2 { margin: 0; font-size: 18px; }
.ti-thead p { margin: 2px 0 0; font-size: 13px; color: var(--la-muted); }
.ti-msgs { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--la-disabled) transparent; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.ti-day { align-self: center; margin: 4px 0 8px; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--la-muted); }
.ti-m { max-width: min(560px, 80%); display: flex; flex-direction: column; }
.ti-m.is-user { align-self: flex-start; } .ti-m.is-team { align-self: flex-end; align-items: flex-end; }
.ti-m + .ti-m.gap { margin-top: 10px; }
.ti-b { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.is-user .ti-b { background: #fff; border: 1px solid var(--la-border); border-bottom-left-radius: 6px; }
.is-team .ti-b { background: var(--la-navy); color: #fff; border-bottom-right-radius: 6px; }
.ti-meta { margin: 4px 6px 0; font-size: 12px; color: var(--la-muted); }
.ti-card { background: #fff; border: 1px solid var(--la-border); border-radius: 18px; border-bottom-left-radius: 6px; overflow: hidden; }
.ti-card-top { padding: 8px 14px; background: var(--la-brand-soft); color: var(--la-brand-dark); font-size: 13px; font-weight: 700; }
.ti-card dl { margin: 0; padding: 12px 14px; display: grid; gap: 10px; }
.ti-card dt { font-size: 12px; color: var(--la-muted); } .ti-card dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.ti-reply { display: flex; gap: 10px; align-items: flex-end; padding: 12px 24px 16px; background: #fff; border-top: 1px solid var(--la-border); }
.ti-reply-box { flex: 1; display: grid; gap: 4px; }
.ti-reply-box small { font-size: 12px; color: var(--la-muted); }
.ti-reply textarea { width: 100%; min-height: 48px; max-height: 160px; resize: vertical; padding: 12px 14px; border: 1px solid var(--la-border); border-radius: var(--la-r-input); font-size: 15px; line-height: 1.4; }
.ti-reply textarea:focus { outline: none; border-color: var(--la-brand-dark); }
.ti-reply button { height: 48px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--la-navy); color: #fff; font-weight: 700; cursor: pointer; }
.ti-reply button:disabled { background: var(--la-disabled); cursor: default; }
.ti-none { display: grid; place-items: center; color: var(--la-muted); font-size: 15px; }


/* Mobiel: lijst óf gesprek */
@media (max-width: 760px) {
  .ti-main { grid-template-columns: 1fr; }
  .ti-app[data-view="thread"] .ti-list { display: none; }
  .ti-app[data-view="list"] .ti-thread { display: none; }
  .ti-back { display: grid; place-items: center; }
  .ti-thead, .ti-msgs, .ti-reply { padding-left: 16px; padding-right: 16px; }
  .ti-me span { display: none; }
}
