/* Presentation refinements. Keep application behavior in app.js and account.js. */
:root {
  --ink: #192b45;
  --muted: #62738a;
  --line: #e3e9f1;
  --bg: #f3f6fa;
  --surface-shadow: 0 3px 16px #192b4505;
}
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand { font-family: 'Manrope', sans-serif; }
button, a, input, textarea, select { transition: background-color .16s, border-color .16s, box-shadow .16s, color .16s; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #76a9ec; outline-offset: 3px; }
#account-bar { background: #eaf0f8; color: #526780; font-size: 11px; padding-top: 8px; padding-bottom: 8px; }
#account-bar button { border-color: #d4dfed; border-radius: 8px; padding: 8px 13px; font-size: 11px; }
#account-bar button:hover { background: #f5f8fd; border-color: #98b7de; }
#account-bar [data-register] { background: var(--green); color: #fff; border-color: var(--green); }
header { height: 76px; gap: 28px; padding: 0 max(24px, calc((100vw - 1200px)/2)); box-shadow: 0 2px 12px #192b4504; }
.search { width: 270px; padding: 12px 16px; border: 1px solid transparent; border-radius: 12px; background: #f2f5f9; }
.search:focus-within { background: #fff; border-color: #89afe1; box-shadow: 0 0 0 3px #1456b80b; }
.search input { font-size: 13px; }
.search input::placeholder { color: #718198; }
.top-nav { gap: 6px; }
.top-nav button { min-width: 80px; padding: 12px 14px 10px; font-size: 11px; gap: 6px; color: #64758b; }
.top-nav button:hover { background: #f6f8fc; color: var(--green); }
.top-nav button.active { background: linear-gradient(0deg, #edf3fc, #fff 85%); }
.header-right { padding-left: 22px; gap: 12px; }
.header-right .avatar { width: 38px; height: 38px; }
.layout { max-width: 1228px; grid-template-columns: 224px minmax(0, 600px) 280px; gap: 24px; padding: 28px 24px 48px; align-items: start; }
main { min-width: 0; }
.left { top: 100px; }
.card, .rail-card { border-radius: 16px; border-color: var(--line); box-shadow: var(--surface-shadow); }
.profile-cover { height: 82px; background: linear-gradient(125deg, #142e52, #235893 70%, #7fa8d8); }
.profile-content { padding: 0 18px 20px; }
.profile-content > .avatar { width: 68px; height: 68px; margin-top: -34px; box-shadow: 0 2px 8px #192b4510; }
.profile-content h2 { margin-top: 12px; font-size: 18px; }
.profile-content > p { font-size: 12px; color: var(--muted); line-height: 1.65; }
.sidebar-edit-profile { font-size: 12px; }
.profile-line { margin-top: 15px; font-size: 12px; }
.profile-line strong, .profile-saved strong { font-variant-numeric: tabular-nums; }
.profile-saved { padding: 16px 18px; font-size: 11px; background: #fbfcfe; }
.left nav { border: 0; background: transparent; padding: 4px 0; gap: 5px; overflow: visible; }
.left nav button { padding: 13px 14px; border: 0; border-radius: 10px; color: #63738a; font-size: 12px; font-weight: 500; }
.left nav button:hover { background: #eaf0f8; color: var(--green); }
.left nav button.active { padding-left: 14px; border: 0; color: var(--green); background: #e4edfa; font-weight: 700; }
.sidebar-foot { padding: 0 14px; font-size: 11px; color: #77869a; line-height: 1.9; }
.composer { padding: 20px 20px 8px; margin-bottom: 18px; }
.compose-trigger { font-size: 14px; padding: 16px 18px; background: #f2f5fa; color: #65768d; border-radius: 12px; }
.compose-bottom { margin-top: 18px; padding-top: 6px; }
.composer-tool { min-height: 46px; font-size: 12px; border-radius: 9px; font-weight: 600; }
.composer-tool svg { width: 20px; height: 20px; }
.feed-tabs { gap: 6px; padding: 0; margin: 0 0 18px; border: 0; }
.feed-tabs button { padding: 10px 17px; min-height: 40px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 500; color: var(--muted); }
.feed-tabs button:hover { background: #eaf0f8; }
.feed-tabs button.active { background: #fff; border-color: #dce6f3; color: var(--green); box-shadow: 0 2px 5px #192b4504; font-weight: 700; }
.post { padding: 20px 20px 6px; margin-bottom: 20px; border-radius: 16px; box-shadow: var(--surface-shadow); }
.post-head { gap: 12px; }
.post-head h3 { font-family: 'DM Sans', sans-serif; font-size: 14px; }
.post-head .avatar { width: 44px; height: 44px; }
.post-head .meta { font-size: 11px; color: var(--muted); line-height: 1.65; }
.post-text { font-size: 14px; line-height: 1.8; margin: 18px 0; }
.post .project-preview { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post .project-art { height: 200px; }
.social-project-preview .preview-info { background: #f7f9fc !important; padding: 16px 18px !important; }
.social-project-preview h3 { font-family: 'Manrope', sans-serif; font-weight: 800; line-height: 1.5; }
.project-preview-main:hover .preview-info { background: #edf3fb !important; }
.project-preview-footer { background: #fff; padding: 13px 18px; }
.project-preview-footer .project-open-button { font-size: 11px; padding: 6px 0; }
.post-counts { color: var(--muted); font-size: 11px; margin: 15px 0 9px; }
.actions { padding: 5px 0; }
.actions button { min-height: 42px; border-radius: 9px; color: #62738a; font-size: 12px; font-weight: 600; }
.rail-card { padding: 21px; margin-bottom: 20px; }
.rail-title h2 { font-size: 14px; letter-spacing: -.3px; }
.rail-title > span { background: #f0f4fa; padding: 4px 7px; border-radius: 6px; color: #657b99; }
.rail-project { padding-top: 20px; margin-top: 20px; }
.rail-project h3 { font-size: 12px; line-height: 1.7; }
.rail-project p, .rail-project .preview-stats { font-size: 11px; }
.progress { height: 5px; border-radius: 8px; }
.progress span { border-radius: inherit; background: linear-gradient(90deg, #1456b8, #6595d6); }
.account { margin-top: 24px; }
.account h3 { font-size: 12px; }
.account p { font-size: 10px; line-height: 1.6; }
.follow { min-height: 32px; font-size: 11px; border-color: #c4d6ef; }
.text-button { font-size: 12px; padding-top: 22px; }
.quote { padding: 4px 12px; font-size: 12px; line-height: 1.8; }
.quote strong { font-family: 'Manrope', sans-serif; font-size: 16px; letter-spacing: -.4px; color: #2d4e79; }
.page-title { font-size: 27px; letter-spacing: -.9px; }
.primary, .secondary { border-radius: 10px; min-height: 40px; }
.comment { background: #f1f5fa; border-radius: 12px; line-height: 1.7; }
.comment-form input { border-radius: 12px; padding: 12px; }
dialog { border-radius: 20px; padding: 28px; box-shadow: 0 24px 90px #142e5230; }
dialog::backdrop { background: #14243d66; backdrop-filter: blur(5px); }
.account-form input, dialog textarea, dialog select { border-radius: 10px; }
.social-project-identity { padding: 0 24px 24px; }
.social-project-tabs button { min-height: 48px; }
@media (max-width: 1150px) {
  header { padding: 0 24px; gap: 20px; }
  .layout { max-width: 980px; grid-template-columns: 224px minmax(0, 1fr); }
  .search { width: 230px; }
  .top-nav button { min-width: 64px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 850px) {
  header { gap: 14px; padding: 0 18px; }
  .search { width: 180px; }
  .top-nav button { min-width: 54px; padding-left: 7px; padding-right: 7px; }
  .header-right { padding-left: 12px; }
}
@media (max-width: 760px) {
  header { height: 66px; padding: 0 16px; gap: 14px; }
  .search { width: auto; flex: 1; min-width: 0; padding: 11px 12px; border-radius: 11px; }
  .search input { font-size: 12px; min-width: 0; }
  .vukao-logo { width: 98px; height: 28px; }
  .header-right { padding: 0; }
  .header-right .avatar { width: 34px; height: 34px; }
  #account-bar { gap: 7px; padding: 9px 16px; font-size: 10px; }
  #account-bar button { min-height: 34px; font-size: 11px; padding: 7px 11px; }
  .layout { display: block; padding: 16px 12px calc(90px + env(safe-area-inset-bottom)); }
  .left nav { position: fixed; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #192b4506; border-radius: 0; gap: 4px; }
  .left nav button, .left nav button.active { padding: 8px 5px; min-height: 49px; flex: 1; font-size: 10px; border-radius: 10px; gap: 5px; }
  .left nav svg { width: 21px; height: 21px; }
  .composer { border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 6px; margin-bottom: 14px; }
  .compose-row { gap: 10px; }
  .compose-row .avatar { width: 38px; height: 38px; }
  .compose-trigger { font-size: 13px; padding: 13px 12px; min-width: 0; }
  .compose-bottom { margin-top: 14px; gap: 2px; }
  .composer-tool { font-size: 10px; gap: 5px; padding: 10px 2px; min-height: 42px; }
  .composer-tool svg { width: 17px; height: 17px; }
  .feed-tabs { margin: 0 0 14px; gap: 3px; }
  .feed-tabs button { font-size: 12px; padding: 10px 14px; }
  .post { padding: 16px 14px 5px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
  .post-head { gap: 9px; }
  .post-head .avatar { width: 38px; height: 38px; }
  .post-head h3 { font-size: 13px; }
  .post-head .meta { font-size: 10px; }
  .post-text { font-size: 14px; line-height: 1.75; margin: 15px 0; }
  .post .project-preview { margin: 0; border-radius: 10px; }
  .post .project-art { height: 165px; }
  .social-project-preview .preview-info { padding: 14px !important; }
  .project-preview-footer { padding: 10px 14px; }
  .actions button { font-size: 11px; min-height: 44px; gap: 5px; }
  .actions svg { width: 19px; height: 19px; }
  .reaction-picker summary { opacity: 1; }
  .page-title { margin-left: 3px; font-size: 24px; }
  .social-project-header, .detail-body, .empty { border-radius: 14px; border: 1px solid var(--line); }
  .social-project-identity { padding: 0 16px 20px; }
  dialog { padding: 22px; border-radius: 16px; max-height: 88dvh; overflow-y: auto; }
  .publication-dialog { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* One icon family throughout navigation, composer and social actions. */
.ui-icon { flex-shrink: 0; width: 20px; height: 20px; stroke-width: 1.8; fill: none; }
.top-nav .ui-icon, .left nav .ui-icon { width: 23px; height: 23px; stroke-width: 1.8; }
.top-nav button.active .ui-icon, .left nav button.active .ui-icon { stroke-width: 2.1; }
.top-nav button.active .icon-home, .left nav button.active .icon-home,
.top-nav button.active .icon-projects, .left nav button.active .icon-projects { fill: #1456b810; }
.composer-tool .ui-icon, .composer-tool.media-tool .ui-icon { width: 21px; height: 21px; stroke-width: 1.8; color: var(--green); }
.search .ui-icon { width: 18px; height: 18px; color: #6a7f9b; }
.icon-more { stroke-width: 3; }
.post-head .save .ui-icon { width: 20px; height: 20px; }
.post-head .save.on .ui-icon { fill: #1456b81a; }
.actions .ui-icon { width: 20px; height: 20px; stroke-width: 1.8; }
.document-symbol .ui-icon { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .left nav .ui-icon { width: 23px; height: 23px; }
  .composer-tool .ui-icon, .composer-tool.media-tool .ui-icon { width: 19px; height: 19px; }
}

/* Simple outlines stay legible at small sizes. */
.ui-icon { color: inherit; fill: none; }
.ui-icon .icon-outline { fill: none; stroke-width: 1.8; }
.top-nav .ui-icon, .left nav .ui-icon { width: 23px; height: 23px; }
.top-nav button.active .ui-icon, .left nav button.active .ui-icon { color: var(--green); fill: none; }
.top-nav button.active .icon-outline, .left nav button.active .icon-outline { stroke-width: 2; }
.icon-more .icon-outline { stroke-width: 3; }
.composer-tool .ui-icon, .composer-tool.media-tool .ui-icon { width: 20px; height: 20px; }

/* Saved publications use a solid blue bookmark in every feed. */
.post-head .save.on,
.post-head .save.on .ui-icon { color: var(--green); }
.post-head .save.on .icon-outline { fill: var(--green); stroke: var(--green); }

/* Header: clear navigation, a quiet search surface and compact account controls. */
header {
  height: 80px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  gap: 32px;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #dde6f1;
  box-shadow: 0 4px 24px #192b4505;
}
header .brand { padding: 8px 0; }
header .vukao-logo { width: 132px; height: 34px; }
header .search {
  width: 300px;
  min-width: 140px;
  height: 44px;
  gap: 10px;
  padding: 0 15px;
  background: #f3f6fa;
  border: 1px solid #e7edf5;
  border-radius: 12px;
}
header .search:hover { border-color: #cbd9eb; }
header .search:focus-within { background: #fff; border-color: #80a9df; box-shadow: 0 0 0 4px #1456b80a; }
header .search input { font-size: 13px; min-width: 0; }
header .top-nav { align-self: center; margin-left: auto; gap: 6px; }
header .top-nav button {
  position: relative;
  min-width: 76px;
  height: 58px;
  padding: 8px 12px;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #687b93;
  font-size: 10px;
  font-weight: 500;
}
header .top-nav button:hover { color: var(--green); background: #f1f5fb; }
header .top-nav button.active { color: var(--green); background: #eaf1fb; font-weight: 700; }
header .top-nav .ui-icon { width: 22px; height: 22px; }
header .top-nav .notification-badge {
  position: absolute;
  top: 3px;
  right: 15px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
  box-shadow: 0 0 0 2px #fff;
}
header .header-right { gap: 12px; padding-left: 22px; border-left: 1px solid #e4ebf4; }
header .header-right .badge { background: none; padding: 0; color: #71849c; letter-spacing: .9px; font-size: 8px; }
header .header-right .avatar { width: 38px; height: 38px; background: #eaf1fc; border: 2px solid #fff; box-shadow: 0 0 0 1px #dce6f3; }
header .author-avatar { border-radius: 50%; }
header .author-avatar:hover { box-shadow: 0 0 0 4px #edf3fc; }
@media (max-width: 1150px) {
  header { padding: 0 24px; gap: 22px; }
  header .search { width: 250px; }
  header .top-nav button { min-width: 66px; padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 900px) {
  header { gap: 16px; padding: 0 18px; }
  header .search { width: 200px; }
  header .top-nav button { min-width: 56px; padding-left: 5px; padding-right: 5px; }
  header .header-right { padding-left: 14px; }
  header .header-right .badge { display: none; }
}
@media (max-width: 760px) {
  header { height: 68px; padding: 0 14px; gap: 12px; }
  header .vukao-logo { width: 98px; height: 28px; }
  header .search { width: auto; flex: 1; min-width: 0; height: 40px; padding: 0 11px; gap: 7px; border-radius: 11px; }
  header .search input { font-size: 12px; }
  header .search .ui-icon { width: 17px; height: 17px; }
  header .header-right { border: 0; padding: 0; gap: 10px; }
  header .header-right .avatar { width: 32px; height: 32px; font-size: 11px; }
  header .header-right .mobile-notifications { width: 34px; height: 38px; padding: 6px; border-radius: 10px; background: #f3f6fa; }
  header .mobile-notifications .notification-badge { top: -3px; right: -3px; box-shadow: 0 0 0 2px #fff; }
}
@media (max-width: 370px) {
  header { gap: 9px; padding: 0 10px; }
  header .vukao-logo { width: 86px; }
  header .header-right { gap: 6px; }
}

/* Mobile header: identity and actions first, a full-width search below. */
@media (max-width: 760px) {
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 42px;
    height: auto;
    gap: 10px 16px;
    padding: 10px 16px 14px;
    background: #fff;
    backdrop-filter: none;
    box-shadow: 0 3px 14px #192b4504;
  }
  header .brand { grid-column: 1; grid-row: 1; justify-self: start; padding: 7px 0; }
  header .vukao-logo { width: 106px; height: 29px; }
  header .header-right { grid-column: 2; grid-row: 1; gap: 8px; }
  header .header-right > [data-profile] { display: grid; place-items: center; width: 44px; height: 44px; padding: 4px; border-radius: 12px; }
  header .header-right .avatar { width: 34px; height: 34px; font-size: 12px; }
  header .header-right .mobile-notifications { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: transparent; }
  header .mobile-notifications:hover, header .mobile-notifications[aria-expanded="true"] { background: #edf3fc; color: var(--green); }
  header .mobile-notifications .notification-badge { top: 3px; right: 3px; }
  header .search { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 42px; padding: 0 14px; gap: 10px; border: 1px solid #e7edf5; border-radius: 12px; }
  header .search input { font-size: 16px; }
  header .search input::placeholder { font-size: 13px; }
  header .search .ui-icon { width: 18px; height: 18px; }
  header .top-nav { display: none; }
  #notification-preview-host:empty { display: none; }
}

/* Continuous reading surface on phones and tablets; desktop keeps its cards. */
@media (max-width: 1150px) {
:root { --bg: #fff; --surface-shadow: none; }
body { background: #fff; }
.card, .rail-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.layout { gap: 28px; }
.layout > main { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.composer { padding: 20px 24px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.compose-trigger { background: #f4f6f9; }
.feed-tabs { margin: 0; padding: 10px 24px 0; gap: 24px; border-bottom: 1px solid var(--line); }
.feed-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0; box-shadow: none; }
.feed-tabs button.active { border: 0; border-bottom: 2px solid var(--green); background: transparent; box-shadow: none; }
.feed-tabs button:hover { background: transparent; color: var(--green); }
.post { padding: 24px 24px 10px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.post-text { margin: 16px 0; }
.post .project-preview { border-radius: 6px; }
.actions { border-top: 0; }
.profile-card { border: 0; border-radius: 0; box-shadow: none; }
.profile-cover { border-radius: 6px; }
.profile-saved { padding-left: 18px; background: transparent; border-bottom: 1px solid var(--line); }
.rail-card { padding: 8px 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.rail-project { border-top: 0; padding-top: 0; margin-top: 24px; }
.profile-content { padding-bottom: 24px; }
.social-project-header, .full-profile { border-bottom: 1px solid var(--line); }
.detail-body { padding: 24px; border-bottom: 1px solid var(--line); }
main > .page-title, main > .detail-back { margin-left: 24px; }
@media (max-width: 760px) {
  .layout { padding: 0 0 calc(90px + env(safe-area-inset-bottom)); }
  .layout > main { border: 0; }
  .composer { padding: 18px 16px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
  .feed-tabs { padding: 8px 16px 0; margin: 0; gap: 26px; }
  .feed-tabs button { padding: 12px 0; }
  .post { padding: 22px 16px 8px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .post .project-preview { border-radius: 6px; }
  .social-project-header, .detail-body, .empty { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  main > .page-title, main > .detail-back { margin-left: 16px; }
  .detail-body { padding: 20px 16px; }
}
}

/* Mobile and tablet feed: full-width media, readable copy, quiet grey breaks. */
@media (max-width: 1150px) {
  .layout > main { background: #fff; }
  .composer { border-bottom: 6px solid #f0f2f5; }
  .compose-trigger { border-radius: 24px; background: #f2f4f7; }
  .compose-bottom { margin-top: 12px; }
  .feed-tabs { padding-top: 0; gap: 0; justify-content: space-around; }
  .feed-tabs button { flex: 1; padding: 15px 8px; font-size: 12px; text-align: center; }
  .post { padding: 20px 20px 4px; border-bottom: 8px solid #f0f2f5; }
  .post-head h3 { font-size: 14px; }
  .post-head .meta { font-size: 11px; }
  .post-text { font-size: 14px; line-height: 1.7; margin: 15px 0 18px; }
  .post .project-preview { margin: 0 -20px; border: 0; border-radius: 0; }
  .post .project-art { height: 240px; }
  .social-project-preview .preview-info { background: #f7f8fa !important; padding: 16px 20px !important; }
  .social-project-preview h3 { font-size: 16px !important; line-height: 1.5; }
  .project-preview-footer { padding: 10px 20px; background: #f7f8fa; }
  .post .post-media { margin-left: -20px; margin-right: -20px; border-radius: 0; }
  .post-counts { margin: 13px 0 8px; font-size: 11px; }
  .actions { border-top: 1px solid #edf0f4; padding: 3px 0; }
  .actions button { min-height: 44px; font-size: 12px; }
  .actions .ui-icon { width: 21px; height: 21px; }
}
@media (max-width: 760px) {
  .post { padding: 17px 16px 4px; }
  .post-head .avatar { width: 40px; height: 40px; }
  .post .project-preview { margin: 0 -16px; border-radius: 0; }
  .post .project-art { height: 220px; }
  .social-project-preview .preview-info { padding: 15px 16px !important; }
  .project-preview-footer { padding: 10px 16px; }
  .post .post-media { margin-left: -16px; margin-right: -16px; }
  .feed-tabs { padding: 0 16px; }
  .composer { padding: 16px 16px 6px; }
}

/* Long names must yield space to avatars and publication controls. */
.author-name { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.author-avatar, .post-head > .save, .post-head > .post-options,
.post-head > .report-content { flex-shrink: 0; }
.post-head > div { flex: 1; min-width: 0; }
.post-head h3, .account h3 { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.post-head h3 .author-name, .account h3 .author-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.post-head h3 .verified, .account h3 .verified { flex-shrink: 0; margin-left: 0; }
.post-head .meta { overflow-wrap: anywhere; }
.post-head .save { margin-left: 0; }
.post-head .report-content { width: 32px; padding: 6px; }
.account > div { min-width: 0; }
.profile-content h2, .full-profile-body h1, .social-project-identity h1,
.compose-identity strong, .comment .author-name, .notification-open,
.reactor-name-link { overflow-wrap: anywhere; }
.comment-row, .comment-content, .notification-open { min-width: 0; }
@media (max-width: 760px) {
  .post-head { gap: 8px; }
  .post-head > .save { padding: 6px; }
  .post-head > .report-content { width: 28px; padding: 4px; }
}

/* Keep the author, verification badge and actions on one stable header row. */
.post-head { align-items: flex-start; }
.post-head > .save, .post-head > .report-content, .post-head > .post-options { align-self: flex-start; margin-top: 2px; }
.post-head h3, .account h3 { align-items: center; }
.post-head h3 .author-name, .account h3 .author-name {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  overflow-wrap: normal;
}
.post-head h3 .verified, .account h3 .verified { align-self: center; }
.post-head .meta { line-height: 1.5; }

/* Mobile tab bar: equal targets, single-line labels and a quiet active pill. */
@media (max-width: 760px) {
  .left nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e4eaf2;
    background: #fffffffa;
    backdrop-filter: blur(16px);
    box-shadow: 0 -3px 16px #192b4505;
  }
  .left nav button, .left nav button.active {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    padding: 7px 2px 4px;
    gap: 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
    color: #728096;
  }
  .left nav button > span { white-space: nowrap; max-width: 100%; }
  .left nav button .ui-icon { position: relative; z-index: 1; width: 23px; height: 23px; }
  .left nav button::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 32px;
    border-radius: 18px;
    background: transparent;
  }
  .left nav button.active { color: var(--green); font-weight: 700; }
  .left nav button.active::before { background: #e7effb; }
  .left nav button:hover { background: transparent; color: var(--green); }
  .left nav button:active::before { background: #dce8f9; }
  .left nav button[data-nav="notifications"] { display: none; }
  .layout { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Compact phone header: one row, with search expanding while typing. */
@media (max-width: 760px) {
  header {
    display: flex;
    height: 62px;
    min-height: 62px;
    padding: 0 12px;
    gap: 12px;
  }
  header .brand { padding: 7px 0; }
  header .vukao-logo { width: 94px; height: 28px; }
  header .search {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    gap: 7px;
    border-radius: 10px;
  }
  header .search input { min-width: 0; width: 100%; font-size: 16px; }
  header .search input::placeholder { font-size: 12px; }
  header .header-right { gap: 2px; flex-shrink: 0; }
  header .header-right .mobile-notifications { width: 38px; height: 42px; padding: 9px; }
  header .header-right > [data-profile] { width: 38px; height: 42px; padding: 3px; }
  header .header-right .avatar { width: 30px; height: 30px; font-size: 11px; }
  header:has(.search input:focus) .brand { display: none; }
  #account-bar { padding: 6px 12px; gap: 5px 10px; font-size: 10px; }
  #account-bar button { min-height: 30px; padding: 5px 9px; }
}
@media (max-width: 370px) {
  header { gap: 8px; padding: 0 10px; }
  header .vukao-logo { width: 82px; }
  header .search { padding: 0 8px; }
}

/* Give mobile content breathing room below the compact header. */
@media (max-width: 760px) {
  .layout { padding-top: 12px; }
}

/* Page audit: consistent margins and link-based navigation. */
header .top-nav a.route-link {
  position: relative; min-width: 76px; min-height: 0; height: 58px;
  padding: 8px 12px; gap: 5px; border: 0; border-radius: 12px;
  color: #687b93; font-size: 10px; font-weight: 500;
}
header .top-nav a.route-link.active { color: var(--green); background: #eaf1fb; border: 0; font-weight: 700; }
header .top-nav a.route-link:hover { background: #f1f5fb; color: var(--green); }
.left nav a.route-link { min-width: 0; font-size: 12px; padding: 13px 14px; }
a.author-name { max-width: 100%; min-width: 0; }
.projects-page-heading { padding: 0 20px; align-items: center; margin: 0 0 20px; }
.projects-page-heading .page-title { margin: 0; }
.projects-page-heading .primary { flex-shrink: 0; }
.full-profile-body > [data-copy-profile] { display: inline-block; width: auto; padding: 7px 0; margin: 0 0 12px; text-align: left; font-size: 12px; }
.profile-numbers { gap: 16px; flex-wrap: wrap; }
.profile-action-row { display: flex; flex-wrap: wrap; }
@media (max-width: 1150px) {
  main > .notifications-heading, main > .notification-filters,
  main > .search-heading, main > .search-result-tabs { margin-left: 20px; margin-right: 20px; }
  .search-result-section > h2 { padding: 0 20px; }
  main > .rail-card { padding: 8px 20px 24px; }
  main > .page-title { margin-top: 12px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  header { gap: 12px; }
  header .top-nav a.route-link { min-width: 54px; padding: 8px 6px; }
  header .search { width: 190px; }
}
@media (max-width: 760px) {
  .projects-page-heading { padding: 8px 16px 0; margin-bottom: 16px; gap: 12px; }
  .projects-page-heading .page-title { font-size: 24px; }
  .projects-page-heading .primary { padding: 10px 12px; font-size: 12px; }
  main > .notifications-heading, main > .notification-filters,
  main > .search-heading, main > .search-result-tabs { margin-left: 16px; margin-right: 16px; }
  .notifications-heading { margin-top: 8px; }
  .notifications-heading .page-title { font-size: 24px; }
  .search-heading { padding-top: 8px; }
  .search-heading .page-title { margin-left: 0; margin-bottom: 12px; }
  .search-result-section > h2 { padding: 0 16px; }
  main > .rail-card { padding: 0 16px 24px; }
  main > .rail-card .account { margin-top: 20px; gap: 10px; }
  .account .follow { flex-shrink: 0; }
  .full-profile .profile-cover { border-radius: 0; }
  .full-profile-body h1 { margin-top: 12px; margin-bottom: 4px; }
  .full-profile-body > p { line-height: 1.7; }
  .profile-action-row > button { min-height: 42px; }
  .left nav a.route-link, .left nav a.route-link.active {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; min-width: 0; min-height: 54px;
    padding: 7px 2px 4px; gap: 7px; border: 0; border-radius: 0;
    background: transparent; font-size: 10px; line-height: 1.2; color: #728096;
  }
  .left nav a.route-link > span { white-space: nowrap; }
  .left nav a.route-link .ui-icon { position: relative; z-index: 1; width: 23px; height: 23px; }
  .left nav a.route-link::before { content: ''; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 48px; height: 32px; border-radius: 18px; }
  .left nav a.route-link.active { color: var(--green); font-weight: 700; }
  .left nav a.route-link.active::before { background: #e7effb; }
  header .header-right > a[data-profile] { display: grid; place-items: center; width: 38px; height: 42px; padding: 3px; }
}
@media (max-width: 760px) {
  .left nav a.route-link[data-nav="notifications"] { display: none; }
}
.profile-content > .sidebar-edit-profile { display: block; margin: 0 0 10px; padding: 4px 0; text-align: left; }
/* Sidebar suggestions keep readable names by placing Follow beneath the identity. */
.right .account { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 8px 10px; }
.right .account > .author-avatar { grid-column: 1; grid-row: 1; }
.right .account > div { grid-column: 2; min-width: 0; }
.right .account .follow { grid-column: 2; justify-self: start; margin: 0; }
.right .account h3 .author-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
a.route-link.text-button { display: block; text-align: center; color: var(--green); font-size: 12px; font-weight: 700; padding-top: 20px; }
a.route-link.profile-saved { display: flex; align-items: center; gap: 8px; padding: 16px 18px; font-size: 11px; }
a.route-link.project-open-button { color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }

/* Network page follows the same social feed rhythm on phone and tablet. */
@media (max-width: 1150px) {
  main > .rail-card:has(> .account) { padding: 0; margin: 0; border: 0; }
  main > .rail-card > .account {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #edf0f4;
  }
  main > .rail-card > .account > .author-avatar { grid-column: 1; }
  main > .rail-card > .account > .author-avatar .avatar { width: 44px; height: 44px; font-size: 13px; }
  main > .rail-card > .account > div { grid-column: 2; min-width: 0; }
  main > .rail-card > .account h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.5; }
  main > .rail-card > .account p { font-size: 12px; line-height: 1.6; }
  main > .rail-card > .account > .follow {
    grid-column: 3; margin: 0; min-height: 36px;
    padding: 8px 14px; border: 0; border-radius: 8px;
    background: #eaf1fc; color: var(--green); font-size: 12px;
  }
  main > .rail-card > .account > .follow[aria-pressed="true"] { background: #f1f3f6; color: #62738a; }
  main > .rail-card > .demo-note { margin: 0; padding: 18px 20px; background: #f7f8fa; font-size: 11px; line-height: 1.8; }
  main > .page-title:has(+ .rail-card > .account) { margin: 0; padding: 12px 20px 20px; border-bottom: 6px solid #f0f2f5; font-size: 23px; line-height: 1.4; }
}
@media (max-width: 760px) {
  main > .rail-card > .account { padding: 18px 16px; gap: 10px; }
  main > .rail-card > .account > .follow { padding: 8px 11px; }
  main > .rail-card > .demo-note { padding: 16px; }
  main > .page-title:has(+ .rail-card > .account) { padding: 8px 16px 18px; font-size: 22px; }
}

/* Social project and profile pages: clear identities, then a continuous feed. */
@media (max-width: 1150px) {
  .projects-page-heading { padding-top: 12px; padding-bottom: 16px; margin-bottom: 0; border-bottom: 6px solid #f0f2f5; }
  .projects-page-heading ~ .post { padding-top: 0; }
  .projects-page-heading ~ .post .project-art { height: 200px; }
  .social-project-header, .full-profile { margin-bottom: 0; border-bottom: 6px solid #f0f2f5; }
  .social-project-identity, .full-profile-body { padding-bottom: 22px; }
  .social-project-identity h1, .full-profile-body h1 { font-size: 24px; line-height: 1.35; letter-spacing: -.6px; }
  .social-project-identity > p, .full-profile-body > p { line-height: 1.7; color: #62738a; }
  .social-project-summary { flex-wrap: wrap; gap: 8px 14px; font-size: 11px; }
  .social-project-buttons { gap: 8px; }
  .social-project-buttons button, .profile-action-row button { border-radius: 8px; font-size: 12px; min-height: 40px; }
  .social-project-buttons .secondary, .profile-action-row .secondary { background: #f5f7fa; border-color: #e5eaf1; }
  .profile-numbers { gap: 0; padding: 15px 0; margin: 18px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
  .profile-numbers > * { flex: 1; min-width: 0; font-size: 11px; text-align: center; padding: 0 6px; }
  .profile-numbers > * + * { border-left: 1px solid #e5eaf1; }
  .profile-numbers strong { display: block; font-size: 17px; margin-bottom: 4px; }
  .profile-posts-heading, .project-feed-heading { margin: 0; padding: 20px; border-bottom: 1px solid #edf0f4; }
  .profile-posts-heading { font-size: 16px; }
  .project-composer { border-bottom-width: 1px; }
  .detail-body { padding-top: 24px; padding-bottom: 24px; }
  .detail-body > h2 { margin-top: 0; }
  .project-money { background: #f5f7fa; border-radius: 8px; }
  .project-money strong { font-variant-numeric: tabular-nums; }
}
/* Form surfaces share readable labels, consistent fields and accessible targets. */
dialog { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
dialog form { max-width: 100%; }
dialog h2 { line-height: 1.4; }
dialog input:not([type="range"]):not([type="checkbox"]):not([type="file"]),
dialog textarea, dialog select { min-width: 0; max-width: 100%; border: 1px solid #d3deec; background: #fbfcfe; border-radius: 10px; color: var(--ink); padding: 12px; }
dialog input:focus-visible, dialog textarea:focus-visible, dialog select:focus-visible { outline: 2px solid #80a9df; outline-offset: 2px; background: #fff; }
dialog .meta, dialog .demo-note { line-height: 1.7; }
dialog .modal-actions { flex-wrap: wrap; gap: 10px; }
dialog .modal-actions button { min-height: 42px; }
dialog .close-dialog { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #f1f4f8; }
.real-project-form h3 { padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.project-stage-editor { background: #f7f9fc; border-color: #e1e8f2; }
@media (max-width: 760px) {
  .projects-page-heading { padding-top: 8px; }
  .projects-page-heading ~ .post .project-art { height: 180px; }
  .social-project-cover, .social-project-cover .project-art, .full-profile .profile-cover { height: 140px; }
  .social-project-identity h1, .full-profile-body h1 { font-size: 23px; }
  .social-project-buttons { display: grid; grid-template-columns: auto 1fr; }
  .social-project-buttons [data-post-to-project] { grid-column: 1 / -1; }
  .profile-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .profile-action-row [data-profile-settings] { grid-column: 1 / -1; }
  .profile-posts-heading, .project-feed-heading { padding: 18px 16px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 16px; }
  dialog input:not([type="range"]):not([type="checkbox"]):not([type="file"]), dialog textarea, dialog select { font-size: 16px; min-height: 44px; }
  dialog .modal-actions > button { flex: 1; }
  .profile-name-fields { grid-template-columns: 1fr; }
  .publication-dialog { padding: 0 16px 18px; }
  .compose-dialog-heading { gap: 10px; }
  .compose-dialog-heading h2 { font-size: 19px; }
  .real-project-form .project-form-grid { grid-template-columns: 1fr; }
  .project-file-row { flex-wrap: wrap; }
}

/* Publication interactions: readable conversations and predictable touch targets. */
.post-text { overflow-wrap: anywhere; }
.post-counts { gap: 12px; }
.post-counts .comment-count { min-height: 32px; }
.comments { padding: 10px 0 16px; border-top: 1px solid #edf0f4; }
.comment-thread { margin-top: 16px; }
.comment { display: block; width: fit-content; max-width: 100%; padding: 11px 14px; background: #f2f5f9; border-radius: 4px 14px 14px; font-size: 13px; line-height: 1.65; }
.comment .author-name { font-size: 12px; line-height: 1.5; }
.comment-tools { flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 3px 6px; min-height: 34px; }
.comment-tools > button { min-height: 32px; }
.comment-options summary { width: 32px; height: 32px; align-items: center; justify-content: center; }
.comment-reaction .reaction-main { min-height: 32px; }
.comment-form { align-items: center; gap: 8px; }
.comment-form input { min-height: 44px; border-radius: 22px; background: #f3f6fa; border: 1px solid #e3eaf3; }
.comment-form > .primary { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; min-height: 42px; padding: 10px; border-radius: 50%; }
.comment-form:focus-within input { background: #fff; border-color: #8bafe0; }
.cancel-reply { min-height: 32px; padding: 4px 0; }
.post-menu { max-width: calc(100vw - 40px); border-radius: 12px; padding: 6px; }
.post-menu button { min-height: 44px; font-size: 13px; line-height: 1.5; }
.post .post-media { overflow: hidden; }
.post-media video { display: block; width: 100%; max-height: 70dvh; background: #142033; }
.empty { color: #62738a; font-size: 13px; line-height: 1.8; padding: 40px 24px; }
.image-viewer .image-viewer-close { min-width: 44px; min-height: 44px; }
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; scroll-padding-bottom: 100px; }
  .comment-form input { font-size: 16px; padding: 11px 13px; scroll-margin-block: 100px; }
  .comment-form input::placeholder { font-size: 12px; }
  .comment-form > .avatar { display: none; }
  .comment-replies { margin-left: 16px; padding-left: 10px; border-left: 2px solid #e3eaf4; }
  .is-reply .comment-replies { margin-left: 0; }
  .comment-tools { gap: 2px 10px; }
  .comment-options .post-menu { min-width: 180px; }
  .reaction-control .reaction-picker summary { opacity: 1; min-width: 24px; min-height: 32px; display: grid; place-items: center; }
  .reaction-picker[open] .reaction-palette,
  .comment-reaction .reaction-picker[open] .reaction-palette {
    position: fixed; left: 50%; right: auto; bottom: calc(86px + env(safe-area-inset-bottom));
    transform: translateX(-50%); width: min(350px, calc(100vw - 24px));
    max-width: calc(100vw - 24px); padding: 8px 4px; gap: 0;
    justify-content: space-around; border-radius: 16px; box-shadow: 0 8px 32px #192b4526;
    animation: none;
  }
  .reaction-palette button, .actions .reaction-palette button { min-width: 0; flex: 1; padding: 8px 2px; min-height: 52px; }
  .reaction-palette button span { font-size: 26px; }
  .reaction-palette button small { font-size: 8px; }
  .reaction-palette:after { display: none; }
  .image-viewer figcaption { font-size: 12px; line-height: 1.5; text-align: center; padding: 0 24px; }
  .image-nav { width: 40px; height: 48px; border-radius: 12px; }
}

/* Authentication: a calm entry point, with a direct form on small screens. */
body:has(.auth-page) { background: #f5f7fb; }
.auth-page .auth-header { height: 76px; min-height: 76px; gap: 20px; backdrop-filter: none; background: #fff; }
.auth-header .auth-switch { padding: 10px 16px; border: 1px solid #dce6f3; border-radius: 10px; font-size: 13px; }
.auth-header .auth-switch:hover { background: #edf3fc; }
.auth-page .auth-layout { width: min(1020px, calc(100% - 64px)); grid-template-columns: minmax(0, 1fr) 420px; gap: 90px; padding: 64px 0; }
.auth-intro-label { display: inline-block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); }
.auth-intro h1 { font-size: 46px; letter-spacing: -1.7px; line-height: 1.15; margin: 18px 0 24px; }
.auth-intro p { font-size: 16px; line-height: 1.85; }
.auth-card { padding: 36px; border: 1px solid #e1e8f2; border-radius: 18px; box-shadow: 0 12px 40px #192b4506; }
.auth-card h2 { font-size: 28px; letter-spacing: -.8px; }
.auth-subtitle { line-height: 1.7; margin-bottom: 28px; }
.auth-form label { font-size: 13px; font-weight: 600; gap: 9px; margin-bottom: 20px; }
.auth-form input { height: 48px; padding: 12px 14px; border: 1px solid #d6e0ed; border-radius: 10px; background: #fbfcfe; font-size: 16px; }
.auth-form input:focus { outline: 2px solid #8aafe0; outline-offset: 2px; background: #fff; }
.auth-password-field { border-color: #d6e0ed; border-radius: 10px; background: #fbfcfe; }
.auth-password-field input { background: transparent; }
.auth-password-field button { min-height: 46px; padding: 10px 12px; font-size: 11px; }
.auth-password-field:focus-within { outline: 2px solid #8aafe0; outline-offset: 2px; background: #fff; }
.auth-password-field input:focus { outline: none; }
.auth-form [data-auth-forgot] { display: block; width: auto; margin: -3px 0 20px auto; padding: 7px 0; text-align: right; font-size: 12px; }
.auth-submit { min-height: 48px; border-radius: 10px; font-size: 14px; font-weight: 700; box-shadow: none; }
.auth-other { font-size: 13px; line-height: 1.7; margin-top: 26px; padding-top: 22px; }
.auth-policy-links { gap: 12px 18px; margin-top: 24px; }
.auth-policy-links a { font-size: 11px; line-height: 1.6; }
@media (min-width: 761px) and (max-width: 1000px) {
  .auth-page .auth-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }
  .auth-intro h1 { font-size: 34px; }
  .auth-card { padding: 28px; }
}
@media (max-width: 760px) {
  body:has(.auth-page) { background: #fff; }
  .auth-page .auth-header { height: 64px; min-height: 64px; padding: 0 20px; gap: 14px; border-bottom: 1px solid #edf0f4; }
  .auth-header img { width: 106px; height: auto; }
  .auth-header .auth-switch { padding: 9px 11px; font-size: 12px; border: 0; background: #edf3fc; border-radius: 8px; }
  .auth-page .auth-layout { display: block; width: min(440px, 100%); margin: 0 auto; padding: 36px 24px 28px; flex: 1; }
  .auth-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .auth-card h2 { font-size: 29px; line-height: 1.3; margin-bottom: 10px; }
  .auth-subtitle { font-size: 14px; margin-bottom: 32px; }
  .auth-form input { height: 50px; }
  .auth-submit { min-height: 50px; }
  .auth-other { margin-top: 30px; padding-top: 24px; }
  .auth-page .auth-footer { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); font-size: 11px; gap: 16px; flex-wrap: wrap; }
}

/* Retain the existing page insets after replacing the secondary HTML island. */
@media(max-width:1150px){
 [data-renderer="react-search"]>.search-heading,[data-renderer="react-search"]>.search-result-tabs{margin-left:20px;margin-right:20px}
 [data-renderer="react-network"]>.page-title{margin-top:12px;padding:0 20px}
 [data-renderer="react-network"]>.rail-card{padding:8px 20px 24px}
}
@media(max-width:760px){
 [data-renderer="react-search"]>.search-heading,[data-renderer="react-search"]>.search-result-tabs{margin-left:16px;margin-right:16px}
 [data-renderer="react-network"]>.page-title{padding:0 16px}
 [data-renderer="react-network"]>.rail-card{padding:0 16px 24px}
 [data-renderer="react-network"]>.rail-card .account{margin-top:20px;gap:10px}
}

/* Profile navigation and sharing stay attached to the profile header. */
.full-profile .profile-cover{position:relative}
.profile-icon-control{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;text-decoration:none}
.profile-icon-control .ui-icon{width:20px;height:20px}
.profile-icon-control:hover{background:#edf3fa}
.profile-icon-control:focus-visible,.profile-back-fallback:focus-visible{outline:2px solid #1456b8;outline-offset:3px}
.full-profile .profile-cover-back{position:absolute;top:16px;left:16px;z-index:2;box-shadow:0 2px 8px #17243d1a}
.profile-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:12px 0 6px}
.full-profile-body .profile-title-row h1{margin:0;min-width:0;overflow-wrap:anywhere}
.profile-title-row .profile-copy-link{background:#f5f7fa}
.profile-title-row .profile-copy-link:hover{background:#e9f0fa}
.profile-back-fallback{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0 0 12px;color:var(--ink);text-decoration:none}
@media(max-width:760px){.full-profile .profile-cover-back{top:12px;left:12px}.profile-title-row{gap:12px}.profile-title-row .profile-copy-link{width:40px;height:40px}}

/* One return control, in the same shell row above every secondary page. */
.page-back-row { display: flex; align-items: center; min-height: 56px; padding: 0 20px; margin: 0; }
a.page-back-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; margin-left: -10px; border-radius: 8px; color: #425b7b; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.4; }
.page-back-link .ui-icon { width: 20px; height: 20px; flex-shrink: 0; }
.page-back-link:hover { background: #eaf1fb; color: var(--green); }
.page-back-link:focus-visible { outline: 2px solid #1456b8; outline-offset: 2px; }
@media (max-width: 760px) {
  .page-back-row { min-height: 52px; padding: 0 16px; }
}

/* Private messages use Vukao's existing surfaces, blue and typography. */
.header-message-link{display:inline-flex;align-items:center;justify-content:center;position:relative;color:var(--muted);padding:8px;border-radius:50%;text-decoration:none}.header-message-link:hover{background:#edf3fa}.header-message-link .ui-icon{width:22px;height:22px}.header-message-link .notification-badge{position:absolute;top:-3px;right:-3px;min-width:16px;height:16px;font-size:10px}
.messaging-layout{grid-template-columns:222px minmax(0,1fr)}.messaging-layout>.right{display:none}.messaging-layout main{min-width:0}
.messenger{display:grid;grid-template-columns:280px minmax(0,1fr);height:min(780px,calc(100dvh - 140px));min-height:440px;padding:0;overflow:hidden}
.message-inbox{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line);overflow:hidden}.message-inbox-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 18px 12px}.message-inbox-heading h1{font-size:23px;margin:0}.message-search{display:flex;align-items:center;gap:8px;margin:0 12px 12px;padding:10px;border-radius:8px;background:#f5f7fa}.message-search .ui-icon{width:17px;height:17px;color:var(--muted)}.message-search input{border:0;outline:none;width:100%;min-width:0;background:transparent;color:var(--ink);font-size:13px}.message-conversations{overflow:auto;flex:1}.message-conversation{display:flex;align-items:center;gap:10px;position:relative;padding:14px 16px;color:var(--ink);text-decoration:none}.message-conversation:hover{background:#f5f7fa}.message-conversation.active{background:#eaf1fc}.message-conversation>.avatar{width:40px;height:40px;flex-shrink:0}.message-conversation>div:not(.avatar){min-width:0;flex:1}.message-conversation strong{font-size:13px}.message-conversation p{font-size:12px;color:var(--muted);margin:5px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.message-conversation time{font-size:10px;color:var(--muted)}.message-conversation.unread p{font-weight:600;color:var(--ink)}.message-unread{display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:10px;background:#1456b8;color:#fff;font-size:11px;padding:0 5px}.message-contacts-title{font-size:12px;color:var(--muted);padding:14px 16px 0;margin:0 0 8px}.message-hint{font-size:13px;line-height:1.6;color:var(--muted);padding:12px 16px}.message-thread-pane{display:flex;flex-direction:column;overflow:hidden;min-width:0}.message-thread-heading{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.message-peer{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);min-width:0}.message-peer strong{overflow-wrap:anywhere}.message-peer small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.message-peer .avatar{width:38px;height:38px;flex-shrink:0}.message-thread-back{display:none;color:var(--ink);padding:8px;border-radius:50%}.message-empty{margin:auto;padding:24px;text-align:center;color:var(--muted)}.message-empty>.ui-icon{width:44px;height:44px;color:#1456b8}.message-empty h2{color:var(--ink);font-size:20px}.message-empty p{line-height:1.6;max-width:300px}.message-return{display:inline-flex;align-items:center;gap:8px;color:#1456b8;text-decoration:none}.message-history{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:18px 20px}.message-day{text-align:center;color:var(--muted);font-size:11px;margin:8px 0 20px}.message-row{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:16px}.message-row.mine{align-items:flex-end}.message-bubble{max-width:85%;border-radius:16px 16px 16px 4px;padding:10px 14px;background:#f0f3f7;color:var(--ink)}.message-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:14px}.message-row.mine .message-bubble{background:#1456b8;color:#fff;border-radius:16px 16px 4px 16px}.message-meta{display:flex;gap:7px;font-size:10px;color:var(--muted);margin:5px 4px 0}.message-seen{color:#1456b8}.message-composer{border-top:1px solid var(--line);padding:14px 16px;display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;background:#fff}.message-composer textarea{resize:none;flex:1;min-width:0;max-height:180px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:#f7f9fc;color:var(--ink);font:inherit;line-height:1.4}.message-composer textarea:focus{outline:2px solid #1456b8;outline-offset:1px}.message-composer .message-send{display:flex;align-items:center;justify-content:center;border-radius:50%;width:42px;height:42px;padding:0;flex-shrink:0}.message-composer .media-error{flex-basis:100%;font-size:12px;margin:0 0 8px}.message-error{font-size:13px;background:#fff3f3;color:#983535;padding:12px}.message-error button,.message-older{border:0;background:none;color:#1456b8;cursor:pointer;font:inherit;text-decoration:underline}.message-older{display:block;margin:0 auto 18px;font-size:12px}.message-conversation:focus-visible,.message-thread-back:focus-visible,.message-peer:focus-visible,.header-message-link:focus-visible{outline:2px solid #1456b8;outline-offset:-2px}
@media(max-width:1100px) and (min-width:761px){.messaging-layout{grid-template-columns:190px minmax(0,1fr)}.messenger{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:760px){.header-message-link{display:flex;align-items:center;justify-content:center;position:relative;color:var(--muted);padding:6px;text-decoration:none}.header-message-link .ui-icon{width:22px;height:22px}.header-message-link .notification-badge{position:absolute;top:-5px;right:-4px;min-width:16px;height:16px;font-size:10px}.messaging-layout{display:block}.messaging-layout main{padding-bottom:0}.messenger{display:flex;min-height:0;height:calc(100dvh - 145px);height:calc(100svh - 145px);border-radius:0;margin:0;border:0}.message-inbox{width:100%;border:0}.message-thread-pane{display:none;width:100%}.messenger.has-thread .message-inbox{display:none}.messenger.has-thread .message-thread-pane{display:flex}.message-thread-back{display:inline-flex}.message-thread-heading{padding:10px 12px;gap:4px}.message-history{padding:12px}.message-bubble{max-width:90%}.message-composer{padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.message-composer textarea{font-size:16px}.message-inbox-heading{padding:18px 16px 12px}.message-thread-heading .message-peer .avatar{width:34px;height:34px}.message-thread-heading .message-peer strong{font-size:13px}.message-inbox .message-conversation{padding:14px 16px}.header-right{gap:4px}}
.message-composer .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.layout>aside.left nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}.layout:has(.messenger.keyboard-open)>aside.left nav{display:none!important}}
@media(max-width:360px){.layout>aside.left nav a.route-link{font-size:9px}}

/* Private attachments follow the conversation bubbles and composer. */
.message-composer .message-add-media{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:42px;padding:0;border:0;border-radius:8px;background:transparent;color:#1456b8;cursor:pointer}.message-add-media:hover{background:#edf3fa}.message-add-media .ui-icon{width:23px;height:23px}.message-add-media:focus-visible{outline:2px solid #1456b8;outline-offset:2px}.message-attachments{flex-basis:100%;min-width:0}.message-attachment-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 5px}.message-attachment-preview{position:relative;flex:0 0 110px;min-width:0}.message-attachment-preview:has(video){flex-basis:170px}.message-attachment-preview img,.message-attachment-preview video{display:block;width:100%;height:90px;object-fit:cover;border-radius:10px;background:#17243d}.message-attachment-preview button{position:absolute;right:4px;top:4px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid #e4eaf2;border-radius:50%;background:#fff;color:#17243d;font-size:20px;cursor:pointer}.message-attachment-preview small{display:block;font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:4px 0}.message-attachments>p{font-size:10px;color:var(--muted);margin:4px 0}.message-bubble.has-media{padding:6px;max-width:min(90%,420px)}.message-bubble.has-media>p{padding:6px 8px}.message-media{display:grid;grid-template-columns:1fr;gap:6px;min-width:0}.message-media-2{grid-template-columns:repeat(2,minmax(0,1fr))}.message-media-item{min-width:0}.message-photo{display:block;border:0;background:transparent;padding:0;cursor:pointer;width:100%;border-radius:10px;overflow:hidden}.message-photo img{display:block;width:100%;max-height:300px;object-fit:cover}.message-media video{display:block;max-width:100%;width:100%;max-height:300px;border-radius:10px;background:#17243d}.message-media-download{display:block;padding:5px 6px 3px;color:inherit;text-decoration:underline;text-underline-offset:2px;font-size:10px;overflow-wrap:anywhere}.message-media-unavailable{font-size:11px!important;padding:6px!important}.message-photo:focus-visible{outline:2px solid #1456b8;outline-offset:2px}
@media(max-width:760px){.message-composer{gap:8px}.message-composer .message-add-media{width:30px}.message-bubble.has-media{max-width:92%}.message-photo img,.message-media video{max-height:260px}}

/* Own-message controls remain reachable with mouse, keyboard and touch. */
.message-actions{position:relative;font-size:13px;line-height:1}.message-actions summary{list-style:none;cursor:pointer;padding:8px 10px;margin:-7px 0;border-radius:12px;color:var(--muted);min-width:32px;text-align:center}.message-actions summary::-webkit-details-marker{display:none}.message-actions summary:hover,.message-actions[open] summary{background:#eaf1fc;color:#1456b8}.message-action-menu{position:absolute;right:0;bottom:22px;z-index:5;background:#fff;border:1px solid var(--line);box-shadow:0 4px 20px #152b4924;border-radius:10px;padding:5px;min-width:140px}.message-action-menu button{display:block;width:100%;text-align:left;padding:11px;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer;border-radius:6px}.message-action-menu button:hover{background:#f0f3f7}.message-edit-dialog{width:min(460px,calc(100vw - 28px));box-sizing:border-box}.message-edit-dialog form{padding:0 20px 20px}.message-edit-dialog p{line-height:1.6}.message-edit-dialog label{display:block;margin:12px 0 8px}.message-edit-dialog textarea{box-sizing:border-box;width:100%;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;font-size:16px}.message-edit-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}.message-edit-buttons button{padding:10px 14px;cursor:pointer;border-radius:8px;border:1px solid var(--line)}.message-deleted{font-style:italic;opacity:.8}.message-actions summary:focus-visible{outline:2px solid #1456b8;outline-offset:2px}
.message-quote{border-left:3px solid #1456b8;background:#eaf1fc;border-radius:6px;padding:8px 10px;display:flex;gap:10px;align-items:center;margin-bottom:8px;color:var(--ink);min-width:0}.message-quote>div{min-width:0;flex:1}.message-quote strong{font-size:12px;display:block;margin-bottom:3px}.message-quote p{font-size:12px!important;line-height:1.4!important;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.message-quote img{width:42px;height:42px;object-fit:cover;border-radius:4px;flex-shrink:0}.message-row.mine .message-quote{background:#ffffffeb;border-left-color:#8bbaff}.message-reply-draft{flex-basis:100%;display:flex;gap:8px;align-items:flex-start;min-width:0}.message-reply-draft>div{flex:1;min-width:0}.message-reply-draft>div>span{font-size:12px;color:#1456b8;display:block;margin-bottom:5px}.message-reply-draft .message-quote{margin:0}.message-reply-draft>button{border:0;background:#f0f3f7;border-radius:50%;width:34px;height:34px;font-size:22px;cursor:pointer;color:var(--muted);flex-shrink:0}
.message-reactions{display:flex;gap:5px;align-items:center;position:relative;margin-top:4px;max-width:100%;flex-wrap:wrap}.message-reaction-counts{display:flex;gap:4px}.message-reaction-counts:empty{display:none}.message-reaction-counts button{border:1px solid var(--line);background:#fff;border-radius:14px;padding:4px 8px;cursor:pointer;font-size:15px;color:var(--ink);min-height:30px}.message-reaction-counts button.selected{border-color:#1456b8;background:#eaf1fc}.message-reaction-counts span{font-size:11px}.message-reaction-picker{position:relative}.message-reaction-picker summary{list-style:none;cursor:pointer;width:32px;height:30px;display:grid;place-items:center;color:var(--muted);font-size:22px;border-radius:50%}.message-reaction-picker summary::-webkit-details-marker{display:none}.message-reaction-picker[open] summary,.message-reaction-picker summary:hover{background:#eaf1fc;color:#1456b8}.message-emoji-options{position:absolute;bottom:35px;left:0;display:flex;padding:5px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 4px 18px #152b4924;z-index:7;white-space:nowrap}.message-row.mine .message-emoji-options{left:auto;right:0}.message-emoji-options button{width:40px;height:40px;font-size:25px;border:0;background:none;border-radius:50%;cursor:pointer;padding:0}.message-emoji-options button:hover,.message-emoji-options button[aria-pressed=true]{background:#eaf1fc}.message-reactions>p{font-size:12px;color:#983535;margin:4px 0;flex-basis:100%}.message-reaction-picker summary:focus-visible{outline:2px solid #1456b8;outline-offset:1px}@media(max-width:360px){.message-emoji-options button{width:36px}}
.message-typing{display:flex;gap:8px;align-items:center;padding:8px 20px;font-size:12px;color:var(--muted);flex-shrink:0;min-height:20px}.message-typing>span{display:flex;gap:3px;padding:8px 10px;background:#f0f3f7;border-radius:12px}.message-typing i{width:4px;height:4px;background:#65748b;border-radius:50%;animation:typing-dot 1.2s infinite}.message-typing i:nth-child(2){animation-delay:.15s}.message-typing i:nth-child(3){animation-delay:.3s}@keyframes typing-dot{0%,60%,100%{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){.message-typing i{animation:none}}
.message-peer .message-presence{display:flex;align-items:center;gap:5px}.message-presence.is-online{color:#1456b8}.message-presence>span{width:7px;height:7px;border-radius:50%;background:#1456b8;display:inline-block;flex-shrink:0}
.presence-setting{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;cursor:pointer}.presence-setting input{width:18px;height:18px;flex-shrink:0;accent-color:#1456b8;margin-top:2px}
.conversation-settings{margin-left:auto;position:relative;display:flex;align-items:center;gap:8px;flex-shrink:0}.conversation-settings summary{cursor:pointer;list-style:none;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--muted)}.conversation-settings summary::-webkit-details-marker{display:none}.conversation-settings summary:hover,.conversation-settings details[open] summary{background:#eaf1fc}.conversation-options{position:absolute;right:0;top:42px;z-index:8;width:230px;max-width:calc(100vw - 40px);border:1px solid var(--line);background:#fff;padding:8px;border-radius:10px;box-shadow:0 4px 18px #152b4924}.conversation-options button{width:100%;padding:12px;text-align:left;border:0;border-radius:6px;background:#f5f7fa;color:var(--ink);font:inherit;cursor:pointer}.conversation-options p{font-size:12px;color:var(--muted);line-height:1.5;margin:8px}.conversation-muted,.inbox-muted{font-size:10px;color:var(--muted)}.inbox-muted{display:block;margin-top:4px}@media(max-width:760px){.conversation-settings{flex-direction:column;gap:0}.conversation-muted{font-size:9px}}.conversation-settings summary:focus-visible{outline:2px solid #1456b8}
.message-list-tabs{display:flex;gap:6px;padding:0 12px 12px}.message-list-tabs button{flex:1;border:0;border-radius:8px;background:#f5f7fa;color:var(--muted);font:inherit;font-size:12px;padding:10px 8px;cursor:pointer}.message-list-tabs button[aria-pressed=true]{background:#eaf1fc;color:#1456b8;font-weight:600}.message-list-tabs span{margin-left:3px;font-size:10px}.conversation-options button+button{margin-top:5px}
.message-read-filters{display:flex;gap:6px;padding:0 12px 12px}.message-read-filters button{border:0;background:transparent;color:var(--muted);padding:8px 13px;font:inherit;font-size:12px;border-radius:18px;cursor:pointer}.message-read-filters button[aria-pressed=true]{background:#eaf1fc;color:#1456b8;font-weight:600}.message-read-filters button:focus-visible{outline:2px solid #1456b8;outline-offset:1px}
.message-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;box-sizing:border-box;padding:0 5px;margin-left:4px;border-radius:10px;background:#eaf1fc;color:#1456b8;font-size:10px;font-weight:600}.message-read-filters button[aria-pressed=true] .message-filter-count{background:#1456b8;color:#fff}
.message-search-toggle{border:0;background:none;color:var(--muted);border-radius:50%;width:36px;height:36px;display:grid;place-items:center;cursor:pointer;flex-shrink:0;margin-left:auto}.message-search-toggle:hover,.message-search-toggle[aria-expanded=true]{background:#eaf1fc;color:#1456b8}.message-search-toggle+.conversation-settings{margin-left:0}.message-search-panel{padding:10px 14px;border-bottom:1px solid var(--line);flex-shrink:0;max-height:45%;overflow:auto}.message-search-panel form{display:flex;gap:5px;align-items:center}.message-search-panel input{min-width:0;flex:1;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:16px}.message-search-panel form button{padding:9px 8px;border:0;border-radius:8px;background:#eaf1fc;color:#1456b8;font:inherit;font-size:12px;cursor:pointer}.message-search-panel>p{font-size:12px;color:var(--muted);margin:8px 0}.message-search-results{display:flex;flex-direction:column;gap:5px}.message-search-results>button{width:100%;text-align:left;border:1px solid var(--line);border-radius:8px;background:#f7f9fc;padding:10px;color:var(--ink);cursor:pointer}.message-search-results span{display:flex;gap:8px;justify-content:space-between;font-size:12px}.message-search-results time{color:var(--muted);font-size:10px;white-space:nowrap}.message-search-results p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.4;margin:5px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.message-search-results small{font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.message-found .message-bubble{outline:3px solid #79a9eb;outline-offset:3px}.message-search-toggle:focus-visible{outline:2px solid #1456b8}
.shared-media-dialog{width:min(740px,calc(100vw - 24px));box-sizing:border-box;max-height:90dvh}.shared-media-body{padding:0 20px 20px}.shared-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.shared-media-tile{position:relative;aspect-ratio:1;border:0;border-radius:8px;overflow:hidden;padding:0;background:#eef2f7;cursor:pointer;min-width:0;color:var(--muted)}.shared-media-tile img,.shared-media-tile video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.shared-media-tile small{position:absolute;bottom:0;left:0;right:0;color:#fff;background:#172d4ccc;font-size:10px;padding:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-media-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:28px;text-shadow:0 1px 8px #000}.shared-media-more{display:block;margin:16px auto 0}.shared-video-dialog{width:min(850px,calc(100vw - 20px));box-sizing:border-box;max-height:94dvh}.shared-video-dialog .compose-dialog-heading h2{overflow-wrap:anywhere;min-width:0}.shared-video-dialog>video{display:block;width:100%;max-height:70dvh;background:#101725}.shared-video-dialog>p{padding:0 20px 12px;font-size:13px}.shared-media-tile:focus-visible{outline:3px solid #1456b8;outline-offset:2px}@media(max-width:760px){.shared-media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.shared-media-body{padding:0 12px 16px}}@media(max-width:360px){.shared-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.shared-media-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.shared-media-filters button{border:0;border-radius:18px;padding:9px 15px;background:#f5f7fa;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}.shared-media-filters button[aria-pressed=true]{background:#eaf1fc;color:#1456b8;font-weight:600}.shared-media-filters button:focus-visible{outline:2px solid #1456b8;outline-offset:1px}
.shared-media-filters button{display:inline-flex;gap:5px;align-items:center;justify-content:center;padding:9px 10px}.shared-media-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:10px;background:#eaf1fc;color:#1456b8;font-size:10px;font-weight:600}.shared-media-filters button[aria-pressed=true] .shared-media-count{background:#1456b8;color:#fff}@media(max-width:360px){.shared-media-filters{gap:4px}.shared-media-filters button{padding:8px;flex:1;font-size:12px}}
.gallery-origin{margin:10px auto 0;text-align:center;max-width:calc(100vw - 40px)}.gallery-origin button{border:1px solid #ffffff60;background:#fff;color:#1456b8;border-radius:8px;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer}.gallery-origin p{font-size:12px;line-height:1.5;color:#fff;margin:8px 0}.shared-video-origin{padding:14px 20px 0}.shared-video-origin button{padding:10px 14px;cursor:pointer;border-radius:8px}.shared-video-origin p{font-size:12px;line-height:1.5;color:#983535}.image-viewer:has(.gallery-origin) figure img{max-height:calc(100dvh - 180px)}
.gallery-origin{pointer-events:auto}
.shared-media-entry{min-width:0;display:flex;flex-direction:column;gap:4px}.shared-media-entry .shared-media-tile{width:100%}.shared-media-save{display:block;text-align:center;padding:8px 2px;font-size:11px;color:#1456b8;overflow-wrap:anywhere;border-radius:5px;background:#f5f7fa}.shared-media-save:focus-visible{outline:2px solid #1456b8}.gallery-download{display:block;pointer-events:auto;margin:9px auto 0;color:#fff;font-size:13px;padding:7px 10px;width:fit-content;border:1px solid #ffffff60;border-radius:7px}.image-viewer:has(.gallery-download) figure img{max-height:calc(100dvh - 220px)}
.message-forward-dialog{width:min(480px,calc(100vw - 24px));box-sizing:border-box;max-height:90dvh}.message-forward-body{padding:0 20px 20px}.message-forward-body blockquote{margin:0 0 16px;background:#f0f3f7;border-left:3px solid #1456b8;padding:10px;border-radius:6px}.message-forward-body blockquote p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:120px;overflow:auto;font-size:13px;line-height:1.5}.message-forward-body small{font-size:11px;overflow-wrap:anywhere;display:block;margin-top:6px;color:var(--muted)}.message-forward-body>label{font-size:13px;display:block;margin-bottom:7px}.message-forward-body>input{width:100%;box-sizing:border-box;padding:11px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:16px}.message-forward-people{max-height:210px;overflow:auto;margin:10px 0}.message-forward-people label{display:flex;gap:10px;align-items:center;padding:12px 4px;cursor:pointer;font-size:14px}.message-forward-people input{accent-color:#1456b8;width:18px;height:18px;flex-shrink:0}.message-forwarded{display:block;font-size:11px;font-style:italic;opacity:.8;margin-bottom:6px}
.message-selection-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);background:#f5f8fd;flex-shrink:0}.message-selection-bar span{font-size:12px;color:var(--muted);margin-right:auto}.message-selection-bar button{border:1px solid var(--line);border-radius:7px;padding:8px 10px;background:#fff;color:#1456b8;font:inherit;font-size:12px;cursor:pointer}.message-row.message-selectable{position:relative;padding-left:30px;min-height:40px}.message-select-control{position:absolute;left:0;top:10px;display:flex;padding:4px;cursor:pointer}.message-select-control input{width:18px;height:18px;accent-color:#1456b8;margin:0}.message-selected .message-bubble{outline:2px solid #79a9eb;outline-offset:2px}.forward-previews{max-height:180px;overflow:auto;margin-bottom:14px}.forward-previews blockquote{margin-bottom:7px}.message-selection-bar button:disabled{opacity:.5;cursor:default}
.selection-own-hint{flex-basis:100%;font-size:11px;color:var(--muted);margin:2px 0}.message-forward-body>p{font-size:14px;line-height:1.6}
.inbox-pinned{display:block;margin-top:4px;font-size:10px;font-weight:600;color:var(--muted)}

/* Messaging: compact social inbox, quiet surfaces and clear conversation hierarchy. */
.messenger{grid-template-columns:320px minmax(0,1fr);border:1px solid #e1e6ed;border-radius:14px;box-shadow:0 2px 10px #17243d06;background:#fff}
.message-inbox{background:#fff;border-right-color:#e9edf2}.message-inbox-heading{padding:24px 20px 16px}.message-inbox-heading h1{font-size:25px;letter-spacing:-.7px;font-weight:750}.message-inbox-heading .meta{font-size:11px;color:#7a8594}
.message-list-tabs{margin:0 16px 12px;gap:4px;padding:4px;background:#f3f5f8;border-radius:10px}.message-list-tabs button{border-radius:7px;background:transparent;padding:9px 10px;font-weight:600}.message-list-tabs button[aria-pressed=true]{background:#fff;color:#174f9d;box-shadow:0 1px 4px #17243d0b}
.message-read-filters{padding:0 18px 12px;gap:6px}.message-read-filters button{font-size:12px;padding:7px 12px;border-radius:18px}.message-read-filters button[aria-pressed=true]{background:#eaf1fc;color:#1456b8}.message-filter-count{font-variant-numeric:tabular-nums}
.message-search{margin:0 16px 12px;padding:12px 14px;border-radius:24px;background:#f2f4f7;gap:10px}.message-search input{font-size:13px}.message-search:focus-within{box-shadow:0 0 0 2px #1456b830}
.message-conversations{padding:0 8px 10px;scrollbar-width:thin;scrollbar-color:#d7dee8 transparent}.message-conversation{padding:13px 12px;border-radius:10px;margin:2px 0;gap:12px;min-height:82px}.message-conversation:hover{background:#f5f7fa}.message-conversation.active{background:#eaf1fc}.message-conversation>.avatar{width:48px;height:48px;font-size:15px;border:1px solid #e5eaf2}.message-conversation strong{font-size:14px;font-weight:650}.message-conversation p{font-size:13px;line-height:1.4;margin:4px 0;color:#697587}.message-conversation time{font-size:10px;color:#8590a0}.message-conversation.unread strong{font-weight:750}.message-conversation.unread p{color:#25354a}.message-unread{min-width:21px;height:21px;background:#1456b8;font-weight:650;box-shadow:0 0 0 3px #fff}.message-contacts-title{font-size:11px;font-weight:650;padding:20px 12px 6px;color:#778497;letter-spacing:.25px}.inbox-pinned{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#42638d;font-weight:600}.inbox-pinned:before{content:'';width:5px;height:5px;border-radius:50%;background:#1456b8}
.message-thread-pane{background:#fff}.message-thread-heading{min-height:80px;padding:16px 24px;background:#fff;border-bottom:1px solid #edf0f4;gap:12px}.message-peer .avatar{width:44px;height:44px}.message-peer strong{font-size:15px;font-weight:650}.message-peer small{font-size:11px;color:#7c8899;margin-top:4px}.message-search-toggle,.conversation-settings summary{color:#607088;background:#f5f7fa;width:36px;height:36px}.message-search-toggle:hover,.conversation-settings summary:hover{background:#eaf1fc;color:#1456b8}.conversation-options{border-radius:12px;padding:6px;box-shadow:0 8px 30px #17243d1a;max-height:min(65dvh,530px);overflow-y:auto}.conversation-options button{background:#fff;font-size:13px;padding:12px;border-radius:7px}.conversation-options button:hover{background:#f0f4fa}.conversation-options button:disabled{opacity:.45;cursor:default}
.message-history{padding:20px 28px;background:#f8f9fb;scrollbar-width:thin;scrollbar-color:#d7dee8 transparent}.message-day{font-size:10px;font-weight:550;margin:8px auto 24px;color:#8590a0;letter-spacing:.1px}.message-row{margin-bottom:18px}.message-bubble{background:#fff;border:1px solid #e8ecf1;border-radius:18px 18px 18px 5px;padding:11px 15px;max-width:76%;box-shadow:0 1px 2px #17243d03}.message-bubble p{font-size:14px;line-height:1.55}.message-row.mine .message-bubble{background:#1456b8;border-color:#1456b8;border-radius:18px 18px 5px 18px;box-shadow:none}.message-meta{font-size:10px;color:#8a95a5;margin:5px 4px 0;align-items:center}.message-seen{color:#4273b3}.message-bubble.has-media{padding:5px}.message-deleted{font-style:italic;opacity:.75}
.message-composer{border-top:1px solid #edf0f4;padding:16px 20px;gap:10px;align-items:center;background:#fff}.message-composer textarea{border:1px solid transparent;background:#f2f4f7;border-radius:24px;padding:12px 16px;font-size:14px;min-height:46px;line-height:1.5}.message-composer textarea:focus{outline:0;border-color:#a9c3e8;background:#fff;box-shadow:0 0 0 3px #1456b80a}.message-composer .message-add-media{width:38px;height:42px;border-radius:50%;color:#1456b8}.message-composer .message-send{height:44px;width:44px;border-radius:50%;background:#1456b8;box-shadow:none}.message-composer .message-send:disabled{background:#eaf0f8;color:#9daec5;opacity:1}.message-empty{color:#7a8799}.message-empty>.ui-icon{width:54px;height:54px;padding:15px;box-sizing:content-box;border-radius:50%;background:#edf3fc;color:#1456b8}.message-empty h2{font-size:22px;font-weight:650;letter-spacing:-.4px;margin:20px 0 8px}.message-empty p{font-size:13px;line-height:1.7}
@media(min-width:761px) and (max-width:1100px){.messenger{grid-template-columns:265px minmax(0,1fr)}.message-history{padding:18px}.message-thread-heading{padding:14px 18px}.message-bubble{max-width:88%}}
@media(max-width:760px){.messenger{display:flex;border:0;border-radius:0;box-shadow:none}.message-inbox-heading{padding:20px 20px 16px}.message-inbox-heading h1{font-size:27px}.message-list-tabs{margin:0 16px 12px}.message-read-filters{padding:0 18px 12px}.message-inbox .message-conversation{padding:13px 12px;min-height:84px}.message-conversation>.avatar{width:50px;height:50px}.message-conversation strong{font-size:14px}.message-thread-heading{min-height:68px;padding:10px 12px;gap:6px}.message-thread-heading .message-peer .avatar{width:38px;height:38px}.message-thread-heading .message-peer strong{font-size:14px}.message-thread-back{padding:6px;margin-left:-4px}.message-history{padding:16px 14px}.message-bubble{max-width:87%;padding:10px 14px}.message-bubble p{font-size:15px}.message-composer{padding:10px;gap:6px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.message-composer textarea{font-size:16px;padding:10px 14px;min-height:44px;border-radius:22px}.message-composer .message-send{width:42px;height:42px}.message-composer .message-add-media{width:32px}.message-row{margin-bottom:16px}.message-empty h2{font-size:20px}}
.message-reaction-picker summary{width:26px;height:24px;font-size:18px}.message-reactions{margin-top:2px}.message-row{margin-bottom:12px}.message-meta{margin-top:2px}
@media(hover:hover) and (pointer:fine){.message-row .message-reaction-picker:not([open]) summary{opacity:0;transition:opacity .12s}.message-row:hover .message-reaction-picker summary,.message-row:focus-within .message-reaction-picker summary{opacity:1}}

/* A dedicated conversations page, rather than an empty chat beside a narrow list. */
.messenger:not(.has-thread){display:flex;max-width:900px;margin-inline:auto}.messenger:not(.has-thread)>.message-thread-pane{display:none}.messenger:not(.has-thread)>.message-inbox{width:100%;border:0}.messenger:not(.has-thread) .message-inbox-heading{padding:26px 28px 18px}.messenger:not(.has-thread) .message-list-tabs{margin-inline:24px;max-width:360px}.messenger:not(.has-thread) .message-read-filters{padding-inline:26px}.messenger:not(.has-thread) .message-search{margin:0 24px 16px}.messenger:not(.has-thread) .message-conversations{padding:0 16px 16px}.messenger:not(.has-thread) .message-conversation{min-height:90px;padding:16px;gap:14px;border-radius:12px}.messenger:not(.has-thread) .message-conversation>.avatar{width:52px;height:52px}.messenger:not(.has-thread) .message-conversation strong{display:block;max-width:calc(100% - 105px);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messenger:not(.has-thread) .message-conversation time{position:absolute;right:16px;top:18px;font-size:11px}.messenger:not(.has-thread) .message-conversation p{padding-right:35px;margin-top:6px;font-size:13px}.messenger:not(.has-thread) .message-unread{position:absolute;right:16px;bottom:20px}.messenger:not(.has-thread) .message-conversation+.message-conversation:before{content:'';position:absolute;top:-1px;left:82px;right:16px;height:1px;background:#eff2f6}.messenger:not(.has-thread) .message-conversation:hover:before{background:transparent}.messenger:not(.has-thread) .message-contacts-title{padding-left:16px;font-size:12px;margin-top:8px}.messenger:not(.has-thread) .inbox-pinned{margin-top:3px}.messenger:not(.has-thread) .message-conversation.unread{background:#f5f8fe}.messenger:not(.has-thread) .message-conversation.unread time{color:#1456b8;font-weight:600}
@media(max-width:760px){.messenger:not(.has-thread){margin:0;max-width:none}.messenger:not(.has-thread) .message-inbox-heading{padding:22px 20px 18px}.messenger:not(.has-thread) .message-list-tabs{margin-inline:16px;max-width:none}.messenger:not(.has-thread) .message-read-filters{padding-inline:18px}.messenger:not(.has-thread) .message-search{margin:0 16px 12px}.messenger:not(.has-thread) .message-conversations{padding:0 6px 12px}.messenger:not(.has-thread) .message-conversation{padding:15px 12px;gap:12px;min-height:88px}.messenger:not(.has-thread) .message-conversation strong{max-width:calc(100% - 95px);font-size:14px}.messenger:not(.has-thread) .message-conversation time{right:12px;top:17px;font-size:10px}.messenger:not(.has-thread) .message-unread{right:12px;bottom:19px}.messenger:not(.has-thread) .message-conversation p{font-size:13px}.messenger:not(.has-thread) .message-conversation+.message-conversation:before{left:76px;right:12px}}

/* Profile: a clear identity, a compact action row and a distinct publication feed. */
.profile-page .full-profile { overflow: visible; }
.profile-page .profile-cover { height: 190px; border-radius: 16px 16px 0 0; overflow: hidden; }
.profile-page .profile-cover:empty:after { display: none; }
.profile-page .full-profile-body { padding: 0 24px; }
.profile-portrait-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 64px; }
.profile-page .profile-portrait-row > .avatar,
.profile-page .profile-photo-open { position: relative; margin-top: -46px; flex-shrink: 0; }
.profile-page .profile-portrait-row > .avatar,
.profile-page .profile-photo-open > .avatar { width: 104px; height: 104px; border: 5px solid #fff; font-size: 28px; box-shadow: 0 2px 6px #192b4508; }
.profile-utilities { display: flex; gap: 8px; align-items: center; padding-bottom: 4px; }
.profile-utilities .profile-icon-control { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e2e8f0; background: #fff; border-radius: 50%; color: #667b96; padding: 8px; cursor: pointer; }
.profile-utilities .profile-icon-control:hover { background: #edf3fc; color: var(--green); }
.profile-utilities .ui-icon { width: 18px; height: 18px; }
.profile-more { position: relative; }
.profile-more summary { list-style: none; }
.profile-more summary::-webkit-details-marker { display: none; }
.profile-more-menu { position: absolute; right: 0; top: 44px; z-index: 5; width: 210px; padding: 6px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px #192b4514; }
.profile-more-menu button { display: block; width: 100%; padding: 13px 12px; border: 0; background: transparent; color: #52647b; text-align: left; font-size: 13px; border-radius: 7px; }
.profile-more-menu button:hover { background: #f4f6f9; }
.profile-page .profile-title-row { display: block; margin-top: 14px; }
.profile-page .profile-title-row h1 { font-size: 27px; letter-spacing: -.8px; line-height: 1.3; margin: 0 0 6px; overflow-wrap: anywhere; }
.profile-page .profile-role { font-size: 12px; color: #77879b; margin: 0 0 18px; line-height: 1.6; }
.profile-page .profile-about { font-size: 14px; color: #40516b; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-main-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.profile-main-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 10px 20px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.profile-main-actions .secondary { background: #fff; border-color: #dce5f1; color: #3e5a7e; }
.profile-main-actions .ui-icon { width: 17px; height: 17px; }
.profile-page .profile-numbers { display: flex; gap: 0; border-top: 1px solid #edf0f4; border-bottom: 0; margin: 0; padding: 18px 0; }
.profile-page .profile-numbers > * { flex: 1; text-align: center; font-size: 11px; color: #758399; padding: 0 8px; min-width: 0; }
.profile-page .profile-numbers > * + * { border-left: 1px solid #edf0f4; }
.profile-page .profile-numbers strong { display: block; margin-bottom: 4px; font-size: 18px; line-height: 1.3; color: #20364f; }
.profile-feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 2px 16px; }
.profile-feed-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.profile-feed-heading > span { font-size: 12px; color: #7b8ba0; }
.profile-empty { text-align: center; padding: 38px 20px 50px; color: #7a899c; }
.profile-empty > .ui-icon { width: 26px; height: 26px; color: #9aacbf; }
.profile-empty h3 { font-size: 14px; color: #53677f; margin: 14px 0 8px; }
.profile-empty p { font-size: 12px; line-height: 1.7; margin: 0; }
@media (max-width: 1150px) {
  .profile-page .profile-cover { border-radius: 0; }
  .profile-feed-heading { padding: 20px 24px; border-bottom: 1px solid #edf0f4; }
}
@media (max-width: 760px) {
  .profile-page .profile-cover { height: 155px; border-radius: 0; }
  .profile-page .full-profile-body { padding: 0 16px; }
  .profile-page .profile-portrait-row > .avatar,
  .profile-page .profile-photo-open > .avatar { width: 90px; height: 90px; border-width: 4px; }
  .profile-page .profile-portrait-row > .avatar, .profile-page .profile-photo-open { margin-top: -38px; }
  .profile-portrait-row { min-height: 54px; }
  .profile-page .profile-title-row { margin-top: 12px; }
  .profile-page .profile-title-row h1 { font-size: 24px; }
  .profile-page .profile-role { margin-bottom: 14px; }
  .profile-page .profile-about { font-size: 13px; }
  .profile-main-actions { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0; gap: 8px; }
  .profile-main-actions button { min-height: 42px; padding: 10px 12px; }
  .profile-main-actions .profile-settings-button { grid-column: 1 / -1; background: #f5f7fa; }
  .profile-feed-heading { padding: 18px 16px; }
  .profile-page .profile-numbers { padding: 16px 0; }
  .profile-more-menu { width: 195px; }
}

/* Inbox rhythm inspired by familiar social messaging lists. */
.messenger:not(.has-thread){max-width:780px;border-radius:12px}.messenger:not(.has-thread) .message-inbox-heading{padding:22px 24px 18px}.messenger:not(.has-thread) .message-inbox-heading h1{font-size:24px;letter-spacing:-.6px}.messenger:not(.has-thread) .message-inbox-heading .meta{display:none}.messenger:not(.has-thread) .message-list-tabs{max-width:none;margin:0 24px 14px;padding:0;border-radius:0;background:transparent;border-bottom:1px solid #edf0f3;gap:24px}.messenger:not(.has-thread) .message-list-tabs button{flex:none;padding:12px 0;border-radius:0;color:#7c8795;font-size:13px;background:transparent;box-shadow:none;border-bottom:2px solid transparent}.messenger:not(.has-thread) .message-list-tabs button[aria-pressed=true]{color:#1d2e44;border-bottom-color:#1456b8;background:transparent;box-shadow:none}.messenger:not(.has-thread) .message-search{border-radius:10px;padding:11px 14px;background:#f2f4f6;margin-bottom:16px}.messenger:not(.has-thread) .message-read-filters{padding-bottom:14px}.messenger:not(.has-thread) .message-read-filters button{font-size:12px;padding:6px 12px;background:#f2f4f6;color:#637083}.messenger:not(.has-thread) .message-read-filters button[aria-pressed=true]{background:#e8effb;color:#1456b8}.messenger:not(.has-thread) .message-conversations{padding:0 12px 12px}.messenger:not(.has-thread) .message-conversation{min-height:78px;padding:12px;gap:14px;border-radius:7px;margin:0}.messenger:not(.has-thread) .message-conversation>.avatar{width:50px;height:50px;border:0}.messenger:not(.has-thread) .message-conversation strong{font-size:14px;font-weight:650;max-width:calc(100% - 100px)}.messenger:not(.has-thread) .message-conversation p{font-size:13px;margin:5px 0 0;color:#7a8593}.messenger:not(.has-thread) .message-conversation time{top:15px;font-size:10px;color:#87919e}.messenger:not(.has-thread) .message-conversation+.message-conversation:before{left:76px;right:12px;background:#f0f2f5}.messenger:not(.has-thread) .message-unread{height:19px;min-width:19px;font-size:10px;bottom:16px}.messenger:not(.has-thread) .message-contacts-title{padding:22px 12px 10px;margin:0;font-size:12px;color:#7a8593}.messenger:not(.has-thread) .message-hint{padding:16px 12px;font-size:12px}.messenger:not(.has-thread) .inbox-pinned{font-size:9px;margin:2px 0 0}.messenger:not(.has-thread) .message-conversation.unread{background:transparent}.messenger:not(.has-thread) .message-conversation.unread:hover{background:#f4f7fc}.messenger:not(.has-thread) .message-conversation.unread p{color:#334155;font-weight:600}
@media(max-width:760px){.messenger:not(.has-thread){max-width:none;border-radius:0}.messenger:not(.has-thread) .message-inbox-heading{padding:20px 20px 10px}.messenger:not(.has-thread) .message-inbox-heading h1{font-size:25px}.messenger:not(.has-thread) .message-list-tabs{margin:0 20px 14px;gap:26px}.messenger:not(.has-thread) .message-read-filters{padding-inline:20px;gap:7px}.messenger:not(.has-thread) .message-search{margin:0 20px 14px}.messenger:not(.has-thread) .message-conversations{padding-inline:8px}.messenger:not(.has-thread) .message-conversation{min-height:80px;padding:12px;gap:12px}.messenger:not(.has-thread) .message-conversation strong{font-size:14px;max-width:calc(100% - 90px)}.messenger:not(.has-thread) .message-conversation p{font-size:12px;padding-right:24px}.messenger:not(.has-thread) .message-conversation time{top:15px}.messenger:not(.has-thread) .message-conversation+.message-conversation:before{left:74px}.messenger:not(.has-thread) .message-contacts-title{padding-top:18px}}
.message-new-button{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#f2f5f9;color:#23364f;cursor:pointer;flex-shrink:0}.message-new-button .ui-icon{width:21px;height:21px}.message-new-button:hover{background:#e8effb;color:#1456b8}.message-new-button:focus-visible{outline:2px solid #1456b8;outline-offset:2px}.new-conversation-dialog{width:min(460px,calc(100vw - 28px));padding:0}.new-conversation-body{padding:16px 20px 20px}.new-conversation-search{display:flex;align-items:center;gap:10px;background:#f2f4f7;border-radius:10px;padding:12px}.new-conversation-search .ui-icon{width:18px;height:18px;color:#7a8593;flex-shrink:0}.new-conversation-search input{border:0;outline:0;background:transparent;width:100%;min-width:0;font:inherit;font-size:16px;color:var(--ink)}.new-conversation-search:focus-within{box-shadow:0 0 0 2px #1456b833}.new-conversation-caption{font-size:12px;color:var(--muted);margin:18px 0 8px}.new-conversation-members{max-height:50dvh;overflow:auto}.new-conversation-members>button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:#fff;padding:12px 6px;text-align:left;color:var(--ink);cursor:pointer;border-radius:8px;font:inherit}.new-conversation-members>button:hover{background:#f3f6fa}.new-conversation-members>button:focus-visible{outline:2px solid #1456b8;outline-offset:-2px}.new-conversation-members .avatar{width:44px;height:44px;flex-shrink:0}.new-conversation-members span{flex:1;min-width:0}.new-conversation-members strong{display:block;font-size:14px;overflow-wrap:anywhere}.new-conversation-members small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.new-conversation-members .ui-icon{width:19px;height:19px;color:#7a8593;flex-shrink:0}
.new-conversation-members .avatar{flex:0 0 44px;min-width:44px;max-width:44px}.new-conversation-search input,.new-conversation-search input:focus{padding:0;border:0;border-radius:0;box-shadow:none;outline:0}
.new-group-button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 6px;margin-bottom:14px;border:0;border-radius:8px;background:#fff;color:#1456b8;font:inherit;font-weight:600;cursor:pointer}.new-group-button:hover{background:#eff4fc}.new-group-button .ui-icon{width:23px;height:23px}.group-identity{display:flex;gap:18px;align-items:center;margin-bottom:18px}.group-photo-picker{position:relative;flex:0 0 64px;cursor:pointer;text-align:center}.group-photo-picker>span,.group-photo-picker>img{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#edf2fa;object-fit:cover;font-size:28px;color:#1456b8}.group-photo-picker input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.group-photo-picker small{font-size:11px;color:var(--muted)}.group-identity>label:last-child{flex:1;min-width:0;font-size:12px;color:var(--muted)}.group-identity input:not([type=file]){display:block;width:100%;box-sizing:border-box;padding:10px 0;margin-top:5px;border:0;border-bottom:1px solid var(--line);font:inherit;font-size:16px}.group-member{display:flex;align-items:center;gap:12px;padding:10px 0;cursor:pointer;font-size:14px}.group-member>span:not(.avatar){flex:1}.group-member input{width:18px;height:18px;accent-color:#1456b8}.group-create .new-conversation-members{max-height:28dvh}.group-create-submit{width:100%;margin-top:16px;padding:12px}.group-create-submit:disabled{opacity:.45}.group-chosen{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.group-chosen button{padding:5px 8px;border:0;border-radius:16px;background:#edf3fc;color:#1456b8;font-size:11px;cursor:pointer}.group-heading-button{border:0;background:none;text-align:left;cursor:pointer;font:inherit}.group-heading-button>span:not(.avatar){display:block}.group-participants{max-height:35%;overflow:auto;border-bottom:1px solid var(--line);padding:10px 18px}.group-participants a{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);padding:7px;font-size:13px}.group-participants .avatar{width:32px;height:32px}.group-message-author{display:block;font-size:11px;color:#1456b8;margin-bottom:5px}
.group-create>button[type=button]{border:0;background:none;color:#1456b8;font:inherit;font-size:12px;cursor:pointer;padding:4px 0 12px}.group-create>button[type=button]:hover{text-decoration:underline}
.group-member-row{border-bottom:1px solid #eff2f6}.group-role-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 10px 56px}.group-role-row small{font-size:10px;color:var(--muted)}.group-role-row button{border:0;background:#edf3fc;color:#1456b8;border-radius:5px;padding:5px 7px;font-size:11px;cursor:pointer}.group-role-row .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.group-leave-button{display:block;margin:10px 7px 4px;padding:10px 12px;border:0;border-radius:7px;background:#fff2f2;color:#a03636;font:inherit;font-size:13px;cursor:pointer}.group-leave-button:hover{background:#ffe7e7}

/* Inbox: short dates, a stable name/preview hierarchy and distinct suggestions. */
.messenger:not(.has-thread) { max-width: 760px; border-radius: 14px; }
.messenger:not(.has-thread) .message-inbox-heading { padding: 24px 24px 18px; }
.message-inbox-heading .message-new-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; background: #eaf1fc; border: 0; border-radius: 12px; color: var(--green); cursor: pointer; }
.message-new-button:hover { background: #dfeafb; }
.messenger:not(.has-thread) .message-list-tabs { margin-bottom: 12px; }
.messenger:not(.has-thread) .message-read-filters { padding: 0 24px 14px; }
.messenger:not(.has-thread) .message-read-filters button { min-height: 32px; }
.messenger:not(.has-thread) .message-search { margin: 0 24px 18px; padding: 12px 14px; border-radius: 12px; background: #f3f5f8; }
.messenger:not(.has-thread) .message-conversations { padding: 0 12px 20px; }
.messenger:not(.has-thread) .message-conversation { min-height: 88px; padding: 16px 12px; gap: 14px; border-radius: 10px; }
.inbox-item-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; min-width: 0; }
.message-conversation .inbox-item-heading strong,
.messenger:not(.has-thread) .message-conversation .inbox-item-heading strong { display: block; max-width: none; min-width: 0; flex: 1; font-size: 14px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-conversation .inbox-item-heading time,
.messenger:not(.has-thread) .message-conversation .inbox-item-heading time { position: static; flex-shrink: 0; font-size: 11px; line-height: 1.5; color: #8b97a8; }
.messenger:not(.has-thread) .message-conversation p { margin-top: 5px; font-size: 13px; line-height: 1.5; padding-right: 22px; color: #7a8799; }
.message-conversation.unread .inbox-item-heading strong { font-weight: 750; }
.message-conversation.unread .inbox-item-heading time { color: var(--green); font-weight: 600; }
.messenger:not(.has-thread) .message-conversation.unread p { color: #334962; font-weight: 600; }
.messenger:not(.has-thread) .message-conversation + .message-conversation:before { left: 76px; right: 12px; background: #f0f3f7; }
.messenger:not(.has-thread) .message-contacts-title { margin: 20px 12px 4px; padding: 18px 0 8px; border-top: 1px solid #edf0f4; font-size: 11px; font-weight: 600; color: #8895a7; }
.messenger:not(.has-thread) .message-contact { min-height: 76px; }
.messenger:not(.has-thread) .message-contact > .avatar { width: 42px; height: 42px; font-size: 12px; background: #f0f4fa; }
.messenger:not(.has-thread) .message-contact > .ui-icon { width: 18px; height: 18px; color: #9baabd; }
.message-conversation:focus-visible { outline: 2px solid #8baee0; outline-offset: -2px; }
@media (max-width: 760px) {
  .messenger:not(.has-thread) { border-radius: 0; }
  .messenger:not(.has-thread) .message-inbox-heading { padding: 16px 20px 12px; }
  .messenger:not(.has-thread) .message-inbox-heading h1 { font-size: 26px; }
  .messenger:not(.has-thread) .message-list-tabs { margin-left: 20px; margin-right: 20px; }
  .messenger:not(.has-thread) .message-read-filters { padding-left: 20px; padding-right: 20px; }
  .messenger:not(.has-thread) .message-search { margin-left: 20px; margin-right: 20px; }
  .message-search input { font-size: 16px; }
  .message-search input::placeholder { font-size: 13px; }
  .messenger:not(.has-thread) .message-conversations { padding-left: 8px; padding-right: 8px; }
  .messenger:not(.has-thread) .message-conversation { min-height: 86px; padding: 15px 12px; gap: 12px; }
  .messenger:not(.has-thread) .message-conversation > .avatar { width: 48px; height: 48px; }
  .messenger:not(.has-thread) .message-contact > .avatar { width: 42px; height: 42px; }
  .inbox-item-heading { gap: 10px; }
}
.message-contacts-title:not(:has(+ .message-contact)) { display: none; }
.group-read-receipt{border:0;background:none;font:inherit;color:#5378a9;padding:0;cursor:pointer}.group-read-receipt:hover{text-decoration:underline}
.group-heading-button{flex:1;min-width:0}.group-heading-button>span:not(.avatar){min-width:0}.group-heading-button strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-heading-button~.message-search-toggle{margin-left:0;flex-shrink:0}.group-heading-button~.conversation-settings{margin-left:0}
.message-voice-button{width:34px;height:42px;flex-shrink:0;display:grid;place-items:center;border:0;background:transparent;color:#1456b8;border-radius:50%;cursor:pointer}.message-voice-button:hover{background:#edf3fc}.message-voice-button .ui-icon{width:21px;height:21px}.message-voice-button:disabled{opacity:.45;cursor:default}.message-voice-button:focus-visible{outline:2px solid #1456b8}.message-media-item:has(audio){grid-column:1/-1;min-width:0}.message-media audio{display:block;width:100%;min-width:200px;max-width:100%;height:44px}.message-bubble:has(audio){width:min(85%,340px)}.message-attachment-preview:has(audio){flex-basis:250px}.message-attachment-preview audio{width:100%;height:44px;margin-top:22px}.voice-dialog{width:min(440px,calc(100vw - 28px));padding:0}.voice-body{padding:20px}.voice-status{font-size:14px;color:var(--ink);line-height:1.5}.voice-timer{display:flex;gap:9px;justify-content:center;align-items:center;padding:20px;font-size:30px;font-variant-numeric:tabular-nums;color:#243b5a}.voice-timer>span{width:10px;height:10px;background:#bd3c43;border-radius:50%}.voice-body audio{width:100%;margin:12px 0}.voice-controls{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.voice-controls button{padding:10px 14px;border-radius:8px;font:inherit;font-size:13px;cursor:pointer}.voice-body .meta{font-size:11px;line-height:1.5}.voice-import{border:0;background:none;color:#1456b8;font:inherit;font-size:12px;padding:8px 0;cursor:pointer}.voice-body .media-error{font-size:12px;line-height:1.5}@media(max-width:760px){.message-voice-button{width:30px}.message-media audio{min-width:180px}.voice-body{padding:16px}}

/* Conversation surfaces and contextual dialogs belong to the same panel. */
.messenger.has-thread { border-radius: 14px; overflow: hidden; }
.message-thread-pane { position: relative; }
.message-thread-heading { min-height: 76px; padding: 14px 22px; gap: 12px; }
.message-peer { min-width: 0; gap: 12px; }
.message-peer > span { min-width: 0; }
.message-peer strong { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.message-peer .avatar { width: 42px; height: 42px; }
.message-search-toggle, .conversation-settings summary { width: 36px; height: 36px; border-radius: 10px; background: #f3f6fa; }
.message-history { background: #f5f7fa; padding: 24px; }
.message-day { width: fit-content; padding: 5px 10px; border-radius: 20px; background: #eaf0f6; color: #7c8da3; font-size: 10px; }
.message-bubble { border: 1px solid #e6ebf2; border-radius: 16px 16px 16px 4px; padding: 11px 15px; box-shadow: none; }
.message-row.mine .message-bubble { background: #1456b8; border-color: #1456b8; border-radius: 16px 16px 4px 16px; }
.message-bubble p { font-size: 14px; line-height: 1.65; }
.message-meta { font-size: 10px; color: #8c9aae; gap: 6px; }
.message-composer { padding: 14px 18px; border-top: 1px solid #e6ecf4; }
.message-composer textarea { border-radius: 20px; font-size: 14px; min-height: 46px; max-height: 150px; background: #f2f5f9; }
.message-composer .message-add-media { color: #667f9f; }
.message-composer .message-send { width: 44px; height: 44px; flex-shrink: 0; }
.conversation-options { width: 245px; max-width: calc(100vw - 32px); padding: 6px; border: 1px solid #e3eaf3; border-radius: 12px; box-shadow: 0 8px 28px #192b451a; }
.conversation-options button { min-height: 42px; padding: 11px 12px; font-size: 12px; line-height: 1.6; }
.conversation-dialog-shade { position: fixed; z-index: 1000; pointer-events: none; background: #20354f26; backdrop-filter: blur(2px); }
dialog.conversation-dialog {
 position: fixed; left: var(--dialog-center-x); top: var(--dialog-center-y); right: auto; bottom: auto;
 transform: translate(-50%, -50%); margin: 0;
 width: min(440px, calc(var(--dialog-area-width) - 32px));
 max-width: calc(var(--dialog-area-width) - 32px); max-height: calc(var(--dialog-area-height) - 32px);
 padding: 0; overflow-y: auto; border: 1px solid #e2e9f3; border-radius: 16px; box-shadow: 0 16px 48px #192b4526;
}
dialog.conversation-dialog::backdrop { background: transparent; backdrop-filter: none; }
.conversation-dialog .compose-dialog-heading { position: sticky; top: 0; z-index: 2; margin: 0; min-height: 66px; padding: 16px 56px 16px 20px; background: #fff; justify-content: flex-start; border-bottom: 1px solid #edf0f4; }
.conversation-dialog .compose-dialog-heading h2 { margin: 0; font-size: 17px; text-align: left; line-height: 1.4; overflow-wrap: anywhere; }
.conversation-dialog .close-dialog { right: 16px; width: 32px; height: 32px; min-height: 32px; font-size: 23px; }
.conversation-dialog .message-forward-body, .conversation-dialog .shared-media-body,
.conversation-dialog .new-conversation-body, .conversation-dialog .voice-body { padding: 20px; }
.conversation-dialog .message-edit-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.conversation-dialog .message-edit-buttons button { flex: 1; min-height: 42px; padding: 10px 13px; border-radius: 8px; font-size: 12px; }
.conversation-dialog .shared-media-filters { gap: 6px; }
.conversation-dialog .shared-media-filters button { border-radius: 20px; padding: 8px 12px; font-size: 12px; }
.message-search-panel { padding: 14px 18px; background: #fbfcfe; }
.message-search-panel input { border-radius: 10px; background: #fff; }
.message-selection-bar { padding: 12px 18px; background: #eef4fd; }
@media (max-width: 760px) {
 .messenger.has-thread { border-radius: 0; }
 .message-thread-heading { min-height: 64px; padding: 10px 12px; gap: 8px; }
 .message-thread-heading .message-peer .avatar { width: 36px; height: 36px; }
 .message-thread-heading .message-peer strong { font-size: 13px; }
 .message-thread-heading .message-peer { gap: 8px; }
 .message-thread-back { min-width: 30px; padding: 5px; }
 .message-history { padding: 18px 14px; }
 .message-bubble { max-width: 86%; padding: 10px 13px; }
 .message-bubble p { font-size: 15px; }
 .message-composer { padding: 10px; gap: 6px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
 .message-composer textarea { font-size: 16px; min-height: 44px; padding: 10px 13px; }
 .message-composer .message-send { width: 42px; height: 42px; }
 dialog.conversation-dialog { width: calc(var(--dialog-area-width) - 24px); max-width: calc(var(--dialog-area-width) - 24px); max-height: calc(var(--dialog-area-height) - 24px); border-radius: 14px; }
 .conversation-dialog .compose-dialog-heading { min-height: 60px; padding-left: 18px; }
 .conversation-dialog .compose-dialog-heading h2 { font-size: 16px; }
 .conversation-dialog .message-forward-body, .conversation-dialog .shared-media-body,
 .conversation-dialog .new-conversation-body, .conversation-dialog .voice-body { padding: 18px; }
}
.conversation-dialog.message-edit-dialog form { padding: 18px 20px 20px; }
.conversation-dialog .voice-status { margin-top: 0; line-height: 1.7; }
.conversation-dialog.shared-video-dialog video { display: block; width: 100%; max-height: calc(var(--dialog-area-height) - 220px); background: #142033; }
.message-action-menu { border: 1px solid #e2e9f2; border-radius: 12px; padding: 5px; box-shadow: 0 8px 24px #192b451a; }
.message-action-menu button { min-height: 40px; font-size: 12px; border-radius: 7px; }

/* Compact conversation input; grows only when the message needs another line. */
@media (max-width:760px) {
 .message-composer { padding:8px; padding-bottom:max(8px,env(safe-area-inset-bottom)); gap:4px; align-items:flex-end; }
 .message-composer textarea { box-sizing:border-box; min-width:0; min-height:40px; max-height:112px; padding:9px 12px; line-height:20px; border-radius:20px; resize:none; }
 .message-composer .message-add-media,
 .message-composer .message-voice-button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 36px; width:36px; height:40px; padding:0; margin:0; border-radius:12px; }
 .message-composer .message-send { flex:0 0 40px; width:40px; height:40px; margin:0; }
 .message-composer .ui-icon { width:21px; height:21px; }
}

@media (max-width:760px) {
 body:has(.messenger.has-thread) .left nav { display:none; }
}

.left nav a[data-nav="profile"] .avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  font-size: 10px;
  border-radius: 50%;
}
.left nav a[data-nav="profile"].active .avatar {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

/* Give desktop conversations a dedicated, spacious workspace. */
@media (min-width:761px) {
 .messaging-layout:has(.messenger.has-thread) { display:block; max-width:1680px; padding:20px 28px 16px; }
 .messaging-layout:has(.messenger.has-thread) > .left { display:none; }
 .messaging-layout .messenger.has-thread { grid-template-columns:290px minmax(0,1fr); height:calc(100dvh - 116px); min-height:440px; margin:0; border-radius:12px; }
 .messenger.has-thread .message-thread-heading { min-height:68px; padding:12px 24px; }
 .messenger.has-thread .message-history { padding:24px 32px; }
 .messenger.has-thread .message-composer { padding:12px 24px; }
 .messenger.has-thread .message-composer textarea { border-radius:14px; }
 .messenger.has-thread .message-inbox-heading { padding:22px 20px 16px; }
}
@media (min-width:761px) and (max-width:1000px) {
 .messaging-layout:has(.messenger.has-thread) { padding-inline:16px; }
 .messaging-layout .messenger.has-thread { grid-template-columns:240px minmax(0,1fr); }
 .messenger.has-thread .message-history { padding:20px; }
}

/* A quiet, accessible player for voice messages. */
.message-media .voice-player { display:flex; align-items:center; gap:12px; padding:10px 8px; color:#355f9b; min-width:0; }
.message-media .voice-player audio { display:none; }
.message-row.mine .voice-player { color:#fff; }
.voice-play { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; padding:0; border:0; border-radius:50%; background:#e9f0fb; color:#1456b8; cursor:pointer; }
.message-row.mine .voice-play { background:#fff; color:#1456b8; }
.voice-play svg { width:22px; height:22px; }
.voice-progress { flex:1; min-width:0; }
.voice-progress input { display:block; appearance:none; width:100%; height:4px; margin:9px 0; border:0; border-radius:8px; background:linear-gradient(to right,currentColor var(--voice-progress),#8ca4c04a var(--voice-progress)); cursor:pointer; accent-color:currentColor; }
.message-row.mine .voice-progress input { background:linear-gradient(to right,#fff var(--voice-progress),#ffffff45 var(--voice-progress)); }
.voice-progress input::-webkit-slider-thumb { appearance:none; width:10px; height:10px; border-radius:50%; background:currentColor; }
.voice-progress input::-moz-range-thumb { width:10px; height:10px; border:0; border-radius:50%; background:currentColor; }
.voice-times { display:flex; justify-content:space-between; font-size:10px; line-height:1; font-variant-numeric:tabular-nums; opacity:.8; }
.voice-download { display:grid; place-items:center; flex:0 0 28px; width:28px; height:36px; color:inherit; opacity:.7; border-radius:8px; }
.voice-download svg { width:18px; height:18px; }
.voice-download:hover { opacity:1; background:#8ca4c020; }
.voice-play:focus-visible,.voice-download:focus-visible,.voice-progress input:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.voice-play:disabled { opacity:.5; cursor:default; }
.message-bubble:has(.voice-player) { width:min(85%,320px); }
.message-media-item:has(.voice-player) { grid-column:1/-1; }
.voice-progress input { color:inherit; }
.voice-play svg { fill:currentColor; stroke:none; }

@media (max-width:760px) {
 .message-bubble:has(.voice-player) { width:min(78%,250px); padding:5px 9px; }
 .message-media .voice-player { gap:9px; padding:5px 0; }
 .voice-player .voice-play { flex-basis:32px; width:32px; height:32px; }
 .voice-player .voice-play svg { width:18px; height:18px; }
 .voice-player .voice-download { flex-basis:24px; width:24px; height:32px; }
 .voice-player .voice-download svg { width:16px; height:16px; }
 .voice-player .voice-progress input { margin:6px 0; height:3px; }
 .voice-player .voice-times { font-size:9px; }
 .message-bubble:has(.voice-player) > p { padding:3px 1px 4px; font-size:14px; }
}

.voice-dialog .voice-recorder { text-align:center; }
.voice-recorder .voice-status { margin:0; color:#6a798d; font-size:13px; }
.voice-recorder .voice-timer { padding:20px 0; font-size:34px; font-weight:500; letter-spacing:1px; }
.voice-recorder .voice-timer > span { width:8px; height:8px; background:#b7c4d6; }
.voice-recorder .voice-timer > .is-recording { background:#dc4c57; box-shadow:0 0 0 5px #dc4c5714; }
.voice-recorder .voice-controls { flex-wrap:nowrap; gap:8px; margin:4px 0 12px; }
.voice-recorder .voice-controls button { flex:1; min-height:42px; padding:10px 12px; border-radius:10px; }
.voice-recorder .voice-controls button:only-child { background:#1456b8; border-color:#1456b8; color:#fff; }
.voice-recorder .meta { margin:0; color:#8a97a8; font-size:10px; }
.voice-recorder .voice-import { margin-top:10px; padding:6px 10px; font-size:12px; }
.voice-recorder .voice-player { display:flex; align-items:center; gap:12px; padding:16px 0; color:#1456b8; text-align:left; }
.voice-recorder .voice-player audio { display:none; }
.voice-recorder .voice-download { display:none; }
@media(max-width:760px) {
 dialog.voice-dialog.conversation-dialog { width:min(320px,calc(var(--dialog-area-width) - 32px)); border-radius:14px; }
 .voice-dialog.conversation-dialog .compose-dialog-heading { min-height:52px; padding:12px 50px 12px 16px; }
 .voice-dialog.conversation-dialog .compose-dialog-heading h2 { font-size:15px; }
 .voice-dialog.conversation-dialog .voice-body { padding:16px; }
 .voice-recorder .voice-timer { padding:16px 0; font-size:30px; }
 .voice-recorder .voice-status { font-size:12px; }
 .voice-recorder .voice-controls button { font-size:13px; }
}

/* Record directly in the conversation, like a messaging app. */
.message-composer.is-recording-voice { display:none; }
.voice-inline { display:flex; flex-shrink:0; align-items:center; gap:12px; padding:12px 20px; border-top:1px solid #e6ecf4; background:#fff; }
.voice-inline .voice-cancel { display:grid; place-items:center; flex:0 0 38px; width:38px; height:40px; padding:0; border:0; border-radius:10px; background:transparent; color:#8795a8; cursor:pointer; }
.voice-cancel svg { width:21px; height:21px; }
.voice-cancel:hover { color:#bd3c43; background:#fff1f2; }
.voice-inline .voice-body { display:flex; flex:1; align-items:center; flex-wrap:wrap; gap:8px 14px; min-width:0; padding:0; text-align:left; }
.voice-inline .voice-status { font-size:12px; margin:0; color:#78879b; }
.voice-inline .voice-timer { display:flex; align-items:center; gap:8px; padding:0; font-size:22px; margin-right:auto; }
.voice-inline .voice-controls { display:flex; gap:8px; margin:0 0 0 auto; }
.voice-inline .voice-controls button { min-height:40px; padding:9px 14px; white-space:nowrap; font-size:12px; border-radius:20px; }
.voice-inline .voice-recorder-recording .voice-controls button { background:#fff0f1; color:#c23e4b; border-color:transparent; }
.voice-inline .voice-import { margin:0; padding:8px 0; font-size:11px; }
.voice-inline .voice-recorder-ready .voice-status { display:none; }
.voice-inline .voice-player { flex:1; min-width:130px; max-width:400px; padding:0; }
.voice-inline .voice-player .voice-play { width:34px; height:34px; flex-basis:34px; }
.voice-inline .media-error { flex-basis:100%; font-size:12px; }
@media(max-width:760px) {
 .voice-inline { padding:10px 8px max(10px,env(safe-area-inset-bottom)); gap:6px; }
 .voice-inline .voice-cancel { width:32px; flex-basis:32px; }
 .voice-inline .voice-body { gap:6px 10px; }
 .voice-inline .voice-status { display:none; }
 .voice-inline .voice-timer { font-size:20px; }
 .voice-inline .voice-controls { gap:6px; }
 .voice-inline .voice-controls button { padding:9px 12px; font-size:12px; }
 .voice-inline .voice-recorder-idle .voice-import { flex-basis:100%; text-align:right; padding:0 8px 0 0; font-size:10px; }
 .voice-inline .voice-recorder-ready .voice-import { display:none; }
 .voice-inline .voice-recorder-ready .voice-controls { flex-basis:100%; }
}
@media(max-width:760px) {
 .voice-inline .voice-recorder-idle .voice-import { display:none; }
}

/* Media stays visual; filenames are kept only in the download action. */
.message-media-download { display:flex; justify-content:flex-end; padding:5px 4px; text-decoration:none; opacity:.65; }
.message-media-download svg { width:17px; height:17px; }
.message-media-download:hover { opacity:1; }
.message-attachment-strip { align-items:center; gap:8px; padding:5px 3px; }
.message-attachment-preview { flex-basis:72px; }
.message-attachment-preview img,.message-attachment-preview video { height:64px; border-radius:8px; }
.message-attachment-preview:has(.voice-player) { flex:0 0 min(280px,calc(100vw - 32px)); background:#f2f5fa; border-radius:12px; padding:5px 32px 5px 10px; }
.message-attachment-preview .voice-player { display:flex; align-items:center; gap:10px; color:#1456b8; min-width:0; }
.message-attachment-preview .voice-player audio { display:none; }
.message-attachment-preview .voice-play { flex-basis:32px; width:32px; height:32px; }
.message-attachment-preview button.voice-play { position:static; border:0; background:#e2eafa; color:#1456b8; font-size:inherit; }
.message-attachment-preview .attachment-remove { width:24px; height:24px; top:3px; right:3px; font-size:18px; box-shadow:0 1px 4px #17243d15; }
@media(max-width:760px) {
 body:has(.messenger.has-thread) { overflow:hidden; }
 .layout:has(.messenger.has-thread) { padding-bottom:0; }
}

header .top-profile-link .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
header .header-right > .header-profile-link { display: none; }
.profile-more-menu a {
  display: block;
  padding: 13px 12px;
  color: #52647b;
  font-size: 13px;
  border-radius: 7px;
}
.profile-more-menu a:hover { background: #f4f6f9; }
@media (max-width: 760px) {
  header .header-right > .header-profile-link { display: grid; }
}

.citizen-feed { --feed-inset: 20px; }
.citizen-feed .composer { padding: 16px var(--feed-inset) 8px; }
.citizen-feed .compose-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.citizen-feed .composer-tool { justify-content: center; min-width: 0; padding-inline: 4px; }
.citizen-feed .feed-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; background: #fff; border-bottom: 1px solid var(--line); }
.citizen-feed .feed-tabs button { min-width: 0; min-height: 46px; padding: 8px 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; font-size: 13px; }
.citizen-feed .feed-tabs button.active { color: var(--green); background: #f5f8ff; border-bottom-color: currentColor; }
.citizen-feed .feed-tabs button:focus-visible { outline-offset: -3px; }
@media (min-width: 1151px) {
 .citizen-feed .feed-tabs { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
}
@media (max-width: 760px) {
 .citizen-feed { --feed-inset: 16px; }
 .citizen-feed .post { padding-inline: var(--feed-inset); }
 .citizen-feed .composer-tool { gap: 4px; font-size: 11px; }
 .citizen-feed .composer-tool .ui-icon { width: 17px; height: 17px; flex-shrink: 0; }
 .citizen-feed .feed-tabs button { font-size: 12px; }
}

/* Shared rhythm across the profile header, tabs and posts. */
.profile-page { --profile-inset: 24px; }
.profile-page .full-profile-body,
.profile-page .post { padding-inline: var(--profile-inset); }
.profile-page .profile-role { margin-bottom: 10px; }
.profile-page .profile-about { margin: 0; }
.profile-page .profile-main-actions { margin: 16px 0; }
.profile-page .profile-main-actions button { min-width: 0; padding-inline: 14px; line-height: 1.35; }
.profile-page .profile-numbers { padding-block: 14px; }
.profile-page .profile-numbers > * { overflow-wrap: anywhere; }
.profile-page .profile-empty { padding: 30px var(--profile-inset) 36px; }
@media (max-width: 1150px) {
 .profile-page { --profile-inset: 20px; }
}
@media (max-width: 760px) {
 .profile-page { --profile-inset: 16px; }
 .profile-page .profile-cover { height: clamp(112px, 34vw, 155px); }
 .profile-page .profile-main-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .profile-page .profile-main-actions button { padding-inline: 8px; }
 .profile-page .profile-main-actions .profile-settings-button { justify-self: start; min-height: 36px; padding-inline: 10px; background: transparent; }
}

.layout.settings-layout { display:block; max-width:1050px; }
.settings-layout > .right { display:none; }
@media (min-width:761px) { .settings-layout > .left { display:none; } }
.settings-layout > main { border:0; }
.settings-heading { margin:0 0 22px; }
.settings-heading h1 { margin:0 0 6px; font-size:28px; }
.settings-heading p { margin:0; color:var(--muted); font-size:14px; line-height:1.5; }
.settings-grid { display:grid; grid-template-columns:205px minmax(0,1fr); gap:20px; align-items:start; }
.settings-nav { position:sticky; top:96px; display:grid; gap:4px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px; }
.settings-nav a { display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 10px; border-radius:8px; color:var(--ink); text-decoration:none; font-size:13px; font-weight:600; }
.settings-nav a:hover,.settings-nav a:focus-visible { color:var(--green); background:#edf3fd; }
.settings-nav .ui-icon { width:18px; height:18px; flex-shrink:0; }
.settings-section { background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:14px; padding:20px; scroll-margin-top:100px; overflow-wrap:anywhere; }
.settings-section h2 { margin:0 0 14px; font-size:18px; }
.settings-section .profile-notification-settings { padding:12px 0; margin:0; }
.settings-section p { margin-block:8px; }
.settings-verified { display:inline-block; color:#28644d; font-size:12px; margin-bottom:10px; }
.settings-actions { display:grid; }
.settings-actions > * { background:transparent; border:0; border-top:1px solid var(--line); min-height:44px; padding:10px 0; font:inherit; font-size:14px; text-align:left; text-decoration:none; color:var(--green); cursor:pointer; }
.settings-actions .settings-signout { color:#a13a43; }
@media (max-width:760px) {
 .settings-heading { margin:0 16px 16px; }
 .settings-heading h1 { font-size:24px; }
 .settings-grid { display:block; }
 .settings-nav { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0 16px 16px; }
 .settings-section { border:0; border-top:1px solid var(--line); border-radius:0; margin:0; padding:18px 16px; scroll-margin-top:74px; }
}

.settings-grid { grid-template-columns: 270px minmax(0,1fr); }
.settings-nav a { min-height:62px; }
.settings-nav-icon { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:9px; background:#edf3fd; color:var(--green); }
.settings-nav-copy { display:grid; gap:3px; min-width:0; flex:1; }
.settings-nav-copy small { color:var(--muted); font-size:11px; font-weight:400; }
.settings-chevron { color:var(--muted); font-size:20px; }
.settings-section { display:none; }
.settings-section:target { display:block; }
.settings-back { display:none; }
.settings-page:has(#reglages-compte:target) [data-section="compte"],
.settings-page:has(#reglages-confidentialite:target) [data-section="confidentialite"],
.settings-page:has(#reglages-notifications:target) [data-section="notifications"],
.settings-page:has(#reglages-a-propos:target) [data-section="a-propos"] { color:var(--green); background:#edf3fd; }
@media (min-width:761px) {
 .settings-page:not(:has(.settings-section:target)) #reglages-compte { display:block; }
 .settings-page:not(:has(.settings-section:target)) [data-section="compte"] { color:var(--green); background:#edf3fd; }
}
@media (max-width:760px) {
 .settings-nav { grid-template-columns:1fr; padding:0; border:0; gap:0; }
 .settings-nav a { border-radius:0; border-bottom:1px solid var(--line); }
 .settings-page:has(.settings-section:target) .settings-nav { display:none; }
 .settings-page:has(.settings-section:target) .settings-back { display:flex; align-items:center; gap:8px; min-height:44px; margin:0 16px; text-decoration:none; font-size:13px; }
 .settings-back .ui-icon { width:17px; height:17px; }
 .settings-section { scroll-margin-top:125px; }
 #rubriques-reglages { scroll-margin-top:74px; }
}

dialog.publication-share { width:min(440px,calc(100vw - 24px)); padding:0; border-radius:14px; }
.publication-share .compose-dialog-heading { margin:0; padding:16px 48px 16px 16px; border-bottom:1px solid var(--line); }
.publication-share-body { padding:16px; }
.publication-share-preview { padding:12px; margin-bottom:12px; border:1px solid var(--line); border-radius:10px; }
.publication-share-preview p { margin:5px 0 0; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.publication-share-actions,.publication-share-recipients { display:grid; gap:4px; }
.publication-share-recipients { max-height:42dvh; overflow:auto; }
.publication-share-body button { display:flex; align-items:center; gap:10px; min-height:44px; border:0; border-radius:8px; background:#fff; padding:8px 10px; color:var(--ink); text-align:left; cursor:pointer; }
.publication-share-body button:hover { background:#edf3fd; }
.publication-share-body .ui-icon { width:18px; height:18px; color:var(--green); }
.publication-share-body input { width:100%; min-width:0; padding:10px; margin-top:6px; border:1px solid var(--line); border-radius:8px; font-size:16px; }
.post-text a,.message-bubble p a { overflow-wrap:anywhere; }
.message-bubble p a { color:inherit; text-decoration:underline; }

.shared-publication-card { margin:10px 0 14px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.shared-publication-link { display:block; color:inherit; text-decoration:none; }
.shared-publication-link:focus-visible { outline-offset:-3px; }
.shared-publication-author { display:flex; gap:10px; align-items:center; padding:12px 14px; }
.shared-publication-author .avatar { width:36px; height:36px; flex:0 0 36px; }
.shared-publication-author strong { display:block; overflow-wrap:anywhere; }
.shared-publication-author small { display:block; color:var(--muted); font-size:11px; }
.shared-publication-link > p { margin:0; padding:0 14px 12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.shared-publication-link > img { display:block; width:100%; max-height:360px; object-fit:contain; background:#f4f6f9; }
.shared-publication-card > .project-preview { margin:0 12px 12px; }
.shared-publication-unavailable { padding:14px; color:var(--muted); }
.publication-share .shared-publication-link > img { max-height:150px; }
.publication-share .shared-publication-link > p { max-height:84px; overflow:hidden; }

@media (min-width: 761px) {
 .citizen-feed .post .shared-publication-link > img,
 .profile-page .post .shared-publication-link > img { max-height:560px; }
}

@media (min-width:1151px) {
 .layout > aside.left,
 .layout > aside.right {
  position:sticky;
  top:var(--rail-top,96px) !important;
  align-self:start;
  max-height:none;
  overflow:visible;
 }
}

.story-media { touch-action:none; user-select:none; position:relative; }
.story-load-status { position:absolute; inset:45% 12px auto; text-align:center; color:#fff; }
.story-player-header a { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.story-player-header button { flex-shrink:0; }
.story-player-footer button { min-width:40px; min-height:40px; }

/* Status creation: one clear choice, then an image-led editor. */
dialog.clip-composer-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:18px;overflow:auto;box-shadow:0 24px 90px #14233c38;background:#fff}
.clip-composer-dialog::backdrop{background:#17243d66;backdrop-filter:blur(4px)}
.clip-composer-dialog .clip-compose{width:100%;max-width:none;min-width:0;padding:0;margin:0;box-sizing:border-box}
.clip-composer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 22px 12px}
.clip-composer-heading h2{margin:0;font-size:19px;letter-spacing:-.6px}
.clip-composer-heading p{margin:5px 0 0;color:#87909b;font-size:12px;line-height:1.5}
.clip-composer-heading .close-dialog{position:static;flex-shrink:0;width:32px;height:32px;margin:0;display:grid;place-items:center;border:0;border-radius:50%;background:#f2f4f7;color:#637083;font-size:23px;line-height:1}
.clip-composer-body{padding:8px 22px 18px}
.clip-composer-dialog .clip-file-input{display:none}
.clip-media-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:250px;padding:26px 12px 20px;border:0;border-radius:12px;background:#fff;color:#243b5a;text-align:center}
.clip-picker-art{display:block;position:relative;width:104px;height:88px;margin-bottom:14px}
.clip-art-back{position:absolute;left:13px;top:6px;width:62px;height:76px;border-radius:12px;transform:rotate(-14deg);background:#e0e8f8}
.clip-art-front{position:absolute;left:30px;top:9px;width:62px;height:76px;border:3px solid #fff;border-radius:12px;transform:rotate(9deg);background:#f0f4fc;display:grid;place-items:center;color:#4267ad;box-shadow:0 6px 14px #224b8e14}
.clip-art-front .ui-icon{width:32px;height:32px}
.clip-art-add{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:27px;height:27px;border:3px solid #fff;border-radius:50%;background:#315db3;color:#fff;font-size:20px;line-height:1}
.clip-media-picker strong{font-size:16px;font-weight:650;letter-spacing:-.3px}
.clip-media-picker>span:not(.clip-picker-art){display:block;margin-top:6px;border-radius:9px;background:#edf2fc;color:#2454a5;padding:11px 25px;font-size:13px;font-weight:600}
.clip-media-picker:hover>span:not(.clip-picker-art){background:#e1eafa}
.clip-media-picker small{font-size:10px;color:#99a1ad;margin-top:3px}
.clip-composer-dialog .clip-caption-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.clip-composer-dialog textarea{display:block;width:100%;min-height:58px;max-height:110px;padding:15px 0 0;margin:0;border:0;border-radius:0;background:#fff;font:inherit;font-size:14px;line-height:1.5;resize:none;box-sizing:border-box}
.clip-composer-dialog textarea::placeholder{color:#919aaa}
.clip-composer-dialog .clip-preview{display:flex;justify-content:center;align-items:center;margin:4px 0 0;height:min(42dvh,340px);border-radius:12px;background:#101723;overflow:hidden}
.clip-composer-dialog .clip-preview img,.clip-composer-dialog .clip-preview video{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.clip-media-actions{display:flex;align-items:center;gap:14px;padding:9px 0 0;font-size:11px}
.clip-media-actions>span{display:flex;align-items:center;gap:5px;margin-right:auto;color:#8c95a1}
.clip-media-actions .ui-icon{width:14px;height:14px}
.clip-media-actions button{padding:5px 0;background:none;border:0;color:#315db3;font-size:11px}
.clip-media-actions button:last-child{color:#7c8694}
.clip-composer-dialog .clip-error{margin:10px 0 0;padding:10px 12px;border-radius:8px;background:#fff2f1;color:#b13c3c;font-size:12px;line-height:1.5}
.clip-composer-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;background:#fff;border-top:1px solid #f0f2f5}
.clip-composer-footer>span{display:flex;align-items:center;gap:6px;font-size:11px;color:#8b95a3}
.clip-composer-footer .primary{display:flex;align-items:center;justify-content:center;gap:8px;min-width:108px;min-height:40px;border-radius:9px;padding:10px 16px;font-size:12px}
.clip-composer-footer .ui-icon{width:16px;height:16px}
.clip-composer-dialog button:disabled{opacity:.45;cursor:default}
.is-empty .clip-composer-footer .primary{display:none}
.is-empty .clip-composer-footer{justify-content:center;padding:14px 20px}
@media(max-width:760px){dialog.clip-composer-dialog{width:calc(100vw - 32px);max-height:calc(100dvh - 24px);border-radius:18px}.clip-composer-heading{padding:20px 20px 10px}.clip-composer-heading h2{font-size:18px}.clip-composer-body{padding:6px 20px 16px}.clip-media-picker{min-height:235px}.clip-composer-dialog textarea{font-size:16px}.clip-composer-footer{padding:14px 20px}.clip-composer-dialog .clip-preview{height:min(38dvh,320px)}}

/* Status viewers stay inside the player; opening the list pauses playback. */
.story-player{position:relative}
.story-player-footer .story-view-count{display:flex;align-items:center;gap:7px;margin-right:auto;color:#fff;font-size:12px;min-height:40px}
.story-viewers{position:absolute;inset:auto 0 0;z-index:8;display:flex;flex-direction:column;max-height:70%;min-height:240px;border-radius:20px 20px 0 0;background:#fff;color:#17243d;box-shadow:0 -10px 40px #0003;overflow:hidden;text-align:left}
.story-viewers-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid #edf0f5;background:#fff}
.story-viewers-heading h2{margin:0;font-size:16px;letter-spacing:-.3px;display:flex;align-items:center;gap:8px}
.story-viewers-heading h2 span{padding:3px 7px;border-radius:7px;background:#edf2fc;color:#315db3;font-size:11px}
.story-viewers-heading p{margin:5px 0 0;color:#8a94a2;font-size:11px}
.story-viewers-heading button{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border:0;border-radius:50%;background:#f1f3f7;color:#637083;font-size:23px}
.story-viewers-list{overflow:auto;overscroll-behavior:contain;padding:6px 20px 18px;min-height:0}
.story-viewer-person{display:flex;gap:12px;align-items:center;text-decoration:none;color:#17243d;padding:12px 0;border-bottom:1px solid #f2f4f7}
.story-viewer-portrait{flex-shrink:0;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;overflow:hidden;background:#edf2fc;color:#315db3;font-size:12px;font-weight:600}
.story-viewer-portrait img{width:100%;height:100%;object-fit:cover}
.story-viewer-person>span:last-child{min-width:0}
.story-viewer-person strong{display:block;font-size:13px;overflow-wrap:anywhere}
.story-viewer-person time{display:block;margin-top:4px;font-size:11px;color:#8a94a2}
.story-viewers-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:155px;padding:24px 10px;text-align:center;color:#8a94a2;font-size:12px;line-height:1.6;margin:0}
.story-viewers-empty .ui-icon{width:27px;height:27px;color:#8ba5cc}
.story-viewers-empty strong{color:#364966;font-size:14px}
.story-viewers-empty p{margin:0;max-width:240px}
.story-viewers-more,.story-viewers-empty button{display:block;margin:12px auto 0;border:0;background:#edf2fc;color:#315db3;border-radius:9px;padding:10px 18px;font-size:12px}

/* Private replies and likes in the status player. */
.story-player .story-reply{display:flex;align-items:center;gap:8px;width:100%;max-width:none;min-width:0;padding:0;margin:0 0 10px;border:1px solid #ffffff5c;border-radius:24px;background:#ffffff08;box-sizing:border-box}
.story-reply-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
dialog.story-dialog .story-player .story-reply input{flex:1;min-width:0;width:0;margin:0;padding:12px 0 12px 16px;border:0;border-radius:24px;background:transparent;color:#fff;font:inherit;font-size:14px;line-height:1.4;box-shadow:none}
.story-reply input::placeholder{color:#d8dce5}
.story-player .story-reply button{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;min-height:0;margin:4px;border:0;border-radius:50%;background:#fff;color:#17243d;padding:0}
.story-reply button:disabled{opacity:.35;cursor:default}
.story-reply:focus-within{border-color:#fff;background:#ffffff12}
.story-player .story-reply-status{margin:0 0 10px;padding:6px 4px;font-size:12px;color:#dbe8ff;line-height:1.5}
.story-player .story-reply-status.is-error{color:#ffbcbc}
.story-player .story-reply-status button{display:inline;margin-left:8px;padding:0;border:0;border-radius:0;background:none;color:#fff;text-decoration:underline;font-size:12px}
.story-player-footer .story-like,.story-player-footer .story-likes-total{display:flex;align-items:center;justify-content:center;gap:5px;min-width:40px;color:#fff;font-size:12px;padding:6px;border-radius:10px;background:transparent}
.story-player-footer .story-like.is-liked,.story-player-footer .story-likes-total{color:#ff6b8a}
.story-player-footer .story-share{display:grid;place-items:center;width:36px;height:40px;background:none;border-radius:10px}
.story-share .ui-icon{width:21px;height:21px}
.story-player-footer:has(.story-like){gap:9px}
.story-player-footer .story-like{margin-right:auto}
@media(max-width:760px){dialog.story-dialog .story-player .story-reply input{font-size:16px}.story-player-footer:has(.story-like){padding-bottom:env(safe-area-inset-bottom,0px)}}

.story-player-footer .story-like.is-liked svg,.story-player-footer .story-likes-total svg{fill:currentColor}

/* Notifications: a continuous activity list across all screens. */
.notification-page{background:#fff;border:1px solid #e5eaf2;border-radius:16px;min-width:0;overflow:visible}
.notification-surface .notifications-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:23px 22px 16px}
.notification-surface .notifications-heading>div{min-width:0}
.notification-surface .page-title{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0;font-size:23px;line-height:1.3;letter-spacing:-.7px}
.notification-title-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:7px;background:#edf2fc;color:#315db3;font-size:11px;letter-spacing:0;font-weight:600}
.notification-surface .notifications-heading p{margin:6px 0 0;color:#929ba8;font-size:12px}
.notification-read-all{display:flex;align-items:center;gap:6px;flex-shrink:0;padding:8px 0 8px 8px;border:0;background:none;color:#315db3;font-size:12px;font-weight:600;min-height:40px}
.notification-surface .notification-filters{display:flex;gap:8px;margin:0;padding:0 22px 18px;border-bottom:1px solid #edf0f5}
.notification-surface .notification-filters button{display:flex;align-items:center;gap:8px;min-height:36px;margin:0;padding:8px 14px;border:0;border-radius:9px;background:#f4f6f9;color:#8490a0;font-size:12px;font-weight:500}
.notification-surface .notification-filters button[aria-pressed="true"]{background:#eaf0fc;color:#2d58a3;font-weight:650}
.notification-surface .notification-filter-count{display:grid;place-items:center;min-width:18px;height:18px;margin:0;padding:0 4px;border-radius:5px;background:#e6eaf0;color:inherit;font-size:10px}
.notification-surface .notification-filters button[aria-pressed="true"] .notification-filter-count{background:#dbe6fa}
.notification-surface .notifications-list{border:0;border-radius:0;background:transparent;margin:0;overflow:visible;padding:0 0 8px}
.notification-surface .notification-date-group>h2,.notification-surface .notification-date-group>h3{margin:0;padding:17px 22px 9px;border:0;background:none;color:#7a8799;font-size:11px;font-weight:650;letter-spacing:.3px}
.notification-surface .notification-row{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) 30px;align-items:start;gap:12px;padding:15px 22px;margin:0;border:0;border-radius:0;background:#fff}
.notification-surface .notification-row:hover{background:#f8fafd}
.notification-surface .notification-row.unread{background:#f1f5fd}
.notification-surface .notification-row.unread:hover{background:#eaf1fc}
.notification-identity{position:relative;width:48px;height:48px}
.notification-surface .notification-identity .avatar{width:48px;height:48px;font-size:12px;background:#eaf0fa}
.notification-kind-badge{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:23px;height:23px;border:2px solid #fff;border-radius:50%;background:#315db3;color:#fff;font-size:12px;pointer-events:none}
.notification-kind-badge .ui-icon{width:12px;height:12px;stroke-width:2.2}
.notification-kind-badge.is-reaction{background:#fff;font-size:15px}
.notification-kind-badge.is-comment{background:#7790c6}
.notification-kind-badge.is-project{background:#557c83}
.notification-surface .notification-open{position:static;display:block;min-width:0;width:100%;padding:1px 0 0;margin:0;border:0;border-radius:0;background:none;text-align:left;color:#556175;font-size:13px;line-height:1.65}
.notification-sentence{display:block;overflow-wrap:anywhere}
.notification-sentence strong{font-weight:650;color:#26364e}
.notification-row-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:5px;color:#98a1ae;font-size:11px;line-height:1.5}
.notification-surface .notification-open time{display:inline;margin:0;color:inherit;font-size:inherit}
.notification-surface .unread .notification-row-meta{color:#5079bd}
.notification-row-tools{display:flex;flex-direction:column;align-items:center;gap:8px;padding-top:5px;min-width:0}
.notification-surface .unread-dot{position:static;display:block;flex-shrink:0;width:7px;height:7px;margin:0;border-radius:50%;background:#3464bd}
.notification-surface .notification-options{position:relative;flex-shrink:0;z-index:2;margin:0}
.notification-surface .notification-options[open]{z-index:5}
.notification-surface .notification-options summary{display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;list-style:none;color:#9aa3af;cursor:pointer;background:transparent}
.notification-options summary::-webkit-details-marker{display:none}
.notification-surface .notification-options summary:hover{color:#315db3;background:#eaf0fa}
.notification-surface .notification-options summary .ui-icon{width:19px;height:19px}
.notification-surface .notification-menu{position:absolute;right:0;top:34px;bottom:auto;min-width:225px;padding:5px;border:1px solid #e7ebf2;border-radius:12px;background:#fff;box-shadow:0 10px 32px #17243d20;color:#30415c}
.notification-surface .notification-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:11px 10px;border:0;border-radius:7px;background:#fff;text-align:left;font-size:12px;min-height:42px}
.notification-menu .ui-icon,.notification-menu svg{width:17px;height:17px;flex-shrink:0}
.notification-surface .notification-menu button:hover{background:#f4f7fb}
.notification-surface .notification-menu .delete-option{color:#b2535a}
.notification-action-error{grid-column:2/-1;margin:6px 0;color:#b2535a;font-size:12px;line-height:1.5}
.notification-surface>.notification-action-error{padding:0 22px}
.notification-surface .notification-undo{display:flex;justify-content:space-between;gap:8px;margin:12px 22px;padding:11px 13px;border-radius:9px;background:#f1f5fc;font-size:12px;color:#677790}
.notification-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:265px;padding:32px 24px;text-align:center}
.notification-empty>span{display:grid;place-items:center;width:58px;height:58px;margin-bottom:17px;border-radius:18px;background:#f0f4fc;color:#8ca4ce}
.notification-empty .ui-icon{width:26px;height:26px}
.notification-empty h2{margin:0;font-size:16px;color:#3a4c66;letter-spacing:-.3px}
.notification-empty p{max-width:290px;margin:8px 0 0;color:#929ba8;font-size:12px;line-height:1.8}
.notification-empty>button{margin-top:18px;padding:9px 14px;border:0;border-radius:8px;background:#edf2fc;color:#315db3;font-size:12px}
.notification-surface.is-preview .notifications-heading{padding:18px 18px 14px;padding-right:44px;align-items:start}
.notification-surface.is-preview .page-title{font-size:18px}
.notification-surface.is-preview .notification-read-all{min-height:28px;padding:0;font-size:11px}
.notification-surface.is-preview .notification-read-all span{display:none}
.notification-surface.is-preview .notification-filters{padding:0 18px 14px}
.notification-surface.is-preview .notification-date-group>h3{padding:14px 18px 7px}
.notification-surface.is-preview .notification-row{padding:12px 18px;grid-template-columns:40px minmax(0,1fr) 26px;gap:10px}
.notification-surface.is-preview .notification-identity,.notification-surface.is-preview .notification-identity .avatar{width:40px;height:40px}
.notification-surface.is-preview .notification-open{font-size:12px}
.notification-surface.is-preview .notification-menu{min-width:210px}
@media(max-width:1150px){.notification-page{border:0;border-radius:0}}
@media(max-width:760px){.notification-surface .notifications-heading{padding:20px 16px 15px}.notification-surface .page-title{font-size:22px}.notification-surface .notification-filters{padding:0 16px 16px}.notification-surface .notification-date-group>h2{padding:17px 16px 7px}.notification-surface .notification-row{grid-template-columns:46px minmax(0,1fr) 28px;gap:11px;padding:14px 16px}.notification-surface .notification-identity,.notification-surface .notification-identity .avatar{width:46px;height:46px}.notification-surface .notification-open{font-size:13px}.notification-row-meta{font-size:11px}.notification-surface .notification-options summary{width:28px}.notification-read-all{font-size:11px}.notification-surface .notification-undo{margin:12px 16px}.notification-surface>.notification-action-error{padding:0 16px}}

/* Account directory, aligned with the continuous notifications list. */
.network-page{background:#fff;border:1px solid #e5eaf2;border-radius:16px;min-width:0;overflow:hidden}
.network-heading{padding:23px 22px 18px}
.network-page .page-title{display:flex;align-items:center;gap:9px;margin:0;font-size:23px;line-height:1.3;letter-spacing:-.7px}
.network-heading h1>span{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:7px;background:#edf2fc;color:#315db3;font-size:11px;letter-spacing:0;font-weight:600}
.network-heading p{margin:6px 0 0;color:#929ba8;font-size:12px;line-height:1.7}
.network-page .network-search{display:flex;align-items:center;gap:10px;width:auto;max-width:none;min-width:0;min-height:44px;margin:0 22px 16px;padding:0 13px;border:1px solid #edf0f5;border-radius:10px;background:#f5f7fa}
.network-search>.ui-icon{width:18px;height:18px;flex-shrink:0;color:#9aa5b4}
.network-page .network-search input{flex:1;min-width:0;width:0;min-height:42px;margin:0;padding:10px 0;border:0;outline:0;border-radius:0;background:transparent;color:#30415c;font:inherit;font-size:13px;box-shadow:none}
.network-search input::placeholder{color:#9aa5b4}
.network-search input::-webkit-search-cancel-button{display:none}
.network-search:focus-within{border-color:#b7c9ea;box-shadow:0 0 0 3px #eaf0fc}
.network-search button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#e9edf3;color:#7d8999;font-size:22px;flex-shrink:0}
.network-filters{display:flex;gap:7px;margin:0;padding:0 22px 18px;border-bottom:1px solid #edf0f5}
.network-filters button{display:flex;align-items:center;gap:7px;min-height:36px;padding:8px 12px;border:0;border-radius:9px;background:#f4f6f9;color:#8490a0;font-size:12px;font-weight:500;white-space:nowrap}
.network-filters button[aria-pressed="true"]{background:#eaf0fc;color:#2d58a3;font-weight:650}
.network-filters button span{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:5px;background:#e6eaf0;color:inherit;font-size:10px}
.network-filters button[aria-pressed="true"] span{background:#dbe6fa}
.network-results-caption{padding:16px 22px 7px;color:#98a1ae;font-size:11px}
.network-list{padding:0 0 8px}
.network-page .network-list .account{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;margin:0;padding:17px 22px;border:0;border-radius:0;background:#fff}
.network-page .network-list .account:hover{background:#f9fafd}
.network-page .network-list .account+.account{border-top:1px solid #f2f4f7}
.network-list .author-avatar{display:block;grid-column:1;grid-row:1;width:48px;height:48px}
.network-list .author-avatar .avatar{width:48px;height:48px;font-size:12px;background:#eaf0fa}
.network-page .network-list .account>div{min-width:0;grid-column:2;grid-row:1;margin:0}
.network-page .network-list .account h3{display:block;max-width:none;margin:0;color:#30415c;font-size:14px;line-height:1.55;font-weight:650;overflow:visible;white-space:normal;overflow-wrap:anywhere}
.network-page .network-list .author-name{display:inline;width:auto;max-width:none;overflow:visible;text-overflow:clip;color:inherit;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.network-page .network-list .account p{margin:5px 0 0;color:#98a1ae;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.network-demo-label{display:inline-block;vertical-align:middle;margin-left:6px;padding:2px 5px;border:1px solid #e5eaf2;border-radius:4px;background:#f7f9fc;color:#98a1ae;font-size:9px;line-height:1.3;font-weight:500;white-space:nowrap}
.network-page .network-list .follow{grid-column:3;grid-row:1;display:flex;justify-content:center;align-items:center;min-width:83px;min-height:38px;margin:0;padding:9px 12px;border:0;border-radius:9px;background:#eaf0fc;color:#315db3;font-size:12px;font-weight:600;white-space:nowrap}
.network-page .network-list .follow[aria-pressed="true"]{background:#f3f5f8;color:#8894a4;font-weight:500}
.network-page .network-list .follow:hover{background:#dfe9fb}
.network-page .network-demo-note{margin:0;padding:16px 22px;border-top:1px solid #edf0f5;background:#fbfcfe;color:#98a1ae;font-size:10px;line-height:1.8}
.network-demo-note>span{font-weight:600;color:#7b899b}
.network-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:245px;padding:26px 24px 36px;text-align:center}
.network-empty>span{display:grid;place-items:center;width:58px;height:58px;margin-bottom:17px;border-radius:18px;background:#f0f4fc;color:#8ca4ce}
.network-empty .ui-icon{width:26px;height:26px}
.network-empty h2{margin:0;font-size:16px;color:#3a4c66;letter-spacing:-.3px}
.network-empty p{max-width:290px;margin:8px 0 0;color:#929ba8;font-size:12px;line-height:1.8}
.network-empty>button{margin-top:18px;padding:9px 14px;border:0;border-radius:8px;background:#edf2fc;color:#315db3;font-size:12px}
@media(max-width:1150px){.network-page{border:0;border-radius:0}}
@media(max-width:760px){.network-heading{padding:20px 16px 18px}.network-page .page-title{font-size:22px}.network-page .network-search{margin:0 16px 15px}.network-page .network-search input{font-size:16px}.network-filters{padding:0 16px 16px;gap:6px}.network-filters button{gap:6px;padding:8px 11px}.network-results-caption{padding:16px 16px 6px}.network-page .network-list .account{grid-template-columns:46px minmax(0,1fr) auto;gap:11px;padding:17px 16px}.network-list .author-avatar,.network-list .author-avatar .avatar{width:46px;height:46px}.network-page .network-list .account h3{font-size:13px}.network-page .network-list .follow{min-width:79px;min-height:40px;padding:9px 11px}.network-page .network-demo-note{padding:16px}.network-empty{padding-right:20px;padding-left:20px}}

/* Compact project directory, with physical progress and money kept distinct. */
.projects-directory{background:#fff;border:1px solid #e5eaf2;border-radius:16px;min-width:0;overflow:hidden}
.projects-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:23px 22px 18px}
.projects-directory-heading>div{min-width:0}
.projects-directory .page-title{display:flex;align-items:center;gap:9px;margin:0;font-size:23px;line-height:1.3;letter-spacing:-.7px}
.projects-directory .page-title>span{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:7px;background:#edf2fc;color:#315db3;font-size:11px;letter-spacing:0;font-weight:600}
.projects-directory-heading p{margin:6px 0 0;color:#8d98a7;font-size:12px;line-height:1.7}
.projects-directory-heading>.primary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;flex-shrink:0;padding:10px 13px;border-radius:9px;font-size:12px;white-space:nowrap;box-shadow:none}
.projects-directory-heading>.primary>span{font-size:19px;line-height:1;font-weight:400}
.projects-directory .projects-directory-search{display:flex;align-items:center;gap:10px;width:auto;max-width:none;min-width:0;min-height:44px;margin:0 22px 16px;padding:0 13px;border:1px solid #edf0f5;border-radius:10px;background:#f5f7fa}
.projects-directory-search>.ui-icon{width:18px;height:18px;flex-shrink:0;color:#9aa5b4}
.projects-directory .projects-directory-search input{flex:1;min-width:0;width:0;min-height:42px;margin:0;padding:10px 0;border:0;outline:0;border-radius:0;background:transparent;color:#30415c;font:inherit;font-size:13px;box-shadow:none}
.projects-directory-search input::placeholder{color:#9aa5b4}
.projects-directory-search input::-webkit-search-cancel-button{display:none}
.projects-directory-search:focus-within{border-color:#b7c9ea;box-shadow:0 0 0 3px #eaf0fc}
.projects-directory-search button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#e9edf3;color:#7d8999;font-size:22px;flex-shrink:0}
.projects-directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px 17px;border-bottom:1px solid #edf0f5}
.projects-directory-toolbar>label{display:flex;align-items:center;gap:8px;font-size:11px;color:#8c98a7;min-width:0}
.projects-directory .projects-directory-toolbar select{max-width:220px;min-width:0;min-height:36px;margin:0;padding:7px 28px 7px 11px;border:1px solid #e8edf5;border-radius:8px;background:#f7f9fc;color:#61718a;font:inherit;font-size:12px;text-overflow:ellipsis}
.projects-directory-toolbar>span{font-size:11px;color:#98a1ae;flex-shrink:0}
.project-directory-item{margin:0;padding:0}
.project-directory-item+.project-directory-item{border-top:1px solid #edf0f5}
.project-directory-link{display:block;padding:22px;color:#30415c;text-decoration:none}
.project-directory-link:hover{background:#fafbfd}
.project-directory-identity{display:flex;align-items:center;gap:12px;min-width:0}
.project-directory-symbol{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:13px;background:#eaf0fc;color:#6383be}
.project-directory-symbol .ui-icon{width:24px;height:24px}
.project-directory-identity>div{flex:1;min-width:0}
.projects-directory .project-directory-identity h2{margin:0;font-size:15px;line-height:1.55;font-weight:650;letter-spacing:-.2px;overflow-wrap:anywhere;color:#30415c}
.project-directory-identity p{margin:4px 0 0;color:#8d98a7;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.project-directory-chevron{color:#a4afbe;font-size:25px;flex-shrink:0}
.project-directory-location{display:flex;align-items:center;gap:6px;margin:15px 0 17px;min-width:0;color:#8794a6;font-size:11px;line-height:1.5}
.project-directory-location>.ui-icon{width:14px;height:14px;flex-shrink:0}
.project-directory-location>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.project-directory-location .project-directory-demo{flex-shrink:0;padding:2px 6px;border:1px solid #e5eaf2;border-radius:4px;background:#f7f9fc;color:#98a1ae;font-size:9px;line-height:1.4}
.project-directory-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}
.project-directory-status{display:flex;align-items:center;gap:6px;color:#73849e;min-width:0;overflow-wrap:anywhere}
.project-directory-status i{width:5px;height:5px;border-radius:50%;background:#7d9ac8;flex-shrink:0}
.project-directory-status.is-done{color:#548477}.project-directory-status.is-done i{background:#6c9e8c}.project-directory-status.is-paused{color:#a48650}.project-directory-status.is-paused i{background:#c2a46f}
.project-directory-progress-heading strong{font-size:12px;font-weight:600;color:#486da9;white-space:nowrap}
.project-directory-progress{height:5px;margin-top:9px;border-radius:4px;background:#edf1f7;overflow:hidden}
.project-directory-progress>span{display:block;height:100%;border-radius:inherit;background:#6486c2}
.project-directory-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:19px 0 16px;padding:0}
.project-directory-money>div{min-width:0}
.project-directory-money>div+div{padding-left:18px;border-left:1px solid #edf0f5}
.project-directory-money dt{margin:0;color:#98a1ae;font-size:10px;line-height:1.5}
.project-directory-money dd{margin:5px 0 0;color:#455b7b;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.5}
.project-directory-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;border-top:1px solid #f0f3f7;font-size:10px;color:#a0a9b5}
.project-directory-bottom>span:last-child{color:#5578b4;font-size:11px;white-space:nowrap}
.project-directory-bottom b{margin-left:5px;font-weight:400}
.projects-directory-note{margin:0;padding:16px 22px;border-top:1px solid #edf0f5;background:#fbfcfe;color:#98a1ae;font-size:10px;line-height:1.8}
.projects-directory-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:245px;padding:30px 24px;text-align:center}
.projects-directory-empty>span{display:grid;place-items:center;width:58px;height:58px;margin-bottom:17px;border-radius:18px;background:#f0f4fc;color:#8ca4ce}
.projects-directory-empty .ui-icon{width:26px;height:26px}
.projects-directory-empty h2{margin:0;font-size:16px;color:#3a4c66;letter-spacing:-.3px}
.projects-directory-empty p{max-width:290px;margin:8px 0 0;color:#929ba8;font-size:12px;line-height:1.8}
.projects-directory-empty>button{margin-top:18px;padding:9px 14px;border:0;border-radius:8px;background:#edf2fc;color:#315db3;font-size:12px}
@media(max-width:1150px){.projects-directory{border:0;border-radius:0}}
@media(max-width:760px){.projects-directory-heading{padding:20px 16px 18px;gap:10px}.projects-directory .page-title{font-size:22px}.projects-directory-heading p{font-size:11px;max-width:170px}.projects-directory-heading>.primary{padding:9px 11px;font-size:11px;min-height:38px}.projects-directory .projects-directory-search{margin:0 16px 15px}.projects-directory .projects-directory-search input{font-size:16px}.projects-directory-toolbar{padding:0 16px 16px}.projects-directory .projects-directory-toolbar select{max-width:180px;font-size:13px}.project-directory-link{padding:20px 16px}.project-directory-item+.project-directory-item{border-top:6px solid #f2f4f7}.projects-directory .project-directory-identity h2{font-size:14px}.project-directory-money dd{font-size:12px}.project-directory-money>div+div{padding-left:14px}.projects-directory-note{padding:16px}.project-directory-location{margin-top:13px}.project-directory-money{margin-top:17px}}
@media(max-width:360px){.projects-directory-heading>.primary{gap:4px;padding:9px;font-size:10px}.projects-directory-heading p{max-width:150px}.projects-directory-toolbar>label>span{display:none}.projects-directory .projects-directory-toolbar select{max-width:170px}.project-directory-symbol{width:40px;height:40px;border-radius:11px}.project-directory-identity{gap:10px}.project-directory-money dd{font-size:11px}}

/* Keep the original image-led project cards alongside directory filters. */
.projects-directory-list .project-directory-card{margin:0 16px 16px;padding:0;overflow:hidden;border:1px solid #e5eaf2;border-radius:12px;background:#fff}
.project-directory-card .project-preview{margin:0;border:0;border-radius:0}
.project-directory-card .project-art,.project-directory-card .real-project-cover{height:180px}
.project-directory-card .project-art svg{display:block;width:100%;height:100%}
@media(max-width:760px){.projects-directory-list .project-directory-card{margin:0 0 10px;border-width:1px 0;border-radius:0}.project-directory-card .project-art,.project-directory-card .real-project-cover{height:150px}}

/* Explicit handoff to Dony uses its own brand, independent of Vukao actions. */
.social-project-buttons a.primary.dony-launch{background:#6554c0;border-color:#6554c0;color:#fff;box-shadow:none}
.social-project-buttons a.primary.dony-launch:hover{background:#5848ab;border-color:#5848ab;color:#fff}
.social-project-buttons a.primary.dony-launch:focus-visible{outline:3px solid #6554c0;outline-offset:3px}
