.like-n { cursor: pointer; }
.share-btn { min-width: 42px; }
#profileScreen .head-wrap { display: flex; flex-direction: column; }
.feed, .page { padding: var(--space-1); }
.feed, .profile-posts, .profile-likes { display: flex; flex-direction: column; gap: var(--space-1); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: var(--space-2); box-shadow: none; }
.post-slot-who { flex: 1; min-width: 0; }
.post-slot-body .body { font-size: var(--text-body); }
.ui-state { text-align: center; color: var(--muted); padding: var(--space-3) var(--space-2); font-size: var(--text-meta); }
.ui-load { opacity: .8; }
.ui-error { color: #d24a4a; }
.views { color: var(--muted); font-size: 13px; margin-left: auto; display: inline-flex; align-items: center; padding: 0; }
.views .act-ico { display: inline-flex; align-items: center; padding: 4px 6px; }
.views .act-n { min-height: 26px; display: inline-flex; align-items: center; }
.views .ico, .views svg { width: 20px; height: 20px; vertical-align: 0; }
.note-link { color: var(--accent); cursor: pointer; font-weight: 700; }
.bottom button[data-screen="notify"] { position: relative; }
.nav-dot {
  position: absolute; top: 4px; right: 18%;
  width: 8px; height: 8px; border-radius: 50%; background: #e53935;
}
.row { display: flex; gap: 10px; align-items: flex-start; }
.name-row { display: flex; align-items: center; gap: 6px; }
.icon-pen {
  border: 0; background: transparent; color: var(--accent); padding: 0 0 0 6px; font-size: 20px; line-height: 1;
}
.status-line { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; }
.status-text { margin: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; color: var(--muted); flex: 1; }
.avatar { width: 38px; height: 38px; min-width: 38px; min-height: 38px; border-radius: 50%; background: var(--avatar); display: grid; place-items: center; font-size: 18px; line-height: 1; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.avatar.lg { width: 64px; height: 64px; min-width: 64px; min-height: 64px; font-size: 28px; }
.avatar-hit { cursor: pointer; flex: 0 0 auto; }
.name, .handle-link, .workchip, .workchip b, .mention {
  cursor: pointer;
}
.handle-link { color: inherit; }
.edited { color: var(--muted); font-size: 12px; }
.meta { color: var(--muted); font-size: 12px; }
.name { font-weight: 600; }
.body, .comment-text { margin: 8px 0 10px; line-height: 1.45; font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.workchip { display: flex; gap: 8px; align-items: center; background: var(--input); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.actions button {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 4px;
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.actions .like-n,
.actions .act-n {
  min-width: 22px;
  min-height: 26px;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.actions .act-ico {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
}
.actions .act-ico .ico,
.actions .act-ico svg { width: 20px; height: 20px; }
.report-btn svg { width: 20px; height: 20px; }
.actions button.heart { color: var(--heart); }
.actions button.to-post { padding: 4px; min-height: 0; height: auto; }
.actions button.to-post .act-n { min-width: auto; padding: 2px 8px; }
.score { color: var(--accent); font-weight: 700; }
.profile-posts, .profile-likes { display: flex; flex-direction: column; gap: 12px; }
.profile-tabs { display: flex; gap: 8px; margin: 16px 0 12px; }
.comment {
  padding: 16px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin: 0 0 10px;
  box-sizing: border-box;
}
#commentList > .comment:last-child { margin-bottom: 0; }
.comment-reply {
  margin: 0 0 8px;
  padding: 12px;
}
.comment .replies { margin: 0; padding: 0; border: 0; }
.comment .row { display: flex; gap: 10px; align-items: flex-start; }
.comment .actions { align-items: center; margin-top: 10px; }
.actions button.reply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
}
.center-action .reply-btn { padding: 0 12px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.shelf-tools { margin-left: auto; }
.report-btn { border: 1px solid var(--line); border-radius: 999px; width: 36px; height: 36px; color: var(--muted); background: transparent; }
.comment .actions button.report-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
.comment .actions button.report-btn svg,
.post-slot-actions .report-btn svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
}
.comment .actions button,
.comment .actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
}
.comment .actions button:first-child {
  padding: 4px;
  height: auto;
  min-height: 0;
  gap: 0;
}
.reply-list,
.reply-stack {
  margin: 12px 0 0;
  padding: 0;
}
.reply-stack::before { content: none; display: none; }
.more-replies {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  width: auto;
}
.comment-reply .avatar { width: 28px; height: 28px; font-size: 16px; }
#modal .sheet { transition: transform .2s ease; }
.mention { color: var(--accent); font-weight: 600; text-decoration: none; }
.comment.is-focus > .comment-text .comment-hl {
  border-radius: 4px;
  animation: blinkFocus 1.2s ease 0s 3 forwards;
}
.theme-label { margin-bottom: 0; }
.theme-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; margin-bottom: 8px; }
.theme-pick button { flex: 0 0 auto; width: auto; }
.bottom,
.tabs,
.profile-tabs,
.cat-pick {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bottom::-webkit-scrollbar,
.profile-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  width: 100%;
  transform: none;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 6px; align-items: center;
  padding: 14px max(10px, calc((100% - 690px) / 2)) 14px;
  background: var(--bg);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.bottom button[data-screen] {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width: 100%;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}
.bottom button[data-screen] svg {
  width: 20px;
  height: 20px;
  display: block;
}
.bottom button[data-screen].on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.bottom .plus {
  width: 100%; height: 44px; border-radius: 999px;
  border: 0; background: var(--accent); color: var(--bg);
  font-size: 20px; line-height: 1; font-weight: 500;
  display: grid; place-items: center;
  align-self: center;
  margin: 0;
  position: relative;
  z-index: 1;
}
.plus-logo {
  width: 22px;
  height: 24px;
  background: var(--bg);
  -webkit-mask: url("/icons/logo.svg") center / contain no-repeat;
  mask: url("/icons/logo.svg") center / contain no-repeat;
}
.screen { min-height: 100vh; }
.hidden { display: none !important; }
.pad { padding: 8px 12px 24px; }
.review { color: var(--muted); font-size: 13px; margin: 6px 0 10px; overflow-wrap: anywhere; }
input, textarea, select {
  width: 100%; background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; margin: 8px 0; min-height: 46px; box-sizing: border-box; outline: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--line);
}
select { height: 46px; }
textarea { resize: none; }
.shelf-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.shelf-toggle { color: var(--muted); width: 14px; display: inline-block; }
.shelf.collapsed .shelf-items,
.shelf.collapsed .actions { display: none; }
.shelf:not(.collapsed) .shelf-toggle { transform: rotate(90deg); }
.icon-btns { display: inline-flex; gap: 6px; }
.center-action { margin-top: 16px; margin-bottom: 16px; display: flex; justify-content: center; }
.icon-btn { min-width: 36px; padding: 4px 8px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.comment-head { justify-content: flex-start; }
.comment-head h3 { margin-right: 8px; }
.comment-sort {
  border: 0; margin: 0; padding: 16px 0;
  min-height: 48px; height: auto; overflow: visible;
  box-shadow: none; justify-content: flex-start; touch-action: auto;
}
.post-tools { margin-left: auto; display: inline-flex; gap: 4px; }
.post-tools .icon-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 8px; color: var(--muted); }
.ping-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-left: 6px; vertical-align: middle;
  animation: ping 1s ease 0s 4;
}
@keyframes ping {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .25; transform: scale(1.4); }
}
.sheet-title h3 { margin: 0; }
#profileTabs { border: 0; box-shadow: none; min-height: 52px; }
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.item { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.shelf-items { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 12px; }
body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; overscroll-behavior: contain; overflow: hidden; }
.sheet {
  width: min(710px, 100%);
  background: var(--sheet);
  border-radius: 20px 20px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  max-height: 88vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  touch-action: pan-y;
  max-width: 100%;
}
#commentList {
  flex: none;
  overflow: visible;
  min-height: 0;
}
.sheet:has(.comment-compose) { padding-bottom: 0; }
.comment-compose {
  position: sticky;
  bottom: 0;
  background: var(--sheet);
  padding: 10px 16px 16px;
  margin-top: 8px;
  margin-left: -16px;
  margin-right: -16px;
  border-top: 1px solid var(--line);
  z-index: 4;
  box-shadow: none;
}
#replyHint {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--hint-h);
  min-height: var(--hint-h);
  max-height: var(--hint-h);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 var(--hint-h);
  overflow: hidden;
}
#replyHint:empty { display: none; height: 0; min-height: 0; max-height: 0; flex-basis: 0; margin: 0; padding: 0; }
