#welcome-friends-panel { width: min(1000px, 100%); gap: 14px; padding: clamp(14px, 2vw, 26px); color: #284c3d; }
#welcome-friends-panel > :not(.friends-home-body) { flex-shrink: 0; }
.friends-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.friends-home-eyebrow { color: #887442; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
#welcome-friends-panel h2 { display: flex; align-items: center; gap: 10px; margin: 4px 0; font: 600 30px 'Playfair Display', serif; }
#welcome-friend-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; background: #e9eee5; font: 600 13px 'DM Sans', sans-serif; }
#welcome-friends-note { margin: 0; font-size: 12px; color: #6c786c; }
.friends-home-heading-actions { display: flex; gap: 6px; }
#welcome-friends-panel button { cursor: pointer; font-family: 'DM Sans', sans-serif; }
.friends-home-heading-actions button, .friends-home-footer button { min-height: 36px; min-width: 36px; padding: 6px 10px; border: 1px solid #dedbcc; border-radius: 8px; background: #fffdf7; color: #355441; font-size: 12px; }
.friends-home-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr); gap: 4px 20px; padding: 14px 16px; border: 1px solid #dedfce; border-radius: 12px; background: #f3f4eb; }
#welcome-friends-panel h3 { margin: 0; font-size: 14px; font-weight: 600; }
#welcome-friends-panel .dashboard-friend-help { display: block; grid-column: 1; margin: 0; font-size: 11px; line-height: 1.4; color: #6b7769; }
#welcome-friends-panel .dashboard-friend-form { display: flex; align-self: center; grid-column: 2; grid-row: 1 / 3; margin: 0; gap: 6px; }
#welcome-friends-panel input { min-width: 0; height: 40px; border: 1px solid #d6dacb; border-radius: 8px; padding: 0 11px; background: #fffef9; color: #294c3d; font: 13px 'DM Sans', sans-serif; }
#welcome-friends-panel .dashboard-friend-form input { flex: 1; width: 100%; }
#welcome-friends-panel .dashboard-friend-form button { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid #244e3f; border-radius: 8px; background: #244e3f; color: white; font-size: 12px; }
.friends-home-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e3e2d6; padding-bottom: 9px; }
.friends-home-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #677466; font-size: 13px; font-weight: 600; }
.friends-home-tabs button[aria-pressed="true"] { color: #fff; background: #244e3f; }
.friends-home-tabs span { min-width: 20px; padding: 2px 5px; border-radius: 5px; background: #758c7020; font-size: 11px; }
.friends-home-tabs [aria-pressed="true"] span { background: #ffffff25; }
.friends-home-tools { display: flex; align-items: center; gap: 8px; min-height: 40px; }
#friends-home-filter { flex: 1; }
#friends-home-online { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid #d6dacb; border-radius: 8px; background: #fffef9; color: #416b48; font-size: 12px; white-space: nowrap; }
#friends-home-online[aria-pressed="true"] { background: #e4efdf; border-color: #688d65; }
#friends-home-context { font-size: 12px; color: #6b7769; }
#welcome-friends-panel .dashboard-friend-status { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.35; }
.friends-home-body { --friend-row-height: 100px; container-type: inline-size; position: relative; flex: 1; min-height: 0; }
.friends-home-list { display: grid; align-content: start; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@container (min-width: 700px) { .friends-home-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.friends-home-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 12px; row-gap: 5px; height: var(--friend-row-height); box-sizing: border-box; padding: 12px 14px; border: 1px solid #e2e2d5; border-radius: 12px; background: #fffefa; }
.friends-home-avatar { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #e7ecdf; color: #4d6b4d; font-size: 14px; font-weight: 700; }
.friends-home-identity { display: grid; align-content: center; min-width: 0; padding-right: 64px; gap: 3px; }
.friends-home-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.friends-home-presence { color: #788172; font-size: 11px; line-height: 1.3; }
.friends-home-presence.is-online { color: #477645; }
.friends-home-presence.is-online::before { display: inline-block; content: ''; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #639257; }
.friends-home-actions { display: flex; grid-column: 2; gap: 6px; }
.friends-action { min-height: 30px; padding: 4px 10px; border: 1px solid #dedbcc; border-radius: 6px; background: #faf9f2; color: #54654d; font-size: 11px; white-space: nowrap; }
.friends-action.is-primary { background: #e9eee2; border-color: #d4dfca; color: #315c3e; font-weight: 600; }
#welcome-friends-panel button:hover:not(:disabled) { filter: brightness(.95); }
#welcome-friends-panel button:disabled { opacity: .45; cursor: default; }
.friends-home-kind { position: absolute; right: 10px; top: 12px; color: #8a7750; font-size: 10px; }
.friends-home-remove { position: absolute; top: 6px; right: 6px; min-width: 30px; padding: 0; border-color: transparent; background: transparent; color: #889180; font-size: 20px; }
.friends-home-empty { display: grid; place-items: center; min-height: 90px; height: 100%; box-sizing: border-box; margin: 0; padding: 16px 10%; text-align: center; border: 1px dashed #dedfce; border-radius: 12px; color: #73806c; font-size: 13px; line-height: 1.6; }
.friends-home-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #e7e5d9; color: #798171; font-size: 11px; }
.friends-home-footer > div { display: flex; gap: 5px; }
#welcome-friends-panel .friend-login-button { margin: 0; min-height: 40px; padding: 8px 12px; font-size: 13px; }
#welcome-friends-panel :is(button, input):focus-visible { outline: 2px solid #9c8144; outline-offset: 2px; }
#welcome-friends-panel [hidden] { display: none !important; }
@media (max-width: 700px) {
  #welcome-friends-panel { gap: 10px; padding: 14px; }
  .friends-home-eyebrow { display: none; }
  #welcome-friends-panel h2 { font-size: 25px; }
  .friends-home-add { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; }
  #welcome-friends-panel .dashboard-friend-form { grid-row: auto; grid-column: 1; }
  .friends-home-tabs { gap: 3px; }
  .friends-home-tabs button { flex: 1; gap: 5px; padding: 6px; font-size: 12px; }
  .friends-home-card { padding: 10px; gap: 5px 9px; }
  .friends-home-identity { padding-right: 44px; }
  .friends-home-actions { gap: 4px; }
  .friends-action { padding: 4px 8px; }
}
@media (max-height: 700px) {
  #welcome-friends-panel { gap: 8px; padding: 12px; }
  .friends-home-eyebrow { display: none; }
  #welcome-friends-panel h2 { font-size: 24px; }
  .friends-home-add { padding: 8px 10px; }
  .friends-home-tabs { padding-bottom: 6px; }
}
@media (max-width: 380px) and (min-height: 451px) {
  #welcome-friends-panel { gap: 6px; padding: 10px; }
  #welcome-friends-note { font-size: 11px; }
  #welcome-friends-panel h3 { font-size: 12px; }
  .friends-home-identity { padding-right: 36px; }
  .friends-home-card { grid-template-columns: 30px minmax(0, 1fr); padding: 8px; }
  .friends-home-avatar { width: 30px; height: 30px; font-size: 12px; }
  .friends-home-kind { right: 7px; font-size: 9px; }
}
@media (max-width: 700px) and (min-height: 451px) and (max-height: 650px) {
  #welcome-friends-note { display: none; }
  .friends-home-body { --friend-row-height: 90px; }
  .friends-home-card { padding-top: 7px; padding-bottom: 7px; }
  #welcome-friends-panel:has(.dashboard-friend-status:not(:empty)) :is(.dashboard-friend-help, .friends-home-add h3) { display: none; }
}
@media (max-height: 450px) and (min-width: 451px) {
  #welcome-friends-panel { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 5px 12px; padding: 10px; }
  .friends-home-heading { grid-column: 1; grid-row: 1 / 3; align-items: start; gap: 5px; }
  #welcome-friends-panel h2 { font-size: 21px; }
  #welcome-friends-note { font-size: 10px; }
  .friends-home-heading-actions { flex-direction: column; gap: 3px; }
  .friends-home-heading-actions button { min-height: 28px; min-width: 28px; padding: 4px 6px; font-size: 10px; }
  .friends-home-add { grid-column: 1; grid-row: 3 / 5; display: flex; flex-direction: column; align-self: start; gap: 5px; padding: 7px; }
  #welcome-friends-panel h3 { font-size: 11px; }
  #welcome-friends-panel .dashboard-friend-help { font-size: 10px; }
  #welcome-friends-panel .dashboard-friend-form { width: 100%; gap: 4px; }
  #welcome-friends-panel input, #welcome-friends-panel .dashboard-friend-form button { height: 30px; min-height: 30px; padding: 0 7px; font-size: 11px; }
  .friends-home-tabs { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .friends-home-tabs button { min-height: 30px; font-size: 11px; }
  .friends-home-tools { grid-column: 2; grid-row: 2; min-height: 30px; }
  #friends-home-online { min-height: 30px; padding: 0 7px; font-size: 11px; }
  .friends-home-body { grid-column: 2; grid-row: 3; --friend-row-height: 76px; }
  .friends-home-card { padding: 6px 8px; gap: 3px 7px; grid-template-columns: 28px minmax(0, 1fr); }
  .friends-home-avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
  .friends-home-identity strong { font-size: 12px; }
  .friends-home-presence { font-size: 10px; }
  .friends-action { min-height: 26px; padding: 3px 6px; font-size: 10px; }
  .friends-home-kind { top: 8px; font-size: 9px; }
  .friends-home-footer { grid-column: 2; grid-row: 4; padding-top: 3px; font-size: 10px; }
  .friends-home-footer button { min-height: 26px; min-width: 30px; padding: 2px 8px; }
  #welcome-friends-panel .dashboard-friend-status { font-size: 10px; }
  #welcome-friends-panel:has(.dashboard-friend-status:not(:empty)) .dashboard-friend-help { display: none; }
  #welcome-friend-login { grid-column: 1; grid-row: 3; align-self: start; }
  .friends-home-empty { min-height: 0; padding: 4px; font-size: 11px; line-height: 1.3; }
}
