* { box-sizing: border-box; }
body {
  margin: 64px 0px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  background: #e7ebf2;
  color: #1c2a47;
}
a { color: #3b5998; text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }
.topbar {
  background: linear-gradient(#4d6aa3, #3b5998);
  border-bottom: 1px solid #1d2a5b;
  color: white;
  height: 44px;
    position: fixed;
    width: 100%;
    z-index: 52;
    margin-top: -64px;
}

.ifb-msn-chat-input button.ifb-msn-zumbido-button-v62 {
    left: 183px;
    right: auto !important;
    width: 73px !important;
    min-height: 14px !important;
    height: 21px !important;
    min-width: 31px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 4px 1px !important;
    color: #7a3c00 !important;
    background: linear-gradient(#fff8c8, #f6d36a) !important;
    top: 33px;
}


.topbar-inner {
  width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}
.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: -1px;
  text-shadow: 0 1px #1d2a5b;
}

button#enableBrowserNotifications {
  color: #b2b2b2;
}

html:not(.ifb-ios-standalone-shell-v85) button.ifb-photo-viewer-close .fa-close {
    position: relative;
    top: -1px;
}

.topnav a, .topnav button {
  color: white;
  margin-left: 12px;
  background: transparent;
  border: 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}
.topnav a.ifb-nav-friends-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 25px;
  vertical-align: middle;
  opacity: .9;
  margin-top: -4px;
  margin-right: -9px;
}
.topnav img.ifb-nav-friends-icon {
  display: block;
  width: auto;
  height: 27px;
}
.container {
    width: 1088px;
    margin: 12px auto;
    display: grid;
    grid-template-columns: 229px 2fr 220px;
    gap: 12px;
}
.auth-container {
  width: 760px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
}
.box {
  background: #fff;
  border: 1px solid #b3bdd2;
  margin-bottom: 12px;
}
.box-title {
  background: #d8dfea;
  border-bottom: 1px solid #b3bdd2;
  color: #3b5998;
  font-weight: bold;
  padding: 7px 8px;
}
.box-body { padding: 8px; }
.sidebar-link {
  display: block;
  padding: 5px 6px;
  border-bottom: 1px solid #edf0f5;
}
.sidebar-link:hover { background: #eceff5; text-decoration: none; }
input, textarea, select {
  width: 100%;
  border: 1px solid #96a6c5;
  padding: 6px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  background: white;
}
textarea { min-height: 70px; resize: vertical; }
label { display: block; margin: 7px 0 3px; color: #333; font-weight: bold; }
button, .button {
  display: inline-block;
  width: auto;
  background: #5b74a8;
  border: 1px solid #29447e;
  border-top-color: #8a9cc2;
  color: white;
  padding: 5px 9px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}
button.secondary, .button.secondary {
  background: #eee;
  border-color: #999;
  color: #333;
}
button.danger { background: #a84a4a; border-color: #702222; }
.form-row { margin-bottom: 8px; }
.error { color: #a00; background: #ffebe8; border: 1px solid #dd3c10; padding: 7px; margin: 8px 0; }
.success { color: #246b25; background: #e8f5e4; border: 1px solid #83b66d; padding: 7px; margin: 8px 0; }
.profile-head {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
}
.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #777;
  background: #d8dfea;
}
.avatar-small {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid #999;
  background: #d8dfea;
}
.avatar-mini {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border: 1px solid #999;
  vertical-align: middle;
}
.post-box textarea { margin-bottom: 6px; }
.post {
  background: white;
  border: 1px solid #b3bdd2;
  margin-bottom: 10px;
}
.post-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 7px;
  padding: 8px;
  background: #f7f7f7;
  border-bottom: 1px solid #d8dfea;
}
.post-content { padding: 8px; line-height: 1.45; white-space: pre-wrap; }
.post-image {
    display: block;
    width: 100%;
    max-width: 355.4px;
    border: 1px solid #ccc;
    margin-top: 7px;
}
.post-actions {
  background: #edeff4;
  border-top: 1px solid #d8dfea;
  padding: 6px 8px;
}
.post-actions button {
  background: transparent;
  color: #3b5998;
  border: 0;
  padding: 0;
  margin-right: 10px;
  font-weight: bold;
}
.comments { padding: 7px 8px; background: #f5f7fa; }
.comment {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  border-top: 1px solid #d8dfea;
  padding: 6px 0;
  position: relative;
}
.comment-form { display: flex; gap: 5px; margin-top: 6px; }
.comment-form input { flex: 1; }
.comment-form button { flex: 0 0 auto; }
.ifb-comment-body {
  min-width: 0;
  padding-right: 25px;
  position: relative;
}
.ifb-comment-actions {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
}
.ifb-comment-dots {
  display: block;
  width: 20px;
  height: 17px;
  border: 1px solid transparent;
  box-sizing: border-box;
  background: transparent;
  color: #3b5998;
  padding: 0;
  font: bold 13px/11px Tahoma, Arial, sans-serif;
  text-align: center;
  opacity: .32;
  cursor: pointer;
  list-style: none;
}
.ifb-comment-dots::-webkit-details-marker {
  display: none;
}
.ifb-comment-dots::marker {
  content: "";
}
.ifb-comment-actions[open] .ifb-comment-dots,
.ifb-comment-dots:focus,
.comment:hover .ifb-comment-dots {
  border: 1px solid #b7c4da;
  background: #edf1f8;
  box-shadow: inset 0 1px #fff;
  opacity: 1;
}
.ifb-comment-menu {
  position: absolute;
  top: 18px;
  right: 0;
  min-width: 88px;
  padding: 3px 0;
  border: 1px solid #8a9cc2;
  background: #fff;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .18);
}
.ifb-comment-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  color: #3b5998;
  padding: 4px 8px;
  font: bold 11px Tahoma, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.ifb-comment-menu button:hover,
.ifb-comment-menu button:focus {
  background: #3b5998;
  color: #fff;
}
.ifb-comment-editor {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
.ifb-comment-editor input {
  flex: 1 1 auto;
  min-width: 0;
}
.ifb-comment-editor button {
  flex: 0 0 auto;
  padding: 3px 6px;
  font-size: 11px;
}
.user-list-item {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f5;
}
.badge {
  display: inline-block;
  background: #d8dfea;
  border: 1px solid #b3bdd2;
  color: #3b5998;
  padding: 2px 5px;
  font-weight: bold;
}
.muted { color: #777; font-size: 11px; }
.footer-note { color: #666; text-align: center; padding: 14px; }
.hidden { display: none !important; }

@media (max-width: 1000px) {
  .topbar-inner, .container, .auth-container { width: auto; margin-left: 10px; margin-right: 10px; padding-top: 27px; }
  .container { grid-template-columns: 1fr; }
  .auth-container { grid-template-columns: 1fr; }
}


/* Feed lateral retro: recomendaciones y páginas */
.suggestion-list,
.retro-page-list {
  margin: -4px 0;
}
.suggestion-item,
.retro-page-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 7px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f5;
}
.suggestion-item:last-child,
.retro-page-item:last-child { border-bottom: 0; }
.suggestion-item .avatar-small { width: 32px; height: 32px; }
.suggestion-actions { margin-top: 4px; }
.suggestion-actions button {
  padding: 3px 6px;
  font-size: 11px;
}
.retro-page-icon {
  width: 30px;
  height: 30px;
  border: 1px solid #9aa9c4;
  background: linear-gradient(#f8f8f8, #d8dfea);
  color: #3b5998;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: inset 0 1px #fff;
}
.retro-page-name { color: #3b5998; font-weight: bold; line-height: 1.25; }
.retro-page-kind { color: #777; font-size: 11px; margin-top: 1px; }
.retro-side-note {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #d8dfea;
  color: #777;
  font-size: 11px;
}
.retro-page-icon .icon-fallback { display: none; }
.retro-page-icon .fa:empty + .icon-fallback { display: none; }


/* Página retro hardcodeada */
.retro-page-link {
  color: inherit;
  text-decoration: none;
}
.retro-page-link:hover .retro-page-name {
  text-decoration: underline;
}
.retro-page-profile {
  border: 1px solid #b7c4da;
  background: #fff;
  margin-bottom: 12px;
}
.retro-page-cover {
  min-height: 112px;
  padding: 16px;
  display: flex;
  align-items: end;
  gap: 12px;
  background: linear-gradient(#6d84b4, #3b5998);
  color: white;
  border-bottom: 1px solid #1d2a5b;
}
.retro-page-cover h2 {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 22px;
  color: white;
  text-shadow: 0 1px #1d2a5b;
}
.retro-page-cover .muted { color: #d8dfea; }
.retro-page-cover-icon {
  width: 62px;
  height: 62px;
  border: 1px solid #1d2a5b;
  background: linear-gradient(#fff, #d8dfea);
  color: #3b5998;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: inset 0 1px #fff;
}
.retro-page-tabs {
  background: #f7f7f7;
  border-top: 1px solid #fff;
  padding: 6px 8px;
}
.retro-page-tabs a {
  display: inline-block;
  margin-right: 4px;
  padding: 4px 9px;
  border: 1px solid #b7c4da;
  background: #fff;
  color: #3b5998;
  font-weight: bold;
  text-decoration: none;
  font-size: 12px;
}
.retro-page-tabs a:hover { text-decoration: underline; }

/* Páginas reales con interacción */
.photo-upload-row {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
  padding: 5px 7px;
  border: 1px solid #b3bdd2;
  background: #f7f7f7;
  color: #3b5998;
  font-weight: bold;
  cursor: pointer;
}
.photo-upload-row input[type="file"] {
  width: 170px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #333;
  font-weight: normal;
}
.photo-upload-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(#fff, #d8dfea);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b5998;
}
.page-post .post-head {
  background: #f0f3f8;
}
.page-post-head {
  grid-template-columns: 44px 1fr;
}
.retro-page-icon.small {
  width: 38px;
  height: 38px;
  font-size: 18px;
}
#pageQuickPostForm select,
#pageQuickPostForm textarea,
#pagePostForm textarea {
  margin-bottom: 6px;
}
.retro-page-profile + .box .post-actions button,
#retroPageActions button {
  background: #5b74a8;
  border: 1px solid #29447e;
  border-top-color: #8a9cc2;
  color: white;
  padding: 5px 9px;
}
a.button {
  text-decoration: none;
}

/* Patch: páginas más reales + iconitos + notificaciones */
.retro-icon-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 4px 0 6px;
}
.retro-icon-btn {
  background: #f7f7f7;
  border: 1px solid #b3bdd2;
  color: #3b5998;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: inset 0 1px #fff;
}
.retro-icon-btn:hover { background: #eceff5; }
.retro-page-avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 1px solid #9aa9c4;
  background: #d8dfea;
}
.retro-page-avatar.small,
.retro-page-icon.small {
  width: 38px;
  height: 38px;
  font-size: 18px;
}
.retro-page-avatar.cover-avatar,
.retro-page-icon.cover-avatar {
  width: 62px;
  height: 62px;
  font-size: 30px;
  border: 1px solid #1d2a5b;
  background-color: #d8dfea;
}
.retro-page-cover {
  background-size: cover;
  background-position: center;
}
.retro-page-tabs button {
  display: inline-block;
  margin-right: 4px;
  padding: 4px 9px;
  border: 1px solid #b7c4da;
  background: #fff;
  color: #3b5998;
  font-weight: bold;
  text-decoration: none;
  font-size: 12px;
}
.retro-page-tabs button.active {
  background: #d8dfea;
  border-color: #3b5998;
}
.page-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.page-photo-card {
  display: block;
  border: 1px solid #b3bdd2;
  background: #f7f7f7;
  padding: 5px;
  color: #1c2a47;
  font-weight: normal;
}
.page-photo-card img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border: 1px solid #ccc;
  background: #fff;
  margin-bottom: 5px;
}
.notification-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.notification-toolbar button {
  font-size: 11px;
  padding: 3px 6px;
}
.notification-item {
  border-top: 1px solid #d8dfea;
  padding: 6px 0;
}
.notification-item:first-child { border-top: 0; }
.notification-item.unread {
  background: #f0f3f8;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
}
.notification-list { margin-top: 5px; }
#pageQuickPostPanel.hidden { display: none !important; }


/* iFeedeBook post content trim/padding final */
.post-content {
  padding: 4px 18px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ifb-shared-post-card {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 2px;
  padding: 7px;
  border: 1px solid #c7d0e4;
  background: #f7f7f7;
  color: #333;
  white-space: normal;
  box-shadow: inset 0 1px #fff;
  box-sizing: border-box;
}
.ifb-shared-post-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 5px;
}
.ifb-shared-post-head img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: cover;
  border: 1px solid #b3bdd2;
  background: #d8dfea;
}
.ifb-shared-post-name {
  color: #3b5998;
  font-weight: bold;
  line-height: 1.15;
}
.ifb-shared-post-page {
  color: #777;
  font-size: 11px;
  line-height: 1.2;
}
.ifb-shared-post-page a,
.ifb-wall-target-link {
  color: #3b5998;
  font-weight: bold;
  text-decoration: none;
}
.ifb-shared-post-page a:hover,
.ifb-wall-target-link:hover {
  text-decoration: underline;
}
.ifb-shared-post-text {
  margin: 4px 0 6px;
  color: #333;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.ifb-shared-post-media {
  margin: 5px 0;
}
.ifb-shared-post-media .ifb-post-media-grid {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
}
.ifb-shared-post-media .ifb-post-media-item img,
.ifb-shared-post-media .ifb-post-media-item video {
  width: 100%;
  max-width: 100%;
  max-height: 360px;
}
.ifb-shared-post-media .ifb-post-video-poster-shell {
  max-width: 100%;
}
.ifb-shared-post-link {
  color: #3b5998;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}
.ifb-shared-post-link:hover {
  text-decoration: underline;
}

.ifb-youtube-retro-embed-card {
  width: 100%;
  max-width: 620px;
  margin: 7px 0 4px;
  padding: 6px;
  border: 1px solid #c7d0e4;
  background: #f7f7f7;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.45;
}

.ifb-youtube-retro-embed-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #3b5998;
  font-size: 12px;
  font-weight: bold;
}

.ifb-youtube-retro-embed-head img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}

.ifb-youtube-retro-embed-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border: 1px solid #b3bdd2;
  background: #000;
  box-sizing: border-box;
}

.ifb-youtube-retro-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  padding: 0;
  border: 1px solid #b3bdd2;
  background: #000;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.ifb-youtube-retro-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.ifb-youtube-retro-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, .28);
  border-radius: 9px;
  background: linear-gradient(#f7f7f7, #d7d7d7);
  color: #333;
  font-size: 25px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .28);
  transform: translate(-50%, -50%);
}

.ifb-youtube-retro-play:hover .ifb-youtube-retro-play-button {
  background: linear-gradient(#fff, #cfd9ec);
  color: #3b5998;
}

.ifb-youtube-retro-open {
  display: inline-block;
  margin-top: 5px;
  color: #3b5998;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}

.ifb-youtube-retro-open:hover {
  text-decoration: underline;
}
