/* From partials/user_profile_style.dj.html, where it was inline on every page that includes it (2026-11-04). */
  /* ---- A user's public profile (user_profile, user_profile_list) ---- */

  /* The head card: the picture, the name, what can be done. */
  .up-card-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .up-avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(150, 242, 7, .12);
    color: var(--primary-color, #96F207);
    font-size: 44px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  }

  .up-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top 15%;
  }

  .up-card.is-compact .up-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .up-card-main {
    min-width: 0;
    flex: 1 1 auto;
  }

  .up-name {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .up-card.is-compact .up-name {
    font-size: 16px;
  }

  .up-name a {
    color: inherit;
    text-decoration: none;
  }

  .up-name a:hover {
    color: var(--primary-color, #96F207);
  }

  .up-username {
    margin: 0 0 .5rem;
    opacity: .65;
    font-size: 13px;
  }

  .up-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
    margin: 0 0 .9rem;
    padding: 0;
    list-style: none;
    font-size: 13px;
  }

  .up-stats strong {
    margin-inline-end: .25rem;
    font-size: 15px;
    font-weight: 900;
  }

  /* The buttons are the shared round ones (action_buttons_style); a share
     that copied the link is lit for a moment. */
  .person-actions .btn.up-copy.is-done,
  .person-actions .btn.up-share.is-done {
    color: var(--primary-color, #96F207);
    background: rgba(150, 242, 7, .16);
  }

  .up-list-head .person-actions {
    flex-wrap: wrap;
  }

  /* Shown only to the profile's owner, by the script at the foot. */
  .up-owner-only[hidden] {
    display: none !important;
  }

  /* ---- A list: its head, its works ---- */
  /* Each list is the same glass box as the comments and reviews below it:
     frosted, a faint green glow from the top corner, lit on hover. */
  .up-list.bg-card {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 0 0, rgba(150, 242, 7, .12) 0, rgba(150, 242, 7, .04) 160px, rgba(150, 242, 7, 0) 320px),
      rgba(22, 22, 27, .55) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .22);
    transition: border-color .2s;
  }
  .up-list.bg-card:hover { border-color: rgba(150, 242, 7, .3); }
  body.light-mode .up-list.bg-card {
    border-color: rgba(0, 0, 0, .08);
    background:
      radial-gradient(circle at 0 0, rgba(110, 180, 0, .14) 0, rgba(110, 180, 0, .04) 160px, rgba(110, 180, 0, 0) 320px),
      rgba(255, 255, 255, .7) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 28px rgba(0, 0, 0, .06);
  }

  .up-section-title {
    margin: 0 0 1rem;
    font-size: 18px;
    font-weight: 900;
  }

  .up-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    margin-bottom: .9rem;
  }

  .up-list-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: inherit;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
  }

  .up-list-title svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--primary-color, #96F207);
  }

  a.up-list-title:hover {
    color: var(--primary-color, #96F207);
  }

  .up-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 .65rem;
    border: 1px solid rgba(128, 128, 128, .3);
    border-radius: 999px;
    font-size: 12px;
    opacity: .85;
    white-space: nowrap;
  }

  .up-badge.is-public {
    border-color: rgba(150, 242, 7, .45);
    color: var(--primary-color, #96F207);
  }

  .up-list-more {
    margin-inline-start: auto;
    color: var(--primary-color, #96F207);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .up-list-desc {
    margin: -.25rem 0 .9rem;
    opacity: .8;
    font-size: 13px;
    line-height: 1.9;
  }

  /* A list's order and dates, on its own page. */
  .up-list-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
    margin: -.25rem 0 1rem;
    padding: 0;
    list-style: none;
    opacity: .75;
    font-size: 13px;
  }

  .up-empty {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: .9rem 1rem;
    border: 1px dashed rgba(128, 128, 128, .35);
    border-radius: 6px;
    opacity: .75;
    font-size: 13px;
  }

  @media (max-width: 575.98px) {
    .up-card-row {
      align-items: flex-start;
    }

    .up-avatar {
      width: 84px;
      height: 84px;
      font-size: 32px;
    }

    .up-name {
      font-size: 20px;
    }

    .up-list-more {
      margin-inline-start: 0;
    }
  }

  /* On a phone the page starts as close to the top as to the sides: .py-5's
     3rem (an !important utility) was four times the side padding. Same value
     as .container-fluid's own side padding, so the two stay equal. */
  @media (max-width: 767.98px) {
    #siteBody.py-5 {
      padding-top: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
    }
  }

  /* «مشاهدهٔ همه» under the shelf on a phone (and in the head otherwise). */
  .up-list-more-foot {
    display: none;
  }

  @media (max-width: 767.98px) {
    .up-list-head .up-list-more {
      display: none;
    }

    .up-list-more-foot {
      display: flex;
      justify-content: center;
      margin: .25rem 0 0;
      padding: .6rem;
      border: 1px solid rgba(150, 242, 7, .35);
      border-radius: 8px;
    }
  }

  /* On a phone - or anything without hover - a list's like, dislike and
     follow are always open with their counts: there is no pointer to open
     them. (The shared component does this for like and dislike only where
     there is no hover; here follow opens too, and a narrow screen counts.) */
  @media (max-width: 767.98px), (hover: none) {
    .up-list .person-actions .btn.work-action-like,
    .up-list .person-actions .btn.work-action-dislike,
    .up-list .person-actions .btn.work-action-follow {
      flex: 1 1 0;
      /* Icon and count together in the middle of the wider button. */
      justify-content: center;
      gap: .35rem;
      width: auto;
      min-width: 40px;
      padding-inline: .7rem;
    }

    /* The row of buttons is a line of its own, and those three share it. */
    .up-list .up-list-head .person-actions {
      flex: 1 1 100%;
    }

    .up-list .person-actions .btn.work-action-like .count,
    .up-list .person-actions .btn.work-action-dislike .count,
    .up-list .person-actions .btn.work-action-follow .count {
      position: static;
      width: auto;
      height: auto;
      margin: 0;
      overflow: visible;
      clip: auto;
      opacity: 1;
      white-space: nowrap;
    }

    /* The count says what the tooltip would, and a tooltip on a tap only covers it. */
    .up-list .person-actions .btn.work-action-like:after,
    .up-list .person-actions .btn.work-action-dislike:after,
    .up-list .person-actions .btn.work-action-follow:after {
      content: none;
    }
  }

  /* ---- The profile's parts: lists, comments, reviews ---- */
  .up-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
  .up-tab { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-body); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s; }
  .up-tab:hover { border-color: rgba(150, 242, 7, .45); color: var(--primary-color); }
  .up-tab.is-active { border-color: var(--primary-color); background: rgba(150, 242, 7, .12); color: var(--primary-color); }
  .up-tab-count { padding: 0 .45rem; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; }
  .up-stats a { color: inherit; text-decoration: none; }
  .up-stats a:hover { color: var(--primary-color); }

  .up-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
  /* «همهٔ نظرها ←», «همهٔ نقدها ←»: the same green link as a list card's «مشاهدهٔ همه ←». */
  .up-section-more { color: var(--primary-color, #96F207); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .up-section-more:hover { color: var(--primary-color, #96F207); text-decoration: underline; text-underline-offset: 3px; }

  /* A comment or a review: what it is about, when, and the text. */
  .up-entries { display: grid; gap: .9rem; margin-top: 1rem; }
  .up-entry { padding: 1rem 1.15rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); }
  .up-list .up-entry { background: rgba(255, 255, 255, .02); }
  .up-entry-date { color: var(--text-muted); font-size: 13px; }
  .up-entry-title { margin: 0 0 .4rem; font-size: 16px; font-weight: 800; }
  .up-entry-body { font-size: 14px; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }
  .up-score { border-color: rgba(150, 242, 7, .35); color: var(--primary-color); }
  .up-spoiler-badge { border-color: rgba(150, 242, 7, .35); background: rgba(150, 242, 7, .12); color: var(--primary-color); }
  /* A spoiler: blurred, under a cover that says so, until it is opened. */
  .up-entry.is-spoiler:not(.is-revealed) .up-entry-body { filter: blur(6px); cursor: pointer; user-select: none; }

  /* A comment: three lines, then the whole of it on a click. */
  .up-entry-body.is-excerpt:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .up-entry-body.is-clickable { cursor: pointer; }
  .up-entry-more { align-self: flex-start; margin-top: -.2rem; padding: 0; border: 0; background: none; color: var(--primary-color); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

  /* Comments: glass boxes like the reviews', two to a row on a desktop and
     one on a phone. In each: what it was written on and when, what it
     answers, the text in a bubble, and at the foot the likes and, in the
     bottom-left corner, «رفتن به نظر». */
  /* Every box the same height - each row as tall as the tallest - with its
     foot at the bottom. */
  .up-entries.is-comments { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
  @media (max-width: 991.98px) { .up-entries.is-comments { grid-template-columns: minmax(0, 1fr); } }

  .up-entry.up-comment {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: .9rem 1rem .8rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background:
      radial-gradient(circle at 0 0, rgba(150, 242, 7, .12) 0, rgba(150, 242, 7, .04) 120px, rgba(150, 242, 7, 0) 240px),
      rgba(22, 22, 27, .55);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .22);
    transition: border-color .2s;
  }
  .up-entry.up-comment:hover { border-color: rgba(150, 242, 7, .3); }
  body.light-mode .up-entry.up-comment {
    border-color: rgba(0, 0, 0, .08);
    background:
      radial-gradient(circle at 0 0, rgba(110, 180, 0, .14) 0, rgba(110, 180, 0, .04) 120px, rgba(110, 180, 0, 0) 240px),
      rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 28px rgba(0, 0, 0, .06);
  }

  .up-comment-head { display: flex; align-items: center; gap: .75rem; min-width: 0; }
  .up-entry-on { display: flex; flex: 1 1 auto; align-items: center; gap: .7rem; min-width: 0; color: var(--text-body); text-decoration: none; }
  .up-entry-on img, .up-comment-thumb { flex: none; width: 44px; height: 66px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
  /* A blog post's cover is wide, not a poster. */
  .up-entry-on img.is-post, .up-comment-thumb.is-post { width: 72px; height: 48px; }
  .up-comment-thumb { background: rgba(150, 242, 7, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2396f207' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / 20px no-repeat; }
  .up-comment-about { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
  .up-comment-about small { color: var(--text-muted); font-size: 12px; }
  .up-comment-about span { overflow: hidden; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .up-entry-on:hover .up-comment-about span { color: var(--primary-color); }
  .up-comment-meta { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: .3rem; }
  .up-comment-meta .up-entry-date { font-size: 12px; white-space: nowrap; }

  .up-entry-reply { display: flex; align-items: flex-start; gap: .4rem; margin: 0; padding: .45rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--text-muted); font-size: 12.5px; line-height: 1.8; }
  .up-entry-reply svg { flex: none; margin-top: .3rem; color: var(--primary-color); }
  .up-entry-reply > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .up-entry-reply strong { color: var(--text-body); }
  body.light-mode .up-entry-reply { background: rgba(0, 0, 0, .04); }

  /* The text: a bubble whose corner points up at the head. */
  .up-comment-bubble { position: relative; padding: .65rem .85rem; border-radius: 14px 4px 14px 14px; background: rgba(255, 255, 255, .05); }
  body.light-mode .up-comment-bubble { background: rgba(0, 0, 0, .04); }
  .up-comment-bubble .up-entry-body { font-size: 14px; line-height: 1.95; }
  .up-spoiler-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; border: 1px dashed rgba(150, 242, 7, .45); border-radius: inherit; background: rgba(10, 10, 12, .45); color: var(--primary-color); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
  .up-spoiler-cover[hidden] { display: none; }
  .up-spoiler-cover:hover { background: rgba(10, 10, 12, .3); }
  body.light-mode .up-spoiler-cover { background: rgba(255, 255, 255, .55); }
  /* Room for the cover when the text is a single line. */
  .up-entry.is-spoiler:not(.is-revealed) .up-comment-bubble { min-height: 3.6rem; }

  .up-comment-foot { display: flex; align-items: center; gap: .5rem; min-height: 1.6rem; margin-top: auto; }
  .up-comment-rate { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--text-muted); font-size: 12px; }
  body.light-mode .up-comment-rate { background: rgba(0, 0, 0, .05); }
  .up-comment-go { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: auto; color: var(--primary-color); font-size: 13px; font-weight: 800; text-decoration: none; }
  .up-comment-go[hidden] { display: none; }
  .up-comment-go svg { flex: none; transition: transform .2s; }
  .up-comment-go:hover { text-decoration: underline; text-underline-offset: 3px; }
  .up-comment-go:hover svg { transform: translateX(-3px); }

  /* Reviews: a grid of glass boxes - four to a row on a desktop, fewer as the
     screen narrows. Each box: the poster large on the right, and on the left,
     down at the foot, the work, the title, when, and «خواندن نقد». */
  .up-entries.is-reviews { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 1199.98px) { .up-entries.is-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 991.98px) { .up-entries.is-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 575.98px) { .up-entries.is-reviews { grid-template-columns: minmax(0, 1fr); } }

  .up-entry.up-review {
    position: relative;
    display: flex;
    gap: .85rem;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background:
      radial-gradient(circle at 0 0, rgba(150, 242, 7, .16) 0, rgba(150, 242, 7, .05) 120px, rgba(150, 242, 7, 0) 260px),
      rgba(22, 22, 27, .55);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .28);
    transition: border-color .2s, transform .2s;
  }
  .up-entry.up-review:hover { border-color: rgba(150, 242, 7, .35); transform: translateY(-2px); }
  body.light-mode .up-entry.up-review {
    border-color: rgba(0, 0, 0, .08);
    background:
      radial-gradient(circle at 0 0, rgba(110, 180, 0, .18) 0, rgba(110, 180, 0, .05) 120px, rgba(110, 180, 0, 0) 260px),
      rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 28px rgba(0, 0, 0, .08);
  }

  .up-review-poster { position: relative; flex: 0 0 44%; align-self: flex-start; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 12px; background: var(--bg-color2, #141414); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
  .up-review-poster img, .up-review-poster-empty { display: block; width: 100%; height: 100%; object-fit: cover; }
  /* A shade rising from the poster's foot, and on it, centred, the work's
     title over the review's score. */
  .up-review-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; padding: .6rem .5rem; background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 32%, rgba(0, 0, 0, 0) 62%); text-align: center; }
  .up-review-score { unicode-bidi: isolate; padding: .1rem .5rem; border-radius: 8px; background: rgba(150, 242, 7, .16); color: var(--primary-color); font-size: 14px; font-weight: 900; line-height: 1.6; }
  .up-review-score small { font-size: 10px; font-weight: 700; opacity: .75; }

  .up-review-info { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; gap: .35rem; min-width: 0; }
  .up-review-work { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.6; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
  .up-review-poster:hover .up-review-work { color: var(--primary-color); }
  .up-review .up-entry-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13.5px; line-height: 1.75; }
  /* A spoiler: a small chip in the box's top-left corner. */
  .up-review > .up-spoiler-badge { position: absolute; top: .55rem; left: .55rem; z-index: 1; padding: .05rem .45rem; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.7; }
  .up-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; color: var(--text-muted); font-size: 12px; }
  .up-review-meta .up-entry-date { margin: 0; font-size: 12px; }
  .up-review-likes { display: inline-flex; align-items: center; gap: .25rem; }
  /* «خواندن نقد ←»: a link's look, in the box's bottom-left corner. The
     details above leave its line free. */
  .up-review-info { padding-bottom: 1.6rem; }
  .up-review-open { position: absolute; left: .9rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .3rem; padding: 0; border: 0; background: none; color: var(--primary-color); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
  .up-review-open svg { flex: none; transition: transform .2s; }
  .up-review-open:hover { text-decoration: underline; text-underline-offset: 3px; }
  .up-review-open:hover svg { transform: translateX(-3px); }

  /* The whole review, over the page. */
  .up-review-dialog { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .up-review-dialog[hidden] { display: none; }
  .up-review-dialog-card { position: relative; width: min(720px, 100%); max-height: min(85vh, 900px); overflow-y: auto; padding: clamp(18px, 4vw, 30px); border-radius: 18px; background: var(--bg-card, #0d0d0d); color: var(--text-body, #fff); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .6); }
  .up-review-dialog-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
  .up-review-dialog-work { display: inline-block; margin-bottom: .4rem; color: var(--primary-color); font-size: 13px; font-weight: 800; text-decoration: none; }
  .up-review-dialog-title { margin: 0 0 .6rem; padding-inline-end: 44px; font-size: 20px; font-weight: 900; line-height: 1.7; }
  .up-review-dialog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-bottom: .5rem; color: var(--text-muted); font-size: 13px; }
  .up-review-dialog .up-review-full.is-spoiler { filter: blur(6px); cursor: pointer; user-select: none; }
  html.up-dialog-open { overflow: hidden; }
