/* /account/, /chat/, /admin/ (assets/app/accounts.js) */
.acc-intro { padding: 8px 0 4px; }
.acc-card { background: var(--ab-surface,#fff); border-radius: 18px; padding: 18px; margin: 14px 0; box-shadow: var(--ab-shadow, 0 1px 3px rgba(0,0,0,.06)); }
.acc-card h2 { margin: 0 0 10px; font-size: 19px; }
.acc-auth { max-width: 440px; margin: 16px auto; text-align: center; }
.acc-auth form { text-align: start; }
.acc-logo { border-radius: 18px; }
.acc-muted { color: var(--ab-label-2,#5e5e66); }
.acc-small { font-size: 13px; }
.acc-center { text-align: center; }
.acc-err { color: var(--ab-red,#d70015); margin: 8px 0; }
.acc-err:empty { display: none; }
.acc-field { display: block; margin: 10px 0; }
.acc-field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ab-label-2,#5e5e66); }
.acc-field small { display: block; font-size: 12px; color: var(--ab-label-3,#888); margin-top: 3px; }
.acc-field input, .acc-field select, .acc-card textarea, .acc-card input[type=search], .acc-card input[type=url], .acc-composer textarea {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ab-sep,#ddd);
    background: var(--ab-surface-2,#f2f2f7); color: var(--ab-label,#000); font: inherit; font-size: 16px;
}
.acc-card textarea, .acc-card input[type=search], .acc-card input[type=url] { margin: 6px 0 10px; }
.acc-wide { width: 100%; margin-top: 6px; }
.acc-seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--ab-fill,rgba(118,118,128,.12)); margin: 12px 0; }
.acc-seg button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--ab-label,#000); cursor: pointer; }
.acc-seg button.on { background: var(--ab-surface,#fff); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.acc-code { background: var(--ab-accent-soft,#f7dce5); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.acc-code p { margin: 4px 0; font-size: 13px; }
.acc-av { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 700; position: relative; }
/* the owner's star: 30% of the photo and centered on its rim at every size; the star is drawn so it scales with the circle */
.acc-av.admin::after { content: ""; position: absolute; right: 0; bottom: 0; width: 30%; height: 30%; min-width: 13px; min-height: 13px; box-sizing: border-box; border-radius: 50%; border: 1px solid #fff; background: var(--ab-gold,#FFC627) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M12 2.6l2.9 6.2 6.7.8-5 4.6 1.4 6.7L12 17l-6 3.4 1.4-6.7-5-4.6 6.7-.8z'/%3E%3C/svg%3E") center / 66% no-repeat; }
.acc-profile { text-align: center; padding: 12px 0 0; }
.acc-profile h1 { margin: 8px 0 0; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-danger { color: var(--ab-red,#d70015) !important; }
.acc-rooms { padding: 6px; }
.acc-room, .acc-user-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; width: 100%; border: 0; background: transparent; font: inherit; text-align: start; cursor: pointer; }
.acc-room:hover, .acc-user-row:hover { background: var(--ab-fill,rgba(118,118,128,.12)); }
.acc-emoji { font-size: 26px; width: 34px; text-align: center; }
.acc-room-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-room-t small { color: var(--ab-label-2,#5e5e66); overflow: hidden; text-overflow: ellipsis; }
.acc-room em, .acc-banned { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--ab-accent-soft); color: var(--ab-accent); white-space: nowrap; }
.acc-banned { background: rgba(215,0,21,.12); color: var(--ab-red,#d70015); }
.acc-room-head { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.acc-room-title { font-size: 22px; margin: 0; }
.acc-back { color: var(--ab-accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.acc-feed { height: calc(100vh - 300px); height: calc(100dvh - 300px); min-height: 280px; overflow-y: auto; padding: 8px 4px; background: var(--ab-surface,#fff); border-radius: 18px; }
.acc-day { text-align: center; font-size: 12px; color: var(--ab-label-2); margin: 12px 0 6px; }
.acc-msg { display: flex; align-items: flex-end; gap: 6px; margin: 8px 6px 0; }
.acc-msg.grouped { margin-top: 2px; }
.acc-msg.mine { justify-content: flex-end; }
.acc-av-space { width: 30px; flex-shrink: 0; }
.acc-bubble { max-width: min(78%, 520px); padding: 8px 12px; border-radius: 18px; background: var(--ab-surface-2,#f2f2f7); }
.acc-msg.mine .acc-bubble { background: var(--ab-accent,#8C1D40); color: #fff; }
html.dark .acc-msg.mine .acc-bubble { color: #000; }
.acc-from { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.acc-badge { font-size: 9px; font-weight: 800; background: var(--ab-gold,#FFC627); color: #000; padding: 1px 6px; border-radius: 99px; }
.acc-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.acc-time { font-size: 10px; opacity: .65; text-align: end; }
.acc-quote { border-inline-start: 3px solid currentColor; padding-inline-start: 8px; margin: 4px 0; font-size: 12px; opacity: .8; display: flex; flex-direction: column; }
.acc-msg-actions { display: none; gap: 4px; margin-top: 4px; }
.acc-msg:hover .acc-msg-actions, .acc-msg:focus-within .acc-msg-actions { display: flex; }
@media (hover: none) { .acc-msg-actions { display: flex; } }
.acc-msg-actions button { border: 0; border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; background: rgba(0,0,0,.08); color: inherit; }
.acc-composer { margin-top: 10px; }
.acc-compose-row { display: flex; gap: 8px; align-items: flex-end; }
.acc-composer textarea { resize: none; max-height: 140px; }
.acc-reply { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 10px; margin-bottom: 6px; border-inline-start: 3px solid var(--ab-accent); background: var(--ab-surface,#fff); border-radius: 8px; }
.acc-x { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: inherit; }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.acc-stat { background: var(--ab-surface,#fff); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; box-shadow: var(--ab-shadow, 0 1px 3px rgba(0,0,0,.06)); }
.acc-stat b { font-size: 24px; color: var(--ab-accent); }
.acc-stat small { color: var(--ab-label-2); }
.acc-user-detail { padding: 0 12px 12px 60px; }
.acc-user-detail p { margin: 4px 0; }
.acc-log p { margin: 6px 0; }
@media (max-width: 520px) { .acc-user-detail { padding-left: 12px; } }
/* 1.6: photos, online, badges, pinned, rooms, dialogs */
.acc-av { overflow: visible; }
.acc-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--ab-surface-2,#f2f2f7); }
.acc-dot { position: absolute; right: 0; bottom: 0; width: 26%; height: 26%; min-width: 9px; min-height: 9px; border-radius: 50%; background: #9a9aa0; border: 2px solid var(--ab-surface,#fff); box-sizing: border-box; z-index: 1; }
.acc-dot.on { background: #30c25b; }
.acc-online-n .acc-dot { min-width: 0; min-height: 0; position: static; display: inline-block; width: 10px; height: 10px; border: 0; vertical-align: middle; }
.acc-av.admin::after { z-index: 1; }
.acc-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 6px 0; }
.acc-badges.compact { margin: 0; gap: 1px; font-size: 12px; }
.acc-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--ab-accent-soft,#f7dce5); color: var(--ab-accent,#8C1D40); white-space: nowrap; border: 0; font-family: inherit; }
.acc-badges.compact .acc-pill { background: none; padding: 0; }
.acc-badge-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.acc-badge-pick .acc-pill { cursor: pointer; background: var(--ab-fill,rgba(118,118,128,.12)); color: var(--ab-label,#000); }
.acc-badge-pick .acc-pill.on { background: var(--ab-accent,#8C1D40); color: #fff; }
.acc-bio { white-space: pre-wrap; margin: 8px auto; max-width: 420px; }
.acc-center-row { justify-content: center; margin-top: 8px; }
.acc-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.acc-check input { width: 20px; height: 20px; accent-color: var(--ab-accent,#8C1D40); }
.acc-check small { flex-basis: 100%; padding-inline-start: 28px; font-size: 12px; color: var(--ab-label-3,#888); }
.acc-field input[type=number] { max-width: 140px; }
.acc-online { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
.acc-online button { border: 0; background: transparent; padding: 2px; cursor: pointer; font: inherit; color: inherit; }
.acc-online-n { font-weight: 600; font-size: 14px; padding: 8px 12px !important; border-radius: 99px; background: var(--ab-surface,#fff) !important; white-space: nowrap; box-shadow: var(--ab-shadow, 0 1px 3px rgba(0,0,0,.06)); }
.acc-room-wrap { display: flex; align-items: center; }
.acc-room-wrap .acc-room { flex: 1; min-width: 0; }
.acc-room.archived { opacity: .6; }
.acc-room-add .acc-emoji { color: var(--ab-accent); }
.acc-room-edit { border: 0; background: transparent; font-size: 20px; padding: 8px 12px; cursor: pointer; color: var(--ab-label-2,#5e5e66); border-radius: 10px; }
.acc-room-edit:hover { background: var(--ab-fill,rgba(118,118,128,.12)); }
.acc-room-head .acc-room-title { flex: 1; min-width: 0; }
.acc-pinned { display: flex; align-items: center; gap: 6px; background: var(--ab-surface,#fff); border-radius: 12px; padding: 4px 4px 4px 12px; margin-bottom: 8px; border-inline-start: 3px solid var(--ab-gold,#FFC627); }
.acc-pinned-t { flex: 1; min-width: 0; border: 0; background: transparent; text-align: start; font: inherit; font-size: 13px; color: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 0; }
.acc-av-btn, button.acc-from { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; }
button.acc-from { font-size: 13px; font-weight: 600; text-align: start; }
.acc-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.acc-modal-box { width: 100%; max-width: 460px; margin: auto; max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; }
.acc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acc-modal-head h2 { margin: 0; }
.acc-modal .acc-profile h2 { margin: 8px 0 0; }
.acc-emojis { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 8px; }
.acc-emojis button { border: 0; background: var(--ab-fill,rgba(118,118,128,.12)); border-radius: 8px; font-size: 20px; width: 38px; height: 38px; cursor: pointer; }
.acc-sep { border-top: 1px solid var(--ab-sep,#ddd); padding-top: 12px; margin-top: 12px; }

/* feed and profiles */
.acc-post { padding: 14px; }
.acc-post.flat { box-shadow: none; background: var(--ab-surface-2,#f2f2f7); text-align: left; }
.acc-post-head { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.acc-post.flat .acc-post-head { cursor: default; }
.acc-post-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-post-who small { color: var(--ab-label-2,#5e5e66); }
.acc-post-text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.acc-post-img { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin-top: 10px; }
.acc-post-meta { margin: 10px 0 0; font-size: 13px; color: var(--ab-label-2,#5e5e66); white-space: pre; }
.acc-more { display: block; margin: 8px auto 24px; }
.acc-more[hidden] { display: none; }
.acc-center { text-align: center; }
.acc-left { text-align: left; margin: 18px 0 4px; }
.acc-cover { height: 150px; border-radius: 18px; overflow: hidden; margin-top: 4px; }
.acc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.acc-cover-av { display: flex; justify-content: center; margin-top: -52px; }
.acc-cover-av .acc-av { box-shadow: 0 0 0 4px var(--ab-surface,#fff); }
.acc-pstats { display: flex; justify-content: center; gap: 22px; margin: 10px 0; }
.acc-pstats span { display: flex; flex-direction: column; align-items: center; }
.acc-pstats small { color: var(--ab-label-2,#5e5e66); font-size: 12px; }
.acc-stories { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.acc-stories:empty { display: none; }
.acc-story-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; flex: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.acc-story-pick small { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.acc-story-ring { display: inline-flex; padding: 3px; border-radius: 50%; border: 2.5px solid var(--ab-accent,#8c1d40); }
.acc-story-pick.seen .acc-story-ring { border-color: var(--ab-sep,#ccc); }
/* stories: full screen over everything (the tab bar is 2147483000; sheets opened from a story stay above) */
html.acc-story-open, html.acc-story-open body { overflow: hidden !important; overscroll-behavior: none; }
html.acc-story-open .ab-tabbar, html.acc-story-open #ab-inbox-btn, html.acc-story-open .abx-panel, html.acc-story-open .abj, html.acc-story-open .abj-back { display: none !important; }
.acc-story { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 2147483000; background: #000; color: #fff; overflow: hidden; touch-action: none; transition: transform .2s ease, opacity .2s ease; -webkit-user-select: none; user-select: none; }
.acc-story-top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; }
.acc-story-top > * { pointer-events: auto; }
.acc-story-bars { display: flex; gap: 4px; padding: 10px 12px 0; pointer-events: none !important; }
.acc-story-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.acc-story-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.acc-story-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.acc-story-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.acc-story-head small { color: rgba(255,255,255,.8); }
.acc-story-x { border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 0 6px; }
.acc-story-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.acc-story-stage img { width: 100%; height: 100%; object-fit: contain; }
@media (max-aspect-ratio: 3/4) { .acc-story-stage img { object-fit: cover; } }
.acc-story-stage iframe { position: absolute; left: 0; width: 100%; top: calc(env(safe-area-inset-top, 0px) + 62px); height: calc(100% - env(safe-area-inset-top, 0px) - 62px - 120px - env(safe-area-inset-bottom, 0px)); border: 0; z-index: 2; }
.acc-story-pad { position: absolute; inset: 0; z-index: 1; }
.acc-story.video .acc-story-pad { display: none; }
.acc-story-text { position: absolute; left: 24px; right: 24px; text-align: center; font-size: 24px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); overflow-wrap: anywhere; pointer-events: none; z-index: 2; }
.acc-story-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55)); }
.acc-story-foot:empty { display: none; }
.acc-story-react { display: flex; gap: 6px; justify-content: center; }
.acc-story-react button { border: 0; background: rgba(255,255,255,.14); border-radius: 50%; width: 42px; height: 42px; font-size: 22px; line-height: 1; cursor: pointer; }
.acc-story-react button.pop { animation: acc-pop .35s ease; }
@keyframes acc-pop { 50% { transform: scale(1.45); } }
.acc-story-reply { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.acc-story-reply input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.25); color: #fff; border-radius: 22px; padding: 10px 16px; font-size: 16px; }
.acc-story-reply input::placeholder { color: rgba(255,255,255,.75); }
.acc-story.paused .acc-story-top, .acc-story.paused .acc-story-foot { opacity: .35; transition: opacity .2s; }
.acc-story-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 5; }
.acc-story-nav.prev { left: 10px; }
.acc-story-nav.next { right: 10px; }
@media (hover: none) { .acc-story:not(.video) .acc-story-nav { display: none; } }
@media (min-width: 700px) { .acc-story-stage img { max-width: 56.25vh; object-fit: contain; } }
.acc-seg[role=tablist] { border-radius: 99px; background: var(--ab-surface,#fff); }
.acc-seg[role=tablist] button { border-radius: 99px; }
.acc-seg[role=tablist] button.on { background: var(--ab-accent,#8c1d40); color: #fff; box-shadow: none; }
html.dark .acc-seg[role=tablist] button.on { color: #000; }

/* chat, the same look as the apps */
#acc-app[data-view=chat], #acc-app[data-view=feed], #acc-notify-bar { max-width: 720px; margin-inline: auto; }
.acc-pills { display: flex; padding: 3px; border-radius: 99px; background: var(--ab-surface,#fff); margin: 8px 0 14px; }
.acc-pills button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 99px; font: inherit; font-weight: 500; color: var(--ab-label-2,#5e5e66); cursor: pointer; }
.acc-pills button.on { background: var(--ab-accent,#8c1d40); color: #fff; font-weight: 700; }
html.dark .acc-pills button.on { color: #000; }
.acc-emoji { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; font-size: 22px; line-height: 1; border-radius: 50%; background: var(--ab-accent-soft,#f7dce5); }
.acc-room { min-height: 46px; }
.acc-room b { font-weight: 600; }
.acc-room.unread b { font-weight: 800; }
.acc-rooms { margin: 10px 0; }
.acc-rooms[hidden] { display: none; }
.acc-foot { margin: 6px 12px 12px; }
.acc-stack { display: flex; flex: none; }
.acc-stack .acc-av + .acc-av { margin-inline-start: -8px; }
.acc-chev { font-size: 22px; color: var(--ab-label-2,#5e5e66); }
.acc-dm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.acc-dm-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-dm-top small { flex: none; }
.acc-dm-top small.acc-dm-preview { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-room.unread .acc-dm-preview { color: var(--ab-label,#000); }
.acc-count { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ab-accent,#8c1d40); color: #fff; }
html.dark .acc-count { color: #000; }
.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 36px 16px; }
.acc-empty p { margin: 0; }
.acc-room-head { gap: 10px; padding: 8px 0; }
.acc-room-head .acc-emoji { width: 36px; height: 36px; font-size: 18px; }
.acc-room-head .acc-room-t small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-room-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-back { font-size: 30px; line-height: 1; padding: 0 6px; }
.acc-feed { background: transparent; padding: 4px 0; height: calc(100vh - 262px); height: calc(100dvh - 262px); border-radius: 0; }
.acc-day { margin: 10px 0; }
.acc-day span { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 600; background: var(--ab-surface,#fff); }
.acc-msg { margin: 6px 4px 0; }
.acc-msg.grouped { margin-top: 1px; }
.acc-bubble { position: relative; max-width: min(78%, 420px); padding: 8px 12px; border-radius: 20px; background: var(--ab-surface,#fff); }
.acc-msg.grouped:not(.mine) .acc-bubble { border-top-left-radius: 6px; }
.acc-msg.below:not(.mine) .acc-bubble { border-bottom-left-radius: 6px; }
.acc-msg.mine.grouped .acc-bubble { border-top-right-radius: 6px; }
.acc-msg.mine.below .acc-bubble { border-bottom-right-radius: 6px; }
.acc-msg.mine .acc-bubble { background: var(--ab-accent,#8c1d40); background: linear-gradient(135deg, var(--ab-accent,#8c1d40), color-mix(in srgb, var(--ab-accent,#8c1d40) 80%, #000)); }
.acc-msg-actions { display: none; flex-wrap: wrap; }
.acc-msg:hover .acc-msg-actions, .acc-msg:focus-within .acc-msg-actions, .acc-bubble.show .acc-msg-actions { display: flex; }
@media (hover: none) { .acc-msg-actions { display: none; } .acc-msg:hover .acc-msg-actions { display: none; } .acc-bubble.show .acc-msg-actions { display: flex; } }
.acc-compose-row { align-items: flex-end; }
.acc-composer { margin-top: 6px; padding-bottom: 6px; }
.acc-composer[hidden] { display: none; }
.acc-composer textarea { flex: 1; min-width: 0; width: auto; border-radius: 22px; border: 0; padding: 11px 16px; background: var(--ab-surface,#fff); }
.acc-send, .acc-attach { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.acc-send { background: var(--ab-accent,#8c1d40); color: #fff; }
html.dark .acc-send { color: #000; }
.acc-attach { background: var(--ab-accent-soft,#f7dce5); color: var(--ab-accent,#8c1d40); font-size: 24px; }
.acc-send:disabled, .acc-attach:disabled { opacity: .5; cursor: default; }
.acc-seen { text-align: end; font-size: 11px; color: var(--ab-label-2,#5e5e66); margin: 2px 6px 0; }
.acc-dm-photo-btn { display: block; border: 0; background: var(--ab-fill,rgba(118,118,128,.12)); padding: 0; border-radius: 12px; overflow: hidden; width: 220px; height: 220px; cursor: pointer; }
.acc-dm-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.acc-dm-photo:not([src]) { visibility: hidden; }
.acc-dm-file { display: flex; align-items: center; gap: 10px; width: 220px; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.acc-dm-file .acc-emoji { width: 36px; height: 36px; font-size: 20px; background: rgba(255,255,255,.2); }
.acc-dm-file b { overflow-wrap: anywhere; }
.acc-dm-file small { opacity: .75; }
a.acc-user-row { display: flex; }

/* inside a chat: full height, no tab bar over the message box, same as the apps */
body:has(#acc-app .acc-feed) .ab-tabbar { display: none; }
body:has(#acc-app .acc-feed) { padding-bottom: 0 !important; }
#acc-app .acc-feed { height: calc(100vh - 196px); height: calc(100dvh - 196px); }
.acc-from { color: var(--from,#8c1d40); }
html.dark .acc-from { color: #f3a9c1; color: color-mix(in srgb, var(--from,#8c1d40) 50%, #fff); }
.acc-msg.mine .acc-time { opacity: .85; }

/* feed: posting, likes, comments, friends */
.acc-post-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; }
.acc-post-open { flex: 1; min-width: 0; text-align: start; border: 0; border-radius: 22px; padding: 11px 16px; font: inherit; cursor: pointer; background: var(--ab-fill,rgba(118,118,128,.12)); color: var(--ab-label-2,#5e5e66); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-fr-open { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.acc-fr-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; background: var(--ab-accent,#8c1d40); color: #fff; }
html.dark .acc-fr-badge { color: #000; }
.acc-fr-badge[hidden] { display: none; }
.acc-post-acts { display: flex; align-items: center; gap: 4px; margin: 8px -6px -6px; }
.acc-post-act { border: 0; background: transparent; color: var(--ab-label-2,#5e5e66); font: inherit; font-size: 15px; font-weight: 600; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.acc-post-act:hover { background: var(--ab-fill,rgba(118,118,128,.12)); }
.acc-post-act.on { color: var(--ab-accent,#8c1d40); }
.acc-post-act.small { font-size: 12px; font-weight: 500; }
.acc-spacer { flex: 1; }
.acc-compose-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.acc-compose-form textarea { width: 100%; box-sizing: border-box; resize: vertical; border: 0; border-radius: 14px; padding: 12px 14px; font: inherit; background: var(--ab-fill,rgba(118,118,128,.12)); color: inherit; }
.acc-compose-form .acc-post-img { margin-top: 0; max-height: 280px; }
.acc-comments { max-height: min(55vh, 460px); overflow-y: auto; margin: 10px 0; display: flex; flex-direction: column; gap: 12px; }
.acc-comment { display: flex; gap: 10px; align-items: flex-start; }
.acc-comment-av { flex: none; border: 0; background: none; padding: 0; cursor: pointer; }
.acc-comment-t { flex: 1; min-width: 0; }
.acc-comment-top { display: flex; align-items: baseline; gap: 8px; }
.acc-comment-top small { color: var(--ab-label-2,#5e5e66); }
.acc-comment-t p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.acc-comment-acts { display: flex; gap: 10px; margin-top: 2px; }
.acc-comment-acts button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--ab-label-2,#5e5e66); cursor: pointer; }
.acc-comment-form textarea { background: var(--ab-fill,rgba(118,118,128,.12)); color: inherit; font: inherit; flex: 1; min-width: 0; resize: none; border: 0; border-radius: 22px; padding: 11px 16px; }
.acc-fr-row { flex-wrap: wrap; cursor: default; padding: 8px 4px; }
.acc-fr-who { flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.acc-fr-btns { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.acc-fr-btns .ab-btn { padding: 6px 12px; font-size: 13px; }
.acc-users h3 { margin: 14px 0 4px; font-size: 13px; color: var(--ab-label-2,#5e5e66); }

/* 1.14.0: loading effects */
.acc-dots { display: inline-flex; gap: 5px; align-items: center; justify-content: center; padding: 6px; }
.acc-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ab-accent,#8c1d40); animation: acc-dot 1.05s ease-in-out infinite; }
.acc-dots i:nth-child(2) { animation-delay: .16s; }
.acc-dots i:nth-child(3) { animation-delay: .32s; }
html.dark .acc-dots i { background: var(--ab-accent,#ff8fb0); }
@keyframes acc-dot { 0%, 100% { transform: scale(.45); opacity: .35; } 50% { transform: scale(1); opacity: 1; } }
.acc-skel { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.acc-skel i { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--ab-fill-2,rgba(120,120,128,.14)) 30%, rgba(160,160,170,.32) 50%, var(--ab-fill-2,rgba(120,120,128,.14)) 70%); background-size: 240% 100%; animation: acc-shine 1.25s linear infinite; }
@keyframes acc-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.acc-skel-top { display: flex; align-items: center; gap: 12px; }
.acc-skel-top.row { padding: 8px 12px; }
.acc-skel-top span { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.acc-skel .av { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.acc-skel .l1 { width: 130px; max-width: 70%; height: 11px; }
.acc-skel .l2 { width: 200px; max-width: 90%; height: 9px; }
.acc-skel .l3 { width: 80%; height: 11px; margin-top: 12px; }
.acc-skel .pic { width: 100%; height: 170px; border-radius: 14px; margin-top: 10px; }
.acc-skel-post { padding: 14px; }
.acc-skel-b { display: flex; }
.acc-skel-b.mine { justify-content: flex-end; }
.acc-skel-b i { height: 38px; border-radius: 18px; max-width: 75%; }

/* work in the background */
.acc-jobs { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 6px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.acc-job { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 22px; background: var(--ab-card,#fff); color: inherit; box-shadow: 0 6px 22px rgba(0,0,0,.22); animation: acc-drop .28s cubic-bezier(.2,.9,.3,1.2); transition: opacity .25s, transform .25s; }
.acc-job.out { opacity: 0; transform: translateY(-14px); }
.acc-job .acc-dots { padding: 0 4px; }
.acc-job-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.acc-job-t small { opacity: .75; }
.acc-job-ok { color: #2e9e4f; font-size: 18px; }
.acc-job-bad { color: #ef8a17; font-size: 18px; }
.acc-job-btn { border: 0; background: none; color: var(--ab-accent,#8c1d40); font-weight: 600; cursor: pointer; }
@keyframes acc-drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* messages that arrive or are on their way */
.acc-msg.enter, .acc-comment.enter { animation: acc-rise .24s cubic-bezier(.2,.9,.3,1.15); }
@keyframes acc-rise { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.acc-msg.pending .acc-bubble, .acc-comment.pending { opacity: .72; }
.acc-pop { animation: acc-pop .38s cubic-bezier(.2,1.5,.4,1); }
@keyframes acc-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* attachments, timer and voice */
.acc-disappear { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; font-size: 12px; color: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; overflow: hidden; background: var(--ab-fill-2,rgba(120,120,128,.14)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2M9 2h6'/%3E%3C/svg%3E") center no-repeat; }
.acc-disappear option { color: initial; }
.acc-disappear.on { outline: 2px solid var(--ab-accent,#8c1d40); }
.acc-compose-form .acc-disappear, .acc-field .acc-disappear { width: auto; height: auto; border-radius: 10px; padding: 10px; font-size: inherit; color: inherit; background: var(--ab-fill-2,rgba(120,120,128,.14)); appearance: auto; -webkit-appearance: auto; }
.acc-compose-row [hidden] { display: none !important; }
.acc-rec { display: flex; align-items: center; gap: 10px; }
.acc-rec[hidden] { display: none; }
.acc-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e53935; animation: acc-dot 1s ease-in-out infinite; }
.acc-rec-t { flex: 1; opacity: .7; font-size: 14px; }
.acc-voice { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 2px 0; }
.acc-voice-btn { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; font-size: 13px; background: rgba(120,120,128,.18); color: inherit; }
.acc-msg.mine .acc-voice-btn { background: rgba(255,255,255,.22); }
.acc-wave { display: flex; align-items: center; gap: 2px; height: 24px; flex: 1; min-width: 0; overflow: hidden; }
.acc-wave i { flex: none; width: 2.5px; border-radius: 2px; background: currentColor; opacity: .4; transition: opacity .12s; }
.acc-wave i.on { opacity: 1; }
.acc-voice small { font-size: 11px; opacity: .8; white-space: nowrap; }
.acc-video-tile { display: flex; align-items: center; justify-content: center; width: 220px; height: 280px; max-width: 100%; border: 0; border-radius: 12px; background: #15151a; color: #fff; cursor: pointer; font-size: 42px; margin-bottom: 4px; }
.acc-video-tile.wide { width: 100%; height: 300px; }
.acc-video-tile .acc-dots i { background: #fff; }
.acc-video { display: block; width: 100%; max-width: 320px; max-height: 420px; border-radius: 12px; background: #000; }
.acc-compose-form .acc-video { max-width: 100%; }
.acc-post-video { width: 100%; height: 340px; border: 0; border-radius: 12px; }
.acc-dm-photo-btn { min-width: 60px; min-height: 40px; }

/* story looks, the same set as the apps */
.acc-story-stage.fade > * { animation: acc-fade .22s ease; }
@keyframes acc-fade { from { opacity: 0; } to { opacity: 1; } }
.acc-story-text { color: var(--c,#fff); text-shadow: none; font-weight: 700; line-height: 1.25; font-size: 28px; }
.acc-story-text.f-classic { font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.acc-story-text.f-modern { font-family: 'Avenir Next', 'Arial Black', Roboto, sans-serif; font-weight: 900; }
.acc-story-text.f-serif { font-family: Georgia, 'Times New Roman', serif; }
.acc-story-text.f-mono { font-family: 'American Typewriter', 'Courier New', monospace; }
.acc-story-text.f-hand { font-family: Noteworthy, 'Comic Sans MS', cursive; }
.acc-story-text.f-script { font-family: 'Snell Roundhand', 'Brush Script MT', cursive; font-size: 34px; }
.acc-story-text.f-tall { font-family: 'Futura', 'Arial Narrow', Impact, sans-serif; font-stretch: condensed; }
.acc-story-text.f-round { font-family: ui-rounded, 'Arial Rounded MT Bold', Nunito, sans-serif; }
.acc-story-text.e-shadow { text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.acc-story-text.e-outline { -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; }
.acc-story-text.e-neon { color: #fff; text-shadow: 0 0 4px var(--c), 0 0 12px var(--c), 0 0 26px var(--c); }
.acc-story-text.e-box span { background: var(--c); color: #000; padding: 4px 12px; border-radius: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.acc-story-text.e-retro { text-shadow: 3px 3px 0 #ff375f, 6px 6px 0 #64d2ff; }
.acc-story-text.e-rainbow { color: transparent; background: linear-gradient(90deg,#ff375f,#ff9f0a,#ffd60a,#30d158,#0a84ff,#bf5af2,#ff375f); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: acc-rainbow 3s linear infinite; }
.acc-story-text.e-glow { text-shadow: 0 0 16px rgba(255,255,255,.9); }
@keyframes acc-rainbow { to { background-position: 300% 0; } }
.acc-story-text.a-pop span { display: inline-block; animation: acc-pop .5s cubic-bezier(.2,1.6,.4,1); }
.acc-story-text.a-pulse span { display: inline-block; animation: acc-pulse .7s ease-in-out infinite alternate; }
.acc-story-text.a-float span { display: inline-block; animation: acc-float 1.6s ease-in-out infinite alternate; }
.acc-story-text.a-fade span { display: inline-block; animation: acc-breathe 1.2s ease-in-out infinite alternate; }
@keyframes acc-pulse { from { transform: scale(.96); } to { transform: scale(1.07); } }
@keyframes acc-float { from { transform: translateY(10px); } to { transform: translateY(-10px); } }
@keyframes acc-breathe { from { opacity: .25; } to { opacity: 1; } }
.acc-story-views { border: 0; border-radius: 22px; padding: 8px 14px; background: rgba(0,0,0,.5); color: #fff; font-weight: 600; cursor: pointer; z-index: 3; }
.acc-modal { z-index: 1100; }
@media (prefers-reduced-motion: reduce) {
    .acc-dots i, .acc-skel i, .acc-job, .acc-msg.enter, .acc-comment.enter, .acc-pop, .acc-story-text span, .acc-story-text.e-rainbow { animation: none !important; }
    .acc-dots i { opacity: .8; transform: none; }
}
body:has(.acc-story) .ab-tabbar { display: none; }
.acc-swap { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: start; border: 0; font: inherit; color: inherit; cursor: pointer; margin: 10px 0; }
.acc-swap-match { color: #1f9d55; font-weight: 700; }
.acc-swap-head { margin: 18px 4px 6px; font-size: 15px; }
/* news and facts in the Feed */
.acc-extra { display: flex; gap: 12px; align-items: flex-start; }
.acc-extra-e { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: rgba(140,29,64,.12); background: color-mix(in srgb, var(--ab-accent,#8c1d40) 12%, transparent); }
.acc-extra small { display: block; text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ab-accent,#8c1d40); }
.acc-extra b { display: block; margin: 2px 0; }
.acc-extra p { margin: 0; color: var(--ab-text-2,#6b6b70); }
.acc-uname { -webkit-user-select: all; user-select: all; }
.acc-copy { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.acc-copy:hover { background: var(--ab-fill-2, rgba(0,0,0,.06)); }

/* chat: clearer in dark mode, and the play button is a plain symbol, not an emoji */
html.dark .acc-msg:not(.mine) .acc-bubble { background: #2c2c30; }
html.dark .acc-msg.mine .acc-bubble { color: #fff; }
html.dark .acc-msg.mine .acc-voice-btn { background: rgba(0,0,0,.25); }
.acc-voice-btn { font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 38px; padding: 0; }
.acc-voice small.bad { color: #ff6b6b; opacity: 1; }

/* message reactions and story lines (2026-11-16) */
.acc-msg { flex-wrap: wrap; }
.acc-reacts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0 36px; }
.acc-msg.mine .acc-reacts { justify-content: flex-end; margin: 2px 6px 0 0; }
.acc-react { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(127,127,127,.25); border-radius: 999px; padding: 1px 7px; font-size: 13px; background: var(--ab-surface,#fff); color: inherit; cursor: pointer; }
.acc-react.mine { border-color: var(--ab-accent,#8c1d40); background: var(--ab-accent-soft,#f7dce5); }
.acc-react small { font-size: 11px; font-weight: 600; }
.acc-react-pick { display: inline-flex; flex-wrap: wrap; gap: 0; }
.acc-msg-actions .acc-react-pick button { background: transparent; font-size: 17px; padding: 2px 3px; }
.acc-msg-actions .acc-react-pick button.on { background: rgba(127,127,127,.22); }
.acc-story-line { flex-basis: 100%; font-size: 12px; color: var(--ab-label-2,#5e5e66); margin: 4px 6px 2px; }
.acc-msg.mine .acc-story-line { text-align: end; }
.acc-bubble.acc-big-emoji .acc-text { font-size: 40px; line-height: 1.15; }
/* profile photo that opens "Edit profile" (1.22.0) */
.acc-face { position: relative; display: inline-block; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.acc-face-pen { position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--ab-accent,#8C1D40); color: #fff; box-shadow: 0 0 0 3px var(--ab-surface,#fff); }
.acc-face:focus-visible { outline: 3px solid var(--ab-accent,#8C1D40); outline-offset: 3px; }
.acc-small { font-size: 14px; }
.acc-edit { display: grid; gap: 10px; }
.acc-edit-h { margin: 10px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ab-muted,#777); }
.acc-edit-pic { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: var(--ab-fill,rgba(127,127,127,.1)); }
.acc-edit-pic.cover { flex-direction: column; align-items: stretch; }
.acc-edit-cover { height: 110px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: rgba(127,127,127,.15); color: var(--ab-muted,#777); font-size: 14px; }
.acc-edit-cover img { width: 100%; height: 100%; object-fit: cover; }
.acc-edit-pic-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ab-btn.sm { padding: 7px 14px; font-size: 14px; min-height: 0; }
