* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body.profile-layout {
  background-color: #ffffff;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 45% 35% at 90% 90%, rgba(154, 212, 223, 0.28), transparent 70%),
    radial-gradient(ellipse 35% 25% at 10% 95%, rgba(186, 230, 238, 0.18), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.profile-header {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.btn-return-hub {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: color 0.15s;
}

.btn-return-hub:hover {
  color: #0f172a;
}

.user-greeting {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.profile-container {
  display: flex;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  gap: 32px;
}

/* Sidebar */
.profile-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.user-card-mini {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.user-meta-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-meta-text strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta-text span {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.tab-btn:hover:not(.is-disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.tab-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.tab-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.badge-pill {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #475569;
}

/* Main Panel */
.profile-content {
  flex: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 4px;
}

.btn-create-project-accent {
  background: #0284c7;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-create-project-accent:hover {
  background: #0369a1;
}

/* Projects Table */
.table-responsive {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.projects-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.projects-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.projects-table tr:last-child td {
  border-bottom: none;
}

.project-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.project-title-link:hover {
  color: #0284c7;
}

.project-pitch-sub {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
  max-width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.live {
  background: #ecfdf5;
  color: #059669;
}

.status-badge.draft {
  background: #fef3c7;
  color: #d97706;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.signal-text {
  font-size: 0.78rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 1. Force the table to respect the container width */
#panelProjects table {
  width: 100%;
  table-layout: fixed; /* Ensures columns respect defined widths instead of stretching */
}

/* 2. Set explicit column proportions (tweak these percentages as needed) */
#panelProjects th:nth-child(1),
#panelProjects td:nth-child(1) {
  width: 50px; /* Icon */
}

#panelProjects th:nth-child(2),
#panelProjects td:nth-child(2) {
  width: 48%; /* Project Details - adjust down (e.g., 30% or 35%) to make it smaller */
}

#panelProjects th:nth-child(3),
#panelProjects td:nth-child(3) {
  width: 6%; /* Status */
}

#panelProjects th:nth-child(4),
#panelProjects td:nth-child(4) {
  width: 16%; /* Activity */
}

#panelProjects th:nth-child(5),
#panelProjects td:nth-child(5) {
  width: 20%; /* Actions */
}

/* Actions */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-action-studio {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-action-studio:hover {
  background: #e2e8f0;
}

.btn-action-toggle {
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-action-toggle.publish {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.btn-action-toggle.publish:hover {
  background: #d1fae5;
}

.btn-action-toggle.takedown {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.btn-action-toggle.takedown:hover {
  background: #fde68a;
}

.btn-action-delete {
  background: transparent;
  border: 1px solid #fee2e2;
  color: #ef4444;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-action-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Account Details Form */
.account-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  max-width: 500px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.form-row input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
}

.form-row input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}

.btn-save-acc {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.save-indicator {
  margin-left: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
}

/* --- Account Flow Container --- */
.account-profile-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
}

.account-field-block-small {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.account-field-block-small label, .account-field-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-field-block label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.field-hint {
  font-weight: 400;
  color: #64748b;
  font-size: 0.8rem;
}

.account-field-block input[type="text"],
.account-field-block input[type="email"] {
  width: 40%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;  
}


.account-field-block textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.account-field-block input:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.account-field-block textarea {
  resize: vertical;
}

.account-field-block input:focus,
.account-field-block textarea:focus {
  border-color: #0f172a;
}

/* --- 4 Sectors Row --- */
.acc-sector-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.acc-sector-pill {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.acc-sector-pill:hover {
  border-color: #0f172a;
  background: #f8fafc;
}

.acc-sector-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* --- Taxonomy Section Layout --- */
.pi-taxonomy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.pi-section-heading {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.pi-section-sub {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.pi-taxonomy-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

/* Assigned Selected Tray */
.pi-empty-hint {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Taxonomy Deck Wrapper */
.pi-taxonomy-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

/* Domain Track & Overlay Search */
.deck-nav-search-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.deck-subnav-wrapper {
  flex: 1;
  overflow: hidden;
}

.deck-subnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.deck-subnav::-webkit-scrollbar { display: none; }

.domain-nav-btn {
  padding: 6px 14px;
  border-radius: 99px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.domain-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.domain-nav-btn.active-domain {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.search-trigger-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.track-search-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 99px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 5;
}

.track-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
}

.track-search-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #64748b;
}

/* Specialisms Chip Grid */
.spec-pill {
  padding: 6px 12px;
  border-radius: 99px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.spec-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.spec-pill.selected {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Hover Description Footer */
.domain-desc-box.pi-hover-box {
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #64748b;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.account-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0.5rem;
}

/* --- Assigned Tray & Pills Explicit Styling --- */
.pi-assigned-tray {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  background: #f8fafc !important;
  border: 1px dashed #94a3b8 !important;
  border-radius: 8px !important;
  align-items: center !important;
}

.pi-assigned-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 99px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  user-select: none !important;
}

.pi-pill-text {
  color: #ffffff !important;
}

.pi-assigned-remove {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.pi-assigned-remove:hover {
  color: #ef4444 !important;
}

/* Ensure Specialisms in the Grid are Always Visible */
.specialisms-grid.pi-specialisms-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  max-height: 220px !important;
  overflow-y: auto !important;
  padding: 6px 2px !important;
}

.specialisms-grid .spec-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 7px 14px !important;
  border-radius: 99px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.specialisms-grid .spec-pill:hover {
  background: #f1f5f9 !important;
  border-color: #0f172a !important;
  color: #0f172a !important;
}

.specialisms-grid .spec-pill.selected {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* --- Notification Dot on Avatar Trigger --- */
.btn-user-trigger {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-alert-dot {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 9px !important;
  height: 9px !important;
  background-color: #ef4444 !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

/* --- Dropdown & Tab Count Badges --- */
.menu-count-badge,
.tab-count-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #ef4444;
  color: #ffffff;
  line-height: 1.2;
}

/* --- Messages Panel & Cards --- */
.messages-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}

.message-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.message-card.is-unread {
  border-left: 4px solid #0284c7;
  background: #fdfefe;
}

.message-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.message-sender-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-source-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
}

.sender-name {
  font-size: 0.95rem;
  color: #0f172a;
}

.message-timestamp {
  font-size: 0.78rem;
  color: #94a3b8;
}

.request-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.request-status-pill.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.request-status-pill.status-accepted {
  background: #ecfdf5;
  color: #059669;
}

.request-status-pill.status-declined {
  background: #fee2e2;
  color: #dc2626;
}

.message-body-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 8px;
}

.message-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-msg-secondary {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-msg-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-msg-accept {
  font-size: 0.8rem;
  font-weight: 600;
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-msg-accept:hover {
  background: #0369a1;
}

.btn-msg-decline {
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-msg-decline:hover {
  background: #fee2e2;
}

.btn-msg-mark-read {
  font-size: 0.8rem;
  font-weight: 500;
  background: transparent;
  color: #64748b;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.btn-msg-mark-read:hover {
  color: #0f172a;
}

.inbox-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

/* --- Profile Messaging & Conversations Suite --- */
.pi-messages-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  min-height: 520px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Left Sidebar: Conversations & Requests List */
.pi-conversations-sidebar {
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pi-convo-item {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease, border-left-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid transparent;
}

.pi-convo-item:hover {
  background: #f1f5f9;
}

.pi-convo-item.active {
  background: #e0f2fe;
  border-left-color: #0284c7;
}

.pi-convo-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.pi-convo-preview {
  font-size: 0.76rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Viewport: Chat Thread */
.pi-chat-thread-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.pi-chat-thread-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.pi-chat-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pi-chat-user-meta strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.pi-chat-user-meta span {
  font-size: 0.78rem;
  color: #64748b;
}

.pi-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Message Bubbles Scrollport */
.pi-chat-bubbles-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.pi-chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  word-break: break-word;
}

.pi-chat-bubble.them {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 2px;
}

.pi-chat-bubble.me {
  align-self: flex-end;
  background: #0284c7;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

/* Chat Reply Composer */
.pi-chat-composer {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  background: #ffffff;
}

.pi-chat-composer input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.pi-chat-composer input:focus {
  border-color: #0284c7;
}

.pi-chat-composer button {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pi-chat-composer button:hover {
  background: #0369a1;
}

/* --- Project Management Accordion Drawer --- */
.project-summary-row td {
  transition: background-color 0.15s ease;
}

.project-summary-row:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.project-accordion-toggle:hover .project-title-link {
  color: #38bdf8;
  text-decoration: underline;
}

.collab-drawer-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Project Icon Thumbnail & Editable Overlay --- */
.project-icon-box {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: default;
  overflow: hidden;
}

.project-icon-box.editable {
  cursor: pointer;
}

.project-icon-box.editable:hover .icon-edit-overlay {
  opacity: 1;
}

.project-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-icon-fallback {
  font-size: 1.25rem;
  line-height: 1;
}

.icon-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* --- Accordion Title & Chevrons --- */
.project-accordion-toggle {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accordion-chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  display: inline-block;
  transition: transform 0.2s ease;
}

.accordion-chevron.open {
  transform: rotate(180deg);
}

.badge-collab-tag {
  display: block;
  font-size: 0.68rem;
  color: #0284c7;
  font-weight: 700;
  margin-top: 2px;
}

/* --- Collaborator Accordion Drawer --- */
.collab-drawer-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  padding: 8px 14px 4px 14px;
}

.collab-drawer-item:last-child {
  border-bottom: none;
}

/* --- Slim Collaborator Sub-strip --- */
.project-collab-drawer-row {
  background: #f8fafc;
}

.collab-drawer-cell {
  padding: 0 !important;
  border-bottom: 1px solid #e2e8f0;
}

.collab-drawer-inner {
  padding: 2px 24px 2px 52px; /* Indents neatly beneath the project name */
  background: #f8fafc;
  border-top: 1px dashed #e2e8f0;
}

.collab-drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0; /* Tight vertical height */
  font-size: 0.8rem;
  line-height: 1.2;
}

.collab-drawer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collab-badge-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
}

.collab-name {
  font-weight: 600;
  color: #1e293b;
}

.collab-date {
  color: #94a3b8;
  font-size: 0.72rem;
}

.collab-drawer-empty {
  padding: 8px 0;
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
}

/* Thin Remove Link */
.btn-remove-collab {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-remove-collab:hover {
  background: #fee2e2;
  text-decoration: underline;
}