/* Feuerwehr edition · derived from messaging.css; layout unchanged, only blue-teal hues replaced. */
/* JF PORTAL — In-app messenger / Elternkommunikation */
.msg-home-prompt{display:flex;align-items:center;gap:18px;background:linear-gradient(115deg,#393a3c,#292a2c);border:1px solid #616264;border-radius:15px;padding:20px 24px;margin-top:26px}
.msg-home-icon{width:50px;height:50px;min-width:50px;display:grid;place-items:center;color:#d5d6d8;background:#414244;border:1px solid #8b8c8e;border-radius:12px}
.msg-home-prompt>div:nth-child(2){flex:1;min-width:0}
.msg-home-prompt strong{display:block;font-size:17px;letter-spacing:-.02em}
.msg-home-prompt p{color:#d2d3d5;font-size:12px;margin:6px 0 0}
.msg-home-prompt .btn{white-space:nowrap}
.msg-sidebar-badge{margin-left:auto;background:#ce5360;color:white;font-size:10px;font-weight:850;min-width:23px;height:23px;display:grid;place-items:center;border-radius:12px;padding:0 6px}
.msg-shell{display:grid;grid-template-columns:minmax(290px,350px) minmax(0,1fr);min-height:580px;height:min(740px,calc(100dvh - 208px));max-height:790px;overflow:hidden;border:1px solid #515254;border-radius:19px;background:#202123;box-shadow:0 22px 60px #0d0e1075}
.msg-list-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid #4a4b4d;background:linear-gradient(165deg,#27282a,#202123)}
.msg-list-head{display:flex;align-items:center;justify-content:space-between;padding:22px 22px 11px;gap:12px}
.msg-list-head h2{font-size:24px;margin:5px 0 0;color:#f1f2f4}
.msg-total{display:grid;place-items:center;width:31px;height:31px;border:1px solid #656668;color:#d4d5d7;border-radius:9px;font-weight:850;font-size:13px}
.msg-top-actions{display:flex;gap:8px;padding:6px 15px 14px;flex-wrap:wrap}
.msg-top-actions .btn{font-size:12px;padding:10px 12px;display:flex;align-items:center;gap:8px;min-height:41px;flex:1;white-space:nowrap}
.msg-top-actions svg{flex:none}
.msg-search-row{padding:0 15px 11px}
.msg-search-row input{width:100%;min-height:41px;border-radius:9px;background:#1d1e20;border:1px solid #565759;color:#edeef0;padding:9px 12px;font-size:12px}
.msg-search-row input::placeholder{color:#afb0b2}
.msg-filters{display:flex;gap:5px;padding:2px 15px 14px;border-bottom:1px solid #424345}
.msg-filters button{color:#b9babc;border:1px solid transparent;border-radius:7px;padding:7px 12px;font-size:11px;font-weight:750;background:transparent}
.msg-filters button:hover{background:#3a3b3d}
.msg-filters button.active{color:#f9fafc;background:#424345;border-color:#656668}
.msg-threadlist{overflow-y:auto;flex:1;min-height:0;scrollbar-color:#464749 transparent}
.msg-thread{border:0;border-bottom:1px solid #3f4042;background:transparent;color:#e6e7e9;width:100%;display:flex;align-items:flex-start;gap:11px;text-align:left;padding:16px 13px;cursor:pointer;min-width:0}
.msg-thread:hover{background:#363739}
.msg-thread.active{background:#3b3c3e;box-shadow:inset 3px 0 #959698}
.msg-avatar{width:44px;height:44px;min-width:44px;display:grid;place-items:center;border-radius:12px;color:#d5d6d8;background:linear-gradient(135deg,#464749,#363739);border:1px solid #656668}
.msg-avatar.group{background:linear-gradient(145deg,#4f5052,#3a3b3d);border-color:#6e6f71;color:#e0e1e3}
.msg-thread-description{display:grid;gap:4px;flex:1;min-width:0}
.msg-thread-description strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-thread-description>small{font-size:11px;color:#c9cacc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-thread-type{color:#969799;font-size:10px;margin-top:3px}
.msg-thread-side{display:flex;flex-direction:column;align-items:end;gap:8px;min-width:55px}
.msg-thread-side time{font-size:10px;color:#acadaf;white-space:nowrap}
.msg-unread{display:grid;place-items:center;background:#bb414d;border-radius:10px;color:#f9fafc;font-size:10px;font-weight:840;min-width:21px;height:21px;padding:0 5px}
.msg-empty-threadlist{display:grid;justify-items:center;gap:10px;padding:42px 20px;color:#969799;text-align:center}
.msg-empty-threadlist svg{width:35px;height:35px}
.msg-empty-threadlist p{font-size:14px;color:#e3e4e6;margin:0}
.msg-empty-threadlist small{font-size:12px;color:#969799;line-height:1.5}
.msg-chat-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse 450px 300px at 80% -10%,#323335 0,transparent 78%),#1d1e20}
.msg-empty-conversation{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:14px;padding:45px 25px}
.msg-empty-art{width:85px;height:85px;display:grid;place-items:center;border:1px solid #6c6d6f;background:linear-gradient(145deg,#454648,#2a2b2d);border-radius:24px;color:#d6d7d9;box-shadow:0 24px 50px #090a0c55,inset 3px 3px 12px #f9fafc23;transform:perspective(500px) rotateY(-12deg) rotateX(8deg)}
.msg-empty-art svg{width:39px;height:39px}
.msg-empty-conversation h2{font-size:27px;margin:0;color:#f1f2f4}
.msg-empty-conversation p{font-size:13px;color:#c2c3c5;max-width:420px;line-height:1.8}
.msg-chat-header{display:flex;align-items:center;gap:12px;padding:14px 18px;background:#2b2c2eb8;border-bottom:1px solid #4f5052;min-height:76px;flex:none}
.msg-chat-header .msg-avatar{width:41px;height:41px;min-width:41px}
.msg-header-main{flex:1;min-width:0}
.msg-header-main strong{font-size:16px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-header-main span{color:#bcbdbf;font-size:11px;display:block;margin-top:4px}
.msg-header-tools{display:flex;align-items:center;gap:6px}
.msg-icon-button{display:grid;place-items:center;border:1px solid #5d5e60;background:#38393b;color:#e5e6e8;border-radius:9px;width:36px;height:36px}
.msg-icon-button:hover{background:#4a4b4d}
.msg-mobile-back{display:none}
.msg-timeline{flex:1;min-height:0;overflow-y:auto;padding:22px 24px;display:flex;flex-direction:column;gap:12px;scrollbar-color:#47484a transparent}
.msg-bubble-row{display:flex;width:100%}
.msg-bubble-row.mine{justify-content:flex-end}
.msg-bubble-row.theirs{justify-content:flex-start}
.msg-bubble{max-width:min(81%,520px);padding:12px 15px 9px;border:1px solid #595a5c;border-radius:14px 14px 14px 4px;background:#353638;color:#f1f2f4;box-shadow:0 6px 16px #090a0c24}
.msg-bubble-row.mine .msg-bubble{background:linear-gradient(135deg,#464749,#3c3d3f);border-color:#919294;border-radius:14px 14px 4px 14px}
.msg-bubble-name{font-size:11px;color:#c4c5c7;font-weight:830;margin-bottom:5px}
.msg-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;margin:0}
.msg-bubble-time{display:block;font-size:10px;color:#c2c3c5;text-align:right;margin-top:7px}
.msg-no-messages{display:grid;justify-items:center;align-content:center;gap:11px;flex:1;color:#b4b5b7;text-align:center}
.msg-no-messages p{font-size:13px;color:#b7b8ba}
.msg-compose{display:flex;gap:12px;align-items:end;padding:14px 18px;border-top:1px solid #4a4b4d;background:#28292b;flex:none}
.msg-compose textarea{background:#1e1f21;border:1px solid #606163;border-radius:11px;color:#f1f2f4;min-height:51px;max-height:142px;resize:vertical;padding:13px 14px;flex:1;line-height:1.5;font-size:13px;min-width:0}
.msg-compose textarea::placeholder{color:#969799}
.msg-compose .btn{min-height:51px;display:flex;gap:9px;align-items:center;justify-content:center;padding:0 18px;white-space:nowrap}
.msg-compose-disabled{padding:23px 18px;text-align:center;color:#bcbdbf;border-top:1px solid #4e4f51;font-size:13px;background:#28292b}
.msg-privacy-note{display:flex;gap:10px;align-items:flex-start;color:#b1b2b4;font-size:11px;line-height:1.7;margin:18px 0}
.msg-privacy-note svg{flex:none;color:#babbbd}
.msg-poll-card{align-self:center;width:min(100%,620px);background:linear-gradient(140deg,#353638,#2b2c2e);border:1px solid #67686a;border-radius:15px;padding:20px 22px;margin:12px 0;box-shadow:0 9px 28px #090a0c44}
.msg-poll-label{display:flex;gap:9px;align-items:center;color:#eeaea4;font-size:10px;letter-spacing:.11em;font-weight:880}
.msg-poll-label svg{width:16px;height:16px}
.msg-poll-card h3{font-size:17px;line-height:1.4;color:#f1f2f4;margin:13px 0}
.msg-poll-choices{display:grid;gap:9px}
.msg-poll-choice{display:flex;align-items:center;gap:10px;text-align:left;position:relative;border:1px solid #616264;background:#2e2f31;color:#ecedef;border-radius:9px;padding:12px 13px;overflow:hidden;font-size:12px;min-height:43px}
.msg-poll-choice:not(:disabled):hover{background:#454648;border-color:#bfc0c2}
.msg-poll-choice.selected{border-color:#82c7a9;background:#265242}
.msg-poll-choice:disabled{cursor:default;opacity:.93}
.msg-poll-fill{position:absolute;inset:0 auto 0 0;background:#91929426;pointer-events:none;border-radius:9px}
.msg-poll-option{z-index:1;flex:1}
.msg-poll-count{z-index:1;color:#e59499;font-size:10px;white-space:nowrap}
.msg-poll-foot{margin-top:13px;color:#bfc0c2;font-size:10px;line-height:1.6}
.msg-recipient-fieldset{border:1px solid #505153;padding:14px;border-radius:11px;display:grid;gap:5px;max-height:260px;overflow-y:auto}
.msg-recipient-fieldset legend{font-weight:790;font-size:12px;padding:0 8px}
.msg-recipient-option{display:flex;align-items:center;gap:12px;padding:10px 11px;border:1px solid #48494b;background:#323335;border-radius:9px;cursor:pointer}
.msg-recipient-option input{width:17px;height:17px;accent-color:#ce6771}
.msg-recipient-option span{display:grid;gap:3px}
.msg-recipient-option b{font-size:12px}
.msg-recipient-option small{font-size:10px;color:#b5b6b8}
.msg-group-management{border-top:1px solid #4e4f51;padding-top:16px;margin-top:22px}
.msg-group-management h3{font-size:16px}
.msg-managed-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #444547}
.msg-managed-person b,.msg-managed-person small{display:block}
.msg-managed-person b{font-size:13px}
.msg-managed-person small{font-size:11px;color:#b8b9bb;margin-top:3px}
.msg-founder{font-size:10px;color:#aad6c4}
.msg-add-member{display:flex;align-items:end;gap:11px;margin-top:19px;flex-wrap:wrap}
.msg-add-member .field{flex:1;min-width:190px}
.msg-add-member .btn{min-height:45px}
@media(max-width:1080px){.msg-shell{grid-template-columns:minmax(260px,310px) minmax(0,1fr)}}
@media(max-width:1030px){.p-bottom-nav{grid-template-columns:repeat(5,1fr)}}
@media(max-width:740px){
 .msg-shell{display:flex;flex-direction:column;height:min(690px,calc(100dvh - 240px));min-height:430px;border-radius:14px}
 .msg-list-panel{flex:1;min-height:0;border-right:0}
 .msg-chat-panel{display:none}
 .msg-shell.msg-has-selection .msg-list-panel{display:none}
 .msg-shell.msg-has-selection .msg-chat-panel{display:flex;flex:1;min-height:0}
 .msg-chat-header{min-height:69px;padding:11px 12px;gap:9px}
 .msg-mobile-back{display:grid;place-items:center;transform:rotate(180deg);border:1px solid #5d5e60;background:#3a3b3d;color:#eaebed;border-radius:8px;width:34px;height:34px;min-width:34px}
 .msg-chat-header .msg-avatar{width:35px;height:35px;min-width:35px}
 .msg-header-main strong{font-size:13px}
 .msg-header-main span{font-size:10px}
 .msg-icon-button{width:31px;height:31px}
 .msg-icon-button svg{width:17px;height:17px}
 .msg-timeline{padding:14px 11px;gap:10px}
 .msg-bubble{max-width:90%;padding:10px 12px}
 .msg-compose{padding:10px;gap:7px}
 .msg-compose textarea{padding:11px;min-height:48px}
 .msg-compose .btn{min-height:48px;padding:0 13px}
 .msg-compose .btn span{display:none}
 .msg-poll-card{padding:16px 14px}
 .msg-privacy-note{font-size:10px}
 .msg-home-prompt{flex-direction:column;align-items:flex-start}
 .msg-home-prompt .btn{width:100%}
 .msg-privacy-note{margin-bottom:72px}
}
@media(max-width:430px){
 .msg-shell{height:min(680px,calc(100dvh - 228px))}
 .msg-top-actions .btn{padding:9px 8px;font-size:11px}
 .msg-thread{padding:13px 11px}
 .msg-thread-description strong{font-size:12px}
 .msg-thread-side{min-width:46px}
 .msg-thread-side time{font-size:9px}
 .msg-list-head{padding:16px 16px 9px}
 .msg-bubble p{font-size:12px}
 .p-bottom-tab{font-size:9px}
}

.msg-close-poll{display:inline-flex;margin:8px 0 0 8px;background:#404143;border:1px solid #6f7072;color:#e9eaec;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:780}.msg-close-poll:hover{background:#4f5052}
