/* extracted from style.css: records_panel */
/* ============================
   Records Panel
   ============================ */
#records-panel.panel { min-width: 1200px; min-height: 760px; }
.records-panel-body { display:flex; flex-direction:column; min-height:0; padding:0; }
.records-shell { display:grid; grid-template-columns:170px minmax(0,1fr) 280px; gap:12px; width:100%; height:100%; min-height:0; padding:12px; box-sizing:border-box; }
.records-nav,.records-side-summary,.records-main,.records-section-content { min-height:0; }
.records-nav,.records-side-summary { display:flex; flex-direction:column; gap:8px; padding:10px; background:rgba(10,16,24,.55); border:1px solid rgba(255,255,255,.14); border-radius:14px; overflow:auto; }
.records-tab-btn,.records-section-btn,.records-filter-row select { font:inherit; }
.records-tab-btn,.records-section-btn { padding:8px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.08); color:#fff; cursor:pointer; text-align:left; }
.records-tab-btn.active,.records-section-btn.active { background:rgba(120,190,255,.22); border-color:rgba(120,190,255,.55); }
.records-main { display:flex; flex-direction:column; min-height:0; overflow:hidden; background:rgba(10,16,24,.45); border:1px solid rgba(255,255,255,.12); border-radius:14px; }
.records-tab { flex:1 1 auto; min-height:0; overflow:auto; padding:12px; }
.records-filter-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.records-filter-row select { padding:6px 8px; border-radius:8px; background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.12); }
.records-summary-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.records-card { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:10px 12px; }
.records-card h3,.records-card h4 { margin:0 0 8px; }
.records-stat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; }
.records-stat-item { display:flex; justify-content:space-between; gap:8px; font-size:14px; }
.records-stat-item b { color:#d6ecff; }
.records-list,.records-history-feed { display:flex; flex-direction:column; gap:8px; }
.records-history-item,.records-list-item { padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.records-history-meta { opacity:.75; font-size:12px; margin-bottom:4px; }
.records-section-nav { display:flex; gap:8px; flex-wrap:wrap; padding:0 0 10px; }
.records-section-content { overflow:auto; }
.records-group { display:flex; flex-direction:column; gap:12px; }
.records-chao-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.records-empty { opacity:.75; font-style:italic; }
@media (max-width:1500px) { .records-shell { grid-template-columns:160px minmax(0,1fr); } .records-side-summary { display:none; } }

/* extracted from style.css: social_pass16 */
/* Consolidated exact social owner blocks moved from 16-social-profile-quests-a.css */
#friends-panel.panel {
  position: absolute;
  left: auto;
  top: auto;
  transform: none !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
  width: min(880px, calc(var(--app-authored-width) - 120px)) !important;
  height: min(680px, calc(var(--app-authored-height) - 120px)) !important;
  min-height: 0 !important;
  z-index: 9100;
}

#friends-panel > .panel-body.fp-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 0;
  overflow: auto;
  padding: 16px !important;
  gap: 16px !important;
}

.social-card-title,
#friends-panel .fp-section-title {
  margin: 0 0 12px 0 !important;
  padding: 0 4px;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  color: #edf5ff !important;
  text-transform: uppercase !important;
}

#friends-panel .fp-input,
#friends-panel .profile-edit-input,
#friends-panel .profile-id-value,
#friends-panel .profile-name-value,
#friends-panel .fp-self-value {
  min-width: 0;
  border: 1px solid rgba(117, 156, 198, 0.24) !important;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.9), rgba(5, 9, 14, 0.96)) !important;
  color: #eef6ff !important;
  border-radius: 12px !important;
}

#friends-panel .profile-pickfav-btn,
#friends-panel .profile-edit-btn,
#friends-panel .profile-copy-btn,
#friends-panel .fp-copy-btn,
#friends-panel .fp-add-btn,
#friends-panel .fp-request-btn,
#friends-panel .fp-remove-btn,
#friends-panel .fp-accept-btn,
#friends-panel .fp-decline-btn,
#friends-panel .fp-msg-btn {
  border: 1px solid rgba(122, 165, 210, 0.32);
  background: linear-gradient(180deg, rgba(49, 72, 103, 0.95), rgba(24, 39, 59, 0.96));
  color: #eff5ff;
  border-radius: 12px !important;
}

#friends-panel .profile-pickfav-btn {
  width: 100%;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#friends-panel .profile-pickfav-btn:hover {
  background: linear-gradient(180deg, rgba(59, 85, 121, 0.97), rgba(29, 47, 71, 0.98));
}

#friends-panel .profile-pickfav-btn:active {
  transform: translateY(1px);
}

#dm-panel.panel {
  display: none;
  flex-direction: column;
  position: absolute !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 9800;
  color: #fff;
  background: rgba(16, 28, 40, 0.97);
  border: 3px solid #3a4f69;
  border-radius: 12px;
}

#profile-favpicker-panel.panel {
  overflow: hidden;
  background: #222;
  border: 3px solid #000;
  border-radius: 8px;
  color: #ffffff;
}

#favpicker-grid {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* ============================================================
   Panel style pass 16 — Social panel (Friends + Profile combined)
   ============================================================ */

.social-combined-grid {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.social-profile-card,
.social-friends-col {
  min-width: 0;
}

.social-profile-card,
#friends-panel .fp-self,
#friends-panel .fp-friends-box,
#friends-panel .fp-requests-box {
  border-radius: 18px !important;
  border: 1px solid rgba(112, 154, 198, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(20, 31, 48, 0.96), rgba(10, 17, 27, 0.985)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 22px rgba(0,0,0,0.18) !important;
}

.social-profile-card {
  padding: 14px;
}

.social-profile-section {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#friends-panel .fp-friends-box,
#friends-panel .fp-requests-box {
  padding: 12px !important;
}

#friends-panel .fp-friend-row,
#friends-panel .fp-request-row {
  border-radius: 14px !important;
  border: 1px solid rgba(112, 154, 198, 0.15) !important;
  background: rgba(13, 22, 34, 0.82) !important;
}

#friends-panel .profile-favchao-box {
  min-height: 152px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(112, 154, 198, 0.2) !important;
  background: rgba(11, 18, 29, 0.9) !important;
}

@media (max-width: 1200px) {
  .social-combined-grid {
    grid-template-columns: 1fr;
  }
}

#friends-panel .social-friends-col {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

#friends-panel .social-friends-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(112, 154, 198, 0.22);
  background: linear-gradient(180deg, rgba(20, 31, 48, 0.96), rgba(10, 17, 27, 0.985));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 22px rgba(0,0,0,0.18);
}

#friends-panel .social-friends-box .fp-section-title {
  margin: 0;
  padding: 0;
}

#friends-panel .social-friends-box .fp-list {
  margin-top: 0;
  flex: 1 1 auto;
}


/* moved from 03-panel-contract.css in pass26: dm/favpicker compat */
:is(#dm-panel,
#profile-favpicker-panel) {
  display: none;
  flex-direction: column;
}

#profile-favpicker-panel .panel-title {
  flex: 1 1 auto;
  min-width: 0;
}

.dm-body,
.favpicker-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
}

#dm-panel .dm-title {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
}

#dm-panel .panel-header-controls,
#profile-favpicker-panel .panel-header-controls {
  margin-left: 0;
}

#dm-panel .dm-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  background: #10202e;
}

#dm-panel .dm-log {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.favpicker-header {
  position: relative;
}

.favpicker-title {
  font-size: 15px;
  font-weight: bold;
  color: #ffd60a;
  padding-right: 42px;
}

.favpicker-body {
  padding: 10px;
  box-sizing: border-box;
}



/* extracted from 03-panel-contract.css — pass27 social spill */


/* pass21 social-panel theme normalization
   Keep the combined Social panel on the standard project shell/header/body theme.
   This file owns layout/content cards, not bespoke outer chrome. */
#friends-panel .social-profile-card,
#friends-panel .social-friends-box {
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.78), rgba(10, 16, 26, 0.90));
  border: 1px solid rgba(118, 157, 200, 0.18);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

#friends-panel .social-profile-card,
#friends-panel .social-friends-col {
  min-height: 0;
}

#friends-panel .social-profile-card {
  padding: 14px;
}

#friends-panel .social-friends-box {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}


/* pass22 social panel sizing + friends list normalization */
#friends-panel > .panel-body.fp-body {
  height: 100%;
  overflow: hidden;
}

#friends-panel .social-combined-grid {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

#friends-panel .social-profile-card,
#friends-panel .social-friends-col,
#friends-panel .social-friends-box,
#friends-panel .social-friends-box .fp-list {
  min-height: 0;
}

#friends-panel .social-friends-col {
  min-width: 0;
}

#friends-panel .social-friends-box {
  height: 100%;
}

#friends-panel .social-friends-box .fp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  margin-top: 0;
}

#friends-panel .fp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.9fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

#friends-panel .fp-row-name,
#friends-panel .fp-row-id {
  min-width: 0;
}

#friends-panel .fp-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#friends-panel .fp-row-id {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#friends-panel .fp-dm-btn,
#friends-panel .fp-invite-btn,
#friends-panel .fp-remove-btn {
  min-width: 72px;
  justify-self: end;
}

#friends-panel .fp-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

#friends-panel .fp-input {
  width: 100%;
}

@media (max-width: 1200px) {
  #friends-panel.panel {
    width: min(880px, calc(var(--app-authored-width) - 32px)) !important;
    height: min(680px, calc(var(--app-authored-height) - 32px)) !important;
  }

  #friends-panel .social-combined-grid {
    grid-template-columns: 1fr;
  }
}
