/* GGurgenidze Phase 6 — Search, Saved Posts & UX Pro */
.phase6-page{display:grid;gap:18px;min-width:0}
.phase6-page-header{padding:26px 28px;background:linear-gradient(135deg,#fff,#f6faff)}
.phase6-page-header.compact{display:grid;gap:7px}
.phase6-page-header h1{margin:5px 0 4px;font-size:clamp(1.65rem,3vw,2.35rem);line-height:1.15}
.phase6-page-header p{margin:0;color:#6b7c92;line-height:1.55}
.phase6-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:20px}
.phase6-search-form input{min-height:50px;padding:12px 15px;border-radius:13px;background:#fff}
.phase6-tabs{display:flex;align-items:center;gap:8px;overflow-x:auto;margin-top:15px;padding-bottom:2px;scrollbar-width:thin}
.phase6-tab{flex:0 0 auto;padding:9px 13px;border-radius:999px;background:#edf3fa;color:#546780;text-decoration:none;font-size:.84rem;font-weight:800}
.phase6-tab:hover,.phase6-tab.is-active{background:#1676ed;color:#fff}
.phase6-empty{display:grid;justify-items:center;gap:8px;padding:52px 28px;text-align:center;color:#66778d}
.phase6-empty strong{color:#243a58;font-size:1.15rem}
.phase6-empty p{margin:0 0 8px;line-height:1.55}
.phase6-result-section{padding:22px}
.phase6-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.phase6-section-heading h2{margin:0;font-size:1.24rem}
.phase6-section-heading>span{min-width:30px;height:26px;padding:0 8px;border-radius:999px;display:grid;place-items:center;background:#eaf3ff;color:#176acb;font-size:.76rem;font-weight:900}
.phase6-user-results,.phase6-content-results,.phase6-comment-results{display:grid;gap:10px}
.phase6-user-result{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px;border:1px solid #e4eaf2;border-radius:15px;background:#fff}
.phase6-user-link{display:flex;align-items:center;gap:12px;min-width:0;color:#243a58;text-decoration:none}
.phase6-user-link>span:last-child{display:grid;gap:4px;min-width:0}
.phase6-user-link strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phase6-user-link small{color:#75859a;font-size:.78rem}
.phase6-result-avatar{width:50px;height:50px;border-radius:15px;object-fit:cover;display:grid;place-items:center;flex:0 0 auto;font-size:1.2rem}
.phase6-content-result{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:13px;border:1px solid #e4eaf2;border-radius:15px;background:#fff}
.phase6-content-result.has-image{grid-template-columns:96px minmax(0,1fr)}
.phase6-content-result>img{width:96px;height:82px;object-fit:cover;border-radius:12px;background:#edf2f7}
.phase6-content-result>div{min-width:0}
.phase6-result-author{color:#1f5fae;text-decoration:none;font-weight:850}
.phase6-content-result p,.phase6-comment-result p{margin:7px 0 9px;line-height:1.5;color:#344a67;overflow-wrap:anywhere}
.phase6-result-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;color:#75859a;font-size:.78rem}
.phase6-result-meta a,.phase6-open-link{margin-left:auto;color:#176acb;text-decoration:none;font-weight:800}
.phase6-comment-result{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:13px;border:1px solid #e4eaf2;border-radius:15px;background:#fff}
.phase6-comment-avatar{width:42px;height:42px;border-radius:13px;object-fit:cover;display:grid;place-items:center;font-size:1rem}
.phase6-comment-result a{text-decoration:none;color:#244f86}
.saved-post-list{display:grid;gap:16px}
.saved-post-list>.feed-post{margin:0}
.saved-post-list .post-action-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.post-action-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.post-save-form{display:block!important;margin:0!important;min-width:0}
.post-save-form .post-action-button{width:100%;height:100%}
.post-action-button.js-save-post.is-active{color:#166fd5;background:#edf5ff}
.post-action-button.js-save-post.is-active svg{fill:currentColor;stroke:currentColor}
.feed-post.phase6-removing{opacity:0;transform:scale(.985);transition:opacity .18s ease,transform .18s ease}
.phase6-save-toast{position:fixed;left:50%;bottom:26px;z-index:5000;transform:translate(-50%,16px);padding:11px 16px;border-radius:999px;background:rgba(20,35,56,.94);color:#fff;box-shadow:0 14px 40px rgba(0,0,0,.2);font-size:.86rem;font-weight:800;opacity:0;transition:.2s ease}
.phase6-save-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.phase6-timeline-card{padding:20px 24px}
.phase6-timeline{display:grid}
.phase6-timeline-item{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;padding:15px 0}
.phase6-timeline-item:not(:last-child){border-bottom:1px solid #e7ecf3}
.phase6-timeline-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#eaf3ff;color:#176acb;font-weight:900}
.phase6-timeline-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.phase6-timeline-title time{color:#8290a2;font-size:.76rem;white-space:nowrap}
.phase6-timeline-item p{margin:6px 0;color:#52657e;line-height:1.45}
.phase6-timeline-item a{color:#176acb;text-decoration:none;font-size:.8rem;font-weight:800}
.phase6-profile-details-form textarea{resize:none;min-height:96px;line-height:1.5}
.phase6-profile-about{display:grid;gap:12px;padding:22px 26px;margin-top:18px}
.phase6-profile-about h2{margin:0;font-size:1.15rem}
.phase6-profile-about p{margin:0;color:#40536d;line-height:1.65;overflow-wrap:anywhere}
.phase6-profile-facts{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;color:#66778d;font-size:.88rem;font-weight:700}
.phase6-profile-facts a{color:#176acb;text-decoration:none}
.chat-message-meta{display:flex;align-items:center;gap:6px;min-height:20px;padding:0 3px}
.chat-message.is-own .chat-message-meta{justify-content:flex-end}
.chat-edited-label{color:#8795a6;font-size:.66rem;font-weight:700}
.chat-message-actions{display:inline-flex;align-items:center;gap:3px;margin-left:2px;opacity:0;transition:opacity .16s ease}
.chat-message:hover .chat-message-actions,.chat-message:focus-within .chat-message-actions{opacity:1}
.chat-message-actions button{width:23px;height:23px;padding:0;border:0;border-radius:7px;background:transparent;color:#7b8a9c;cursor:pointer;font-size:.82rem;display:grid;place-items:center}
.chat-message-actions button:hover{background:#e7edf5;color:#1a65bd}
.chat-message-actions .js-chat-message-delete:hover{background:#fff0f0;color:#bd3535}
.chat-deleted-bubble{padding:9px 13px;border:1px dashed #cbd5e2;border-radius:14px;background:rgba(245,248,252,.9);color:#8593a5;font-size:.82rem;font-style:italic}
.chat-message.is-own .chat-deleted-bubble{border-bottom-right-radius:5px}
.chat-message.is-other .chat-deleted-bubble{border-bottom-left-radius:5px}
.chat-message-content>.chat-message-meta .chat-message-time{padding:0}
.phase6-sidebar-group{display:grid;gap:7px}
@media(max-width:850px){
  .phase6-content-result.has-image{grid-template-columns:78px minmax(0,1fr)}
  .phase6-content-result>img{width:78px;height:72px}
}
@media(max-width:650px){
  .phase6-page{gap:14px}
  .phase6-page-header,.phase6-result-section,.phase6-timeline-card{padding:18px 15px}
  .phase6-search-form{grid-template-columns:1fr}
  .phase6-search-form .button{width:100%}
  .phase6-user-result{align-items:flex-start;flex-direction:column}
  .phase6-user-result form,.phase6-user-result .button{width:100%}
  .phase6-content-result.has-image{grid-template-columns:1fr}
  .phase6-content-result>img{width:100%;height:170px}
  .phase6-result-meta a{margin-left:0;width:100%}
  .post-action-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .post-action-button{min-height:44px}
  .chat-message-actions{opacity:1}
  .phase6-timeline-title{align-items:flex-start;flex-direction:column;gap:4px}
  .phase6-profile-about{padding:18px}
}
