/* Left-menu icon: people. */
#taskmenu a.teams:before { content: "\f0c0"; }

.lt-root { padding: 1.25rem; overflow: auto; height: 100%; box-sizing: border-box; background: #f5f6f8; }
.lt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.lt-title { margin: 0 auto 0 0; font-size: 1.15rem; font-weight: 600; }
.lt-btn {
	display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 8px;
	border: 1px solid #d1d5db; background: #fff; color: #1f2937 !important; font-weight: 500;
	text-decoration: none !important; cursor: pointer; font-size: .9rem; line-height: 1.2;
}
.lt-btn:hover { border-color: #1FA37A; }
.lt-btn.lt-primary, .lt-btn.lt-meet { background: #1FA37A; border-color: #1FA37A; color: #fff !important; }
.lt-btn.lt-muted { opacity: .7; }
.lt-btn.lt-back { border: 0; background: none; padding-left: 0; color: #1FA37A !important; }
.lt-btn[disabled] { opacity: .6; cursor: default; }
.lt-note, .lt-foot { color: #6b7280; margin: .5rem 0 1rem; }
.lt-foot { font-size: .8rem; margin-top: 1.25rem; }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.lt-card {
	display: flex; align-items: center; gap: .8rem; padding: 1rem; background: #fff; border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.08); color: inherit !important; text-decoration: none !important; border: 1px solid transparent;
}
.lt-card:hover { border-color: #1FA37A; }
.lt-card-main { display: flex; flex-direction: column; min-width: 0; }
.lt-card-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-card-main small, .lt-muted-text { color: #6b7280; }
.lt-avatar { flex: none; width: 36px; height: 36px; border-radius: 9px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.lt-avatar-big { width: 46px; height: 46px; border-radius: 12px; font-size: 1rem; }
.lt-team-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.lt-team-head h2 { margin: 0; font-size: 1.3rem; }
.lt-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.lt-panel { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
.lt-panel header { padding: .8rem 1rem; border-bottom: 1px solid #f0f0f0; }
.lt-panel h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.lt-panel ul, .lt-search-results ul { list-style: none; margin: 0; padding: 0; }
.lt-panel li { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; border-bottom: 1px solid #f5f5f5; }
.lt-panel li:last-child { border-bottom: 0; }
.lt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none !important; }
.lt-main b, .lt-main small, .lt-main a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-main small { color: #6b7280; }
.lt-ico { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-family: 'Icons'; font-weight: 900; font-size: 13px; }
.lt-ico-channel { background: #ecfdf5; color: #1FA37A; } .lt-ico-channel:before { content: "\f292"; }
.lt-ico-team    { background: #ecfdf5; color: #1FA37A; } .lt-ico-team:before    { content: "\f0c0"; }
.lt-ico-file    { background: #e0e7ff; color: #4338ca; } .lt-ico-file:before    { content: "\f15b"; }
.lt-ico-event   { background: #e0f2fe; color: #0369a1; } .lt-ico-event:before   { content: "\f073"; }
.lt-ico-meet    { background: #dcfce7; color: #15803d; } .lt-ico-meet:before    { content: "\f03d"; }
.lt-ico-person  { background: #f3f4f6; color: #374151; } .lt-ico-person:before  { content: "\f007"; }
.lt-ico-mail    { background: #fef3c7; color: #b45309; } .lt-ico-mail:before    { content: "\f0e0"; }

/* Dialogs */
.lt-modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.lt-modal-box { background: #fff; border-radius: 12px; padding: 1.25rem; width: min(460px, 94vw); max-height: 90vh; overflow: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: .4rem; }
.lt-modal-box h3 { margin: 0 0 .5rem; }
.lt-label { font-weight: 600; font-size: .85rem; margin-top: .4rem; }
.lt-input { width: 100%; box-sizing: border-box; padding: .5rem .7rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: .95rem; }
.lt-people { max-height: 220px; overflow: auto; border: 1px solid #eee; border-radius: 8px; }
.lt-person { display: flex; align-items: center; gap: .6rem; padding: .4rem .7rem; cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.lt-person span { display: flex; flex-direction: column; min-width: 0; }
.lt-person small { color: #6b7280; }
.lt-check { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.lt-err { color: #d32f2f; margin: 0; min-height: 1em; font-size: .85rem; }
.lt-modal-acts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }

/* Unified search in the page header (Teams and Activity). */
#layout-content > .header .lt-search { position: relative; flex: 1 1 auto; max-width: 520px; margin: 0 1rem 0 auto; }
.lt-search-input { width: 100%; box-sizing: border-box; height: 2.2rem; padding: 0 .9rem; border-radius: 999px; border: 1px solid #d1d5db; background: #f9fafb; font-size: .9rem; }
.lt-search-input:focus { outline: none; border-color: #1FA37A; background: #fff; }
.lt-search-results {
	position: absolute; top: calc(100% + 6px); right: 0; left: 0; min-width: 320px; max-height: 70vh; overflow: auto; z-index: 9000;
	background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: .3rem 0; line-height: 1.3;
}
.lt-search-results[hidden] { display: none; }
.lt-sr-sec h4 { margin: .5rem 1rem .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.lt-search-results li { display: flex; align-items: center; gap: .6rem; padding: .4rem 1rem; }
.lt-search-results li:hover { background: #f3f4f6; }
.lt-sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit !important; text-decoration: none !important; }
.lt-sr-main b, .lt-sr-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.lt-sr-main small { color: #6b7280; font-size: .78rem; }
.lt-sr-acts { display: flex; gap: .3rem; flex: none; }
.lt-sr-act { font-size: .75rem; padding: .15rem .5rem; border: 1px solid #d1d5db; border-radius: 6px; color: #1f2937 !important; text-decoration: none !important; }
.lt-sr-act:hover { border-color: #1FA37A; }
.lt-sr-empty { margin: 0; padding: .8rem 1rem; color: #6b7280; }
.lt-search-results .lt-ico { width: 26px; height: 26px; font-size: 11px; }

html.dark-mode .lt-root { background: #111827; }
html.dark-mode .lt-card, html.dark-mode .lt-panel, html.dark-mode .lt-btn, html.dark-mode .lt-modal-box,
html.dark-mode .lt-search-results, html.dark-mode .lt-search-input, html.dark-mode .lt-input { background: #1f2937; color: #e5e7eb !important; border-color: #374151; }
html.dark-mode .lt-panel header, html.dark-mode .lt-panel li { border-color: #374151; }
html.dark-mode .lt-search-results li:hover { background: #374151; }
