/* FLIQ Prep – Huddle (Gespräche). Nur Layout; Farben, Knöpfe, Felder und Popup-Kopf kommen aus prep-tokens.css / prep-design.css. */

/* Symbol oben: gleicher Knopf wie das Benutzermenü, Zahl in Prep-Grün wie aktive Filter */
html[data-prep-ui]:root:not(#_) .topbar .prep-messages-button{position:relative;padding:0 10px!important;min-width:44px;justify-content:center}
html[data-prep-ui]:root:not(#_) .topbar .prep-messages-button svg{flex:none}
.prep-messages-count,.prep-chat-unread{min-width:17px;height:17px;padding:0 5px;border-radius:9px;display:inline-grid;place-items:center;box-sizing:border-box;
  background:var(--prep-green-fill);color:var(--prep-on-green);font-size:10.5px;font-weight:700;line-height:1}
.prep-messages-count{position:absolute;top:3px;right:3px;pointer-events:none}
.prep-messages-count[hidden]{display:none}
.prep-chat-unread{flex:none;min-width:22px;height:18px;border-radius:999px;font-size:11px;font-variant-numeric:tabular-nums}

/* Kurzübersicht (nur Desktop): Aufbau wie das Benutzermenü (.topbar-menu) */
.prep-messages-anchor{position:relative;display:flex}
.prep-messages-anchor[hidden]{display:none}
html:root:not(#_) .topbar .prep-messages-menu{left:auto;right:0;width:360px;min-width:360px}
html:root:not(#_):not(#__) header.topbar .prep-messages-menu>button.prep-messages-menu-item{display:flex!important;justify-content:stretch!important;align-items:center;gap:10px;text-align:start;background:transparent!important;color:var(--prep-text)!important;min-height:52px!important}
html:root:not(#_):not(#__) header.topbar .prep-messages-menu>button.prep-messages-menu-item:is(:hover,:focus-visible){background:var(--prep-hover)!important}
.prep-messages-menu-note{margin:4px 12px 8px;font-size:13px;color:var(--prep-text3)}
.prep-messages-menu-actions{display:flex;gap:8px;padding:4px 4px 2px}
html:root:not(#_) .topbar .prep-messages-menu-actions>.button{flex:1;justify-content:center;min-height:36px;width:auto}

/* Kürzel: abgerundete Quadrate wie Prep-Kennzeichen, keine Messenger-Kreise */
.prep-chat-avatar{flex:none;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--prep-raised);border:1px solid var(--prep-line);box-sizing:border-box;color:var(--prep-text2);font-size:12.5px;font-weight:650;letter-spacing:.03em}
.prep-chat-avatar[data-kind=group],.prep-chat-avatar[data-kind=team]{color:var(--prep-text)}
.prep-chat-avatar.is-small{width:30px;height:30px;border-radius:8px;font-size:11px}
.prep-chat-avatar.is-tiny{width:26px;height:26px;border-radius:7px;font-size:11px;letter-spacing:0}
.prep-chat-avatar.is-action{background:var(--prep-green-fill);border-color:var(--prep-green-fill);color:var(--prep-on-green)}

/* Fenster: Desktop rechte Seitenleiste, Handy Vollbild */
html:root:not(#_) dialog.prep-messages-dialog{--dx:0px;width:min(960px,calc(100vw - 24px));height:min(760px,calc(100dvh - 24px));max-height:none;margin:12px 12px 12px auto;overflow:hidden!important;}
html:root:not(#_):not(#__) dialog.prep-messages-dialog>.prep-messages-shell{display:flex;flex-direction:column;height:100%;padding:0!important}
html:root:not(#_):not(#__) dialog.prep-messages-dialog .dialog-heading{margin:0!important;padding:12px 12px 12px 20px!important}
.prep-messages-status{margin:0;padding:8px 20px;font-size:13px;border-bottom:1px solid var(--prep-line)}
.prep-messages-status[hidden]{display:none}
.prep-messages-status[data-kind=error]{color:var(--prep-bad,#f87171)}
.prep-messages-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr)}
.prep-messages-pane{min-height:0;display:flex;flex-direction:column}
.prep-messages-threads{border-right:1px solid var(--prep-line);background:var(--prep-bg2)}
.prep-messages-list-actions{display:flex;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--prep-line)}
html:root:not(#_) .prep-chat-new{flex:none;width:var(--prep-control-h);min-width:var(--prep-control-h);justify-content:center}
.prep-chat-search{position:relative;display:flex;align-items:center;flex:1;min-width:0}
.prep-chat-search>span{position:absolute;left:10px;display:flex;color:var(--prep-text3);pointer-events:none;z-index:1}

/* Chatliste */
.prep-messages-list{list-style:none;margin:0;padding:6px;display:grid;gap:2px;overflow:auto;flex:1;align-content:start}
.prep-messages-list:empty{display:none}
.prep-messages-row{all:unset;position:relative;box-sizing:border-box;width:100%;min-height:56px;padding:8px 10px 8px 12px;border-radius:8px;display:flex;align-items:center;gap:10px;cursor:pointer;color:var(--prep-text)}
.prep-messages-row[data-unread=true]::before{content:"";position:absolute;left:2px;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--prep-green-fill)}
.prep-messages-row.is-plain{min-height:44px}
.prep-messages-row:hover{background:var(--prep-hover)}
.prep-messages-row:focus-visible{outline:2px solid var(--prep-accent);outline-offset:-2px}
.prep-messages-row[aria-current=true]{background:var(--prep-surface);box-shadow:inset 0 0 0 1px var(--prep-line)}
.prep-chat-row-main{flex:1;min-width:0;display:grid;gap:3px}
.prep-messages-row-head{display:flex;gap:8px;align-items:center;justify-content:space-between;min-width:0}
.prep-messages-row-title{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prep-messages-row[data-unread=true] .prep-messages-row-title{font-weight:750}
.prep-messages-row time{flex:none;font-size:11.5px;color:var(--prep-text3)}
.prep-messages-row[data-unread=true] time{color:var(--prep-text);font-weight:600}
.prep-messages-row-preview{flex:1;min-width:0;font-size:12.5px;color:var(--prep-text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prep-messages-empty,.prep-messages-placeholder{margin:16px 20px;font-size:13px;color:var(--prep-text3);list-style:none}
.prep-messages-empty{flex:1}
.prep-messages-placeholder{margin:auto;text-align:center;max-width:32ch}

/* Push */
.prep-messages-push{padding:10px 14px 12px;border-top:1px solid var(--prep-line);display:grid;gap:4px}
.prep-messages-push[hidden]{display:none}
.prep-messages-push-row{display:flex!important;align-items:center;gap:10px;min-height:44px;font-size:13px;cursor:pointer}
.prep-messages-push small{font-size:11.5px;color:var(--prep-text3)}
html[data-prep-ui]:root:not(#_):not(#__) :is(.prep-messages-push,.prep-chat-check) input[type=checkbox]{flex:none;width:18px!important;height:18px!important;min-width:18px!important;min-height:0!important;margin:0!important;padding:0!important;accent-color:var(--prep-green-fill)}

/* Gesprächskopf: Titel mit Etiketten wie auf den Einheitenkarten */
.prep-messages-thread-head{display:flex;align-items:center;gap:10px;padding:8px 16px;min-height:58px;box-sizing:border-box;border-bottom:1px solid var(--prep-line)}
.prep-chat-head-text{min-width:0}
.prep-chat-head-text h3{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.prep-chat-head-text .supporting{margin:2px 0 0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prep-chat-tags{display:inline-flex;gap:4px;flex-wrap:wrap}
.prep-chat-tag{display:inline-flex;align-items:center;border:1px solid var(--prep-line);letter-spacing:.02em;color:var(--prep-text2)}
.prep-chat-head-button{all:unset;box-sizing:border-box;min-width:0;flex:1;padding:4px 8px;margin:-4px -8px;border-radius:8px;cursor:pointer}
.prep-chat-head-button:hover{background:var(--prep-hover)}
.prep-chat-head-button:focus-visible{outline:2px solid var(--prep-accent)}
.prep-messages-back{display:none!important}
.prep-messages-back.is-visible{display:inline-flex!important;width:36px;min-width:36px;padding:0!important;justify-content:center}

/* Nachrichten als Protokoll: bündig untereinander, Kopfzeile mit Kürzel, Name, Rolle, Uhrzeit */
.prep-messages-log{list-style:none;margin:0;padding:8px 20px 18px;display:flex;flex-direction:column;overflow:auto;flex:1;min-height:0;background:var(--prep-surface)}
.prep-chat-day{display:flex;align-items:center;gap:10px;margin:16px 0 4px;font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--prep-text3)}
.prep-chat-day::after{content:"";flex:1;height:1px;background:var(--prep-line)}
.prep-messages-item{position:relative;display:grid;gap:4px;padding:10px 0 2px}
.prep-messages-item[data-continued=true]{padding-top:2px}
.prep-chat-entry-head{display:flex;align-items:center;gap:8px;min-width:0}
.prep-messages-sender{font-size:13px;font-weight:650;color:var(--prep-text)}
.prep-chat-role{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;background:var(--prep-raised);font-size:11px;font-weight:650;letter-spacing:.03em;color:var(--prep-text2)}
.prep-chat-time{font-size:11.5px;color:var(--prep-text3);font-variant-numeric:tabular-nums}
.prep-chat-gutter-time{position:absolute;left:-4px;top:5px;width:34px;font-size:11px;color:var(--prep-text3);opacity:0;transition:opacity .12s;font-variant-numeric:tabular-nums}
.prep-messages-item[data-continued=true]:hover .prep-chat-gutter-time{opacity:1}
.prep-chat-bubble-row{display:flex;align-items:flex-start;gap:4px;min-width:0;padding-left:34px}
.prep-messages-bubble{flex:1;min-width:0;max-width:680px;padding:1px 0 1px 12px;border-left:2px solid var(--prep-line);font-size:13.5px;line-height:1.5;display:grid;gap:6px;overflow-wrap:anywhere;color:var(--prep-text)}
.prep-messages-item[data-own=true] .prep-messages-bubble{border-left-color:var(--prep-green-fill)}
.prep-messages-bubble.is-deleted{font-style:italic;color:var(--prep-text3)}
.prep-messages-text{white-space:pre-wrap}
.prep-messages-text a{color:inherit;text-decoration:underline}
.prep-messages-reply{font-size:12px;color:var(--prep-text3)}
html:root:not(#_) .prep-chat-more{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--prep-text3)!important;opacity:0;transition:opacity .12s}
.prep-messages-item:is(:hover,:focus-within) .prep-chat-more{opacity:1}
@media (hover:none){html:root:not(#_) .prep-chat-more{opacity:.7;margin-block:-6px}}
.prep-messages-files{display:flex;flex-wrap:wrap;gap:8px}
.prep-messages-image img{display:block;max-width:260px;max-height:200px;border-radius:8px;border:1px solid var(--prep-line);object-fit:cover}
.prep-messages-file,.prep-messages-ref{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:44px;max-width:360px;padding:6px 12px;border:1px solid var(--prep-line);border-radius:10px;background:var(--prep-bg2);cursor:pointer;font-size:12.5px;color:var(--prep-text)}
.prep-messages-file:hover,.prep-messages-ref:hover{background-image:linear-gradient(var(--prep-hover),var(--prep-hover))}
.prep-messages-file.is-expired,.prep-messages-file.is-expired:hover{text-decoration:none;cursor:default;color:var(--prep-text2);background-image:none}
.prep-messages-file:focus-visible,.prep-messages-ref:focus-visible{outline:2px solid var(--prep-accent);outline-offset:1px}
.prep-messages-ref>span:last-child{display:grid}
.prep-messages-ref small{color:var(--prep-text3);font-size:11.5px}
.prep-messages-ref.is-unavailable{cursor:default;color:var(--prep-text3);font-style:italic}

/* Eingabe */
.prep-messages-compose{border-top:1px solid var(--prep-line);background:var(--prep-bg2);padding:10px 16px 12px;display:grid;gap:6px}
.prep-messages-input{display:flex;gap:4px;align-items:flex-end}
html:root:not(#_):not(#__) .prep-messages-compose textarea{flex:1;height:var(--prep-control-h);max-height:160px;resize:none;overflow-y:hidden;width:auto!important;}
html:root:not(#_) .prep-messages-input>.button.quiet{width:var(--prep-control-h);min-width:var(--prep-control-h);padding:0!important;justify-content:center;flex:none}
html:root:not(#_) .prep-messages-send{flex:none;gap:6px}
.prep-messages-chips{display:flex;flex-wrap:wrap;gap:6px}
.prep-messages-chips[hidden]{display:none}
.prep-messages-chip{display:inline-flex;align-items:center;gap:4px}
html:root:not(#_) .prep-messages-chip .icon-button{width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent}
.prep-messages-hint{margin:0;font-size:12px;color:var(--prep-text3)}
.prep-messages-error{margin:0;font-size:12.5px;color:var(--prep-bad,#f87171)}
.prep-messages-error[hidden]{display:none}
.prep-messages-readonly{margin:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--prep-line);background:var(--prep-bg2);font-size:13px;color:var(--prep-text3)}

html:root:not(#_) .prep-messages-readonly>.button{flex:none;white-space:nowrap}

/* Neues Gespräch, Gruppe anlegen, Gruppeninfo */
.prep-chat-picker{display:flex;flex-direction:column;gap:8px;padding:12px;min-height:0;flex:1}
.prep-chat-picker .prep-messages-list{padding:0}
.prep-chat-picker>.prep-chat-search{flex:none}
.prep-chat-scroll{flex:1;min-height:0;overflow:auto}
.prep-chat-form{display:grid;gap:12px;padding:16px;max-width:560px}
.prep-messages-field{display:grid;gap:4px;min-width:0}
.prep-messages-field>span:first-child{font-size:12px;font-weight:600;color:var(--prep-text3)}
.prep-chat-section-head{display:flex;align-items:center;justify-content:space-between;margin-top:4px;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--prep-text3)}
.prep-chat-checklist{display:grid;gap:2px}
.prep-chat-check{display:flex!important;align-items:center;gap:10px;min-height:44px;margin:0;padding:4px 8px;border-radius:8px;cursor:pointer;font-size:13.5px}
.prep-chat-check:hover{background:var(--prep-hover)}
.prep-chat-check.is-disabled{opacity:.45;cursor:not-allowed}
.prep-chat-check.is-disabled:hover{background:none}
.prep-chat-switch{align-items:flex-start;margin-top:8px;padding-top:10px}
.prep-chat-switch>span{display:grid;gap:2px}
.prep-chat-switch small{font-size:12px;color:var(--prep-text3)}
.prep-chat-members{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.prep-chat-members li{display:flex;align-items:center;gap:10px;min-height:44px;padding:2px 8px;border-radius:8px}
.prep-chat-members li.is-removed{opacity:.5;text-decoration:line-through}
.prep-chat-member-name{flex:1;display:grid;font-size:13.5px}
.prep-chat-member-name small{font-size:11.5px;color:var(--prep-text3)}
.prep-chat-form-actions{display:flex;justify-content:flex-end}

/* Verweis-Auswahl */
html:root:not(#_) dialog.prep-messages-picker{width:min(460px,calc(100vw - 24px))}
html:root:not(#_) dialog.prep-messages-picker .prep-messages-list{max-height:60dvh;padding:0 0 4px}

/* Handy: Vollbild, erst Liste, dann Chat */
@media (max-width:760px){
  html:root:not(#_) dialog.prep-messages-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;}
  .prep-messages-body{grid-template-columns:minmax(0,1fr)}
  .prep-messages-body[data-view=list] .prep-messages-thread,.prep-messages-body[data-view=thread] .prep-messages-threads{display:none}
  .prep-messages-threads{border-right:0}
  .prep-messages-back{display:inline-flex!important;width:36px;min-width:36px;padding:0!important;justify-content:center}
  .prep-messages-thread-head{padding:6px 10px}
  .prep-messages-log{padding:4px 12px 14px}
  .prep-chat-bubble-row{padding-left:0}
  .prep-messages-compose{padding-left:10px;padding-right:10px}
  .prep-messages-send>span{display:none}
  html:root:not(#_) .prep-messages-send{width:var(--prep-control-h);min-width:var(--prep-control-h);padding:0!important;justify-content:center}
  .prep-messages-compose{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .prep-chat-form{padding:12px}
}

/* ===== Benachrichtigungen (Glocke) – gleiche Bausteine wie Huddle ===== */
html:root:not(#_) .topbar .prep-notify-menu{width:400px;min-width:400px}
.prep-notify-scroll{display:grid;grid-auto-rows:max-content;gap:2px;max-height:min(60vh,520px);overflow:auto;align-content:start}
html:root:not(#_):not(#__) header.topbar .prep-notify-menu .prep-notify-row{display:flex!important;justify-content:stretch!important;align-items:flex-start;gap:10px;text-align:start;background:transparent!important;color:var(--prep-text)!important;min-height:56px!important;height:auto!important;white-space:normal}
html:root:not(#_):not(#__) header.topbar .prep-notify-menu .prep-notify-row:is(:hover,:focus-visible){background:var(--prep-hover)!important}
.prep-notify-row{align-items:flex-start!important}
.prep-notify-icon{color:var(--prep-text2)}
.prep-notify-icon[data-category=checkin_warning],.prep-notify-icon[data-category=absence]{color:var(--prep-text)}
.prep-notify-body{display:flex;align-items:baseline;gap:6px;min-width:0}
.prep-notify-row .prep-messages-row-preview{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prep-notify-row[data-unread=true] .prep-messages-row-preview{color:var(--prep-text)}
.prep-chat-tag.is-warning{flex:none;border-color:color-mix(in srgb,var(--prep-warn,#f59e0b) 60%,var(--prep-line));color:var(--prep-text)}
.prep-notify-dialog-list{flex:1;max-height:none;padding:8px}
.prep-notify-dialog-actions{border-top:1px solid var(--prep-line);padding:10px 12px max(12px,env(safe-area-inset-bottom));background:var(--prep-bg2)}
html:root:not(#_) dialog.prep-notify-settings{width:min(560px,calc(100vw - 24px))}
.prep-notify-device{margin:0 0 8px}
html[data-prep-ui]:root:not(#_):not(#__) .prep-notify-table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;font-size:13.5px}
.prep-notify-table col.is-switch,.prep-notify-table thead th:not(:first-child){width:84px}
.prep-notify-table th,.prep-notify-table td{padding:10px 6px;border-bottom:1px solid var(--prep-line);text-align:start}
.prep-notify-table thead th{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--prep-text3)}
.prep-notify-table td{width:72px;text-align:center}
.prep-notify-table thead th:not(:first-child){text-align:center}
.prep-notify-table tbody th{font-weight:500;background:none;padding-inline-end:10px}
.prep-notify-table tbody tr:last-child>*{border-bottom:0}
.prep-notify-table td:has(>.prep-notify-cell){padding:0}
.prep-notify-cell{display:flex!important;align-items:center;justify-content:center;min-height:44px;height:100%;margin:0;cursor:pointer}
@media (max-width:420px){.prep-notify-table col.is-switch,.prep-notify-table thead th:not(:first-child){width:68px}.prep-notify-table thead th{letter-spacing:.03em}.prep-notify-table tbody th{overflow-wrap:break-word}}
html[data-prep-ui]:root:not(#_):not(#__) .prep-notify-table input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:var(--prep-green-fill)}
.prep-notify-hint{display:block;margin-top:2px;font-size:11.5px;font-weight:400;color:var(--prep-text3)}
.prep-notify-na{color:var(--prep-text3)}

/* ===== Aufwertung 24.11.: Leerzustände, Laden, Neu-Linie, Sofort-Senden, Bildansicht, Übergänge ===== */
.prep-chat-empty{display:grid;justify-items:center;gap:10px;margin:auto;padding:24px 16px;text-align:center;max-width:34ch}
.prep-chat-empty p{margin:0;font-size:13px;line-height:1.5;color:var(--prep-text2)}
.prep-chat-empty-icon{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;background:var(--prep-raised);border:1px solid var(--prep-line);color:var(--prep-text2)}
.prep-chat-empty-hint{margin:12px 16px;font-size:13px;color:var(--prep-text3)}
.prep-messages-placeholder{display:flex;flex:1;margin:0!important;max-width:none!important}
.prep-messages-empty{display:flex}
.prep-messages-empty[hidden]{display:none}
.prep-chat-empty-log{list-style:none;display:flex;flex:1}
html:root:not(#_):not(#__) .prep-chat-push-link{width:100%;justify-content:flex-start;padding:0 4px!important;box-shadow:none!important;text-decoration:underline;text-underline-offset:3px}
html:root:not(#_):not(#__) .prep-chat-push-link:hover{color:var(--prep-text)!important}

.prep-skeleton{display:flex;align-items:center;gap:10px;padding:10px 12px}
.prep-skeleton-box{flex:none;width:34px;height:34px;border-radius:9px;background:var(--prep-raised)}
.prep-skeleton-lines{flex:1;display:grid;gap:7px}
.prep-skeleton-lines span{display:block;height:9px;border-radius:5px;background:var(--prep-raised)}
.prep-skeleton-lines span:last-child{width:60%}
.prep-skeleton-entry .prep-skeleton-box{width:26px;height:26px;border-radius:7px}
.prep-skeleton-head{border-bottom:1px solid var(--prep-line)}
.prep-skeleton-head .prep-skeleton{padding:0;flex:1}
@media (prefers-reduced-motion:no-preference){
  .prep-skeleton-box,.prep-skeleton-lines span{animation:prep-skeleton-pulse 1.2s ease-in-out infinite}
}
@keyframes prep-skeleton-pulse{50%{opacity:.45}}

.prep-chat-new-line{display:flex;align-items:center;gap:10px;margin:14px 0 2px;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--prep-text)}
.prep-chat-new-line::before,.prep-chat-new-line::after{content:"";flex:1;height:2px;border-radius:1px;background:var(--prep-green-fill)}
.prep-chat-new-line::before{flex:0 0 12px}

.prep-messages-item.is-pending{opacity:.6}
.prep-messages-item.is-failed{opacity:1}
.prep-messages-item.is-failed .prep-messages-bubble{border-left-color:var(--prep-bad,#f87171)}
.prep-messages-item.is-failed .prep-chat-pending-label{color:var(--prep-bad,#f87171);font-weight:650}
.prep-chat-lock{display:flex;align-items:center;gap:6px}
.prep-chat-lock>span{display:flex}

html:root:not(#_) dialog.prep-chat-viewer{width:min(980px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.prep-chat-viewer-image{display:grid;place-items:center;max-height:calc(100dvh - 220px);overflow:auto;background:var(--prep-bg);border-radius:10px}
.prep-chat-viewer-image img{display:block;max-width:100%;max-height:calc(100dvh - 240px);object-fit:contain}
.prep-messages-image{cursor:zoom-in}

.prep-notify-group{margin:10px 12px 2px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--prep-text3)}
.prep-notify-group:first-child{margin-top:2px}
.prep-notify-empty{margin:8px auto}
.prep-notify-menu .prep-chat-empty{padding:16px 12px}

@media (prefers-reduced-motion:no-preference){
  html:root:not(#_) dialog.prep-messages-dialog[open]{animation:prep-drawer-in .2s ease-out}
  html:root:not(#_) .prep-messages-menu:not([hidden]){animation:prep-menu-in .14s ease-out}
  .prep-messages-item.is-pending{animation:prep-menu-in .16s ease-out}
  .prep-chat-new-line{animation:prep-fade-in .3s ease-out}
  @media (max-width:760px){
    .prep-messages-body[data-view=thread] .prep-messages-thread{animation:prep-slide-in .2s ease-out}
    .prep-messages-body[data-view=list] .prep-messages-threads{animation:prep-slide-back .18s ease-out}
    html:root:not(#_) dialog.prep-messages-dialog[open]{animation:prep-sheet-in .22s ease-out}
  }
}
@keyframes prep-drawer-in{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes prep-sheet-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes prep-slide-in{from{opacity:.4;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes prep-slide-back{from{opacity:.4;transform:translateX(-20px)}to{opacity:1;transform:none}}
@keyframes prep-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes prep-fade-in{from{opacity:0}to{opacity:1}}
.prep-chat-reply{min-height:44px}
