  /* Shared components. Blur is limited to bars and dialogs to stay smooth on low-end phones. */
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .2s, stroke .2s; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.card > * + * { margin-top: .65rem; }
.row { display: flex; align-items: center; gap: .6rem; }
.row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .5rem 1.15rem; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; border: 1px solid transparent; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.danger { background: #c81e45; color: #fff; }
.btn.small { min-height: 34px; padding: .3rem .85rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link { color: var(--link); padding: .2rem 0; font-weight: 600; font-size: .9rem; }
.link.on { color: var(--violet); }
.icon-btn { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border-radius: 50%; color: var(--text); }
.icon-btn:hover { background: var(--line); }
.chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; }
.field { display: block; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.field > small { display: block; margin-top: .25rem; }
input:not([type=checkbox]):not([type=range]), select, textarea { width: 100%; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: 1rem; }
textarea { resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--violet); flex: none; }
input[type=range] { width: 100%; accent-color: var(--violet); }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.toggle small { display: block; }
.toggle input[role=switch] { appearance: none; width: 46px; height: 26px; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.toggle input[role=switch]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0006; transition: transform .2s; }
.toggle input[role=switch]:checked { background: var(--violet); }
.toggle input[role=switch]:checked::after { transform: translateX(20px); }
.check { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.divider { text-align: center; color: var(--muted); font-size: .8rem; }

.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; background: var(--grad); color: #fff; font-weight: 700; font-size: 1.15rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: .9rem; }
.avatar.xl { width: 108px; height: 108px; font-size: 2.8rem; border: 4px solid var(--solid); }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; margin-left: .25rem; vertical-align: middle; }
.verified .icon { width: 12px; height: 12px; stroke-width: 3; }
.name-line strong { overflow-wrap: anywhere; }
.user-main { display: flex; align-items: center; gap: .7rem; color: var(--text); min-width: 0; flex: 1; }
.user-main:hover { text-decoration: none; }
.user-row { display: flex; align-items: center; gap: .6rem; }
.user-row > * + * { margin-top: 0; }

.feed-bar { display: flex; align-items: center; gap: .3rem; margin-bottom: .75rem; }
.tabs { flex: 1; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: .45rem .9rem; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); font-size: .9rem; }
.tabs a[aria-current] { background: var(--grad); color: #fff; border-color: transparent; }
.tabs a:hover { text-decoration: none; }
.prompt { display: flex; align-items: center; gap: .75rem; color: var(--muted); }
.prompt > * + * { margin-top: 0; }
.prompt:hover { text-decoration: none; }
.pill { position: sticky; top: 70px; z-index: 10; display: block; margin: 0 auto .75rem; padding: .4rem 1rem; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; font-size: .85rem; }
.pull { height: 0; overflow: hidden; text-align: center; color: var(--muted); font-size: .85rem; transition: height .2s; }
.pull.show { height: 2rem; }

.post { animation: rise .25s ease both; }
.post > header { display: flex; align-items: flex-start; gap: .5rem; }
.post > header > * + * { margin-top: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: .25rem; margin: .15rem 0 0 3.4rem; }
.post-meta a { color: var(--muted); }
.audience { display: inline-flex; align-items: center; gap: .2rem; }
.audience .icon { width: 13px; height: 13px; }
.pin-label { display: flex; gap: .35rem; align-items: center; font-size: .78rem; color: var(--violet); font-weight: 700; }
.pin-label .icon { width: 15px; height: 15px; }
.rich { overflow-wrap: anywhere; }
.rich p + p { margin-top: .7rem; }
.align-center { text-align: center; } .align-right { text-align: right; }
.clamp { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.post > footer { display: flex; align-items: center; gap: .25rem; border-top: 1px solid var(--line); padding-top: .4rem; }
.act { display: inline-flex; align-items: center; gap: .35rem; min-width: 44px; min-height: 40px; justify-content: center; border-radius: 999px; color: var(--muted); font-size: .88rem; }
.act:hover { background: var(--line); text-decoration: none; }
.act.on { color: var(--violet); }
.act.on .icon { fill: currentColor; transform: scale(1.08); }
.emoji { font-size: 1.15rem; }
.react-summary { display: flex; flex-wrap: wrap; gap: .3rem; }
.react-summary:empty { display: none; }
.picker { display: flex; justify-content: space-around; background: var(--solid); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; animation: rise .15s; }
.picker button { font-size: 1.5rem; min-width: 44px; min-height: 40px; transition: transform .15s; }
.picker button:hover { transform: scale(1.25); }
.list-foot { display: flex; justify-content: center; padding: .75rem 0; min-height: 3rem; }
.list-foot > .empty { width: 100%; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--violet); animation: spin .8s linear infinite; }

.composer .toolbar { display: flex; flex-wrap: wrap; gap: .3rem; }
.tool { min-width: 40px; height: 38px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); }
.editor { min-height: 190px; }
.counter { font-size: .8rem; color: var(--muted); }
.locked summary { cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.preview { border-style: dashed; }

.comment-form textarea { min-height: 62px; }
.reply-context { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.comment { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); margin-bottom: .5rem; }
.comment.reply { margin-left: 2rem; border-left: 3px solid var(--violet); }
.comment-actions { gap: 1.2rem; }
.section-title { margin: 1.1rem 0 .6rem; }

.profile-head { text-align: center; overflow: hidden; }
.cover { height: 110px; margin: -1rem -1rem 0; background: radial-gradient(circle at 25% 120%, #8b5cf6, transparent 55%), linear-gradient(120deg, #0c1d55, #2f7bff55, #3b1c70); }
.avatar-wrap { position: relative; width: max-content; margin: -58px auto 0 !important; }
.avatar-wrap .camera { position: absolute; right: -4px; bottom: 0; background: var(--grad); color: #fff; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; font-size: .88rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats > * { display: flex; flex-direction: column; color: var(--muted); font-size: .82rem; }
.stats b { color: var(--text); font-size: 1.2rem; }
.profile-head .row { justify-content: center; }

.search-form { margin-bottom: .9rem; }
.note { display: flex; align-items: center; gap: .3rem; }
.note > * + * { margin-top: 0; }
.note.unread { border-color: var(--violet); box-shadow: inset 4px 0 var(--violet), var(--shadow); }
.note-main { display: flex; flex: 1; gap: .7rem; color: var(--text); align-items: center; min-width: 0; }
.note-main .grow { display: block; } .note-main small { display: block; }
.list a { display: flex; align-items: center; gap: .85rem; min-height: 50px; color: var(--text); border-bottom: 1px solid var(--line); }
.list a:last-child { border-bottom: 0; }
.list > * + * { margin-top: 0; }
.session { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.segmented button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.segmented button[aria-checked=true] { background: var(--grad); color: #fff; }
.brand-card, .rivota { text-align: center; }
.brand-card img { margin: 0 auto; }
.rivota .row { justify-content: center; }
.doc h3 { margin-top: 1.1rem; }
.notice { padding: .7rem .9rem; border-radius: 12px; border: 1px dashed var(--violet); font-size: .9rem; margin-bottom: .75rem; }
.announcement { border-color: var(--blue); }

dialog.modal { margin: auto; width: min(480px, calc(100vw - 1.5rem)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--solid); color: var(--text); box-shadow: var(--shadow); }
dialog.modal[open] { display: flex; flex-direction: column; animation: rise .2s; }
dialog.modal::backdrop { background: rgba(3, 5, 15, .65); backdrop-filter: blur(3px); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: .6rem .6rem .6rem 1.1rem; border-bottom: 1px solid var(--line); }
.modal-body { padding: 1.1rem; overflow-y: auto; }
.modal-body > * + * { margin-top: .75rem; }
.menu button { display: block; width: 100%; text-align: left; min-height: 46px; padding: .5rem .6rem; border-radius: 10px; }
.menu button:hover { background: var(--line); }
.menu .danger { color: var(--danger); }
.crop { width: 100%; max-width: 320px; aspect-ratio: 1; margin-inline: auto; display: block; border-radius: 50%; touch-action: none; cursor: move; outline: 2px solid var(--violet); }
progress { width: 100%; accent-color: var(--violet); }

#toasts { position: fixed; z-index: 70; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, calc(100vw - 2rem)); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.toast { pointer-events: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-radius: 14px; background: var(--solid); border: 1px solid var(--line); border-left: 4px solid var(--blue); box-shadow: var(--shadow); animation: rise .2s; font-size: .92rem; }
.toast.ok { border-left-color: var(--ok); } .toast.error { border-left-color: var(--danger); }
.empty { text-align: center; padding: 2.2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty p { color: var(--muted); max-width: 34ch; }
.orb-mini { width: 54px; height: 54px; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #bfe0ff, #2f7bff 40%, #4c1d95 80%); box-shadow: 0 0 28px rgba(110, 100, 255, .55); }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, rgba(150, 170, 255, .32) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:first-child { width: 40%; height: 18px; } .skeleton i:last-child { width: 70%; }

/* ORBIX 2.0 polish: crisp controls and restrained RGB edge lighting. */
.btn, .icon-btn, .tool { transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease; }
.btn:active, .icon-btn:active, .tool:active { transform: scale(.97); }
.btn:not(.ghost):hover { box-shadow: 0 0 0 1px #60a5fa55, 0 7px 24px #7c3aed35; filter: saturate(1.12); }
.icon-btn:hover { border-color: #8b5cf6aa; box-shadow: 0 0 14px #6366f133; }
.bottombar a[aria-current] { text-shadow: 0 0 12px #8b5cf688; }
.bottombar .fab { animation: orbix-rgb-glow 5s linear infinite; }
@keyframes orbix-rgb-glow { 0%,100% { box-shadow: 0 8px 22px #6366f655, 0 0 0 1px #60a5fa55; } 50% { box-shadow: 0 8px 24px #ec489955, 0 0 0 1px #a78bfa88; } }
@media (prefers-reduced-motion: reduce) { .btn, .icon-btn, .tool, .bottombar .fab { animation: none !important; transition: none !important; } }

.theme-swatches { display:flex; flex-wrap:wrap; gap:.65rem; margin:.5rem 0 .25rem; }
.theme-swatch { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--swatch); border:2px solid transparent; box-shadow:0 0 0 3px transparent; transition:transform .18s,box-shadow .18s; }
.theme-swatch[aria-checked="true"] { box-shadow:0 0 0 3px var(--solid),0 0 0 5px var(--swatch); transform:scale(1.06); }
.theme-swatch .icon { width:18px; height:18px; }

.coming-soon-card { text-align:center; display:grid; justify-items:center; gap:.8rem; padding:2rem 1.1rem; background:linear-gradient(145deg,var(--glass),rgba(132,42,210,.10)); }
.coming-soon-icon { width:64px; height:64px; display:grid; place-items:center; border-radius:22px; color:#fff; font-size:2rem; background:var(--grad); box-shadow:0 10px 32px color-mix(in srgb,var(--violet) 35%,transparent); }

input[type="color"] { width:56px; min-width:56px; height:38px; padding:3px; border:1px solid var(--line); border-radius:10px; background:var(--solid); }

/* ORBIX 3.0 */
:root[data-shape="rounded"] .btn { border-radius: 12px; }
:root[data-shape="square"] .btn { border-radius: 3px; }
:root[data-shape="tablet"] .btn { border-radius: 18px 18px 18px 18px / 24px 24px 24px 24px; }
:root.compact .card { padding: .65rem; margin-bottom: .45rem; }
:root.compact .card > * + * { margin-top: .4rem; }
:root.compact .btn { min-height: 36px; padding-block: .3rem; }
:root[data-anim="quick"] .view, :root[data-anim="quick"] .post { animation-duration: .1s; }
:root[data-anim="none"] *, :root[data-anim="none"] *::before, :root[data-anim="none"] *::after { animation: none !important; transition: none !important; }
.btn.google { margin-top: .5rem; }
.composer-card > .prompt { margin: 0; }
.composer-card .prompt > .grow { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.prompt-plus { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; }
.shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: .5rem; }
.shortcut { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; min-height: 48px; justify-content: center; font-size: .74rem; color: var(--text); border-radius: 10px; }
.shortcut:hover { background: var(--line); text-decoration: none; }
.locked-item > .icon, .locked-item > span { opacity: .55; }
.lock-dot { position: absolute; top: 2px; right: calc(50% - 20px); display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--solid); border: 1px solid var(--line); }
.lock-dot .icon { width: 9px; height: 9px; }
.locked-screen { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9rem; padding: 1.5rem 1rem; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--violet) 28%, transparent), transparent 62%), var(--glass); }
.locked-screen p { color: var(--muted); max-width: 32ch; }
.locked-orb { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 32px; background: var(--grad); color: #fff; }
.locked-orb > .icon { width: 48px; height: 48px; }
.locked-badge { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--solid); color: var(--text); border: 1px solid var(--line); }
.fake-input { display: flex; justify-content: space-between; align-items: center; width: min(320px, 100%); padding: .65rem 1rem; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); }
.support-card, .support-card > * + * { margin-top: 0; }
.support-card { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.support-icon, .set-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--violet) 18%, transparent); }
.set-icon { width: 34px; height: 34px; }
.note-tabs { margin-bottom: .75rem; }
.note-tabs button { white-space: nowrap; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; }
.note-tabs button[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.note-tabs .dot { margin-left: .35rem; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-style: normal; font-size: .68rem; }
.history-item { display: inline-flex; align-items: center; }
.history-item .icon-btn { min-width: 30px; height: 30px; }
.history-item .icon { width: 14px; height: 14px; }
.segmented { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
