.wm-thread-identity{flex:1;min-width:0}
#wmThreadContext{font-size:12px;margin-top:4px;line-height:1.45;color:var(--wm-muted);overflow-wrap:anywhere}
#wmComposeHint{font-size:11px;color:var(--wm-muted);margin-top:8px;line-height:1.5}
#wmDone,#wmDoneConfirm button{border:1px solid #d1afb6;border-radius:8px;padding:8px 10px;color:#81001A;background:#fff;font:inherit;font-size:11px;cursor:pointer}
#wmDoneConfirm{padding:12px 16px;background:#fff3ed;color:#572b31;font-size:12px;line-height:1.6}
#wmDoneConfirm[hidden]{display:none}
#wmDone[hidden]{display:none}
.wm-assignment[hidden]{display:none}
#wmDoneConfirm button{margin:6px 5px 0 0}
#wmDoneConfirm #wmDoneApprove{background:#81001A;color:#fff}
#wmDoneError{display:block;color:#b91c1c}
.wm-tag.wm-suggestion{white-space:normal;text-align:left}
body.dark-mode #wmDone,body.dark-mode #wmDoneConfirm button{background:#35212a;color:#f7dce3;border-color:#69414d}
body.dark-mode #wmDoneConfirm{background:#35212a;color:#f7dce3}
.web-messages{--wm-ink:#321d25;--wm-muted:#876f76;--wm-line:#eadde0;--wm-soft:#fbf7f8;--wm-wine:#741d35;display:flex;min-height:560px;height:min(70vh,700px);background:#fff;color:var(--wm-ink);font-family:ui-sans-serif,system-ui,sans-serif;border:1px solid var(--wm-line);border-radius:14px;overflow:hidden}
.wm-list{width:320px;flex:0 0 320px;border-right:1px solid var(--wm-line);display:flex;flex-direction:column;background:var(--wm-soft)}.wm-item-menu{border:0;background:transparent;color:var(--wm-muted);font-size:18px;line-height:1;cursor:pointer;padding:0 8px;align-self:flex-start}.wm-item-open{display:flex;gap:10px;flex:1;border:0;background:transparent;text-align:left;cursor:pointer;padding:0;min-width:0;color:inherit}
.wm-toolbar{padding:14px;border-bottom:1px solid var(--wm-line);background:#fff}.wm-search{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d9c8cd;border-radius:9px;font:inherit;outline:none}.wm-search:focus,.wm-compose:focus{border-color:var(--wm-wine);box-shadow:0 0 0 3px rgba(116,29,53,.1)}
.wm-switches{display:flex;gap:5px;margin-top:10px}.wm-switches button,.wm-archive-link{border:1px solid var(--wm-line);background:#fff;color:var(--wm-muted);padding:7px 8px;border-radius:7px;font-size:12px;cursor:pointer}.wm-switches button.active{background:#f3e5e9;color:var(--wm-wine);border-color:#d7aeb9;font-weight:700}
.wm-items{overflow:auto;flex:1}.wm-item{position:relative;display:flex;gap:10px;padding:12px 13px;border:0;border-bottom:1px solid #f1e7e9;background:transparent;width:100%;text-align:left}.wm-item:hover,.wm-item.selected{background:#f5e9ec}.wm-avatar{width:38px;height:38px;flex:none;border-radius:50%;background:#ead6dc;color:var(--wm-wine);display:grid;place-items:center;font-weight:800;font-size:12px}.wm-item-main{min-width:0;flex:1}.wm-item-top,.wm-item-bottom{display:flex;justify-content:space-between;gap:8px}.wm-item-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wm-unread .wm-item-name{font-weight:800}.wm-preview{font-size:12px;color:var(--wm-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;flex:1}.wm-list-receipt{font-size:11px;color:var(--wm-muted);align-self:flex-end}.wm-list-receipt.read,.wm-receipt.read{color:#38a7ed}.wm-time{font-size:11px;color:var(--wm-muted);white-space:nowrap}.wm-count{background:var(--wm-wine);color:#fff;border-radius:20px;min-width:18px;text-align:center;font-size:10px;padding:2px 5px;font-weight:800}.wm-archive-link{margin:10px;text-align:center}.wm-error{padding:12px;color:#9f263d;background:#fff1f3;font-size:12px}.wm-connection{padding:6px 12px;background:#fff7df;border-bottom:1px solid #f2d28b;color:#7b5810;font-size:11px;text-align:center}.wm-retry{border:0;background:transparent;text-decoration:underline;color:inherit;cursor:pointer;font-weight:700}.wm-menu-popover{position:absolute;right:8px;top:34px;z-index:2;background:#fff;border:1px solid var(--wm-line);border-radius:8px;box-shadow:0 8px 24px rgba(50,29,37,.16);padding:4px}.wm-menu-popover button{display:block;border:0;background:transparent;color:var(--wm-ink);padding:8px 10px;text-align:left;white-space:nowrap;cursor:pointer}.wm-unread-banner{display:block;margin:0 auto 12px;border:1px solid #d7aeb9;background:#f3e5e9;color:var(--wm-wine);border-radius:16px;padding:6px 12px;font-size:11px;font-weight:800}
.wm-thread{display:flex;flex:1;min-width:0;flex-direction:column;background:#fff}.wm-thread-head{padding:13px 16px;border-bottom:1px solid var(--wm-line);display:flex;align-items:center;gap:10px}.wm-thread-name{font-weight:800;cursor:pointer}.wm-assignment{display:flex;align-items:center;gap:5px;margin-left:auto;color:var(--wm-muted);font-size:11px}.wm-assignment select{max-width:150px;border:1px solid var(--wm-line);border-radius:6px;padding:5px;background:#fff;color:var(--wm-ink);font:inherit}.wm-assignment #wmTrainerStatus{color:#b32645}.wm-back{display:none;border:0;background:transparent;color:var(--wm-wine);font-size:20px;cursor:pointer}.wm-messages{overflow:auto;flex:1;padding:18px 20px;background:linear-gradient(#fff,#fdfafb)}.wm-day{text-align:center;color:var(--wm-muted);font-size:11px;margin:12px}.wm-bubble-row{display:flex;margin:5px 0}.wm-bubble-row.out{justify-content:flex-end}.wm-bubble{max-width:min(70%,580px);padding:9px 12px;border-radius:13px 13px 13px 3px;background:#f2e8eb;font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.wm-bubble-row.out .wm-bubble{background:var(--wm-wine);color:#fff;border-radius:13px 13px 3px 13px}.wm-sender{font-size:10px;font-weight:700;color:#ead0d7;margin-bottom:3px}.wm-meta{font-size:10px;color:#9a8389;text-align:right;margin-top:4px}.wm-bubble-row.out .wm-meta{color:#ead0d7}.wm-link{color:inherit;text-decoration:underline}.wm-new{align-self:center;border:1px solid var(--wm-wine);background:#fff;color:var(--wm-wine);border-radius:18px;padding:7px 12px;cursor:pointer;font-weight:700}.wm-compose-wrap{border-top:1px solid var(--wm-line);padding:10px 14px;background:var(--wm-soft)}.wm-compose-row{display:flex;gap:8px}.wm-compose{flex:1;resize:none;max-height:140px;min-height:40px;border:1px solid #d9c8cd;border-radius:10px;padding:10px;font:inherit;line-height:1.4;box-sizing:border-box}.wm-send{border:0;border-radius:10px;background:var(--wm-wine);color:#fff;padding:0 17px;font-weight:800;cursor:pointer}.wm-send:disabled{opacity:.5;cursor:not-allowed}.wm-counter{font-size:11px;text-align:right;color:var(--wm-muted);margin-top:4px}.wm-counter.warn{color:#b32645}.wm-empty{padding:32px 18px;text-align:center;color:var(--wm-muted);font-size:13px}.wm-status{font-size:11px;margin-left:auto;color:var(--wm-muted)}.wm-status-retry{border:0;background:transparent;color:#b32645;text-decoration:underline;cursor:pointer;font:inherit}.wm-optimistic{opacity:.75}.wm-failed{border:1px solid #c4334b}.wm-retry-send{font-size:11px;color:#ffdbe2;background:transparent;border:0;text-decoration:underline;cursor:pointer}
@media(max-width:767px){.web-messages{height:calc(100dvh - 170px);min-height:460px}.wm-list{width:100%;flex-basis:100%;border-right:0}.wm-thread{display:none}.web-messages.wm-detail .wm-list{display:none}.web-messages.wm-detail .wm-thread{display:flex}.wm-back{display:block}.wm-bubble{max-width:84%}}

/* Trainer inbox: clear ownership, urgency and unread hierarchy */
.web-messages{
  --wm-ink:#302127;--wm-muted:#806e73;--wm-line:#eadfe2;--wm-soft:#faf6f7;
  --wm-wine:#81001A;--wm-wine-soft:#f7e9ed;--wm-chat:#f4efeb;
  box-shadow:0 12px 34px rgba(70,25,39,.08);
}
.wm-list{background:#fbf8f8;box-sizing:border-box;min-width:0;max-width:100%}
.wm-toolbar{padding:13px 14px 12px;background:#fff}
.wm-search{border-color:#dfd1d4;background:#fff;color:var(--wm-ink);transition:border-color .16s,box-shadow .16s}
.wm-search::placeholder{color:#9b898e}
.wm-search:focus,.wm-compose:focus{border-color:#81001A;box-shadow:0 0 0 3px rgba(129,0,26,.11)}
.wm-switches{gap:6px;align-items:center;flex-wrap:wrap}
.wm-switches button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 9px;border-color:transparent;background:transparent;color:#716066;font-weight:650;transition:background .16s,color .16s,border-color .16s}
.wm-switches button:hover,.wm-archive-link:hover{background:#f5edef;color:#81001A}
.wm-switches button.active{background:#81001A;border-color:#81001A;color:#fff}
.wm-switches button#wmScopeUnassigned.active{background:#f0eadf;border-color:#e5d7b9;color:#41351e}
#wmScopeUnassigned,#wmScopeMine,#wmScopeAll{white-space:nowrap}
#wmScopeUnassigned .wm-tab-count,#wmScopeMine .wm-tab-count,
#wmScopeUnassigned [id$="Count"],#wmScopeMine [id$="Count"]{
  display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:20px;
  background:#f0e8ea;color:#593641;font-size:10px;font-weight:800;line-height:1;
}
#wmScopeUnassigned .wm-tab-count,#wmScopeUnassigned.active .wm-tab-count{background:#c92d3b;color:#fff}
#wmScopeMine .wm-tab-count,#wmScopeMine.active .wm-tab-count{background:#A9F465;color:#25351a}
#wmScopeSummary{display:flex;align-items:center;gap:7px;margin:10px 0 0;padding:8px 10px;border:1px solid #eee3e5;border-radius:8px;background:#fcf8f8;color:#604b52;font-size:11px;line-height:1.4}
#wmScopeSummary:empty{display:none}
#wmScopeSummary strong{color:#81001A;font-weight:800}
#wmWaitingFilter{display:flex;align-items:center;gap:8px;margin:9px 0 0;padding:8px 10px;border:1px solid #e9dfe1;border-radius:8px;background:#fff;color:#54434a;font-size:12px;font-weight:650;cursor:pointer}
#wmWaitingFilter:hover{border-color:#c9a7b0;background:#fffafb}
#wmWaitingFilter input{width:15px;height:15px;margin:0;accent-color:#81001A}
.wm-items{scrollbar-color:#d6c4c9 transparent;scrollbar-width:thin;min-width:0;overflow-x:hidden}
.wm-item{box-sizing:border-box;min-width:0;gap:11px;min-height:72px;padding:12px 11px 11px 13px;border-bottom-color:#eee6e8;transition:background .14s}
.wm-item:hover{background:#f7edef}
.wm-item.selected{background:#f3e7ea;box-shadow:inset 3px 0 #81001A}
.wm-item-open{align-items:center}
.wm-avatar{width:40px;height:40px;background:#ead9de;color:#81001A}
.wm-item-name{font-size:13px;font-weight:700;color:#33252a}
.wm-time{font-size:10px}
.wm-preview{max-width:100%;font-size:11.5px;line-height:1.35;color:#807178}
.wm-unread{background:#fff}
.wm-unread::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:#A9F465}
.wm-unread .wm-item-name{font-weight:850;color:#26171c}
.wm-unread .wm-preview{font-weight:650;color:#49383e}
.wm-unread .wm-avatar{background:#81001A;color:#fff}
.wm-unread .wm-count{background:#A9F465;color:#26351c;min-width:20px;min-height:20px;display:inline-grid;place-items:center;padding:0 6px}
.wm-count{background:#81001A;color:#fff}
.wm-item-menu{align-self:center;border-radius:6px}
.wm-item-menu:hover{background:#eee2e5;color:#81001A}
.wm-tags{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:5px;min-width:0;max-width:100%}
.wm-tag{display:inline-flex;align-items:center;box-sizing:border-box;min-width:0;max-width:100%;min-height:18px;padding:2px 6px;border-radius:5px;background:#eee7e8;color:#5f4c52;font-size:9px;font-weight:750;line-height:1.2;letter-spacing:.015em;white-space:normal;overflow-wrap:anywhere}
.wm-tag.wm-waiting{background:#A9F465;color:#27351d}
.wm-tag.wm-overdue{background:#c92d3b;color:#fff}
.wm-tag.wm-resolver{background:#f0e8df;color:#543b2d}
.wm-tag.wm-suggestion{background:#f7ead0;color:#594117}
.wm-tag.wm-released{background:#e8efdf;color:#3c542f}
.wm-tag.wm-archived{background:#ece9e9;color:#625b5d}
.wm-tag.wm-preferred{background:#f4e5e9;color:#81001A}
.wm-tag.wm-for-you{background:#A9F465;color:#27351d}
.wm-thread{background:#fff}
.wm-thread-head{min-height:60px;padding:12px 16px;background:#fff}
/* Tablet na výšku (Erik 15. 10.): úzky panel stlačil meno a „Rieši:“ na stĺpec písmen; tlačidlá radšej zalomiť pod meno */
.wm-thread-head{flex-wrap:wrap;row-gap:8px}.wm-thread-identity{flex:1 1 200px;min-width:200px}#wmThreadContext{overflow-wrap:break-word}
.wm-thread-name{color:#34232a}
.wm-messages{background-color:#f7f3f0;background-image:radial-gradient(rgba(94,64,70,.055) .7px,transparent .7px);background-size:14px 14px}
.wm-bubble{background:#fff;border:1px solid rgba(90,61,67,.06);box-shadow:0 1px 1px rgba(57,34,40,.05);color:#35292d}
.wm-bubble-row.out .wm-bubble{background:#81001A;border-color:#81001A;color:#fff}
.wm-compose-wrap{background:#fbf8f8}
.wm-compose{background:#fff;color:var(--wm-ink)}
.wm-send{background:#81001A}
.wm-send:hover:not(:disabled){background:#670016}
.wm-unread-banner,.wm-new{border-color:#81001A;background:#f7e9ed;color:#81001A}
.wm-archive-link{color:#716066}
.wm-thread-context{padding:8px 14px;border-bottom:1px solid var(--wm-line);background:#fbf6f7;color:#604b52;font-size:12px}
.wm-done,.wm-done-confirm{border:1px solid #81001A;border-radius:8px;background:#81001A;color:#fff;font:inherit;font-weight:750;cursor:pointer}
.wm-done:hover,.wm-done-confirm:hover{background:#670016}
.wm-compose-hint{color:#7d6a70;font-size:11px}
.wm-status{font-size:11px}
.wm-list-receipt.read,.wm-receipt.read{color:#81001A}

/* Existing theme toggle also applies to the inbox itself. */
[data-theme="dark"] .web-messages,[data-theme="dark"].web-messages,
body[data-theme="dark"] .web-messages{
  --wm-ink:#f0e7e9;--wm-muted:#b8a5aa;--wm-line:#49363c;--wm-soft:#291f23;
  --wm-chat:#241d20;--wm-wine:#a92b46;--wm-wine-soft:#46232d;
  background:#211a1d;color:var(--wm-ink);border-color:#49363c;box-shadow:0 12px 34px rgba(0,0,0,.24)
}
[data-theme="dark"] .web-messages .wm-list,[data-theme="dark"].web-messages .wm-list,body[data-theme="dark"] .web-messages .wm-list{background:#281f23}
[data-theme="dark"] .web-messages .wm-toolbar,[data-theme="dark"].web-messages .wm-toolbar,body[data-theme="dark"] .web-messages .wm-toolbar,
[data-theme="dark"] .web-messages .wm-thread,[data-theme="dark"].web-messages .wm-thread,body[data-theme="dark"] .web-messages .wm-thread,
[data-theme="dark"] .web-messages .wm-thread-head,[data-theme="dark"].web-messages .wm-thread-head,body[data-theme="dark"] .web-messages .wm-thread-head{background:#211a1d}
[data-theme="dark"] .web-messages .wm-search,[data-theme="dark"] .web-messages .wm-compose,body[data-theme="dark"] .web-messages .wm-search,body[data-theme="dark"] .web-messages .wm-compose{background:#30262a;border-color:#58434a;color:#f0e7e9}
[data-theme="dark"] .web-messages .wm-switches button,body[data-theme="dark"] .web-messages .wm-switches button{color:#c4b3b8}
[data-theme="dark"] .web-messages .wm-switches button.active,body[data-theme="dark"] .web-messages .wm-switches button.active{background:#81001A;border-color:#81001A;color:#fff}
[data-theme="dark"] .web-messages #wmScopeUnassigned.active,body[data-theme="dark"] .web-messages #wmScopeUnassigned.active{background:#A9F465;border-color:#A9F465;color:#27351d}
[data-theme="dark"] .web-messages #wmScopeSummary,body[data-theme="dark"] .web-messages #wmScopeSummary{background:#30262a;border-color:#49363c;color:#d6c7cb}
[data-theme="dark"] .web-messages #wmWaitingFilter,body[data-theme="dark"] .web-messages #wmWaitingFilter{background:#30262a;border-color:#49363c;color:#e8dcdf}
[data-theme="dark"] .web-messages .wm-item,body[data-theme="dark"] .web-messages .wm-item{border-bottom-color:#3a2d32}
[data-theme="dark"] .web-messages .wm-item:hover,body[data-theme="dark"] .web-messages .wm-item:hover{background:#35272d}
[data-theme="dark"] .web-messages .wm-item.selected,body[data-theme="dark"] .web-messages .wm-item.selected{background:#3c252d}
[data-theme="dark"] .web-messages .wm-item-name,body[data-theme="dark"] .web-messages .wm-item-name{color:#f0e7e9}
[data-theme="dark"] .web-messages .wm-unread,body[data-theme="dark"] .web-messages .wm-unread{background:#30262a}
[data-theme="dark"] .web-messages .wm-unread .wm-preview,body[data-theme="dark"] .web-messages .wm-unread .wm-preview{color:#e2d4d8}
[data-theme="dark"] .web-messages .wm-avatar,body[data-theme="dark"] .web-messages .wm-avatar{background:#50333d;color:#f5dce3}
[data-theme="dark"] .web-messages .wm-unread .wm-avatar,body[data-theme="dark"] .web-messages .wm-unread .wm-avatar{background:#81001A;color:#fff}
[data-theme="dark"] .web-messages .wm-messages,body[data-theme="dark"] .web-messages .wm-messages{background-color:#282124;background-image:radial-gradient(rgba(227,204,211,.045) .7px,transparent .7px)}
[data-theme="dark"] .web-messages .wm-bubble,body[data-theme="dark"] .web-messages .wm-bubble{background:#3a2d32;border-color:#49363c;color:#f1e8ea}
[data-theme="dark"] .web-messages .wm-bubble-row.out .wm-bubble,body[data-theme="dark"] .web-messages .wm-bubble-row.out .wm-bubble{background:#81001A;border-color:#81001A;color:#fff}
[data-theme="dark"] .web-messages .wm-compose-wrap,body[data-theme="dark"] .web-messages .wm-compose-wrap{background:#281f23}
[data-theme="dark"] .web-messages .wm-thread-context,body[data-theme="dark"] .web-messages .wm-thread-context{background:#30262a;border-color:#49363c;color:#e0d2d6}
[data-theme="dark"] .web-messages .wm-tag.wm-waiting,[data-theme="dark"] .web-messages .wm-tag.wm-for-you,body[data-theme="dark"] .web-messages .wm-tag.wm-waiting,body[data-theme="dark"] .web-messages .wm-tag.wm-for-you{background:#A9F465;color:#27351d}
[data-theme="dark"] #wmDone,[data-theme="dark"] #wmDoneConfirm button{background:#35212a;color:#f7dce3;border-color:#69414d}
[data-theme="dark"] #wmDoneConfirm{background:#35212a;color:#f7dce3}

@media(max-width:767px){
  .web-messages{border-radius:11px}
  .wm-toolbar{padding:10px}
  .wm-switches{gap:4px}
  .wm-switches button{padding:6px 7px;font-size:11px}
  .wm-thread-head{padding:10px 12px}
  .wm-thread-head{flex-wrap:wrap}
  .wm-thread-identity{min-width:160px}
  .wm-assignment{flex-basis:100%;margin-left:0;justify-content:flex-end}
  .wm-messages{padding:14px 12px}
}
/* Vymazanie správy (Erik 15. 10.) */
.wm-delete-msg{border:0;background:transparent;color:inherit;opacity:.65;font:inherit;font-size:10px;text-decoration:underline;cursor:pointer;padding:0 2px}
.wm-delete-msg:hover,.wm-delete-msg:focus-visible{opacity:1}
@media (hover:hover){.wm-bubble .wm-delete-msg{visibility:hidden}.wm-bubble:hover .wm-delete-msg,.wm-bubble:focus-within .wm-delete-msg{visibility:visible}}
.wm-bubble.wm-deleted{font-style:italic;opacity:.6}
