/* Our Home Space v0.1.12 */
:root{--bg:#f5f6f8;--panel:#fff;--text:#1f2430;--muted:#7b8290;--line:#e4e6ea;--accent:#4a67e8;--accent-soft:#f0f1f3;--hover:#f2f3f5;--danger:#b94f55;--success:#4c8a60;--shadow:0 10px 26px rgba(36,42,58,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{color:inherit}img{max-width:100%}
.app-shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.sidebar{position:sticky;top:0;height:100vh;min-height:0;overflow:hidden;background:#fff;border-right:1px solid var(--line);padding:18px 14px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-weight:900;padding:4px 8px 20px;letter-spacing:-.02em;flex:0 0 auto}.logo{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;overflow:hidden;box-shadow:0 6px 16px rgba(74,103,232,.18);background:#0d3f9c}.logo img{width:100%;height:100%;display:block;object-fit:cover}.nav{display:grid;gap:5px;min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;align-content:start;padding-right:2px;scrollbar-width:thin}.nav a,.side-action{display:flex;align-items:center;gap:11px;min-height:44px;padding:10px 12px;border-radius:11px;color:var(--muted);font-size:14px;transition:.16s ease}.nav a:hover,.side-action:hover{background:var(--hover);color:var(--text);transform:translateX(2px)}.nav a.active,.side-action.active{background:#f0f1f3;color:#3f4650;font-weight:650}.nav a.active .nav-icon{color:var(--accent)}.nav-icon{width:21px;height:21px;display:grid;place-items:center;flex:0 0 auto}.nav-icon svg,.mobile-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.sidebar-bottom{margin-top:8px;display:grid;gap:7px;flex:0 0 auto}.side-action{width:100%;border:0;background:transparent;text-align:left;cursor:pointer}.notif-badge{margin-left:auto;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:10px}.profile-wrap{position:relative}.profile-btn{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px;display:flex;align-items:center;gap:9px;cursor:pointer;transition:.16s}.profile-btn:hover{box-shadow:var(--shadow);border-color:#d5d9df}.profile-text{text-align:left;min-width:0;flex:1}.profile-text b{font-size:13px;display:block}.profile-text small{color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dots{color:var(--muted)}.profile-menu{position:absolute;left:0;right:0;bottom:56px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 18px 44px rgba(36,42,58,.12);opacity:0;transform:translateY(5px);pointer-events:none;transition:.16s}.profile-menu.show{opacity:1;transform:none;pointer-events:auto}.profile-menu a{display:block;padding:9px 10px;border-radius:8px}.profile-menu a:hover{background:var(--hover)}
.main{width:100%;max-width:1480px;margin:0 auto;padding:28px clamp(18px,3.2vw,44px) 52px;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.page-head h1{margin:0;font-size:30px;letter-spacing:-.03em}.page-head p{margin:5px 0 0;color:var(--muted)}
.card,.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;transition:border-color .18s,box-shadow .18s,transform .18s}.card:hover{border-color:#d7dbe2}.card h2,.panel h2{margin:0 0 14px;font-size:16px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}.card-head h2{margin:0}.card-head>a:not(.btn){color:var(--accent);font-size:12px}.muted{color:var(--muted)}.empty-mini,.empty-state{color:var(--muted);padding:16px 0}.empty-state{text-align:center;padding:38px 15px}.flash{padding:11px 13px;border-radius:11px;margin:0 0 14px;background:#eef1f4;border:1px solid #e0e3e7}.flash.success{background:#eef7f0;color:#346745;border-color:#dcecdf}.flash.error{background:#fff0f0;color:#8d3e45;border-color:#f0d8da}
.btn{appearance:none;border:1px solid #d9dde3;background:#fff;color:var(--text);border-radius:10px;padding:9px 12px;cursor:pointer;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.15s}.btn:hover{background:#f5f6f8;transform:translateY(-1px)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:#405bd3}.btn.danger{background:#fff;border-color:#ebcfd2;color:var(--danger)}.btn.small{padding:7px 10px;font-size:12px}.link-danger{border:0;background:transparent;color:var(--danger);cursor:pointer;padding:5px}.link-danger:hover{text-decoration:underline}
.form-stack{display:grid;gap:14px}.form-stack label{display:grid;gap:6px;font-weight:650}.form-stack label small{font-weight:400}.form-stack input,.form-stack select,.form-stack textarea,.inline-form input{width:100%;border:1px solid #d8dce2;background:#fff;border-radius:10px;padding:10px 11px;outline:none;color:var(--text)}.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.inline-form input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}textarea{resize:vertical}.max-form{max-width:600px}.inline-form{display:flex;gap:8px;margin:10px 0 15px}.inline-form input{flex:1}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-grid.wide{grid-template-columns:1fr 1fr}.span-2{grid-column:span 2}.toggle-row{display:flex!important;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line)}.toggle-row input{width:auto}.invite-box{display:flex;align-items:center;justify-content:space-between;background:#f3f4f6;border-radius:10px;padding:11px;margin:12px 0}.invite-box strong{letter-spacing:.12em}hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.avatar{display:grid;place-items:center;overflow:hidden;width:42px;height:42px;border-radius:12px;background:#eceef1;color:#555d69;font-weight:800;flex:0 0 auto}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-xs{width:34px;height:34px;border-radius:10px}.avatar-sm{width:36px;height:36px;border-radius:10px}.avatar-lg{width:62px;height:62px;border-radius:16px;font-size:22px}.avatar-xl{width:96px;height:96px;border-radius:22px;font-size:34px}.online-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#56a56a;margin-right:4px;vertical-align:middle}
.board-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}.board-family,.board-tasks,.board-notes{grid-column:span 4}.board-chat{grid-column:span 8}.board-news{grid-column:span 4}.board-pets{grid-column:span 12}.people-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.person-tile{text-align:center;background:#f3f4f6;border-radius:12px;padding:9px 5px;transition:.15s}.person-tile:hover{background:#eceef1;transform:translateY(-1px)}.person-tile .avatar{margin:auto}.person-tile small{display:block;color:var(--muted);margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:10px 0;border-top:1px solid var(--line)}.task-row:first-of-type{border-top:0}.task-row b{font-size:13px}.task-row small{display:block;color:var(--muted);margin-top:2px}.task-row time{color:var(--muted);font-size:11px}.task-check{width:19px;height:19px;border-radius:6px;border:2px solid #bbc2cc;background:#fff;cursor:pointer;transition:.15s}.task-check:hover{border-color:var(--accent)}.task-check.done{background:#6ea17c;border-color:#6ea17c;box-shadow:inset 0 0 0 4px #fff}.note-row{display:block;padding:10px 0;border-top:1px solid var(--line)}.note-row:first-of-type{border-top:0}.note-row b{display:block;font-size:13px}.note-row small{color:var(--muted)}.chat-row{display:flex;align-items:center;gap:9px;padding:10px 0;border-top:1px solid var(--line)}.chat-row:first-of-type{border-top:0}.chat-row>div{min-width:0;flex:1}.chat-row p{margin:2px 0 0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-row small{color:var(--muted)}.unread{min-width:21px;height:21px;padding:0 6px;border-radius:99px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:11px}.news-placeholder{height:116px;border-radius:13px;background:#eef0f2;display:grid;place-items:center;font-size:32px;margin-bottom:10px}.board-news p{color:var(--muted);font-size:12px}.pet-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pet-mini{display:flex;align-items:center;gap:9px;background:#f5f6f7;padding:9px;border-radius:12px}.pet-mini small{display:block;color:var(--muted)}
.member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.member-card{display:flex;align-items:center;gap:12px;background:#f5f6f7;border:1px solid #eceef0;border-radius:14px;padding:12px;transition:.15s}.member-card:hover{background:#eef0f2;transform:translateY(-1px)}.member-card small{display:block;color:var(--muted);margin-top:3px}.profile-page{max-width:860px}.profile-hero{display:flex;align-items:center;gap:18px;margin-bottom:24px}.profile-hero h2{font-size:24px;margin:0}.profile-hero p{margin:5px 0 0}.pet-notes{background:#f5f6f7;border-radius:12px;padding:13px;margin-bottom:20px;line-height:1.55}.pet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pet-card{text-align:center;background:#f5f6f7;border-radius:15px;padding:18px 10px}.pet-card .avatar{margin:auto}.pet-card h3{margin:10px 0 3px}.pet-card small{color:var(--muted)}.danger-zone{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.list{display:grid}.list-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.list-row:first-child{border-top:0}.list-row>div{flex:1}.list-row small{display:block;color:var(--muted);margin-top:2px}.unread-row{background:#f8f9fc;margin:0 -8px;padding-left:8px;padding-right:8px;border-radius:9px}.chip-list{display:flex;gap:7px;flex-wrap:wrap}.chip{display:flex;align-items:center;gap:5px;background:#f0f1f3;border-radius:99px;padding:6px 8px 6px 10px}.chip form{display:inline}.chip button{border:0;background:transparent;cursor:pointer;color:var(--muted);font-size:17px;line-height:1}
.split-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.tabs a{padding:7px 9px;border-radius:9px;color:var(--muted)}.tabs a.active{background:#f0f1f3;color:var(--text);font-weight:650}.task-list{display:grid}.task-card{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:start;padding:13px 0;border-top:1px solid var(--line)}.task-card:first-child{border-top:0}.task-card.done .task-main>b{text-decoration:line-through;color:var(--muted)}.task-main p{margin:5px 0;color:#555e6b;line-height:1.45}.task-main small{color:var(--muted)}.checklist{display:grid;gap:5px;margin:9px 0}.checklist label{font-size:12px;color:#555e6b}.checklist input:checked+span{text-decoration:line-through;color:var(--muted)}
.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.note-card{background:#f5f6f7;border:1px solid #eceef0;border-radius:13px;padding:14px;min-height:130px}.note-card:hover{background:#eef0f2}.note-card h3{margin:0 0 8px;font-size:15px}.note-card p{color:#5f6672;line-height:1.45}.note-card small{color:var(--muted)}.note-editor{padding:0;overflow:hidden}.note-editor form{display:grid}.note-top{display:flex;gap:12px;align-items:center;padding:14px;border-bottom:1px solid var(--line)}.note-title{flex:1;border:0;outline:0;font-size:20px;font-weight:700}.pin-check{color:var(--muted);font-size:12px}.editor-toolbar{display:flex;gap:5px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--line);background:#fafafa}.editor-toolbar button{border:1px solid #dedfe3;background:#fff;border-radius:7px;padding:6px 8px;cursor:pointer}.editor-toolbar button:hover{background:#f0f1f3}.editor{min-height:420px;padding:22px;outline:none;line-height:1.65;font-size:15px}.editor h1,.editor h2,.editor h3{line-height:1.25}.editor blockquote{border-left:3px solid #cdd1d7;margin-left:0;padding-left:14px;color:#5d6571}.editor-status{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line);background:#fafafa;color:var(--muted);font-size:12px}.editor-status>div{display:flex;gap:7px}
.chat-shell{height:calc(100vh - 130px);min-height:520px;background:#fff;border:1px solid var(--line);border-radius:18px;display:grid;grid-template-rows:auto 1fr auto auto;overflow:hidden}.chat-contact{display:flex;align-items:center;gap:9px;padding:11px 14px;border-bottom:1px solid var(--line)}.chat-contact small{display:block;color:var(--muted)}.messages{overflow:auto;padding:18px;display:flex;flex-direction:column;gap:8px;background:#f7f7f7}.message{display:flex}.message.mine{justify-content:flex-end}.bubble{max-width:min(72%,620px);background:#fff;border:1px solid #e4e6ea;border-radius:14px 14px 14px 4px;padding:9px 10px;box-shadow:0 2px 5px rgba(30,36,48,.03)}.mine .bubble{background:#eef2ff;border-color:#dce2ff;border-radius:14px 14px 4px 14px}.bubble small{display:block;color:var(--muted);font-size:10px;text-align:right;margin-top:5px}.message-text{line-height:1.45}.chat-image,.chat-video{display:block;max-width:360px;max-height:340px;border-radius:10px;margin-top:7px;background:#000}.message-composer{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:end;padding:10px;border-top:1px solid var(--line)}.message-composer textarea{border:1px solid #d9dde2;border-radius:11px;padding:9px 10px;resize:none;outline:0;max-height:130px}.attach-btn,.send-btn{border:0;border-radius:10px;cursor:pointer;height:38px;display:grid;place-items:center}.attach-btn{width:38px;background:#f0f1f3;font-size:22px}.send-btn{background:var(--accent);color:#fff;padding:0 14px}.upload-info{min-height:0;padding:0 12px 8px;color:var(--muted);font-size:11px}.news-empty{text-align:center;padding:60px 20px}.big-icon{font-size:50px;margin-bottom:12px}.news-empty p{max-width:620px;margin:0 auto;color:var(--muted);line-height:1.6}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f1ede8}.auth-card,.onboarding{width:min(100%,430px);background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 18px 50px rgba(36,42,58,.08)}.onboarding{width:min(100%,850px)}.auth-brand{display:flex;align-items:center;gap:9px;font-weight:900;margin-bottom:24px}.auth-card h1,.onboarding h1{font-size:28px;margin:0 0 7px}.auth-card>p,.onboarding>p{color:var(--muted);line-height:1.5;margin:0 0 20px}.auth-foot{text-align:center;margin-top:18px;color:var(--muted)}.auth-foot a{color:var(--accent)}.onboarding-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.panel{box-shadow:none}
.mobile-nav{display:none}
@media(max-width:1050px){.board-grid{grid-template-columns:1fr 1fr}.board-family,.board-tasks,.board-notes,.board-news{grid-column:auto}.board-chat,.board-pets{grid-column:span 2}.member-grid,.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.split-layout{grid-template-columns:1fr 300px}}
@media(max-width:820px){.app-shell{grid-template-columns:76px 1fr}.sidebar{padding:18px 10px}.brand{justify-content:center;padding:4px 0 20px}.brand>span:last-child,.nav a>span:last-child,.side-action>span:nth-child(2),.profile-text,.dots{display:none}.nav a,.side-action{justify-content:center;padding:10px 0}.notif-badge{display:none}.profile-btn{justify-content:center;padding:7px}.profile-menu{left:0;width:180px;right:auto}.settings-grid,.settings-grid.wide{grid-template-columns:1fr}.span-2{grid-column:auto}.split-layout{grid-template-columns:1fr}.pet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body{background:#f5f6f8}.app-shell{grid-template-columns:1fr}.sidebar{display:none}.main{padding:20px 12px 82px}.page-head{margin-bottom:15px}.page-head h1{font-size:25px}.board-grid{grid-template-columns:1fr}.board-family,.board-tasks,.board-notes,.board-chat,.board-news,.board-pets{grid-column:auto}.people-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pet-mini-grid{grid-template-columns:1fr 1fr}.member-grid,.notes-grid{grid-template-columns:1fr}.pet-grid{grid-template-columns:1fr 1fr}.card{border-radius:16px;padding:15px}.chat-shell{height:calc(100vh - 112px);border-radius:14px}.bubble{max-width:88%}.chat-image,.chat-video{max-width:100%;max-height:300px}.message-composer{grid-template-columns:auto 1fr auto}.send-btn{font-size:0;width:42px;padding:0}.send-btn:after{content:'➤';font-size:17px}.editor{min-height:52vh;padding:16px}.editor-status{align-items:flex-start;flex-direction:column}.onboarding-grid{grid-template-columns:1fr}.auth-card,.onboarding{padding:22px}.inline-form{flex-direction:column}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:40;left:8px;right:8px;bottom:8px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:6px;box-shadow:0 12px 28px rgba(36,42,58,.12)}.mobile-nav a{display:grid;place-items:center;gap:2px;padding:5px 2px;border-radius:10px;color:var(--muted);font-size:10px}.mobile-nav a.active{background:#f0f1f3;color:var(--accent)}.mobile-icon{height:20px}.profile-hero{align-items:flex-start}.profile-hero .avatar-xl{width:76px;height:76px}.note-top{align-items:flex-start;flex-direction:column}.note-title{width:100%}}


/* v0.1.1 */
.brand-copy{display:grid;line-height:1.05}.brand-copy small{font-size:10px;font-weight:600;color:var(--muted);margin-top:4px;letter-spacing:.02em}.profile-status{margin:9px 0 0!important;color:#4e5662;line-height:1.45}.ajax-status{min-height:18px;color:var(--muted);font-size:12px}.ajax-status.success{color:var(--success)}.ajax-status.error{color:var(--danger)}
.board-order-list{display:grid;gap:7px}.board-order-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:#f5f6f7;border:1px solid #e9ebee;border-radius:11px;padding:9px 10px;cursor:grab}.board-order-item.dragging{opacity:.45}.drag-handle{color:#9ba1aa;font-weight:800;letter-spacing:-.18em}.mini-toggle{display:flex!important;align-items:center!important;gap:6px!important;font-size:11px!important;color:var(--muted);font-weight:500!important}.mini-toggle input{width:auto!important}
.task-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.task-scope-tabs button{border:0;background:transparent;padding:7px 9px;border-radius:9px;color:var(--muted);cursor:pointer}.task-scope-tabs button.active{background:#f0f1f3;color:var(--text);font-weight:650}.task-control-right{display:flex;align-items:center;gap:9px}.compact-select{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.compact-select select{border:1px solid #d8dce2;background:#fff;border-radius:9px;padding:7px 9px;color:var(--text)}
.task-list-v2{display:grid}.task-list-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:start;padding:13px 2px;border-top:1px solid var(--line);cursor:pointer;transition:.14s}.task-list-item:first-child{border-top:0}.task-list-item:hover{background:#fafafa;margin:0 -8px;padding-left:10px;padding-right:10px;border-radius:11px}.task-list-item.completed{opacity:.68}.task-list-item.completed .task-list-title{text-decoration:line-through}.task-list-main{min-width:0}.task-list-title{font-weight:750;font-size:14px}.task-list-excerpt{color:#5d6571;font-size:12px;line-height:1.4;margin:4px 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.task-list-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:11px}.mini-avatar{width:24px;height:24px;border-radius:8px;background:#eceef1;display:grid;place-items:center;overflow:hidden;font-size:10px;font-weight:800;flex:0 0 auto}.mini-avatar img{width:100%;height:100%;object-fit:cover}.task-list-creator{width:32px;height:32px;border-radius:9px}.task-list-side{display:grid;justify-items:end;gap:7px}.status-pill{display:inline-flex;align-items:center;border-radius:99px;padding:4px 8px;font-size:10px;font-weight:750;background:#eef1f4;color:#555e6a}.status-pill.new{background:#eef2ff;color:#4058ce}.status-pill.completed{background:#edf6ef;color:#437753}.task-due{font-size:11px;color:var(--muted)}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(24,28,38,.38);display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.modal-card{width:min(760px,100%);max-height:min(90vh,900px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 26px 80px rgba(24,28,38,.22);padding:22px;position:relative}.modal-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;background:#f1f2f4;border-radius:10px;font-size:22px;cursor:pointer;z-index:2}.task-modal-head{padding-right:42px;margin-bottom:14px}.task-modal-head h2{font-size:24px;margin:8px 0 0;line-height:1.25}.task-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.task-meta-item{display:flex;align-items:center;gap:8px;padding:9px;background:#f6f7f8;border-radius:11px}.task-meta-item small{display:block;color:var(--muted);font-size:10px}.task-meta-item b{font-size:12px}.task-description-view{margin:15px 0;line-height:1.6}.bb-view blockquote{border-left:3px solid #ccd1d8;padding-left:12px;margin-left:0;color:#59616d}.bb-view code{background:#f1f2f4;border-radius:5px;padding:2px 5px}.bb-view a{color:var(--accent);text-decoration:underline}.task-view-checklist{display:grid;gap:6px;margin:14px 0}.task-view-checklist label{display:flex;align-items:center;gap:8px;background:#f7f8f9;border-radius:9px;padding:8px 10px}.task-view-checklist input:checked+span{text-decoration:line-through;color:var(--muted)}.modal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}.two-col-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.input-with-action,.note-title-wrap{display:flex;align-items:center;gap:6px}.input-with-action input,.note-title-wrap input{flex:1}.field-icon-btn{border:1px solid #d8dce2;background:#fff;border-radius:9px;min-width:40px;height:40px;cursor:pointer}.checklist-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.checklist-editor-head small{display:block;color:var(--muted);font-weight:400;margin-top:2px}.checklist-editor{display:grid;gap:7px}.checklist-edit-row{display:grid;grid-template-columns:1fr auto;gap:7px}.checklist-edit-row input{border:1px solid #d8dce2;border-radius:9px;padding:9px 10px}.checklist-remove{border:1px solid #ead6d8;background:#fff;color:var(--danger);border-radius:9px;width:38px;cursor:pointer}
.bb-toolbar{display:flex;gap:5px;flex-wrap:wrap;padding:8px 10px;border:1px solid #dfe2e6;border-bottom:0;border-radius:10px 10px 0 0;background:#fafafa}.bb-toolbar button{position:relative;border:1px solid #dedfe3;background:#fff;border-radius:7px;padding:6px 8px;min-width:34px;cursor:pointer}.bb-toolbar button:hover{background:#eef0f2}.bb-toolbar button[data-tooltip]:hover:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);white-space:nowrap;background:#242936;color:#fff;border-radius:6px;padding:5px 7px;font-size:10px;font-weight:500;z-index:20;box-shadow:0 4px 12px rgba(0,0,0,.16)}.bb-editor,#taskDescription{width:100%;min-height:360px;border:1px solid #dfe2e6;border-radius:0 0 10px 10px;padding:15px;outline:0;resize:vertical;line-height:1.6}.bb-editor:focus,#taskDescription:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}
.mention-menu{position:absolute;z-index:130;min-width:260px;max-width:min(360px,90vw);background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 36px rgba(30,36,48,.14);padding:5px;display:none}.mention-menu.show{display:grid}.mention-option{display:flex;align-items:center;gap:9px;border:0;background:#fff;text-align:left;border-radius:8px;padding:7px 8px;cursor:pointer}.mention-option:hover,.mention-option.active{background:#f1f2f4}.mention-option .mini-avatar{width:30px;height:30px}.mention-option span:nth-child(2){flex:1}.paw-mark{font-size:11px;margin-left:4px}.mention-link{color:var(--accent);font-weight:650}.emoji-popover{position:fixed;z-index:150;width:min(330px,calc(100vw - 24px));background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 18px 50px rgba(30,36,48,.18);padding:9px;display:grid;grid-template-columns:repeat(8,1fr);gap:3px}.emoji-popover[hidden]{display:none}.emoji-popover button{border:0;background:#fff;border-radius:7px;padding:6px;font-size:20px;cursor:pointer}.emoji-popover button:hover{background:#f1f2f4}
.note-title-wrap{flex:1}.note-title-wrap .note-title{width:100%}.note-editor .mention-menu{position:absolute}.note-editor{position:relative}.task-modal-card{position:relative}
@media(max-width:700px){.task-controls{align-items:stretch;flex-direction:column}.task-control-right{justify-content:space-between}.two-col-form{grid-template-columns:1fr}.task-meta-grid{grid-template-columns:1fr}.task-list-item{grid-template-columns:auto minmax(0,1fr)}.task-list-side{grid-column:2;display:flex;justify-content:flex-start}.modal-card{padding:17px}.bb-editor,#taskDescription{min-height:300px}.checklist-editor-head{align-items:flex-start;flex-direction:column}.emoji-popover{grid-template-columns:repeat(7,1fr)}}

.order-actions{display:flex;align-items:center;gap:5px}.order-move{width:27px;height:27px;border:1px solid #dfe2e6;background:#fff;border-radius:7px;cursor:pointer;color:#69717d}.order-move:hover{background:#eef0f2}

.checklist-head-actions{display:flex;gap:6px;flex-wrap:wrap}.btn.small.danger{color:var(--danger);border-color:#ead6d8;background:#fff}

/* v0.1.2 */
/* Safer floating pickers */
.emoji-popover{grid-template-columns:repeat(8,minmax(0,1fr));max-height:min(320px,calc(100vh - 20px));overflow:auto;overscroll-behavior:contain}.emoji-popover button{min-width:0;width:100%;padding:6px 2px}.mention-menu{max-height:300px;overflow:auto;overscroll-behavior:contain}

/* Tasks */
.task-modal-backdrop{opacity:1;transition:opacity .18s ease}.task-modal-backdrop.closing{opacity:0}.task-modal-card{width:min(1080px,calc(100vw - 32px));max-height:94vh;overflow:auto;transform:translateY(0) scale(1);transition:transform .18s ease,opacity .18s ease}.task-modal-backdrop.closing .task-modal-card{transform:translateY(8px) scale(.995);opacity:.82}.task-edit-pane[hidden],#taskViewPane[hidden]{display:none!important}.task-description-view{font-size:14px;min-height:40px}.task-view-checklists{display:grid;gap:12px;margin:18px 0}.task-view-checklist-group{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafafa}.task-view-checklist-group h3{margin:0 0 9px;font-size:14px}.task-view-checklist-group label{display:flex;align-items:center;gap:8px;padding:7px 5px;border-top:1px solid #eceef1}.task-view-checklist-group label:first-of-type{border-top:0}.task-view-checklist-group input:checked+span{text-decoration:line-through;color:var(--muted)}.checklist-empty{font-size:12px}.checklists-editor-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:4px}.checklists-editor-head small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.checklists-editor{display:grid;gap:10px}.checklist-editor-box{border:1px solid var(--line);border-radius:12px;background:#fafafa;padding:11px;display:grid;gap:9px}.checklist-editor-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.checklist-title-input,.checklist-items-editor input{width:100%;border:1px solid #d8dce2;background:#fff;border-radius:9px;padding:9px 10px;outline:0}.checklist-title-input:focus,.checklist-items-editor input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.checklist-items-editor{display:grid;gap:7px}.assignee-picker-btn{width:100%;height:42px;border:1px solid #d8dce2;background:#fff;border-radius:10px;display:flex;align-items:center;gap:8px;padding:6px 9px;cursor:pointer;text-align:left}.assignee-picker-btn>span:nth-child(2){flex:1}.picker-caret{color:var(--muted)}.assignee-menu{position:absolute;z-index:140;min-width:270px;max-height:310px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:11px;padding:5px;box-shadow:0 14px 36px rgba(30,36,48,.14);margin-top:4px}.assignee-menu[hidden]{display:none}.two-col-form>label{position:relative}.assignee-option{width:100%;display:flex;align-items:center;gap:9px;border:0;background:#fff;border-radius:8px;padding:7px 8px;cursor:pointer;text-align:left}.assignee-option:hover{background:#f1f2f4}.assignee-option .mini-avatar img{width:100%;height:100%;object-fit:cover}

/* Messenger */
.messenger-page{width:min(100%,860px);margin:0 auto}.chat-shell-wide{height:calc(100vh - 205px);min-height:590px;width:100%;grid-template-rows:auto minmax(0,1fr) auto auto auto}.chat-contact{min-height:58px}.messages{position:relative;padding:16px clamp(12px,3vw,34px);gap:6px;background:#f6f6f6;scrollbar-gutter:stable}.chat-loading,.chat-empty{text-align:center;color:var(--muted);padding:28px 12px}.chat-date-separator{position:relative;z-index:1;align-self:center;background:#727781;color:#fff;border-radius:99px;padding:4px 10px;font-size:11px;line-height:1;box-shadow:0 0 0 2px #f6f6f6,0 2px 8px rgba(25,30,40,.12);margin:8px auto}.chat-date-separator.is-sticky{position:sticky;top:7px;z-index:7}.bubble{position:relative;max-width:min(70%,700px);padding:8px 9px 6px}.message-text{line-height:1.45;margin-top:5px;white-space:normal;overflow-wrap:anywhere}.bubble>.message-text:first-child{margin-top:0}.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:var(--muted);font-size:10px;margin-top:4px}.message-meta time{font-variant-numeric:tabular-nums}.edited-mark{font-size:9px}.deleted-message{font-style:italic;color:#9298a2;padding:2px 3px}.message-menu-btn{position:absolute;top:4px;right:5px;border:0;background:transparent;color:#878e99;border-radius:7px;width:27px;height:27px;cursor:pointer;opacity:0;transition:.14s}.bubble:hover .message-menu-btn{opacity:1}.message-menu-btn:hover{background:rgba(255,255,255,.72);color:#4e5661}.message-actions{position:absolute;right:6px;top:31px;z-index:8;background:#fff;border:1px solid var(--line);border-radius:9px;padding:4px;box-shadow:0 10px 28px rgba(30,36,48,.14);min-width:125px}.message-actions[hidden]{display:none}.message-actions button{display:block;width:100%;text-align:left;border:0;background:#fff;border-radius:6px;padding:7px 8px;cursor:pointer;font-size:12px}.message-actions button:hover{background:#f1f2f4}.chat-image,.chat-video{max-width:min(560px,100%);max-height:480px;border-radius:11px;margin:0 0 6px;background:#111}.chat-media-link{display:block}.chat-file{display:flex;align-items:center;gap:10px;min-width:min(360px,72vw);max-width:520px;background:rgba(255,255,255,.66);border:1px solid rgba(130,138,151,.18);border-radius:11px;padding:9px 10px;margin-bottom:6px}.chat-file-icon{font-size:28px;line-height:1}.chat-file-copy{display:grid;min-width:0;flex:1}.chat-file-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.chat-file-copy small{display:block!important;text-align:left!important;margin:2px 0 0!important}.chat-file-download{font-size:20px;color:var(--muted)}.message-composer{grid-template-columns:auto auto minmax(0,1fr) auto;padding:9px 10px}.composer-emoji{width:38px;height:38px;border:0;border-radius:10px;background:#f0f1f3;cursor:pointer}.message-composer textarea{min-height:38px;line-height:19px}.message-edit-bar{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border-top:1px solid var(--line);background:#f8f8f8;color:var(--muted);font-size:12px}.message-edit-bar[hidden]{display:none}.message-edit-bar button{border:0;background:transparent;font-size:18px;cursor:pointer;color:var(--muted)}.upload-info.error{color:var(--danger)}
.chat-contacts-wrap{margin-top:11px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px}.chat-contacts-title{font-size:12px;color:var(--muted);font-weight:650;margin:0 3px 7px}.chat-contacts-strip{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 5px;scrollbar-width:thin}.chat-contact-chip{flex:0 0 auto;min-width:155px;border:1px solid #e6e8ec;background:#f7f7f7;border-radius:12px;padding:7px 9px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;transition:.14s}.chat-contact-chip:hover{background:#f0f1f3}.chat-contact-chip.active{background:#eef2ff;border-color:#d9e0ff}.chat-chip-copy{display:grid;min-width:0;flex:1}.chat-contact-chip b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-contact-chip small{font-size:10px;color:var(--muted);margin-top:2px}
.attachment-modal-card{width:min(820px,calc(100vw - 28px));max-height:90vh;overflow:auto}.attachment-modal-card h2,.message-edit-modal-card h2{margin:0 42px 15px 0}.attachment-preview-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:44vh;overflow:auto;padding:2px}.attachment-preview-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;border:1px solid var(--line);background:#fafafa;border-radius:11px;padding:8px}.attachment-preview-item>img{width:72px;height:72px;object-fit:cover;border-radius:9px;background:#eee}.attachment-file-icon{width:72px;height:72px;border-radius:9px;background:#eef0f3;display:grid;place-items:center;font-size:32px}.attachment-preview-copy{display:grid;gap:4px;min-width:0}.attachment-preview-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.attachment-preview-copy small{color:var(--muted);font-size:10px}.upload-progress-bar{height:5px;border-radius:99px;background:#e5e7eb;overflow:hidden}.upload-progress-bar span{display:block;width:0;height:100%;background:var(--accent);transition:width .12s linear}.attachment-caption-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;margin-top:12px}.attachment-caption-row textarea{width:100%;border:1px solid #d8dce2;border-radius:10px;padding:10px 11px;resize:vertical;outline:0}.attachment-caption-row textarea:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.upload-progress-summary{min-height:18px;color:var(--muted);font-size:11px;margin-top:7px}.upload-progress-summary.error{color:var(--danger)}.message-edit-modal-card{width:min(650px,calc(100vw - 28px))}

@media(max-width:820px){.task-modal-card{width:min(900px,calc(100vw - 22px))}.messenger-page{width:100%}.chat-shell-wide{height:calc(100vh - 180px)}}
@media(max-width:650px){.task-modal-card{width:calc(100vw - 16px);max-height:92vh;padding:15px}.checklists-editor-head,.checklist-editor-title-row{grid-template-columns:1fr;display:grid}.assignee-menu{min-width:min(300px,calc(100vw - 40px))}.chat-shell-wide{height:calc(100vh - 182px);min-height:500px}.messages{padding:12px 8px}.bubble{max-width:88%}.chat-image,.chat-video{max-height:340px}.message-menu-btn{opacity:1}.chat-file{min-width:min(290px,76vw)}.chat-contacts-wrap{margin-top:8px;padding:8px}.chat-contact-chip{min-width:135px}.attachment-preview-list{grid-template-columns:1fr}.attachment-modal-card{padding:15px}.message-composer{grid-template-columns:auto auto minmax(0,1fr) auto}.emoji-popover{grid-template-columns:repeat(7,minmax(0,1fr));width:min(310px,calc(100vw - 16px))}}

.chat-chip-unread{min-width:20px;height:20px;border-radius:99px;padding:0 5px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}

/* v0.1.3 */
/* Preserve authored line breaks in compact previews. */
.task-list-excerpt,.note-card p{white-space:pre-line}

/* Rich mentions in rendered task/note text. */
.mention-link{display:inline-flex;align-items:center;gap:5px;vertical-align:-4px;color:#3f56c8!important;text-decoration:none!important;font-weight:700;border-radius:999px;padding:2px 6px 2px 3px;background:#f0f2fb;transition:.15s ease;line-height:1.25}
.mention-link:hover{background:#e4e8fa;color:#2f45b1!important;box-shadow:0 2px 8px rgba(63,86,200,.12);transform:translateY(-1px)}
.mention-avatar{width:20px;height:20px;border-radius:50%;overflow:hidden;display:inline-grid;place-items:center;background:#dfe3ef;color:#59616d;font-size:9px;font-weight:800;flex:0 0 auto}
.mention-avatar img{width:100%;height:100%;object-fit:cover}.mention-name{white-space:nowrap}.paw-mark{font-size:10px;margin-left:0;opacity:.72}

/* Task view is intentionally roomier and visually separates the description. */
.task-modal-card{width:min(1160px,calc(100vw - 24px));height:min(95vh,940px);max-height:95vh;overflow:auto}
#taskViewPane{min-height:100%;display:flex;flex-direction:column}.task-view-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-right:42px}.task-view-head-row>div:first-child{min-width:0;flex:1}
.task-description-section{border:1px solid #e1e4e9;background:#fafafa;border-radius:13px;padding:13px 15px;margin:16px 0 4px;min-height:190px}
.task-section-label{font-size:11px;color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.task-description-view{margin:0;min-height:145px;font-size:14px;line-height:1.65}
.task-more-wrap{position:relative;flex:0 0 auto}.task-more-btn{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#5f6672;font-size:22px;line-height:1;cursor:pointer}.task-more-btn:hover{background:#f2f3f5}
.task-more-menu{position:absolute;right:0;top:42px;z-index:170;min-width:155px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 12px 34px rgba(30,36,48,.15)}.task-more-menu[hidden]{display:none}.task-more-menu button{width:100%;border:0;background:#fff;border-radius:7px;text-align:left;padding:8px 9px;cursor:pointer;font-size:12px}.task-more-menu button:hover{background:#f1f2f4}.task-more-menu button.danger{color:var(--danger)}

/* Notes: reading and editing are now separate states. */
.note-view{padding:22px}.note-view[hidden],.note-editor[hidden]{display:none!important}.note-view-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}.note-view-kicker{font-size:11px;color:var(--muted);font-weight:700;margin-bottom:5px}.note-view h2{margin:0;font-size:24px;line-height:1.3}.note-view-content{min-height:420px;padding:22px 2px 8px;line-height:1.7;font-size:15px}.note-view-actions{flex:0 0 auto}

/* Comic-style member status with inline editing. */
.profile-hero-copy{min-width:0}.profile-status-bubble{position:relative;display:inline-flex;align-items:center;gap:7px;max-width:min(560px,100%);margin-top:12px;padding:9px 13px;background:#f4f5f7;border:1px solid #e1e3e7;border-radius:14px;color:#444c58;line-height:1.4;box-shadow:0 3px 10px rgba(30,36,48,.04)}
.profile-status-bubble:before{content:"";position:absolute;left:18px;bottom:-7px;width:12px;height:12px;background:#f4f5f7;border-right:1px solid #e1e3e7;border-bottom:1px solid #e1e3e7;transform:rotate(45deg)}.profile-status-bubble.empty{color:var(--muted)}.profile-status-bubble[hidden]{display:none!important}.status-edit-btn{position:relative;z-index:1;width:25px;height:25px;border:0;border-radius:8px;background:#fff;color:#6d7480;cursor:pointer;flex:0 0 auto}.status-edit-btn:hover{background:#e8eaee;color:#343b45}.profile-status-editor{display:flex;align-items:center;gap:6px;margin-top:11px;flex-wrap:wrap}.profile-status-editor[hidden]{display:none!important}.profile-status-editor input{min-width:min(420px,70vw);border:1px solid #d8dce2;border-radius:10px;padding:8px 10px;outline:0}.profile-status-editor input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.profile-status-editor .ajax-status{width:100%}
.field-help{display:block;margin-top:5px;color:var(--muted);font-size:11px}

/* Avatar cropper. */
.avatar-crop-card{width:min(560px,calc(100vw - 28px));overflow:visible}.avatar-crop-card h2{margin:0 42px 5px 0}.avatar-crop-stage{width:min(320px,78vw);aspect-ratio:1;margin:18px auto;position:relative;overflow:hidden;background:#e8eaee;border-radius:16px;touch-action:none;cursor:grab}.avatar-crop-stage:active{cursor:grabbing}.avatar-crop-stage canvas{display:block;width:100%;height:100%}.avatar-crop-guide{position:absolute;inset:7%;border:2px solid rgba(255,255,255,.95);border-radius:50%;box-shadow:0 0 0 999px rgba(20,24,32,.28);pointer-events:none}.avatar-zoom-label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;color:var(--muted);font-size:12px}.avatar-zoom-label input{width:100%}

/* Attachment preview appears immediately; upload begins only after Send. */
.attachment-file-icon.preview-loading{animation:fsPreviewPulse 1.1s ease-in-out infinite}@keyframes fsPreviewPulse{50%{opacity:.45}}

@media(max-width:700px){.task-modal-card{width:calc(100vw - 12px);height:96vh;max-height:96vh}.task-view-head-row{padding-right:38px}.task-description-section{min-height:150px}.note-view{padding:17px}.note-view-head{flex-direction:column}.note-view-content{min-height:52vh;padding-top:16px}.profile-status-editor input{min-width:100%;width:100%}}
.upload-info.success{color:var(--success)}

/* v0.1.4 */
.messenger-page{width:100%;max-width:1180px;margin:0 auto}
.messenger-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:12px;align-items:stretch}
.chat-contacts-panel{height:calc(100vh - 134px);min-height:590px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}
.chat-contacts-title{font-size:12px;color:var(--muted);font-weight:700;padding:2px 4px 9px;margin:0}
.chat-contacts-list{display:grid;gap:6px;align-content:start;overflow:auto;padding-right:2px}
.chat-contact-chip{width:100%;min-width:0;border:1px solid transparent;background:#f7f7f7;border-radius:12px;padding:8px 9px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;transition:.14s}
.chat-contact-chip:hover{background:#f0f1f3}.chat-contact-chip.active{background:#eef2ff;border-color:#d9e0ff}
.chat-chip-copy{display:grid;min-width:0;flex:1}.chat-contact-chip b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-contact-chip small{font-size:10px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-chip-unread{min-width:21px;height:21px;padding:0 6px;border-radius:99px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}
.chat-shell-wide{height:calc(100vh - 134px);min-height:590px;width:100%;grid-template-rows:auto minmax(0,1fr) auto auto auto}
.chat-shell-idle{grid-template-rows:minmax(0,1fr)}.chat-idle{grid-row:1/-1;display:grid;place-items:center;align-content:center;gap:6px;text-align:center;color:var(--muted);padding:30px}.chat-idle b{font-size:16px;color:var(--text)}.chat-idle span{max-width:330px;font-size:12px;line-height:1.5}.chat-idle-icon{font-size:36px;filter:grayscale(.2)}
.chat-media-link{display:block;border:0;background:transparent;padding:0;margin:0 0 6px;cursor:zoom-in;text-align:left}.chat-media-link .chat-image{margin:0;object-fit:contain}.chat-image[width][height],.chat-video[width][height]{height:auto}
.image-viewer-modal{z-index:220;background:rgba(18,21,28,.78);padding:24px}.image-viewer-card{position:relative;max-width:min(1200px,96vw);max-height:94vh;display:grid;place-items:center}.image-viewer-card img{display:block;max-width:100%;max-height:90vh;object-fit:contain;border-radius:10px;box-shadow:0 20px 70px rgba(0,0,0,.35)}.image-viewer-close{position:absolute;right:-8px;top:-8px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#333;font-size:24px;cursor:pointer;box-shadow:0 4px 20px rgba(0,0,0,.25)}
.task-modal-card{height:auto!important;max-height:88vh!important;overflow:auto}
.task-description-section{min-height:96px!important;background:#f7f8fa!important;border-color:#dfe3e8!important;padding:14px 16px!important;margin:15px 0 8px!important}.task-description-view{min-height:44px!important;margin:7px 0 0!important;line-height:1.65}.task-section-label{font-weight:750;font-size:12px;color:#4f5763;text-transform:uppercase;letter-spacing:.035em}
.task-view-bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.task-view-bottom-actions>#taskViewActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.task-view-bottom-actions .task-more-wrap{margin-left:auto}.task-view-bottom-actions .task-more-menu{top:auto;bottom:42px}
.note-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.note-card-head h3{margin:0!important;min-width:0}.note-card-head time{margin-left:auto;color:#969ca6;font-size:10px;white-space:nowrap;line-height:1.4}.note-card p{margin:0;color:#5f6672;line-height:1.45}
@media(max-width:900px){.messenger-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:650px){.messenger-layout{grid-template-columns:1fr}.chat-contacts-panel{height:auto;min-height:0;padding:8px}.chat-contacts-list{display:flex;overflow-x:auto;overflow-y:hidden;gap:7px}.chat-contact-chip{flex:0 0 155px}.chat-shell-wide{height:calc(100vh - 278px);min-height:460px}.image-viewer-modal{padding:10px}.image-viewer-close{right:2px;top:2px}.task-modal-card{height:auto!important;max-height:92vh!important}.task-description-section{min-height:80px!important}}

/* v0.1.5 */
/* Messenger stays inside the viewport and reveals a conversation only after it is positioned at the newest message. */
.messenger-layout{height:calc(100dvh - 155px);min-height:430px}
.chat-contacts-panel,.chat-shell-wide{height:100%;min-height:0}
.chat-shell-wide{position:relative}
.messages.chat-initializing{visibility:hidden}
.chat-initial-loading{position:absolute;z-index:7;left:0;right:0;top:59px;bottom:58px;background:#f6f6f6;display:grid;place-items:center;color:var(--muted);font-size:12px}
.chat-initial-loading[hidden]{display:none}

/* Family feed */
.board-feed{grid-column:span 12}
.board-feed-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:9px;padding:10px 0;border-top:1px solid var(--line)}
.board-feed-row:first-of-type{border-top:0}.board-feed-row>span:nth-child(2){min-width:0}.board-feed-row b{font-size:12px}.board-feed-row p{margin:3px 0 0;color:var(--muted);font-size:12px;white-space:pre-line;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.board-feed-row time{font-size:10px;color:var(--muted);white-space:nowrap}
.family-feed-page{width:min(100%,900px);margin:0 auto}.feed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.feed-toolbar>div{display:grid;gap:3px}.feed-toolbar>b{font-size:15px}.feed-toolbar small{color:var(--muted)}.feed-list{display:grid;gap:12px}.feed-loading{text-align:center;color:var(--muted);padding:34px}.feed-load-more{margin:14px auto 0;display:flex}.feed-load-more[hidden]{display:none}
.feed-post{padding:15px 17px}.feed-post-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.feed-author{display:flex;align-items:center;gap:9px;min-width:0}.feed-author>span:last-child{display:grid;min-width:0}.feed-author b{font-size:13px}.feed-author small{font-size:10px;color:var(--muted);margin-top:2px}.feed-post-content{font-size:14px;line-height:1.65;overflow-wrap:anywhere}.feed-post-content p:first-child{margin-top:0}.feed-post-content p:last-child{margin-bottom:0}.feed-post-actions{position:relative;flex:0 0 auto}.feed-post-more{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}.feed-post-more:hover{background:#f2f3f5}.feed-post-menu{position:absolute;z-index:20;right:0;top:37px;min-width:150px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 12px 30px rgba(30,36,48,.13)}.feed-post-menu[hidden]{display:none}.feed-post-menu button{display:block;width:100%;border:0;background:#fff;border-radius:7px;text-align:left;padding:8px 9px;cursor:pointer;font-size:12px}.feed-post-menu button:hover{background:#f1f2f4}.feed-post-menu button.danger{color:var(--danger)}
.feed-post-modal-card{width:min(820px,calc(100vw - 24px));max-height:90vh;overflow:auto}.feed-post-modal-card h2{margin:0 40px 14px 0}.feed-editor{min-height:280px;max-height:58vh}.feed-post-modal-card .bb-toolbar{margin-top:0}

@media(max-width:900px){.messenger-layout{height:calc(100dvh - 150px);min-height:400px}.board-feed{grid-column:span 12}}
@media(max-width:650px){.messenger-layout{height:auto;min-height:0}.chat-contacts-panel{height:auto;min-height:0}.chat-shell-wide{height:calc(100dvh - 276px);min-height:420px}.mobile-nav{grid-template-columns:repeat(6,1fr)}.mobile-nav a{font-size:9px}.board-feed{grid-column:auto}.feed-toolbar{align-items:flex-start}.feed-post-modal-card{width:calc(100vw - 14px);padding:15px}.feed-editor{min-height:42vh}}

/* v0.1.6 — neutral white/blue surface, messenger polish, reactions, roles and avatar editors */
:root{--bg:#f5f6f8}
[hidden]{display:none!important}
body{background:var(--bg)}

/* Messenger: slightly shorter than the viewport, stable switch without layout flashes. */
.messenger-layout{height:calc(100dvh - 185px);min-height:390px}
.chat-contacts-panel,.chat-shell-wide{height:100%;min-height:0}
.chat-idle[hidden],.chat-contact[hidden],.messages[hidden],.message-composer[hidden],.upload-info[hidden]{display:none!important}
.chat-shell.chat-switching .chat-contact,.chat-shell.chat-switching .messages,.chat-shell.chat-switching .message-composer,.chat-shell.chat-switching .upload-info{visibility:hidden}
.chat-shell.chat-switching .chat-initial-loading{display:grid!important}
.chat-initial-loading{top:0;bottom:0;background:#fff}
.message-actions button{display:flex;align-items:center;gap:8px}
.message-actions button.danger{color:var(--danger)}
.message-action-icon{width:18px;height:18px;display:grid;place-items:center;color:#747b86;font-size:15px}
.message-actions button.danger .message-action-icon{color:var(--danger)}

/* Avatar is edited from the avatar itself; crop guide is square because avatars are square. */
.avatar-edit-wrap{position:relative;display:inline-grid;flex:0 0 auto}
.avatar-edit-overlay{position:absolute;inset:0;border:0;border-radius:18px;background:rgba(25,31,43,.52);color:#fff;font-size:22px;cursor:pointer;display:grid;place-items:center;opacity:0;transition:opacity .16s ease}
.avatar-edit-wrap.is-editable:hover .avatar-edit-overlay,.avatar-edit-overlay:focus-visible{opacity:1}
.avatar-edit-wrap .avatar-xl{display:grid}
.avatar-crop-guide{inset:7%;border-radius:12px}
.profile-role-label{margin:5px 0 0;color:#616975;font-weight:650}
.profile-role-manager{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px}
.profile-role-manager select{min-width:190px;border:1px solid #d9dde4;border-radius:9px;background:#fff;padding:7px 9px}
.ajax-status.compact{min-height:0;margin:0;font-size:11px}

/* Custom family roles. */
.family-role-list{display:grid;gap:8px;margin-top:12px}
.family-role-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:11px;background:#f8f9fa}
.family-role-edit{margin:0}
.family-role-edit input[name="role_name"]{min-width:0;flex:1}

/* Family feed reactions. */
.feed-reactions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:13px;padding-top:10px;border-top:1px solid var(--line)}
.feed-like-btn,.feed-reaction-chip,.feed-reaction-add{border:1px solid #dfe3e9;background:#fff;border-radius:999px;min-height:30px;padding:5px 10px;display:inline-flex;align-items:center;gap:5px;cursor:pointer;color:#646c78;transition:.14s ease}
.feed-like-btn:hover,.feed-reaction-chip:hover,.feed-reaction-add:hover{background:#f3f5f8;border-color:#d5dae3;color:#3f4754}
.feed-like-btn.active,.feed-reaction-chip.active{background:#eef2ff;border-color:#d5ddff;color:var(--accent)}
.feed-like-btn>span:first-child{font-size:17px;line-height:1}.feed-like-btn>span:nth-child(2),.feed-like-btn b{font-size:13px;line-height:1;font-weight:650}.feed-reaction-chip b{font-size:12px;line-height:1;font-weight:700}
.feed-reaction-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.feed-reaction-add-wrap{position:relative}
.feed-reaction-picker{position:absolute;z-index:35;left:0;bottom:38px;display:grid;grid-template-columns:repeat(4,38px);gap:4px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:7px;box-shadow:0 14px 34px rgba(31,38,52,.14)}
.feed-reaction-picker[hidden]{display:none!important}
.feed-reaction-picker button{width:38px;height:36px;border:0;border-radius:8px;background:#fff;cursor:pointer;font-size:20px}
.feed-reaction-picker button:hover{background:#f1f3f6}
.notification-open-link{display:inline-block;margin-left:7px;color:var(--accent);font-size:11px;font-weight:650}

/* Pets on Board use the same compact visual language and footprint as family members. */
.board-pets{grid-column:span 4}
.pet-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.pet-mini{display:block;text-align:center;background:#f3f4f6;border-radius:12px;padding:9px 5px;transition:.15s}
.pet-mini:hover{background:#eceef1;transform:translateY(-1px)}
.pet-mini .avatar{margin:auto}.pet-mini>span:last-child{display:block;min-width:0}.pet-mini b{display:block;margin-top:6px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pet-mini small{display:block;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:1050px){.board-pets{grid-column:auto}.pet-mini-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.messenger-layout{height:calc(100dvh - 178px);min-height:380px}}
@media(max-width:650px){body{background:#f5f6f8}.messenger-layout{height:auto;min-height:0}.chat-shell-wide{height:calc(100dvh - 294px);min-height:400px}.avatar-edit-overlay{opacity:.88;background:rgba(25,31,43,.42);inset:auto 2px 2px auto;width:29px;height:29px;border-radius:9px;font-size:15px}.profile-role-manager{align-items:stretch}.profile-role-manager select{width:100%}.family-role-row{grid-template-columns:1fr}.pet-mini-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.feed-reaction-picker{left:auto;right:0}}
.pet-person-tile .pet-species{display:block;margin-top:2px;color:#9298a3;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pet-person-tile .paw-mark{font-size:9px;margin-left:2px}

/* v0.1.7 — inherited Board navigation, clean cropper, feed clipboard images */
.avatar-crop-guide{display:none!important}
.task-meta-item{border:1px solid #dfe3e8;background:#f7f8fa}
.note-view-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nav a{position:relative}.nav-unread-badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:750;line-height:1}.nav-unread-badge[hidden]{display:none!important}
.chat-contact-chip.pending{opacity:.68}
.feed-pasted-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin:10px 0 2px}.feed-paste-preview{position:relative;aspect-ratio:1;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#f3f4f6}.feed-paste-preview img{width:100%;height:100%;object-fit:cover;display:block}.feed-paste-preview button{position:absolute;right:5px;top:5px;width:25px;height:25px;border:0;border-radius:8px;background:rgba(20,24,32,.72);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.feed-post-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:7px;margin-top:12px}.feed-post-image{display:block;border:0;padding:0;background:#eef0f3;border-radius:12px;overflow:hidden;min-height:120px}.feed-post-image img{width:100%;height:100%;max-height:440px;object-fit:cover;display:block}
@media(max-width:650px){.feed-post-images{grid-template-columns:1fr 1fr}.feed-pasted-images{grid-template-columns:repeat(3,1fr)}}
/* v0.1.7: hidden Board sections must stay hidden even though nav links use flex. */
.nav a[data-board-nav][hidden]{display:none!important}

/* v0.1.8 messenger delivery states */
.message-delivery{display:inline-flex;align-items:center;justify-content:center;min-width:16px;font-size:11px;font-weight:700;letter-spacing:-2px;color:#8d94a0;line-height:1}
.message-delivery.delivered{color:#7b8491}.message-delivery.read{color:var(--accent)}.message-delivery.sending{letter-spacing:0;color:#9aa1ac}.message-delivery.failed{letter-spacing:0;color:var(--danger)}
.message-retry{border:0;background:transparent;color:var(--danger);font-size:15px;line-height:1;padding:0 2px;cursor:pointer;border-radius:5px}.message-retry:hover{background:rgba(190,67,67,.09)}
.pending-message .bubble{opacity:.94}.pending-message.send-failed .bubble{border-color:#efcaca;background:#fff7f7}

/* v0.1.10 — inline family roles, compact task editor and stable pickers */
.profile-role-line{display:flex;align-items:center;gap:6px;margin-top:4px}.profile-role-line .profile-role-label{margin:0}.profile-inline-edit{width:27px;height:27px;border:0;border-radius:8px;background:#f0f1f3;color:#6e7580;display:grid;place-items:center;cursor:pointer;font-size:14px;transition:.14s ease}.profile-inline-edit:hover{background:#e7e9ed;color:var(--accent)}.profile-role-editor{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.profile-role-editor select{min-width:190px;border:1px solid #d9dde4;border-radius:9px;background:#fff;padding:7px 9px}.profile-role-icon-btn{width:34px;height:34px;border:1px solid #d9dde4;border-radius:9px;background:#fff;color:#69717c;display:grid;place-items:center;cursor:pointer;font-size:17px;font-weight:700}.profile-role-icon-btn:hover{background:#f2f3f5}.profile-role-icon-btn.save{background:var(--accent);border-color:var(--accent);color:#fff}.profile-role-icon-btn.save:hover{filter:brightness(.96)}
.task-edit-pane #taskDescription{min-height:138px;height:138px;max-height:300px}.task-edit-pane .assignee-menu{top:100%;left:0;right:0;width:100%;margin-top:5px;transform:none}
.feed-paste-preview.existing{box-shadow:inset 0 0 0 1px rgba(74,103,232,.08)}
@media(max-width:650px){.profile-role-editor{align-items:stretch}.profile-role-editor select{width:100%;min-width:0}.task-edit-pane #taskDescription{min-height:120px;height:120px}.task-edit-pane .assignee-menu{min-width:100%;width:100%;left:0;right:0}}


/* Admin panel */
.admin-shell{max-width:1480px;margin:0 auto;padding:28px clamp(18px,3.2vw,44px) 52px}.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.admin-brand{display:flex;align-items:center;gap:12px;font-weight:850;font-size:20px}.admin-brand img{width:44px;height:44px;border-radius:12px;box-shadow:0 6px 16px rgba(74,103,232,.18)}.admin-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}.admin-grid .card.span-3{grid-column:span 3}.admin-grid .card.span-4{grid-column:span 4}.admin-grid .card.span-6{grid-column:span 6}.admin-grid .card.span-8{grid-column:span 8}.admin-grid .card.span-12{grid-column:span 12}.stats-big{font-size:28px;font-weight:800;letter-spacing:-.03em}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}.data-table{width:100%;border-collapse:collapse;background:#fff}.data-table th,.data-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.data-table th{font-size:12px;text-transform:uppercase;color:var(--muted);letter-spacing:.05em}.data-table tr:last-child td{border-bottom:0}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#f0f2f6;font-size:12px;font-weight:700}.pill.free{background:#eef2fb;color:#405bc6}.pill.plus{background:#edf7ef;color:#2d7a44}.pill.pro{background:#fff1df;color:#a56300}.meter{height:10px;border-radius:999px;background:#edf0f4;overflow:hidden}.meter>span{display:block;height:100%;background:var(--accent)}.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}.keyvals{display:grid;gap:9px}.keyvals div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.keyvals div:last-child{border-bottom:0}.search-form{display:flex;gap:8px;flex-wrap:wrap}.search-form input,.search-form select{border:1px solid #d8dce2;background:#fff;border-radius:10px;padding:10px 11px;outline:none}.search-form input:focus,.search-form select:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.admin-login{min-height:100vh;display:grid;place-items:center;padding:24px}.admin-login-card{width:min(460px,calc(100vw - 24px));background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow)}.admin-login-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.admin-login-head img{width:52px;height:52px;border-radius:14px;box-shadow:0 6px 16px rgba(74,103,232,.18)}.hint{color:var(--muted);font-size:12px}.actions-row{display:flex;gap:8px;flex-wrap:wrap}.pagination{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:12px}.pagination a,.pagination span{padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}.pagination .current{background:#eef2fb;border-color:#dce3ff;color:#3750be;font-weight:700}@media(max-width:960px){.admin-grid .card.span-3,.admin-grid .card.span-4,.admin-grid .card.span-6,.admin-grid .card.span-8,.admin-grid .card.span-12{grid-column:span 12}.split{grid-template-columns:1fr}}

/* v0.1.13 — storage diagnostics and Telegram-like date marker */
.chat-shell-wide{position:relative}
.family-storage-card .family-storage-main{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:9px}.family-storage-card .family-storage-main strong{font-size:22px;letter-spacing:-.025em}.family-storage-meter{margin-bottom:12px}.family-storage-kv div{font-size:12px}.family-storage-kv b{font-weight:700;text-align:right}
@media(max-width:650px){.family-storage-card .family-storage-main{align-items:flex-start;flex-direction:column}}

/* v0.1.14 — family file manager and deleted attachments */
.chat-deleted-attachment{display:flex;align-items:center;gap:9px;min-width:min(300px,68vw);padding:9px 10px;margin-bottom:6px;border:1px dashed #cfd4dc;border-radius:11px;background:#f3f4f6;color:#7b8290}.chat-deleted-attachment>span{font-size:23px;filter:grayscale(1);opacity:.75}.chat-deleted-attachment div{display:grid;gap:2px;min-width:0}.chat-deleted-attachment b{font-size:12px;color:#6f7682}.chat-deleted-attachment small{font-size:10px!important;text-align:left!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.family-files-page{display:grid;gap:14px}.family-files-summary{padding-bottom:15px}.family-files-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.family-files-stats>div{background:#f5f6f8;border:1px solid #eceef1;border-radius:12px;padding:11px}.family-files-stats small{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.family-files-stats b{font-size:13px}.family-files-tabs{display:flex;gap:6px}.family-files-tabs a{padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-weight:650}.family-files-tabs a.active{background:#eef2ff;border-color:#dbe2ff;color:#3d56c8}.family-files-filters{display:grid;grid-template-columns:minmax(220px,1fr) 170px 170px auto;gap:8px;margin-bottom:14px}.family-files-filters input,.family-files-filters select{width:100%;border:1px solid #d8dce2;background:#fff;border-radius:10px;padding:9px 10px;outline:0}.family-files-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:3px}.family-files-select-all{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.family-files-list{display:grid}.family-file-row{display:grid;grid-template-columns:auto 56px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 2px;border-bottom:1px solid var(--line)}.family-file-row:last-child{border-bottom:0}.family-file-check input{width:16px;height:16px}.family-file-preview{width:56px;height:56px;border-radius:11px;background:#eef0f3;display:grid;place-items:center;overflow:hidden;font-size:25px}.family-file-preview img{width:100%;height:100%;object-fit:cover}.family-file-main{min-width:0;display:grid;gap:3px}.family-file-title{display:flex;align-items:center;gap:7px;min-width:0}.family-file-title b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.family-file-main small{color:var(--muted);font-size:11px}.family-file-size{display:grid;justify-items:end;gap:5px;white-space:nowrap}.family-file-size a{font-size:11px;color:var(--accent)}.danger-text{color:var(--danger)!important}@media(max-width:850px){.family-files-stats{grid-template-columns:1fr 1fr}.family-files-filters{grid-template-columns:1fr 1fr}.family-files-filters input{grid-column:1/-1}.family-files-actions{align-items:flex-start;flex-direction:column}.family-file-row{grid-template-columns:auto 48px minmax(0,1fr)}.family-file-preview{width:48px;height:48px}.family-file-size{grid-column:3;justify-items:start}.family-file-title{align-items:flex-start;flex-direction:column;gap:4px}}
.feed-image-deleted{min-height:120px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px dashed #cfd4dc!important;background:#f3f4f6!important;color:#7b8290}.feed-image-deleted span{font-size:28px;filter:grayscale(1);opacity:.75}.feed-image-deleted b{font-size:12px}

/* v0.1.15 — task/note attachments and storage performance diagnostics */
.entity-attachments-section{margin-top:14px;padding:13px 15px;border:1px solid #e1e4e9;background:#fafafa;border-radius:13px}.entity-attachments-grid,.entity-attachment-edit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.entity-attachment-editor{border:1px solid #e2e5e9;background:#fafbfc;border-radius:13px;padding:12px}.entity-attachment-card{position:relative;min-width:0;border:1px solid #e0e4e9;background:#fff;border-radius:11px;overflow:hidden}.entity-attachment-card.pending{border-style:dashed}.entity-attachment-open{display:grid;grid-template-columns:58px minmax(0,1fr);gap:9px;align-items:center;min-height:68px;padding:6px 38px 6px 6px}.entity-attachment-card img{width:58px;height:58px;object-fit:cover;border-radius:8px;background:#eef0f3}.entity-attachment-icon{width:58px;height:58px;border-radius:8px;background:#eef0f3;display:grid;place-items:center;font-size:27px}.entity-attachment-copy{min-width:0;display:grid;gap:3px}.entity-attachment-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-attachment-copy small{font-size:10px;color:var(--muted)}.entity-attachment-remove{position:absolute;right:7px;top:7px;width:25px;height:25px;border:0;border-radius:8px;background:#f1f2f4;color:#737b87;cursor:pointer;font-size:17px;line-height:1}.entity-attachment-remove:hover{background:#ffe9ea;color:var(--danger)}.entity-upload-progress{height:4px;border-radius:99px;background:#eceff3;overflow:hidden;margin-top:3px}.entity-upload-progress i{display:block;width:0;height:100%;background:var(--accent);transition:width .12s linear}.note-attachment-editor{margin-top:14px}.storage-benchmark-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}.storage-benchmark-grid>div{border:1px solid var(--line);border-radius:11px;padding:10px;background:#f7f8fa}.storage-benchmark-grid small{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.storage-benchmark-grid b{font-size:13px}.storage-benchmark-note{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f5f7fb;color:#626b78;font-size:12px;line-height:1.5}
@media(max-width:650px){.entity-attachments-grid,.entity-attachment-edit-list{grid-template-columns:1fr}.storage-benchmark-grid{grid-template-columns:1fr 1fr}}

/* v0.1.19 */
.note-card{position:relative;padding-bottom:34px}
.note-attachment-indicator{position:absolute;right:12px;bottom:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#eceff4;color:#667080;font-size:14px;line-height:1}
.entity-attachment-card button.entity-attachment-open{width:100%;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
.entity-attachment-card button.entity-attachment-open:hover{background:#f7f9fc}

.family-manage-list{display:grid;gap:8px;margin-top:12px}
.family-manage-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:#f8f9fa}
.family-manage-view{display:flex;align-items:center;gap:8px;min-width:0}
.family-manage-view[hidden],.family-manage-editor[hidden]{display:none!important}
.family-manage-name{font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.family-inline-edit-btn,.family-inline-save-btn,.family-inline-cancel-btn{width:29px;height:29px;border:1px solid #dde1e7;border-radius:8px;background:#fff;color:#68717f;display:grid;place-items:center;cursor:pointer;flex:0 0 auto;padding:0;line-height:1}
.family-inline-edit-btn:hover,.family-inline-save-btn:hover{border-color:#cbd3f6;color:var(--accent);background:#f5f7ff}
.family-inline-cancel-btn:hover{border-color:#eccfd2;color:var(--danger);background:#fff5f5}
.family-manage-editor{display:flex;align-items:center;gap:6px;min-width:0}
.family-manage-editor input[name="role_name"],.family-manage-editor input[name="species_name"]{min-width:0;flex:1;width:100%;border:1px solid #d8dce2;background:#fff;border-radius:9px;padding:8px 9px;outline:0}
.family-manage-editor input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}
.family-manage-delete{margin:0}
.family-manage-list.compact .family-manage-row{padding:8px 9px}
@media(max-width:650px){.family-manage-row{grid-template-columns:1fr}.family-manage-delete{justify-self:start}.family-manage-editor{width:100%}}

/* v0.1.20 — task attachments, premium Board sections, events and goals */
.task-list-item{position:relative}.task-attachment-indicator{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#eceff4;color:#667080;font-size:14px;line-height:1;margin-top:1px}.task-list-side .task-attachment-indicator{justify-self:end}
.board-order-item.premium-locked{position:relative;cursor:not-allowed;background:#f4f5f7;color:#8a919d;opacity:.82}.board-order-item.premium-locked .drag-handle{letter-spacing:0}.board-order-item.premium-locked .order-actions button,.board-order-item.premium-locked .mini-toggle{opacity:.55}.premium-inline-badge{display:inline-flex;margin-left:7px;padding:2px 7px;border-radius:999px;background:#eef2ff;color:#4b63d7;font-size:9px;font-weight:800;vertical-align:1px}.board-order-item[data-premium-tooltip]::after{content:attr(data-premium-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%) translateY(4px);z-index:80;max-width:270px;width:max-content;padding:8px 10px;border-radius:9px;background:#252a34;color:#fff;font-size:11px;line-height:1.35;box-shadow:0 8px 26px rgba(24,29,39,.22);opacity:0;pointer-events:none;transition:.14s}.board-order-item[data-premium-tooltip]:hover::after,.board-order-item[data-premium-tooltip]:focus::after,.board-order-item[data-premium-tooltip].show-premium-tip::after{opacity:1;transform:translateX(-50%) translateY(0)}
.premium-gate{max-width:760px;margin:36px auto;text-align:center;padding:36px 28px}.premium-gate-icon{width:68px;height:68px;margin:0 auto 14px;border-radius:20px;background:#eef2ff;color:#4962d7;display:grid;place-items:center;font-size:30px}.premium-gate h2{font-size:23px;margin:0 0 10px}.premium-gate p{max-width:520px;margin:0 auto;color:var(--muted);line-height:1.6}.premium-gate .pill{margin-top:16px}
.board-events,.board-goals{grid-column:span 6}.event-list,.goal-list{display:grid;gap:10px}.event-card,.goal-card{position:relative;border:1px solid var(--line);border-radius:15px;background:#fff;padding:14px}.event-card-head,.goal-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.event-card h3,.goal-card h3{margin:0;font-size:15px}.event-meta,.goal-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:5px}.event-description,.goal-description{margin:10px 0 0;color:#555e69;line-height:1.55;white-space:pre-line}.event-time-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:10px;background:#eef2ff;color:#4058ce;font-size:11px;font-weight:750;white-space:nowrap}.event-time-badge.past{background:#f2f3f5;color:#7a818c}.event-actions,.goal-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.events-layout,.goals-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:14px;align-items:start}.events-form-card,.goals-form-card{position:sticky;top:18px}.event-date-line{display:grid;grid-template-columns:1fr 1fr;gap:10px}.goal-progress-wrap{margin-top:12px}.goal-progress-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}.goal-progress{height:10px;border-radius:999px;background:#e9edf2;overflow:hidden}.goal-progress>span{display:block;height:100%;background:var(--accent);border-radius:inherit}.goal-progress-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:10px}.goal-progress-form input[type="range"]{width:100%}.goal-progress-number{display:flex;gap:6px;align-items:center}.goal-progress-number input{width:74px}.goal-completed{border-color:#d9eadf;background:#fbfefc}.goal-overdue{border-color:#efd9d9}.goal-state{font-size:10px;font-weight:800;padding:4px 8px;border-radius:99px;background:#eef1f4;color:#5f6874}.goal-state.completed{background:#edf6ef;color:#437753}.goal-state.overdue{background:#fff0f0;color:#a44d55}.board-event-row,.board-goal-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.board-event-row:first-of-type,.board-goal-row:first-of-type{border-top:0}.board-event-icon,.board-goal-icon{width:34px;height:34px;border-radius:10px;background:#eef2ff;color:#4962d7;display:grid;place-items:center;font-size:16px}.board-event-row b,.board-goal-row b{font-size:12px}.board-event-row small,.board-goal-row small{display:block;color:var(--muted);margin-top:2px}.board-event-row time,.board-goal-row time{color:var(--muted);font-size:10px}.board-goal-progress{width:70px;height:6px;background:#eceff3;border-radius:99px;overflow:hidden}.board-goal-progress i{display:block;height:100%;background:var(--accent)}
@media(max-width:900px){.events-layout,.goals-layout{grid-template-columns:1fr}.events-form-card,.goals-form-card{position:static}.board-events,.board-goals{grid-column:span 12}}@media(max-width:650px){.event-date-line{grid-template-columns:1fr}.event-card-head,.goal-card-head{align-items:flex-start;flex-direction:column}.goal-progress-form{grid-template-columns:1fr}.board-order-item[data-premium-tooltip]::after{left:10px;right:10px;width:auto;max-width:none;transform:translateY(4px)}.board-order-item[data-premium-tooltip]:hover::after,.board-order-item[data-premium-tooltip]:focus::after,.board-order-item[data-premium-tooltip].show-premium-tip::after{transform:translateY(0)}}

/* v0.1.21 — notifications, compact attachments, event/goal modals */
.task-list-item{position:relative;padding-bottom:12px}.task-attachment-indicator{position:absolute;right:12px;bottom:12px;margin:0;width:22px;height:22px;border-radius:7px;background:#eceff4;color:#667080;font-size:13px;z-index:2}.task-list-main{padding-right:34px}.task-list-side .task-attachment-indicator{position:static}
.entity-attachments-grid,.entity-attachment-edit-list{grid-template-columns:repeat(auto-fill,minmax(210px,300px));justify-content:start;align-items:start}.entity-attachment-card{width:100%;max-width:300px}.entity-attachment-open{grid-template-columns:44px minmax(0,1fr);gap:8px;min-height:54px;padding:5px 34px 5px 5px}.entity-attachment-card img,.entity-attachment-icon{width:44px;height:44px;border-radius:7px}.entity-attachment-icon{font-size:22px}.entity-attachment-copy b{font-size:11px}.chat-file{min-width:0;width:min(300px,72vw);max-width:300px;padding:7px 9px;gap:8px}.chat-file-icon{font-size:23px}.chat-file-copy b{font-size:11px}.chat-file-download{font-size:18px}
.notification-row{position:relative;padding-left:16px}.notification-row.unread-row{background:#f5f8ff;border-radius:11px}.notification-unread-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px rgba(74,103,232,.12);flex:0 0 auto;margin-left:-2px}.notification-actions{display:flex;align-items:center;gap:12px;margin-top:6px}.notification-open-link,.notification-read-btn{color:var(--accent);font-size:12px}.notification-read-btn{border:0;background:transparent;padding:0;cursor:pointer}.notification-read-btn:hover,.notification-open-link:hover{text-decoration:underline}.notification-read-label{color:var(--muted);font-size:11px}
.board-order-item[data-premium-tooltip]:hover::after{opacity:1;transform:translateX(-50%) translateY(0)}.board-order-item[data-premium-tooltip]:focus::after{opacity:0}.board-order-item[data-premium-tooltip].show-premium-tip::after{opacity:0}
.event-card,.goal-card{cursor:pointer}.event-card:focus,.goal-card:focus{outline:2px solid rgba(74,103,232,.22);outline-offset:2px}.event-modal-card,.goal-modal-card{width:min(760px,calc(100vw - 24px));max-height:92vh;overflow:auto}.event-modal-head{padding-right:40px}.event-view-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:15px 0}.event-view-grid>div{border:1px solid var(--line);border-radius:11px;padding:10px;background:#fafbfc}.event-view-grid small,.event-modal-participants>small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.event-view-grid b{font-size:12px}.event-participant-summary{display:flex;gap:6px;align-items:flex-start;margin-top:9px;color:var(--muted);font-size:11px}.event-participant-summary b{color:var(--text);font-weight:650}.event-participant-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}.event-participant-chip{display:flex;align-items:center;gap:6px;padding:5px 8px 5px 5px;background:#f4f5f7;border:1px solid #e7e9ed;border-radius:10px;font-size:11px}.event-participant-picker{border:1px solid var(--line);border-radius:12px;padding:11px}.event-participant-picker h3{font-size:13px;margin:0}.event-member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.event-member-option{display:flex!important;align-items:center;gap:7px;border:1px solid #e5e8ed;border-radius:10px;padding:7px;background:#fafbfc;font-weight:500!important;cursor:pointer}.event-member-option input{width:auto!important}.event-member-option:has(input:checked){border-color:#cfd7ff;background:#f3f5ff}.event-member-option:has(input:disabled){opacity:.65}.goal-progress-inline{margin-top:14px;border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:end;gap:9px;flex-wrap:wrap}.goal-progress-inline label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.goal-value-input{display:flex;align-items:center;gap:6px}.goal-value-input input{width:150px;border:1px solid #d8dce2;border-radius:9px;padding:8px 9px}.goal-value-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.goal-value-fields[hidden]{display:none!important}
@media(max-width:650px){.board-order-item[data-premium-tooltip]:hover::after{opacity:0}.board-order-item[data-premium-tooltip].show-premium-tip::after{opacity:1;transform:translateY(0)}.event-view-grid,.event-member-grid,.goal-value-fields{grid-template-columns:1fr}.event-modal-card,.goal-modal-card{width:calc(100vw - 14px);padding:15px}.entity-attachments-grid,.entity-attachment-edit-list{grid-template-columns:minmax(0,1fr)}.entity-attachment-card{max-width:100%}.chat-file{width:min(280px,76vw)}}

/* v0.1.22 */
.brand-plan-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.06em}.brand-plan-badge.free{background:#ecebff;color:#4e56d9}.brand-plan-badge.plus{background:#e8f7ea;color:#2d8f55}.brand-plan-badge.pro{background:#fff0d7;color:#c67b00}
.family-plan-top-card .card-head,.family-storage-card .card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.family-plan-brief{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.family-plan-brief div,.family-storage-kv div{padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--card2)}.family-plan-brief span,.family-storage-kv span{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.plan-modal-card{max-width:1040px}.plan-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.plan-compare-card{border:1px solid var(--line);border-radius:18px;padding:18px;background:var(--card2);display:flex;flex-direction:column;gap:12px}.plan-compare-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.plan-feature-list{margin:0;padding-left:18px;display:grid;gap:8px}.pill.free,.pill.plus,.pill.pro{padding:6px 12px;border-radius:999px;font-weight:800;font-size:12px}.pill.free{background:#ecebff;color:#4e56d9}.pill.plus{background:#e8f7ea;color:#2d8f55}.pill.pro{background:#fff0d7;color:#c67b00}
.square-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}.square-tile{min-height:124px;justify-content:center;text-align:center;padding:14px;border-radius:20px}.square-tile .avatar{width:64px;height:64px;margin:0 auto 8px}.square-tile small{display:block;line-height:1.2}.square-tile .pet-species{font-size:12px;color:var(--muted)}
.board-calendar-row,.board-event-row,.board-feed-row,.calendar-agenda-row{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--card2);margin-bottom:10px;color:inherit;text-decoration:none}.board-calendar-row time,.board-event-row time,.board-feed-row time{margin-left:auto;font-size:12px;color:var(--muted)}.board-calendar-icon,.board-event-icon{width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(108,92,231,.12)}
.board-goal-card{display:block;padding:14px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,var(--card2),rgba(108,92,231,.03));color:inherit;text-decoration:none;margin-bottom:12px}.board-goal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.board-goal-icon{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(108,92,231,.12)}.board-goal-state{font-size:11px;padding:4px 8px;border-radius:999px;background:rgba(108,92,231,.08);color:var(--accent)}.board-goal-progress-text{margin-top:10px;font-size:13px;font-weight:700}.board-goal-progress{display:block;width:100%;height:10px;border-radius:999px;background:#eef1ff;margin-top:8px;overflow:hidden}.board-goal-progress i{display:block;height:100%;background:linear-gradient(90deg,#6c5ce7,#8f84ff);border-radius:inherit}
.event-view-block,.goal-view-block{margin:14px 0}.event-view-block small,.goal-view-block small,.event-modal-participants small{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.event-view-box,.goal-view-box{border:1px solid var(--line);background:var(--card2);border-radius:14px;padding:12px 14px;min-height:54px;white-space:pre-wrap}.event-view-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.event-view-grid>div{border:1px solid var(--line);background:var(--card2);border-radius:14px;padding:12px 14px}.square-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px}.event-participant-chip.square-chip,.square-member-option{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card2);gap:8px;min-height:106px}.square-member-option input{position:absolute;opacity:0}.square-member-option:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 2px rgba(108,92,231,.12)}
.goal-view-menu-wrap{position:relative}.goal-view-menu-btn{width:40px;height:40px;border:none;border-radius:12px;background:var(--card2);font-size:24px;cursor:pointer}.goal-view-menu{position:absolute;right:0;top:44px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(15,23,42,.16);padding:6px;display:grid;min-width:170px;z-index:6}.goal-view-menu button{border:none;background:transparent;text-align:left;padding:10px 12px;border-radius:10px;cursor:pointer}.goal-view-menu .danger{color:#cf4a52}.goal-progress-inline{display:grid;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.goal-value-input{display:flex;align-items:center;gap:8px}.goal-value-input input{flex:1}.goal-value-fields{display:grid;grid-template-columns:1fr 160px;gap:12px}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.9fr);gap:18px}.calendar-switch{display:flex;align-items:center;gap:12px}.calendar-grid-head,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-grid-head div{padding:8px 10px;font-size:12px;font-weight:700;color:var(--muted);text-align:center}.calendar-cell{min-height:132px;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fff}.calendar-cell.muted-month{opacity:.5}.calendar-cell.today{border-color:var(--accent);box-shadow:0 0 0 2px rgba(108,92,231,.12)}.calendar-cell-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.calendar-cell-head span{font-size:11px;padding:3px 8px;border-radius:999px;background:#eef1ff;color:var(--accent);font-weight:700}.calendar-cell-items{display:grid;gap:6px}.calendar-item{display:grid;gap:2px;padding:7px 8px;border-radius:12px;background:#f8f8fd;color:inherit;text-decoration:none}.calendar-item.event{border-left:3px solid #6c5ce7}.calendar-item.task{border-left:3px solid #22a06b}.calendar-item span,.calendar-agenda-row span{font-size:11px;color:var(--muted)}.calendar-item b,.calendar-agenda-row b{font-size:13px}.calendar-more{font-size:12px;color:var(--muted);padding-left:4px}.calendar-day-group{margin-bottom:16px}.calendar-day-group h3{font-size:14px;margin:0 0 8px}.calendar-day-list{display:grid;gap:8px}.calendar-agenda-row{display:grid;gap:2px}.calendar-agenda-row.event{border-left:4px solid #6c5ce7}.calendar-agenda-row.task{border-left:4px solid #22a06b}
.notification-list{display:grid;gap:10px}.notification-card{border:1px solid var(--line);border-radius:18px;background:#fff}.notification-card.is-unread{border-color:#cfc9ff;background:#f8f7ff;box-shadow:0 0 0 1px rgba(108,92,231,.04)}.notification-button{width:100%;display:flex;gap:12px;align-items:flex-start;padding:14px;background:none;border:none;text-align:left;cursor:pointer}.notification-indicator{color:var(--accent);font-size:18px;line-height:1}.notification-content{display:grid;gap:4px}.notification-title-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.notification-pill{padding:3px 8px;border-radius:999px;background:#ecebff;color:#5146d7;font-size:11px;font-weight:800}
.feed-pasted-images{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.feed-paste-preview{position:relative;width:84px;height:84px;border-radius:16px;overflow:hidden;border:1px solid var(--line)}.feed-paste-preview img{width:100%;height:100%;object-fit:cover}.feed-paste-preview button{position:absolute;top:6px;right:6px;width:24px;height:24px;border:none;border-radius:999px;background:rgba(15,23,42,.7);color:#fff;cursor:pointer}
.modal-backdrop{opacity:0;transition:opacity .18s ease}.modal-backdrop.is-visible{opacity:1}.modal-backdrop.is-closing{opacity:0}.modal-card{transform:translateY(8px) scale(.985);transition:transform .18s ease}.modal-backdrop.is-visible .modal-card{transform:translateY(0) scale(1)}.modal-backdrop.is-closing .modal-card{transform:translateY(10px) scale(.985)}
.task-row .task-check+div{padding-right:4px}.entity-attachment-card,.task-attachment-chip,.message-attachment-card{max-width:220px}.entity-attachment-card .entity-attachment-open,.message-attachment-card .entity-attachment-open{min-height:auto}.task-assignee-line,.task-row-meta{position:relative}.task-paperclip-inline{position:absolute;right:0;bottom:0}
@media (max-width: 980px){.plan-compare-grid,.family-plan-brief,.calendar-layout,.goal-value-fields,.event-view-grid{grid-template-columns:1fr}.calendar-grid-head,.calendar-grid{gap:6px}.calendar-cell{min-height:110px}}
.admin-grid .split{display:grid;grid-template-columns:1.15fr .95fr;gap:18px;align-items:start}.admin-grid .split>.keyvals,.admin-grid .split>div .keyvals{display:grid;gap:10px}.admin-grid .split .meter{margin-bottom:12px}@media (max-width:980px){.admin-grid .split{grid-template-columns:1fr}}
.task-list-item{position:relative}.task-list-foot{padding-right:26px}.task-attachment-indicator{position:absolute;right:14px;bottom:14px;font-size:15px;line-height:1}.entity-attachment-card{width:min(220px,100%)}.entity-attachment-open{gap:10px}.entity-attachment-copy b{display:block;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* v0.1.23 fixes */
.task-modal-backdrop.open{opacity:1}.task-modal-backdrop.open .modal-card{transform:translateY(0) scale(1)}
.event-member-grid{grid-template-columns:repeat(auto-fill,112px)!important;justify-content:start}.event-member-option.square-member-option{width:112px!important;height:112px!important;min-height:112px!important;aspect-ratio:1/1!important;padding:10px!important;justify-content:center!important;align-items:center!important;flex-direction:column!important;text-align:center!important;gap:7px!important}.event-member-option.square-member-option .avatar{width:42px;height:42px}.event-participant-list.square-members{display:grid!important;grid-template-columns:repeat(auto-fill,112px)!important;justify-content:start!important}.event-participant-chip.square-chip{width:112px!important;height:112px!important;min-height:112px!important;aspect-ratio:1/1!important;padding:10px!important}.event-participant-chip.square-chip .avatar{width:42px;height:42px}
.goal-modal-card .modal-close{top:12px;right:12px}.goal-view-head{padding-right:52px;align-items:flex-start}.goal-view-head .goal-state{margin-top:4px;flex:0 0 auto}.goal-view-bottom-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:8px}.goal-view-bottom-row .ajax-status{flex:1}.goal-view-menu-wrap{margin-left:auto}.goal-view-menu-btn{width:36px;height:36px;font-size:22px}.goal-view-menu{top:auto;bottom:42px}.goal-progress-inline{display:flex!important;align-items:flex-end!important;gap:10px!important;flex-wrap:wrap!important;margin-top:14px!important;padding-top:12px!important;padding-bottom:0!important}.goal-progress-inline label{flex:0 1 260px}.goal-progress-inline .btn{width:auto!important;min-width:0!important;align-self:flex-end!important;flex:0 0 auto!important}.goal-progress-inline .ajax-status{width:100%;min-height:0}.goal-modal-card #goalViewPane{padding-bottom:0}.goal-modal-card #goalViewStatus:empty,.goal-progress-inline .ajax-status:empty{display:none}
@media(max-width:650px){.event-member-grid,.event-participant-list.square-members{grid-template-columns:repeat(2,112px)!important}.goal-view-head{padding-right:46px}.goal-progress-inline{align-items:stretch!important}.goal-progress-inline label{flex:1 1 100%}.goal-progress-inline .btn{align-self:flex-start!important}}
.board-family-group+.board-family-group{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.board-family-group-title{display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:9px}.board-family-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.board-family-group-head a,.board-family-add-pet{font-size:12px}.board-family-add-pet{display:inline-block;margin-top:12px}.family-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.family-members-card,.family-pets-card{grid-column:span 2}.square-member-cards{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.square-member-card{min-height:150px;flex-direction:column;text-align:center;justify-content:center}.square-member-card .avatar{width:68px;height:68px}.family-pet-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.family-species-inline{display:flex;align-items:center;gap:6px;flex:1}.family-species-inline input{flex:1}@media(max-width:780px){.family-page-grid{grid-template-columns:1fr}.family-members-card,.family-pets-card{grid-column:span 1}}
/* Keep legacy modals visible; animate only the modals that opt in. */
.modal-backdrop{opacity:1}.modal-card{transform:none}
#eventModal,#goalModal,#feedPostModal,#planSelectModal{opacity:0;transition:opacity .18s ease}
#eventModal .modal-card,#goalModal .modal-card,#feedPostModal .modal-card,#planSelectModal .modal-card{transform:translateY(8px) scale(.985);transition:transform .18s ease}
#eventModal.is-visible,#goalModal.is-visible,#feedPostModal.is-visible,#planSelectModal.is-visible{opacity:1}
#eventModal.is-visible .modal-card,#goalModal.is-visible .modal-card,#feedPostModal.is-visible .modal-card,#planSelectModal.is-visible .modal-card{transform:translateY(0) scale(1)}
#eventModal.is-closing,#goalModal.is-closing,#feedPostModal.is-closing,#planSelectModal.is-closing{opacity:0}
#eventModal.is-closing .modal-card,#goalModal.is-closing .modal-card,#feedPostModal.is-closing .modal-card,#planSelectModal.is-closing .modal-card{transform:translateY(10px) scale(.985)}
.task-modal-backdrop .task-modal-card{transform:translateY(0) scale(1)}

/* v0.1.24 */
/* Tasks use the exact same modal transition as events/goals. */
#taskModal.task-modal-backdrop{opacity:0!important;transition:opacity .18s ease!important}
#taskModal.task-modal-backdrop.is-visible{opacity:1!important}
#taskModal.task-modal-backdrop.is-closing{opacity:0!important}
#taskModal.task-modal-backdrop .task-modal-card{transform:translateY(8px) scale(.985)!important;transition:transform .18s ease!important,opacity .18s ease!important;opacity:1!important}
#taskModal.task-modal-backdrop.is-visible .task-modal-card{transform:translateY(0) scale(1)!important}
#taskModal.task-modal-backdrop.is-closing .task-modal-card{transform:translateY(10px) scale(.985)!important;opacity:.98!important}

/* Event participants are fixed square tiles in both picker and view. */
#eventMemberGrid.event-member-grid{display:grid!important;grid-template-columns:repeat(auto-fill,126px)!important;gap:10px!important;justify-content:start!important;align-items:start!important}
#eventMemberGrid .event-member-option.square-member-option{box-sizing:border-box!important;width:126px!important;height:126px!important;min-width:126px!important;max-width:126px!important;min-height:126px!important;max-height:126px!important;aspect-ratio:1/1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:10px!important;gap:8px!important;overflow:hidden!important}
#eventMemberGrid .event-member-option.square-member-option .avatar{width:46px!important;height:46px!important;flex:0 0 46px!important}
#eventMemberGrid .event-member-option.square-member-option>span:last-child{max-width:104px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#eventViewParticipants.event-participant-list.square-members{display:grid!important;grid-template-columns:repeat(auto-fill,126px)!important;gap:10px!important;justify-content:start!important}
#eventViewParticipants .event-participant-chip.square-chip{box-sizing:border-box!important;width:126px!important;height:126px!important;min-width:126px!important;max-width:126px!important;min-height:126px!important;max-height:126px!important;aspect-ratio:1/1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:10px!important;gap:8px!important;overflow:hidden!important}
#eventViewParticipants .event-participant-chip.square-chip .avatar{width:46px!important;height:46px!important;flex:0 0 46px!important}
.event-status-tabs{margin:0 0 14px}.event-section[hidden]{display:none!important}.event-completed-card{background:#f7f8fa;border-color:#e2e5e9}.event-completed-card h3{color:#656d78}

/* Goal view: status stays clear of close button; save left and menu right on one bottom line. */
.goal-modal-card #goalViewPane{padding-bottom:2px!important}
.goal-view-head{display:block!important;padding-right:46px!important;margin-bottom:4px!important}
.goal-view-heading-copy{min-width:0}.goal-view-heading-copy h2{margin:0 0 6px!important;padding-right:4px}.goal-view-heading-copy .goal-meta{margin-bottom:8px}.goal-view-heading-copy .goal-state{display:inline-flex;margin:0!important}
.goal-progress-fields-only{display:block!important;margin-top:14px!important;padding-top:12px!important;padding-bottom:0!important;border-top:1px solid var(--line)!important}
.goal-progress-fields-only label{display:grid;gap:5px;width:min(300px,100%);font-size:11px;color:var(--muted)}
.goal-progress-fields-only .goal-value-input input{width:220px;max-width:100%}
.goal-view-bottom-row{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important;margin-top:12px!important;min-height:38px!important}
.goal-view-bottom-left{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.goal-view-bottom-left .btn{width:auto!important;min-width:0!important;flex:0 0 auto!important}.goal-view-bottom-left .ajax-status:empty{display:none!important}
.goal-view-menu-wrap{margin-left:auto!important;align-self:flex-end!important}.goal-view-menu-btn{width:36px!important;height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.goal-view-menu{top:auto!important;bottom:42px!important;right:0!important}

/* Calendar deserves a full, readable Board block. */
.board-calendar{grid-column:span 8;min-height:260px}.board-calendar .board-calendar-row{min-height:54px}.board-calendar .empty-mini{min-height:150px;display:grid;place-items:center}

/* Family and pet cards share exactly the same dimensions. */
.family-page-simple{display:grid;grid-template-columns:1fr;gap:16px}.family-page-simple .family-members-card,.family-page-simple .family-pets-card{grid-column:auto!important}
.family-unified-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:12px!important}.family-unified-card{min-height:150px!important;height:150px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:14px!important;gap:8px!important}.family-unified-card .avatar{width:68px!important;height:68px!important;flex:0 0 68px!important}.family-unified-card>div{min-width:0;width:100%}.family-unified-card b,.family-unified-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.family-pet-card{background:#f5f6f7!important}

/* Pets management modals. */
.pet-add-modal-card{width:min(620px,calc(100vw - 24px));max-height:92vh;overflow:auto}.pet-species-modal-card{width:min(720px,calc(100vw - 24px));max-height:92vh;overflow:auto}.pet-avatar-add-row{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fafbfc}.pet-avatar-add-row .avatar{flex:0 0 auto}.pet-avatar-add-row small{display:block;margin-top:7px}.pet-crop-modal{z-index:260!important}.pet-species-list{margin-top:14px}.pet-species-edit-form{display:flex;align-items:center;gap:6px;flex:1}.pet-species-edit-form input{flex:1;border:1px solid #d8dce2;border-radius:9px;padding:8px 9px}.pets-manage-page .actions-row{display:flex;gap:8px;flex-wrap:wrap}

/* Removed dedicated pets navigation/board block; pets live inside Family. */
.board-pets{display:none!important}

@media(max-width:1050px){.board-calendar{grid-column:span 2!important}.family-unified-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important}}
@media(max-width:650px){#eventMemberGrid.event-member-grid,#eventViewParticipants.event-participant-list.square-members{grid-template-columns:repeat(2,126px)!important}.goal-view-bottom-row{align-items:flex-end!important}.board-calendar{grid-column:auto!important;min-height:220px}.family-unified-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.family-unified-card{height:142px!important;min-height:142px!important}.pet-add-modal-card,.pet-species-modal-card{width:calc(100vw - 14px);padding:15px}}

/* v0.1.25 */
.profile-birth-date{margin:4px 0 8px;color:var(--muted);font-size:13px}

/* Pet modals: use the same transition language as task/event modals */
#addPetModal,#petSpeciesModal,#newPetCropModal,#albumCreateModal,#albumEditModal,#albumPhotoModal,#photoCaptionModal{opacity:0!important;transition:opacity .18s ease!important}
#addPetModal.is-visible,#petSpeciesModal.is-visible,#newPetCropModal.is-visible,#albumCreateModal.is-visible,#albumEditModal.is-visible,#albumPhotoModal.is-visible,#photoCaptionModal.is-visible{opacity:1!important}
#addPetModal.is-closing,#petSpeciesModal.is-closing,#newPetCropModal.is-closing,#albumCreateModal.is-closing,#albumEditModal.is-closing,#albumPhotoModal.is-closing,#photoCaptionModal.is-closing{opacity:0!important}
#addPetModal .modal-card,#petSpeciesModal .modal-card,#newPetCropModal .modal-card,#albumCreateModal .modal-card,#albumEditModal .modal-card,#albumPhotoModal .modal-card,#photoCaptionModal .modal-card{transform:translateY(10px) scale(.985)!important;opacity:.98;transition:transform .18s ease,opacity .18s ease!important}
#addPetModal.is-visible .modal-card,#petSpeciesModal.is-visible .modal-card,#newPetCropModal.is-visible .modal-card,#albumCreateModal.is-visible .modal-card,#albumEditModal.is-visible .modal-card,#albumPhotoModal.is-visible .modal-card,#photoCaptionModal.is-visible .modal-card{transform:translateY(0) scale(1)!important;opacity:1}
#addPetModal.is-closing .modal-card,#petSpeciesModal.is-closing .modal-card,#newPetCropModal.is-closing .modal-card,#albumCreateModal.is-closing .modal-card,#albumEditModal.is-closing .modal-card,#albumPhotoModal.is-closing .modal-card,#photoCaptionModal.is-closing .modal-card{transform:translateY(10px) scale(.985)!important;opacity:.98}

/* Event status switch like task filters */
.event-status-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.event-status-tabs button{border:0;background:transparent;padding:7px 9px;border-radius:9px;color:var(--muted);cursor:pointer;font:inherit}
.event-status-tabs button.active{background:#f0f1f3;color:var(--text);font-weight:650}

/* Task comments */
.task-modal-card{width:min(1360px,calc(100vw - 24px))!important}
.task-view-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:stretch}
.task-view-main{min-width:0}
.task-comments-panel{border-left:1px solid var(--line);padding-left:18px;display:flex;flex-direction:column;min-height:560px;max-height:78vh}
.task-comments-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.task-comments-head span{color:var(--muted);font-size:12px}
.entity-comments-scroll{overflow:auto;min-height:0;flex:1;padding-right:4px;scrollbar-gutter:stable}
.entity-comments-list{display:grid;gap:10px}
.entity-comment{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start}
.entity-comment-body{min-width:0;border:1px solid var(--line);border-radius:14px;background:#fafbfc;padding:9px 10px}
.entity-comment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.entity-comment-head b{font-size:13px}.entity-comment-head small{font-size:10px;color:var(--muted);white-space:nowrap}
.entity-comment-text{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.entity-comment-reactions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}
.comment-like,.comment-reaction-chip,.comment-reaction-add{border:1px solid var(--line);background:#fff;border-radius:999px;padding:3px 7px;cursor:pointer;font-size:12px;line-height:1.2}
.comment-like.active,.comment-reaction-chip.active{background:#eef2ff;border-color:#cfd8ff;color:#334fc6}
.comment-reaction-picker-wrap{position:relative}.comment-reaction-picker{position:absolute;left:0;bottom:32px;z-index:40;display:flex;gap:4px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(30,36,48,.15)}
.comment-reaction-picker button{border:0;background:transparent;font-size:17px;padding:4px;cursor:pointer}
.entity-comment-form{display:grid;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);position:relative}
.entity-comment-form textarea{width:100%;resize:vertical;min-height:64px;max-height:140px;border:1px solid #d8dce2;border-radius:11px;padding:9px 10px;font:inherit;outline:0}
.entity-comment-form textarea:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}
.entity-comment-form-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.entity-comments-more{border:0;background:transparent;color:var(--accent);padding:6px 0;cursor:pointer;font-size:12px;text-align:left}

/* Feed comments */
.feed-comments{border-top:1px solid var(--line);margin-top:10px;padding-top:10px;display:grid;gap:9px}
.feed-comments .entity-comment-form{margin-top:2px;padding-top:0;border-top:0}.feed-comments .entity-comment-body{background:#fff}.feed-comments .entity-comments-list:empty{display:none}

/* Albums */
.albums-page .card-head,.album-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:16px}
.album-card{display:block;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;color:inherit;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease}
.album-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(30,36,48,.08)}
.album-cover{aspect-ratio:4/3;background:#f2f4f7;overflow:hidden}.album-cover img{width:100%;height:100%;object-fit:cover}.album-empty-cover{width:100%;height:100%;display:grid;place-items:center;font-size:42px;color:#aab0bb}
.album-card-copy{padding:12px 13px;display:grid;gap:4px}.album-card-copy small,.album-card-copy p{color:var(--muted);font-size:12px;margin:0}.album-card-copy p{line-height:1.35}
.album-page-head{margin-bottom:14px}.album-page-head>div:first-child{min-width:0}.album-page-head h2{margin:4px 0}.album-description{max-width:820px;line-height:1.55}
.album-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}.album-photo-tile{position:relative;border:0;background:#eef0f4;border-radius:15px;overflow:hidden;aspect-ratio:1/1;cursor:pointer;padding:0}.album-photo-tile>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.album-photo-tile:hover>img{transform:scale(1.025)}.album-photo-tile>span{position:absolute;left:8px;right:8px;bottom:8px;background:rgba(17,24,39,.66);color:#fff;border-radius:9px;padding:5px 7px;font-size:11px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.album-photo-tile>span .custom-emoji{display:inline-block!important;width:1.25em!important;height:1.25em!important;max-width:1.25em!important;max-height:1.25em!important;object-fit:contain!important;vertical-align:-.22em!important;margin:0 .03em!important;transition:none!important;transform:none!important}
.album-create-modal{width:min(560px,calc(100vw - 20px))}.album-edit-modal{width:min(900px,calc(100vw - 20px));max-height:90vh;overflow:auto}.album-viewers{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fafbfc}.album-viewers label{display:flex;align-items:center;gap:7px;padding:7px 8px;border-radius:10px;background:#fff;border:1px solid #eceef2}.album-sort-grid{display:grid;grid-template-columns:repeat(auto-fill,88px);gap:8px;margin-top:9px}.album-sort-item{position:relative;width:88px;height:88px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;cursor:grab}.album-sort-item.dragging{opacity:.45}.album-sort-item img{width:100%;height:100%;object-fit:cover}.album-sort-item span{position:absolute;right:5px;top:5px;background:rgba(17,24,39,.65);color:#fff;border-radius:7px;padding:2px 5px;font-size:11px}
.album-photo-modal{width:min(1180px,calc(100vw - 20px));max-height:92vh;overflow:hidden}.album-photo-view{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;min-height:580px}.album-photo-main{min-width:0;display:flex;flex-direction:column;justify-content:center;background:#111827;border-radius:15px;overflow:hidden}.album-photo-main>img{width:100%;max-height:72vh;object-fit:contain;display:block}.album-photo-caption-row{background:#fff;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.album-photo-caption-row p{margin:0;min-width:0;overflow-wrap:anywhere}.album-photo-comments{display:flex;flex-direction:column;min-height:0}.album-photo-comments .entity-comments-scroll{flex:1}.small-modal-card{width:min(520px,calc(100vw - 20px))}
.board-album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.board-album-card{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:13px;padding:8px;color:inherit;text-decoration:none;min-width:0}.board-album-cover{width:54px;height:54px;flex:0 0 54px;border-radius:10px;background:#f1f3f6;overflow:hidden;display:grid;place-items:center}.board-album-cover img{width:100%;height:100%;object-fit:cover}.board-album-card span:last-child{min-width:0}.board-album-card b,.board-album-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-album-card small{color:var(--muted);font-size:11px}

@media(max-width:980px){.task-view-layout{grid-template-columns:1fr}.task-comments-panel{border-left:0;border-top:1px solid var(--line);padding:14px 0 0;min-height:420px}.album-photo-view{grid-template-columns:1fr;min-height:0}.album-photo-comments{min-height:380px}.album-photo-modal{overflow:auto}.board-album-grid{grid-template-columns:1fr}}
@media(max-width:650px){.albums-page .card-head,.album-page-head{flex-direction:column}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.album-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.album-sort-grid{grid-template-columns:repeat(3,1fr)}.album-sort-item{width:100%;height:auto;aspect-ratio:1/1}}

/* v0.1.26 */
/* Calendar spacing */
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px!important}.calendar-toolbar .calendar-switch{min-width:0}.calendar-layout{margin-top:0}

/* Comments: isolated scroll areas, feed-style reactions and per-comment menu. */
.task-view-layout{height:min(76vh,760px)!important;max-height:760px!important;overflow:hidden!important}.task-view-main{min-height:0;overflow-y:auto;padding-right:6px}.task-comments-panel{height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important}.task-comments-panel .entity-comments-scroll{flex:1 1 auto;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
.album-photo-view{height:min(78vh,740px)!important;min-height:0!important;max-height:740px!important;overflow:hidden}.album-photo-main{height:100%;min-height:0}.album-photo-comments{height:100%!important;min-height:0!important;overflow:hidden!important}.album-photo-comments .entity-comments-scroll{flex:1 1 auto;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding-right:5px}
.entity-comment-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px;position:relative}.entity-comment-reactions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:0!important;min-width:0}.comment-like{display:inline-flex;align-items:center;gap:5px;border:0!important;background:transparent!important;padding:4px 2px!important;color:var(--muted);font-size:12px;cursor:pointer}.comment-like.active{color:#e34862!important;background:transparent!important}.comment-like b{font:inherit}.comment-reaction-list{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.comment-reaction-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:4px 7px;cursor:pointer;font-size:12px}.comment-reaction-chip.active{background:#eef2ff;border-color:#cfd8ff;color:#334fc6}.comment-reaction-chip b{font-size:11px}.comment-reaction-add{border:0!important;background:transparent!important;padding:3px!important;color:var(--muted);cursor:pointer}.comment-reaction-picker-wrap{position:relative}.comment-reaction-picker{position:absolute;left:0;bottom:30px;z-index:80;display:flex;gap:4px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(30,36,48,.15)}.comment-reaction-picker button{border:0;background:transparent;font-size:17px;padding:4px;cursor:pointer}.entity-comment-more-wrap{position:relative;margin-left:auto;flex:0 0 auto}.entity-comment-more-btn{border:0;background:transparent;color:var(--accent);font-size:12px;padding:4px 2px;cursor:pointer}.entity-comment-more-menu{position:absolute;right:0;bottom:28px;z-index:85;min-width:150px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(30,36,48,.15)}.entity-comment-more-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer}.entity-comment-more-menu button:hover{background:#f3f5f8}.entity-comment-more-menu .danger{color:#c9474f}.entity-comment-edit{display:grid;gap:7px;margin-top:6px}.entity-comment-edit textarea{width:100%;min-height:72px;border:1px solid #d8dce2;border-radius:10px;padding:9px 10px;resize:vertical}.entity-comment-edit-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.entity-comment-edit-actions .ajax-status{margin-right:auto}

/* Album details and viewer permissions. */
.album-created-date,.album-created-meta,.album-photo-date{display:block;color:var(--muted);font-size:11px}.album-created-meta{margin:2px 0 8px}.album-viewer-picker{border:1px solid var(--line);border-radius:16px;padding:13px;background:var(--card2)}.album-viewer-picker .card-head{margin-bottom:10px}.album-member-grid{display:grid!important;grid-template-columns:repeat(auto-fill,126px)!important;gap:10px!important;justify-content:start!important}.album-member-grid .event-member-option{box-sizing:border-box!important;width:126px!important;height:126px!important;min-width:126px!important;max-width:126px!important;min-height:126px!important;max-height:126px!important;aspect-ratio:1/1!important}.album-member-grid .event-member-option .avatar{width:46px!important;height:46px!important;flex:0 0 46px!important}
.album-photo-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;flex:1;overflow:hidden}.album-photo-stage>img{width:100%;height:100%;max-height:100%;object-fit:contain;display:block}.album-photo-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:52px;border:0;border-radius:13px;background:rgba(17,24,39,.58);color:#fff;font-size:34px;line-height:1;cursor:pointer}.album-photo-nav.prev{left:12px}.album-photo-nav.next{right:12px}.album-photo-nav:disabled{opacity:.25;cursor:default}.album-fullscreen-btn{position:absolute;right:12px;top:12px;width:38px;height:38px;border:0;border-radius:11px;background:rgba(17,24,39,.64);color:#fff;font-size:20px;cursor:pointer}.album-photo-caption-row>div{min-width:0;display:grid;gap:3px}.album-photo-caption-row .album-photo-date{margin-bottom:1px}.album-fullscreen{position:fixed;inset:0;z-index:1000;background:rgba(3,7,18,.96);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .16s ease}.album-fullscreen.show{opacity:1}.album-fullscreen img{max-width:calc(100vw - 120px);max-height:calc(100vh - 70px);object-fit:contain;user-select:none}.album-fullscreen-close{position:absolute;right:20px;top:16px;width:44px;height:44px;border:0;border-radius:13px;background:rgba(255,255,255,.13);color:#fff;font-size:30px;cursor:pointer}.album-fullscreen-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:68px;border:0;border-radius:15px;background:rgba(255,255,255,.12);color:#fff;font-size:42px;cursor:pointer}.album-fullscreen-nav.prev{left:20px}.album-fullscreen-nav.next{right:20px}.album-fullscreen-counter{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:12px}

/* Board: only half-width (2/4) and full-width (4/4) blocks on desktop. */
.board-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.board-family,.board-calendar,.board-chat,.board-feed{grid-column:span 4!important}.board-tasks,.board-notes,.board-albums,.board-events,.board-goals,.board-news{grid-column:span 2!important}.board-calendar{min-height:280px!important}

@media(max-width:1050px){.board-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.board-family,.board-calendar,.board-chat,.board-feed,.board-tasks,.board-notes,.board-albums,.board-events,.board-goals,.board-news{grid-column:span 2!important}.task-view-layout{height:auto!important;max-height:none!important;overflow:visible!important}.task-view-main{overflow:visible}.task-comments-panel{height:430px!important}.album-photo-view{height:auto!important;max-height:none!important;overflow:visible}.album-photo-comments{height:400px!important}}
@media(max-width:650px){.calendar-toolbar{align-items:stretch;flex-direction:column;margin-bottom:14px!important}.calendar-toolbar>a{align-self:flex-start}.album-member-grid{grid-template-columns:repeat(2,126px)!important}.album-photo-nav{display:none}.album-fullscreen img{max-width:100vw;max-height:calc(100vh - 54px)}.album-fullscreen-nav{display:none}.board-grid{grid-template-columns:1fr!important}.board-family,.board-calendar,.board-chat,.board-feed,.board-tasks,.board-notes,.board-albums,.board-events,.board-goals,.board-news{grid-column:span 1!important}}
.album-fullscreen[hidden]{display:none!important}

/* v0.1.27 — unified primary buttons, stable calendar controls and compact comment popups */
/* Every standard blue action button now uses the same geometry as “Новая заметка”. */
.btn.primary{padding:7px 10px;font-size:12px}

/* Calendar: fixed navigation columns stop arrows moving with month-name length. */
.calendar-toolbar{display:block!important;margin-bottom:18px!important}
.calendar-toolbar-stack{display:flex;flex-direction:column;align-items:center;width:max-content;max-width:100%}
.calendar-switch{display:grid!important;grid-template-columns:34px minmax(190px,230px) 34px;align-items:center;gap:10px;min-width:0}
.calendar-switch h2{margin:0!important;text-align:center;white-space:nowrap}
.calendar-nav-btn{width:34px;height:34px;padding:0!important;flex:0 0 34px}
.calendar-current-btn{margin-top:10px}

/* Comments: keep the feed reaction language, but compact enough for task/photo sidebars. */
.task-view-layout{grid-template-columns:minmax(0,1fr) 430px}
.album-photo-modal{width:min(1280px,calc(100vw - 20px))}
.album-photo-view{grid-template-columns:minmax(0,1fr) 430px}
.entity-comments-scroll{overflow-x:hidden!important}
.comment-like{border:1px solid #dfe3e9!important;background:#fff!important;border-radius:999px!important;padding:4px 7px!important;color:#646c78!important;transition:.14s ease;box-sizing:border-box}
.comment-like:hover{background:#f3f5f8!important;border-color:#d5dae3!important;color:#3f4754!important}
.comment-like.active{background:#eef2ff!important;border-color:#d5ddff!important;color:var(--accent)!important}
.comment-reaction-picker{display:grid!important;grid-template-columns:repeat(4,30px);gap:3px;padding:5px;border-radius:10px;max-width:calc(100vw - 16px)}
.comment-reaction-picker[hidden],.entity-comment-more-menu[hidden]{display:none!important}
.comment-reaction-picker button{width:30px;height:30px;padding:2px!important;border-radius:7px!important;font-size:17px;line-height:1}
.comment-reaction-picker button:hover{background:#f1f3f6}
.entity-comment-more-menu{min-width:118px;padding:3px;border-radius:9px;box-shadow:0 10px 24px rgba(30,36,48,.13)}
.entity-comment-more-menu button{padding:5px 7px;border-radius:6px;font-size:11px;line-height:1.25}

/* Album cards: show the creator with a small avatar next to the nickname. */
.album-creator-line{display:flex;align-items:center;gap:7px;min-width:0}
.album-creator-line small{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.album-creator-avatar{width:24px!important;height:24px!important;flex:0 0 24px!important;border-radius:7px!important;font-size:10px}

/* Board goals: title stays left; type and due date form a separate right-aligned meta column. */
.board-goal-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:12px}
.board-goal-heading>b{min-width:0;overflow-wrap:anywhere}
.board-goal-heading>small{color:var(--muted);font-size:11px;text-align:right;white-space:nowrap}

@media(max-width:1050px){.task-view-layout{grid-template-columns:1fr}.album-photo-view{grid-template-columns:1fr}}
@media(max-width:650px){.calendar-toolbar{align-items:initial!important;flex-direction:initial!important}.calendar-toolbar-stack{width:100%;align-items:center}.calendar-switch{grid-template-columns:34px minmax(0,1fr) 34px;width:min(100%,320px)}.calendar-switch h2{white-space:normal}.board-goal-heading{grid-template-columns:minmax(0,1fr) auto;gap:8px}.board-goal-heading>small{font-size:10px}}

/* v0.1.29 — unified controls, compact action menus, task layout and goal slider */
/* All standard buttons use the same geometry as the Notes “Новая заметка” button. */
.btn,.btn.small{padding:7px 10px;font-size:12px;line-height:1.25;min-height:31px;font-family:inherit}
.btn.primary{padding:7px 10px;font-size:12px;line-height:1.25;min-height:31px}

/* Action menus share the compact comment “Еще” visual language. */
.feed-post-menu,.task-more-menu,.goal-view-menu,.message-actions{min-width:118px!important;padding:3px!important;border-radius:9px!important;box-shadow:0 10px 24px rgba(30,36,48,.13)!important}
.feed-post-menu button,.task-more-menu button,.goal-view-menu button,.message-actions button{padding:5px 7px!important;border-radius:6px!important;font-size:11px!important;line-height:1.25!important}
.profile-menu{padding:3px;border-radius:9px;box-shadow:0 10px 24px rgba(30,36,48,.13)}
.profile-menu a{padding:6px 8px;border-radius:6px;font-size:11px;line-height:1.25}

/* Task view: actions stay at the bottom opposite the comment composer on short tasks. */
.task-view-main{display:flex;flex-direction:column;min-height:0}
.task-view-bottom-actions{margin-top:auto;padding-top:16px;flex:0 0 auto}

/* Emoji controls for comments and textarea fields. */
.comment-emoji-trigger{width:31px;height:31px;min-width:31px;border:1px solid #d9dde3;background:#fff;border-radius:9px;display:inline-grid;place-items:center;padding:0;cursor:pointer;font-size:16px;line-height:1}
.comment-emoji-trigger:hover{background:#f3f5f8;border-color:#d5dae3}
.entity-comment-form-foot .comment-emoji-trigger{margin-left:auto}
.entity-comment-form-foot .comment-emoji-trigger+button[type="submit"]{margin-left:0}
.textarea-with-action{align-items:flex-start}
.textarea-with-action textarea{flex:1;min-width:0}
.textarea-with-action .field-icon-btn{flex:0 0 40px}

/* Goal progress can be changed by slider or exact value. */
.goal-progress-control{display:grid;gap:8px;width:min(520px,100%)}
.goal-progress-range-row{display:flex;align-items:center;gap:10px}
.goal-progress-range{width:100%;accent-color:var(--accent);cursor:pointer}
.goal-progress-range:disabled{cursor:not-allowed;opacity:.55}
.goal-progress-fields-only label{width:min(320px,100%)}

/* Family management modals moved to the Family page. */
.family-manage-modal-card{width:min(680px,calc(100vw - 24px));max-height:90vh;overflow:auto}
.family-manage-modal-card .family-manage-list{margin-top:14px}
.family-manage-modal-card .list{margin-top:12px}
.family-members-card .actions-row,.family-pets-card .actions-row{justify-content:flex-end}
#familyMembersModal .modal-card,#familyRolesModal .modal-card{transform:translateY(10px) scale(.985);opacity:.98;transition:transform .18s ease,opacity .18s ease}
#familyMembersModal.is-visible .modal-card,#familyRolesModal.is-visible .modal-card{transform:translateY(0) scale(1);opacity:1}
#familyMembersModal.is-closing,#familyRolesModal.is-closing{opacity:0!important}
#familyMembersModal.is-closing .modal-card,#familyRolesModal.is-closing .modal-card{transform:translateY(10px) scale(.985);opacity:.98}

@media(max-width:650px){.family-members-card .card-head,.family-pets-card .card-head{align-items:flex-start}.family-members-card .actions-row,.family-pets-card .actions-row{justify-content:flex-start}.goal-progress-control{width:100%}}
/* Final v0.1.29 alignment refinements. */
@media(min-width:1051px){.task-view-main{height:100%}}
.goal-progress-range{height:22px;margin:0}
.goal-progress-range::-webkit-slider-thumb{cursor:pointer}
.goal-progress-range::-moz-range-thumb{cursor:pointer}

/* v0.1.30 — birthdays, group chats and final control normalization */
/* Inline forms must never stretch their action button to the input height/width. */
.inline-form>.btn{align-self:center!important;flex:0 0 auto!important;width:auto!important;min-height:31px!important;height:31px!important;padding:7px 10px!important;font-size:12px!important;line-height:1.25!important}
#addPetSpeciesForm>.btn.primary{align-self:center!important;width:auto!important;height:31px!important;min-height:31px!important;padding:7px 10px!important;font-size:12px!important}

.nickname-link,.profile-inline-link{color:inherit;text-decoration:none}.nickname-link:hover,.profile-inline-link:hover{color:var(--accent);text-decoration:underline}
[data-profile-href]{cursor:pointer}.birthday-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:3px;font-size:.9em;line-height:1;vertical-align:1px;filter:drop-shadow(0 1px 2px rgba(239,112,45,.22))}

/* Birthday profile celebration. */
.birthday-celebration{position:relative;overflow:hidden!important;border-color:#efcf78!important;box-shadow:0 18px 44px rgba(227,166,48,.13)}
.birthday-celebration>*:not(.birthday-effects){position:relative;z-index:2}.birthday-celebration .profile-hero{padding-top:44px}
.birthday-banner{position:absolute!important;z-index:3!important;top:12px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:7px 13px;border-radius:999px;background:#fff8df;border:1px solid #f0d78e;font-size:12px;font-weight:750;box-shadow:0 5px 18px rgba(160,112,24,.09)}
.birthday-effects{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.birthday-confetti{position:absolute;left:var(--x);top:-18px;width:7px;height:12px;border-radius:2px;background:hsl(var(--h) 78% 58%);opacity:.86;animation:birthday-confetti-fall var(--dur) linear var(--delay) infinite;transform:rotate(var(--rot))}
.birthday-firework{position:absolute;left:var(--x);top:var(--y);width:5px;height:5px;border-radius:50%;background:#ffcf4e;box-shadow:0 -22px 0 #ee6b74,16px -16px 0 #6f8cf5,22px 0 0 #61bd85,16px 16px 0 #f2a84c,0 22px 0 #9a72dc,-16px 16px 0 #ee6b74,-22px 0 0 #6f8cf5,-16px -16px 0 #61bd85;animation:birthday-firework-pop 1.8s ease-out var(--delay) infinite;opacity:0}
.birthday-decoration{position:absolute!important;z-index:2!important;font-size:30px;pointer-events:none}.birthday-decoration.left{left:14px;top:12px;transform:rotate(-12deg)}.birthday-decoration.right{right:18px;top:15px;transform:rotate(12deg)}
@keyframes birthday-confetti-fall{0%{transform:translateY(-20px) rotate(var(--rot));opacity:0}8%{opacity:.9}100%{transform:translateY(760px) rotate(calc(var(--rot) + 540deg));opacity:.2}}
@keyframes birthday-firework-pop{0%,16%{transform:scale(.2);opacity:0}28%{opacity:.95}52%{transform:scale(1);opacity:.82}74%,100%{transform:scale(1.25);opacity:0}}
@media(prefers-reduced-motion:reduce){.birthday-confetti,.birthday-firework{animation:none}.birthday-confetti{display:none}}

/* Messenger group chats. */
.chat-contacts-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.chat-contacts-head .chat-contacts-title{margin:0}.chat-contacts-head .btn{flex:0 0 auto}
.chat-contact{justify-content:space-between}.chat-contact-main{display:flex;align-items:center;gap:9px;min-width:0}.chat-contact-name-link{display:inline-flex;align-items:center;color:inherit;text-decoration:none;min-width:0}.chat-contact-name-link.is-link:hover{color:var(--accent);text-decoration:underline}.chat-header-menu-btn{width:31px;height:31px;border:1px solid #e1e4e9;background:#fff;border-radius:9px;cursor:pointer;font-size:18px;line-height:1}.chat-header-menu-btn:hover{background:#f3f5f8}.chat-group-mark{font-size:10px;margin-left:5px;opacity:.72}.chat-chip-time{font-size:9px!important;align-self:flex-start;margin-top:2px!important}.chat-list-loading,.chat-list-empty{color:var(--muted);font-size:12px;padding:12px 7px}.message-author{display:inline-flex;align-items:center;color:#3e55b8;font-weight:750;font-size:11px;margin:0 28px 3px 0;text-decoration:none}.message-author:hover{text-decoration:underline}
.chat-group-modal{width:min(620px,calc(100vw - 24px))}.chat-group-modal h2{margin:0 40px 18px 0}.form-section-title{display:block;margin-bottom:8px;font-size:12px}.chat-group-member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:260px;overflow:auto}.chat-group-member-option{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px!important;padding:8px!important;border:1px solid var(--line);border-radius:10px;background:#fafafa;font-weight:500!important;cursor:pointer}.chat-group-member-option input{width:auto!important;flex:0 0 auto}.chat-group-member-option>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-group-settings-section{padding:13px 0;border-top:1px solid var(--line)}.chat-group-settings-section:first-of-type{border-top:0;padding-top:0}.chat-group-settings-section h3{font-size:13px;margin:0 0 10px}.chat-group-avatar-editor{display:flex;align-items:center;gap:12px}.chat-group-avatar-editor>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chat-group-current-members{display:grid;gap:5px}.chat-group-member-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 8px;border-radius:9px;color:inherit;text-decoration:none}.chat-group-member-row:hover{background:#f5f6f8}.chat-group-member-row small{color:var(--muted);font-size:10px}

@media(max-width:650px){.inline-form>.btn,#addPetSpeciesForm>.btn.primary{align-self:flex-start!important}.birthday-celebration .profile-hero{padding-top:50px}.birthday-decoration{font-size:24px}.chat-group-member-grid{grid-template-columns:1fr}.chat-group-avatar-editor{align-items:flex-start}.chat-group-avatar-editor>div{display:grid}.chat-contacts-head{align-items:center}}

/* v0.1.31 — notification cards, messenger spacing, group controls and context menus */
.message.theirs:not(.system-message){padding-left:clamp(24px,7vw,92px)}
.message.mine:not(.system-message){padding-right:clamp(24px,7vw,92px)}
.message-actions.is-context-menu{position:fixed!important;right:auto!important;bottom:auto!important;z-index:160!important}
.message-action-icon svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.system-message{justify-content:center!important;padding:2px 0!important}
.system-message-pill{max-width:min(78%,620px);padding:5px 10px;border-radius:999px;background:rgba(83,91,104,.78);color:#fff;font-size:11px;line-height:1.35;text-align:center;box-shadow:0 2px 8px rgba(25,30,40,.08)}
.chat-group-action-btn{flex:0 0 auto;white-space:nowrap}
.chat-group-avatar-editor{align-items:center!important}
.chat-group-avatar-editor>.chat-group-avatar-wrap{display:inline-grid!important;align-items:initial!important;gap:0!important;flex:0 0 auto}
.chat-group-avatar-wrap .avatar{width:64px;height:64px}
.chat-group-avatar-editor>small{max-width:310px;line-height:1.45}
.chat-group-member-row{grid-template-columns:minmax(0,1fr) auto!important}
.chat-group-member-profile{display:flex;align-items:center;gap:8px;min-width:0;color:inherit;text-decoration:none}
.chat-group-member-profile:hover span:last-child{color:var(--accent);text-decoration:underline}
.chat-group-member-profile>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-group-remove-btn{justify-self:end}
@media(max-width:650px){.message.theirs:not(.system-message){padding-left:10px}.message.mine:not(.system-message){padding-right:10px}.system-message-pill{max-width:88%}.chat-group-avatar-editor{align-items:flex-start!important}.chat-group-avatar-editor>small{max-width:230px}.chat-group-member-row{gap:6px}.chat-group-remove-btn{padding-left:8px!important;padding-right:8px!important}}

/* v0.1.32 */
/* Group chat controls */
.chat-list-tools{display:grid;gap:8px;padding:0 0 10px}.chat-list-tools input[type="search"]{width:100%;height:34px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font:inherit;font-size:12px;background:#fff;outline:0}.chat-list-tools input[type="search"]:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.chat-show-all-toggle{justify-content:flex-start}.group-add-members-actions{margin-top:10px}.chat-group-name-line{display:flex;align-items:center;gap:7px;min-height:34px}.chat-group-name-line strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-group-name-edit{display:flex;align-items:center;gap:6px;margin-top:6px}.chat-group-name-edit input{flex:1;min-width:0}.chat-group-danger{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
/* Long task descriptions scroll inside the task while bottom actions stay put. */
.task-view-main{overflow-y:auto;min-height:0;padding-right:4px}.task-description-section{height:auto!important;min-height:0!important;flex:0 0 auto!important}.task-description-view{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;overflow-wrap:anywhere;word-break:break-word;white-space:normal}.task-view-bottom-actions{position:sticky!important;bottom:0;z-index:12;background:#fff;border-top:1px solid var(--line);padding:10px 0 2px;margin-top:auto;box-shadow:0 -8px 14px rgba(255,255,255,.92)}
/* Birthdays in calendar */
.calendar-item.birthday{background:#fff5df;border-color:#f2d59e}.calendar-agenda-row.birthday{background:#fff9ed}.calendar-item.birthday span,.calendar-agenda-row.birthday>span{font-size:13px}
/* Center glyphs in square/round icon buttons, including photo viewer arrows and modal close. */
.album-photo-nav,.album-fullscreen-nav,.modal-close,.image-viewer-close,.album-fullscreen-close{display:grid!important;place-items:center!important;padding:0!important;line-height:1!important;text-align:center!important}
.album-photo-nav,.album-fullscreen-nav{font-family:Arial,sans-serif!important}
/* Awards */
.family-awards-card{grid-column:span 2}.family-award-create{display:flex;gap:8px;align-items:flex-end;margin:12px 0}.family-award-create label{flex:1}.family-award-list{display:grid;gap:9px}.family-award-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:13px}.award-icon-wrap{position:relative;width:48px;height:48px}.award-icon{width:48px;height:48px;border-radius:13px;background:#f3f5f8;display:grid;place-items:center;font-size:25px;overflow:hidden}.award-icon img{width:100%;height:100%;object-fit:cover}.award-icon-edit{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;padding:0;font-size:12px}.family-award-row-actions{display:flex;gap:6px;align-items:center}.profile-award-give-row{display:flex;margin-top:14px}.profile-awards-card{margin-top:16px}.profile-awards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.profile-award-item{border:1px solid var(--line);border-radius:15px;padding:12px;display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;background:#fff}.profile-award-item .award-icon{width:52px;height:52px}.profile-award-copy{min-width:0}.profile-award-copy h3{margin:0 0 5px;font-size:14px}.profile-award-copy p{margin:0 0 6px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.profile-award-copy small{color:var(--muted);font-size:10px}.award-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px}.award-picker label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:9px;cursor:pointer}.award-picker input{width:auto}.award-picker .award-icon{width:36px;height:36px;border-radius:10px;font-size:20px}
@media(max-width:650px){.family-awards-card{grid-column:auto}.family-award-create{display:grid}.family-award-row{grid-template-columns:42px minmax(0,1fr)}.family-award-row-actions{grid-column:2;justify-content:flex-start}.award-icon-wrap,.award-icon{width:42px;height:42px}}
#awardGiveModal .modal-card,#awardIconCropModal .modal-card{transform:translateY(10px) scale(.985);opacity:.98;transition:transform .18s ease,opacity .18s ease}#awardGiveModal.is-visible .modal-card,#awardIconCropModal.is-visible .modal-card{transform:translateY(0) scale(1);opacity:1}#awardGiveModal.is-closing .modal-card,#awardIconCropModal.is-closing .modal-card{transform:translateY(10px) scale(.985);opacity:.98}
#groupSettingsModal #addGroupMembers{margin-top:10px}
.album-photo-nav,.album-fullscreen-nav,.modal-close,.image-viewer-close,.album-fullscreen-close{font-size:0!important}
.album-photo-nav.prev::before,.album-fullscreen-nav.prev::before{content:'‹';font-size:34px;line-height:1;transform:translateY(-1px)}.album-photo-nav.next::before,.album-fullscreen-nav.next::before{content:'›';font-size:34px;line-height:1;transform:translateY(-1px)}.album-fullscreen-nav.prev::before,.album-fullscreen-nav.next::before{font-size:42px}.modal-close::before,.image-viewer-close::before,.album-fullscreen-close::before{content:'×';font-family:Arial,sans-serif;font-size:22px;line-height:1;transform:translateY(-1px)}.album-fullscreen-close::before{font-size:30px}
.chat-group-danger-section{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.avatar-crop-modal .modal-card{transform:translateY(10px) scale(.985);opacity:.98;transition:transform .18s ease,opacity .18s ease}.avatar-crop-modal.is-visible .modal-card{transform:translateY(0) scale(1);opacity:1}.avatar-crop-modal.is-closing .modal-card{transform:translateY(10px) scale(.985);opacity:.98}

/* v0.1.33 */
/* Messenger: keep chat list at the top and the owner-only toggle at the bottom. */
.chat-contacts-panel{grid-template-rows:auto auto minmax(0,1fr) auto!important}
.chat-list-tools{padding-bottom:8px!important}
.chat-list-footer{padding:10px 4px 2px;border-top:1px solid var(--line);background:#fff}
.chat-list-footer .chat-show-all-toggle{margin:0;min-height:24px}
/* Composer submit uses the same dimensions and typography as the standard blue buttons. */
.message-composer .send-btn{height:31px!important;min-height:31px!important;padding:7px 10px!important;border-radius:10px!important;font:inherit!important;font-size:12px!important;line-height:1.25!important;font-weight:650!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important}
.message-composer .send-btn::after{content:none!important}
/* Awards: compact list + one consistent editor modal instead of inline confirm/cancel controls. */
.family-awards-head{align-items:center}.family-awards-head .btn{flex:0 0 auto}
.family-award-list{display:grid;gap:8px;margin-top:12px}.family-award-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:#fff}.family-award-copy{min-width:0;display:grid;gap:3px}.family-award-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.family-award-copy small{font-size:10px;color:var(--muted)}.family-award-row-actions{display:flex;align-items:center;gap:7px}.family-award-row-actions form{margin:0}.family-award-row-actions .btn{white-space:nowrap}
.award-editor-modal-card{width:min(620px,100%)}.award-editor-main{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center}.award-editor-icon-column{display:grid;justify-items:start;gap:8px}.award-editor-icon-column small{line-height:1.4}.award-editor-icon-wrap{width:92px;height:92px}.award-editor-icon{width:92px!important;height:92px!important;border-radius:20px!important;font-size:42px!important}.award-editor-icon-wrap .avatar-edit-overlay{inset:auto 4px 4px auto;width:31px;height:31px;border-radius:10px;font-size:15px}.award-editor-main>label{width:100%}
#awardEditorModal .modal-card,#awardIconCropModal .modal-card{transform:translateY(10px) scale(.985);opacity:.98;transition:transform .18s ease,opacity .18s ease}#awardEditorModal.is-visible .modal-card,#awardIconCropModal.is-visible .modal-card{transform:translateY(0) scale(1);opacity:1}#awardEditorModal.is-closing .modal-card,#awardIconCropModal.is-closing .modal-card{transform:translateY(10px) scale(.985);opacity:.98}
/* Optical centering for viewer chevrons and modal close glyphs. */
.album-photo-nav.prev::before,.album-photo-nav.next::before,.album-fullscreen-nav.prev::before,.album-fullscreen-nav.next::before{transform:translateY(1px)!important}
.modal-close::before,.image-viewer-close::before,.album-fullscreen-close::before{transform:translateY(1px)!important}
@media(max-width:650px){.chat-contacts-panel{grid-template-rows:auto auto auto auto!important}.chat-list-footer{padding-top:8px}.message-composer .send-btn{height:31px!important;min-height:31px!important;width:auto!important;font-size:12px!important;padding:7px 10px!important}.family-awards-head{align-items:flex-start}.family-awards-head{display:grid!important;gap:10px}.family-awards-head .btn{justify-self:start}.family-award-row{grid-template-columns:42px minmax(0,1fr);gap:9px}.family-award-row .award-icon{width:42px;height:42px}.family-award-row-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}.award-editor-main{grid-template-columns:1fr;gap:13px}.award-editor-icon-column{justify-items:start}}
.message-composer .send-btn{border:1px solid var(--accent)!important;background:var(--accent)!important;color:#fff!important}
.message-composer .send-btn:hover{background:#405bd3!important}

/* v0.1.34 */
/* Tariff prices are numeric settings with separate monthly rates for 1/6/12-month billing. */
.admin-plan-price-form{display:grid;gap:12px}.admin-plan-price-grid{display:grid;grid-template-columns:120px repeat(3,minmax(150px,1fr)) minmax(130px,.75fr);gap:8px 10px;align-items:center}.admin-plan-price-head{font-size:11px;font-weight:700;color:var(--muted);padding:0 2px 4px}.admin-plan-price-grid>div:not(.admin-plan-price-head){display:flex;align-items:center}.admin-plan-price-grid label{display:flex;align-items:center;gap:6px;margin:0}.admin-plan-price-grid label input{min-width:0;width:100%}.admin-plan-price-grid label span{font-size:11px;color:var(--muted);white-space:nowrap}.admin-plan-price-actions{margin-top:0}.family-plan-brief{grid-template-columns:repeat(5,minmax(0,1fr))}.plan-price-options{display:grid;gap:7px}.plan-price-options>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:baseline;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff}.plan-price-options span{font-size:11px;color:var(--muted)}.plan-price-options b{font-size:12px}.plan-price-options small{grid-column:1/-1;color:var(--muted);font-size:10px;text-align:right}
/* Storage creation is opened from the list in the standard animated JS modal. */
.admin-storage-modal-card{width:min(620px,calc(100vw - 24px))}.admin-storage-modal .modal-card{transform:translateY(10px) scale(.985);opacity:.98;transition:transform .18s ease,opacity .18s ease}.admin-storage-modal.is-visible .modal-card{transform:translateY(0) scale(1);opacity:1}.admin-storage-modal.is-closing{opacity:0!important}.admin-storage-modal.is-closing .modal-card{transform:translateY(10px) scale(.985);opacity:.98}
/* Draw close icons from two centered strokes instead of relying on font glyph metrics. */
.modal-close,.image-viewer-close,.album-fullscreen-close{font-size:0!important;line-height:0!important}
.modal-close::before,.modal-close::after,.image-viewer-close::before,.image-viewer-close::after,.album-fullscreen-close::before,.album-fullscreen-close::after{content:''!important;position:absolute!important;left:50%!important;top:50%!important;width:14px!important;height:2px!important;border-radius:2px!important;background:currentColor!important;transform-origin:center!important;margin:0!important}
.modal-close::before,.image-viewer-close::before,.album-fullscreen-close::before{transform:translate(-50%,-50%) rotate(45deg)!important}.modal-close::after,.image-viewer-close::after,.album-fullscreen-close::after{transform:translate(-50%,-50%) rotate(-45deg)!important}.album-fullscreen-close::before,.album-fullscreen-close::after{width:18px!important;height:2px!important}
/* Award image edit affordance matches profile avatars: full centered hover overlay. */
.award-editor-icon-wrap .avatar-edit-overlay{inset:0!important;width:auto!important;height:auto!important;border-radius:20px!important;font-size:22px!important;display:grid!important;place-items:center!important}
.album-photo-actions{flex:0 0 auto;justify-content:flex-end}
@media(max-width:900px){.admin-plan-price-grid{grid-template-columns:100px repeat(3,minmax(130px,1fr)) minmax(120px,.75fr)}.family-plan-brief{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.admin-plan-price-grid{grid-template-columns:1fr}.admin-plan-price-head{display:none}.admin-plan-price-grid>div:not(.admin-plan-price-head){margin-top:7px}.admin-plan-price-grid label{display:grid;grid-template-columns:minmax(0,1fr) auto}.family-plan-brief{grid-template-columns:1fr 1fr}.plan-price-options>div{grid-template-columns:1fr}.plan-price-options small{text-align:left}.album-photo-caption-row{align-items:flex-start}.album-photo-actions{display:grid!important;gap:6px}}
.admin-storage-modal{opacity:0!important;transition:opacity .18s ease!important}.admin-storage-modal.is-visible{opacity:1!important}.admin-storage-modal.is-closing{opacity:0!important}


/* v0.1.35 — compact action menus, task plan note and storage descriptions */
.menu-action-icon{width:16px;height:16px;display:grid;place-items:center;flex:0 0 16px;color:#747b86}.menu-action-icon svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.entity-comment-more-menu button,.album-photo-more-menu button{display:flex!important;align-items:center;gap:7px}.entity-comment-more-menu button.danger .menu-action-icon,.album-photo-more-menu button.danger .menu-action-icon{color:var(--danger)}
.album-photo-more-wrap{position:relative}.album-photo-more-menu{position:absolute;right:0;bottom:30px;z-index:90;min-width:158px;padding:3px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 24px rgba(30,36,48,.13)}.album-photo-more-menu[hidden]{display:none!important}.album-photo-more-menu button{width:100%;border:0;background:transparent;text-align:left;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:11px;line-height:1.25}.album-photo-more-menu button:hover{background:#f3f5f8}.album-photo-more-menu button.danger{color:var(--danger)}
.task-plan-limit-note{font-size:11px;color:var(--muted);white-space:nowrap}.storage-volume-description{display:inline-block;max-width:340px;white-space:normal;line-height:1.35;margin-top:3px}
@media(max-width:650px){.task-control-right{flex-wrap:wrap}.task-plan-limit-note{width:100%;text-align:right}}

/* v0.1.39 — award tariff availability and tidy award cards. */
.award-plan-fieldset{margin:0;padding:0;border:0;display:grid;gap:8px}.award-plan-fieldset legend{padding:0;margin:0 0 2px;font-weight:650}.award-plan-options{display:flex;flex-wrap:wrap;gap:8px}.award-plan-options label{display:flex!important;align-items:center!important;gap:7px!important;min-width:92px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;font-weight:650!important;cursor:pointer}.award-plan-options input{width:auto!important;margin:0}.award-plan-pills{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}.award-plan-pills .pill{padding:3px 7px;font-size:10px}
.profile-award-item{align-items:stretch}.profile-award-item>.award-icon{align-self:start}.profile-award-copy{display:flex;flex-direction:column;min-height:52px}.profile-award-copy h3{flex:0 0 auto}.profile-award-copy p{flex:0 0 auto}.profile-award-meta{display:grid;gap:2px;margin-top:auto;padding-top:7px}.profile-award-meta small{display:block;line-height:1.3}.profile-award-giver{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* v0.1.41 — mobile messenger flow, scrollable mobile nav, stable chat refresh and uncropped feed images. */
.chat-mobile-back{display:none;width:32px;height:32px;min-width:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#59616c;padding:0;place-items:center;cursor:pointer}
.chat-mobile-back svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-chip-tail{margin-left:auto;display:grid;place-items:center;flex:0 0 auto;min-width:24px}
.mobile-nav-badge{position:absolute;top:2px;right:9px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:9px;font-weight:750;line-height:1}
.feed-post-image{min-height:0!important;display:flex!important;align-items:center;justify-content:center;align-self:start;background:#eef0f3}
.feed-post-image img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:720px!important;object-fit:contain!important}

@media(max-width:650px){
  .mobile-nav{display:flex!important;grid-template-columns:none!important;gap:2px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x proximity;justify-content:flex-start;align-items:stretch;padding:6px max(6px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-right))}
  .mobile-nav::-webkit-scrollbar{display:none}
  .mobile-nav a{position:relative!important;flex:0 0 70px;min-width:70px;scroll-snap-align:center;font-size:9px!important;padding:5px 3px!important;white-space:nowrap}
  .mobile-nav a>span:nth-child(2){max-width:64px;overflow:hidden;text-overflow:ellipsis}

  .messenger-layout{display:block!important;height:calc(100dvh - 168px)!important;min-height:0!important}
  .chat-contacts-panel{height:100%!important;min-height:0!important;padding:9px!important;grid-template-rows:auto auto minmax(0,1fr) auto!important}
  .chat-contacts-list{display:grid!important;grid-auto-flow:row!important;align-content:start!important;overflow-x:hidden!important;overflow-y:auto!important;gap:6px!important;padding-right:2px!important}
  .chat-contact-chip{width:100%!important;min-width:0!important;flex:none!important;padding:9px!important}
  .chat-shell-wide{display:none;height:100%!important;min-height:0!important;border-radius:14px}
  .messenger-page.mobile-chat-open .chat-contacts-panel{display:none!important}
  .messenger-page.mobile-chat-open .chat-shell-wide{display:grid!important}
  .chat-mobile-back{display:grid}
  .chat-contact{padding:8px 9px!important;gap:7px}
  .chat-contact-main{gap:7px!important;min-width:0}
  .chat-contact-main>div{min-width:0}
  .chat-contact-name-link{max-width:100%}
  .chat-contact-name-link b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}
  .messages{padding:11px 9px!important}
  .bubble{max-width:86%!important}
  .message-composer{padding:8px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;gap:6px!important}
  .message-composer textarea{min-width:0}
  .feed-post-images{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))!important}
  .feed-post-image img{max-height:560px!important}

  body.messenger-chat-open{overflow:hidden}
  body.messenger-chat-open .page-head,body.messenger-chat-open .flash{display:none!important}
  body.messenger-chat-open .mobile-nav{display:none!important}
  body.messenger-chat-open .main{height:100dvh;max-height:100dvh;padding:8px!important;overflow:hidden}
  body.messenger-chat-open .messenger-page,body.messenger-chat-open .messenger-layout{height:100%!important;min-height:0!important}
  body.messenger-chat-open .chat-shell-wide{height:100%!important;border-radius:14px}
}

/* v0.1.42 — mobile polish, iOS input zoom prevention, feed image viewer and smoother chat media. */
.feed-post-image[data-image-viewer-src]{width:100%;appearance:none;-webkit-appearance:none;cursor:zoom-in;color:inherit;font:inherit}
@media(max-width:650px){
  .mobile-nav{bottom:12px!important}
  .main{padding-bottom:88px}
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),textarea,select{font-size:16px!important}
}

/* v0.1.43 — stable messenger scrolling during background refresh/history loading. */
.messages{
  scroll-behavior:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}


/* v0.1.45 — date separator itself is the only sticky date element. */
.chat-date-separator{position:sticky!important;top:7px;z-index:7;box-sizing:border-box;min-width:82px;text-align:center;white-space:nowrap}
.chat-date-separator.is-sticky{position:sticky!important;top:7px!important;z-index:7!important}

/* v0.1.46 — readable calendar on smartphones without squeezed/overlapping day cells. */
@media(max-width:650px){
  .calendar-layout{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    min-width:0;
  }
  .calendar-main-card{
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    padding:12px!important;
  }
  .calendar-grid-head,
  .calendar-grid{
    grid-template-columns:repeat(7,minmax(92px,1fr))!important;
    min-width:710px;
    gap:6px!important;
  }
  .calendar-grid-head div{
    padding:6px 4px!important;
    font-size:11px!important;
  }
  .calendar-cell{
    min-width:0;
    min-height:112px!important;
    padding:8px!important;
    border-radius:12px!important;
    overflow:hidden;
  }
  .calendar-cell-head{
    margin-bottom:6px!important;
    gap:5px;
  }
  .calendar-cell-head span{
    flex:0 0 auto;
    padding:2px 6px!important;
    font-size:10px!important;
  }
  .calendar-cell-items{gap:4px!important;min-width:0}
  .calendar-item{
    min-width:0;
    padding:6px!important;
    border-radius:9px!important;
    overflow:hidden;
  }
  .calendar-item span{font-size:10px!important}
  .calendar-item b{
    min-width:0;
    font-size:11px!important;
    line-height:1.25;
    overflow:hidden;
    overflow-wrap:anywhere;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
  .calendar-more{padding-left:2px!important;font-size:10px!important}
  .calendar-sidebar-card{min-width:0}
  .calendar-sidebar-card .card-head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }
  .calendar-sidebar-card .card-head h2{margin-bottom:0!important}
  .calendar-agenda-row{min-width:0;overflow:hidden}
  .calendar-agenda-row b{overflow-wrap:anywhere}
}

/* v0.1.47 — keep every standard modal centered inside the real mobile viewport. */
@media(max-width:650px){
  .modal-backdrop:not(.image-viewer-modal){
    box-sizing:border-box!important;
    place-items:center!important;
    padding-top:max(10px,env(safe-area-inset-top))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
    padding-bottom:max(10px,env(safe-area-inset-bottom))!important;
    padding-left:max(10px,env(safe-area-inset-left))!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  .modal-backdrop:not(.image-viewer-modal)>.modal-card{
    max-width:100%!important;
    max-inline-size:100%!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    justify-self:center!important;
    align-self:center!important;
  }
}

/* v0.1.48 — compact smartphone calendar without horizontal scrolling. */
@media(max-width:650px){
  .calendar-main-card{
    overflow-x:hidden!important;
    overflow-y:visible!important;
    padding:8px!important;
  }
  .calendar-grid-head,
  .calendar-grid{
    width:100%!important;
    min-width:0!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:2px!important;
  }
  .calendar-grid-head div{
    min-width:0!important;
    padding:4px 0!important;
    font-size:9px!important;
    line-height:1!important;
  }
  .calendar-cell{
    min-width:0!important;
    min-height:76px!important;
    padding:4px 3px!important;
    border-radius:8px!important;
  }
  .calendar-cell-head{
    min-width:0;
    margin-bottom:3px!important;
    gap:2px!important;
  }
  .calendar-cell-head>b{
    font-size:11px!important;
    line-height:1!important;
  }
  .calendar-cell-head span{
    padding:1px 3px!important;
    font-size:8px!important;
    line-height:1.15!important;
  }
  .calendar-cell-items{
    gap:2px!important;
  }
  .calendar-item{
    min-width:0!important;
    padding:3px 2px!important;
    border-radius:5px!important;
    border-left-width:2px!important;
  }
  .calendar-item:nth-child(n+3){display:none!important}
  .calendar-item span{display:none!important}
  .calendar-item b{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:8px!important;
    line-height:1.15!important;
  }
  .calendar-more{display:none!important}
}

/* v0.1.50 — public landing, email verification and registration security */
.registration-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.captcha-row{display:flex;align-items:center;gap:9px;margin:7px 0}.captcha-image{display:block;width:210px;max-width:calc(100% - 48px);height:72px;object-fit:cover;border:1px solid var(--line);border-radius:12px;background:#f6f8fc}.captcha-refresh{width:40px;min-width:40px;height:40px;padding:0;display:grid;place-items:center;font-size:20px}.verify-email-card{text-align:left}.verify-email-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:#eef4ff;color:var(--accent);font-size:25px;margin:0 0 18px}.verify-email-actions{text-align:center;margin-top:18px}.verify-email-actions a{color:var(--muted)}
.landing-page{background:#fff;color:#202532;min-height:100vh}.landing-shell{width:min(1160px,calc(100% - 40px));margin:0 auto}.landing-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);border-bottom:1px solid rgba(225,228,234,.85);backdrop-filter:blur(16px)}.landing-nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}.landing-brand{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-size:16px}.landing-brand .logo{width:36px;height:36px}.landing-nav nav{display:flex;align-items:center;gap:20px}.landing-nav nav>a:not(.btn){color:#596170;text-decoration:none;font-size:14px;font-weight:650}.landing-nav .btn{min-height:36px}.landing-hero{overflow:hidden;background:radial-gradient(circle at 75% 30%,#e7f0ff 0,rgba(231,240,255,0) 38%),linear-gradient(180deg,#fbfdff 0,#f7f9fc 100%);border-bottom:1px solid #edf0f4}.landing-hero-grid{min-height:650px;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);align-items:center;gap:64px;padding:72px 0}.landing-kicker,.landing-section-head>span{display:inline-flex;align-items:center;gap:7px;color:var(--accent);font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase}.landing-hero h1{font-size:clamp(42px,5vw,68px);line-height:1.03;letter-spacing:-.045em;margin:15px 0 20px;max-width:720px}.landing-hero h1 span{color:var(--accent)}.landing-hero-copy>p{max-width:650px;color:#616a78;font-size:18px;line-height:1.65;margin:0}.landing-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}.landing-main-btn{min-height:43px;padding-left:18px;padding-right:18px}.landing-trust{display:flex;flex-wrap:wrap;gap:18px;margin-top:24px;color:#727b88;font-size:13px}.landing-visual{position:relative;min-height:450px}.landing-preview-card{position:absolute;background:#fff;border:1px solid #e7ebf1;border-radius:20px;box-shadow:0 26px 70px rgba(42,69,112,.13)}.preview-main{left:2%;right:8%;top:50px;padding:22px;transform:rotate(-1deg)}.preview-head{display:flex;align-items:center;gap:11px;padding-bottom:17px;border-bottom:1px solid #eef0f4}.preview-head div{display:grid;gap:2px}.preview-head small,.preview-row small{color:#8b93a0}.preview-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#eaf1ff;color:var(--accent);font-weight:900}.preview-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid #f0f2f5}.preview-row:last-child{border-bottom:0}.preview-row>div{display:grid;gap:3px}.preview-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f3f6fb;color:var(--accent);font-size:18px}.preview-count{min-width:25px;height:25px;display:grid;place-items:center;border-radius:999px;background:#edf3ff;color:var(--accent);font-size:12px;font-weight:800}.preview-chat{right:-4%;bottom:0;width:290px;padding:18px;transform:rotate(2deg)}.preview-message{width:max-content;max-width:88%;padding:9px 12px;border-radius:13px;margin-top:10px;font-size:13px}.preview-message.theirs{background:#f1f3f6}.preview-message.mine{background:#dfeaff;color:#234b8a;margin-left:auto}.preview-calendar{left:-5%;bottom:20px;padding:13px 16px;display:grid;grid-template-columns:auto auto;align-items:center;gap:1px 10px;transform:rotate(-3deg)}.preview-calendar span{grid-column:1/-1;color:#7d8694;font-size:11px;text-transform:uppercase;font-weight:800}.preview-calendar b{font-size:30px;color:var(--accent)}.preview-calendar small{max-width:100px;line-height:1.2}.landing-section{padding:88px 0}.landing-section-head{max-width:720px;margin:0 auto 38px;text-align:center}.landing-section-head h2,.landing-security h2{font-size:clamp(30px,4vw,44px);line-height:1.12;letter-spacing:-.035em;margin:10px 0 12px}.landing-section-head p,.landing-security p{color:#6b7482;line-height:1.65;margin:0}.landing-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.landing-feature{padding:22px;border:1px solid #e9ecf1;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(36,42,58,.035)}.landing-feature-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eef4ff;color:var(--accent);margin-bottom:17px}.landing-feature-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.landing-feature h3{margin:0 0 8px;font-size:17px}.landing-feature p{margin:0;color:#737c89;line-height:1.55;font-size:14px}.landing-security{background:#202b3c;color:#fff}.landing-security-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:70px}.landing-security p{color:#b7c2d1}.landing-security-points{display:grid;gap:10px}.landing-security-points>div{display:flex;gap:15px;padding:17px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.09);border-radius:15px}.landing-security-points>div>b{color:#75a6ff;font-size:13px;padding-top:2px}.landing-security-points span{display:grid;gap:5px}.landing-security-points small{color:#aeb9c8;line-height:1.45}.landing-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:920px;margin:0 auto}.landing-plan{padding:24px;border:1px solid #e6eaf0;border-radius:20px;background:#fff}.landing-plan.plus{border-color:#bfd1f4;box-shadow:0 18px 45px rgba(47,111,237,.08)}.landing-plan h3{font-size:24px;margin:13px 0 6px}.landing-plan-price{color:#687180;font-weight:700;margin-bottom:18px}.landing-plan ul{list-style:none;padding:0;margin:0;display:grid;gap:10px;color:#5f6876;font-size:14px}.landing-plan li:before{content:'✓';color:var(--accent);font-weight:900;margin-right:8px}.landing-cta{padding:58px 0;background:#f2f6fd;border-top:1px solid #e6edf8}.landing-cta .landing-shell{display:flex;align-items:center;justify-content:space-between;gap:28px}.landing-cta h2{font-size:30px;margin:0 0 8px;letter-spacing:-.025em}.landing-cta p{margin:0;color:#6b7482}.landing-footer{padding:26px 0;border-top:1px solid #e9ecf1;color:#7c8592}.landing-footer .landing-shell{display:flex;align-items:center;justify-content:space-between;gap:20px}.landing-footer .landing-brand{font-size:14px}.landing-footer .landing-brand .logo{width:30px;height:30px}
@media(max-width:900px){.landing-hero-grid{grid-template-columns:1fr;min-height:auto;padding:62px 0 80px}.landing-visual{max-width:620px;width:100%;margin:0 auto;min-height:420px}.landing-features{grid-template-columns:repeat(2,minmax(0,1fr))}.landing-security-grid{grid-template-columns:1fr;gap:38px}.landing-plans{grid-template-columns:1fr;max-width:500px}.landing-nav nav>a:not(.btn){display:none}}
@media(max-width:650px){.landing-shell{width:min(100% - 24px,1160px)}.landing-nav{min-height:62px}.landing-nav nav{gap:7px}.landing-nav .btn{padding-left:10px;padding-right:10px}.landing-brand b{font-size:14px}.landing-hero-grid{padding:45px 0 64px;gap:35px}.landing-hero h1{font-size:39px}.landing-hero-copy>p{font-size:16px}.landing-trust{display:grid;gap:8px}.landing-visual{min-height:370px}.preview-main{left:0;right:0;top:25px;padding:16px}.preview-chat{right:0;width:245px}.preview-calendar{left:0;bottom:8px}.landing-section{padding:62px 0}.landing-features{grid-template-columns:1fr}.landing-feature{padding:18px}.landing-cta .landing-shell,.landing-footer .landing-shell{align-items:flex-start;flex-direction:column}.landing-cta h2{font-size:27px}.captcha-image{height:66px}}

/* v0.1.52 — instant mobile messenger back navigation and stable chat opening position. */
@media(max-width:650px){
  .messenger-layout{position:relative!important}
  .chat-shell-wide{display:grid!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
  .messenger-page.mobile-chat-open .chat-contacts-panel{display:grid!important;visibility:visible!important;pointer-events:none!important}
  .messenger-page.mobile-chat-open .chat-shell-wide{position:fixed!important;z-index:120!important;top:max(8px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important;bottom:max(8px,env(safe-area-inset-bottom))!important;left:max(8px,env(safe-area-inset-left))!important;width:auto!important;height:auto!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;background:#fff}
  body.messenger-chat-open .page-head{display:flex!important}
  body.messenger-chat-open .flash{display:block!important}
  body.messenger-chat-open .mobile-nav{display:flex!important;visibility:hidden!important;pointer-events:none!important}
  body.messenger-chat-open .main{height:auto!important;max-height:none!important;padding:20px 12px 88px!important;overflow:visible!important}
  body.messenger-chat-open .messenger-page{height:auto!important;min-height:0!important}
  body.messenger-chat-open .messenger-layout{height:calc(100dvh - 168px)!important;min-height:0!important}
}

/* v0.1.53 — feedback center, mobile profile access and task-modal horizontal lock. */
.mobile-profile-wrap{display:none;position:relative;flex:0 0 auto}.mobile-profile-btn{border:1px solid var(--line);background:#fff;border-radius:12px;padding:5px 7px 5px 5px;display:flex;align-items:center;gap:6px;max-width:150px;cursor:pointer;box-shadow:0 4px 14px rgba(36,42,58,.04)}.mobile-profile-btn>span:last-child{font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.mobile-profile-menu{position:absolute;z-index:180;right:0;top:calc(100% + 7px);width:170px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:4px;box-shadow:0 14px 32px rgba(30,36,48,.16);opacity:0;transform:translateY(-4px);pointer-events:none;transition:.15s ease}.mobile-profile-menu.show{opacity:1;transform:none;pointer-events:auto}.mobile-profile-menu a{display:block;padding:8px 9px;border-radius:7px;font-size:12px}.mobile-profile-menu a:hover{background:var(--hover)}

.feedback-page{width:min(100%,980px);margin:0 auto}.feedback-ticket-list,.feedback-admin-list{display:grid;gap:8px}.feedback-ticket-card,.feedback-admin-ticket{width:100%;border:1px solid var(--line);background:#fff;border-radius:13px;padding:11px 12px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;transition:.15s}.feedback-ticket-card:hover,.feedback-admin-ticket:hover{background:#fafbfc;border-color:#d7dbe2}.feedback-ticket-main{display:grid;gap:4px;min-width:0;flex:1}.feedback-ticket-title-row{display:flex;align-items:center;gap:8px;min-width:0}.feedback-ticket-title-row b{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feedback-ticket-title-row>span:not(.feedback-fire){font-size:11px;color:var(--muted);white-space:nowrap}.feedback-ticket-preview{display:block;color:#59616c;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feedback-ticket-main small{color:var(--muted);font-size:10px}.feedback-status{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:750;background:#eef0f4;color:#606873}.feedback-status.new{background:#eef2ff;color:#405bc6}.feedback-status.completed{background:#edf7ef;color:#2d7a44}.feedback-status.deferred{background:#fff4de;color:#9a6500}.feedback-status.rejected{background:#f9e9ea;color:#a33d45}.feedback-fire,.feedback-admin-fire{filter:grayscale(1);opacity:.35;font-size:17px;line-height:1}.feedback-fire.active,.feedback-admin-fire.active{filter:none;opacity:1}
.feedback-create-card{width:min(680px,calc(100vw - 24px));max-height:92vh;overflow:auto}.feedback-view-card{width:min(760px,calc(100vw - 24px));max-height:92vh;overflow:auto}.feedback-attach-hint{margin:5px 0 10px;font-size:11px}.feedback-attachment-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.feedback-attachment-tile{position:relative;aspect-ratio:1;border:1px dashed #cfd4dc;border-radius:12px;background:#fafbfc;display:grid;place-items:center;align-content:center;gap:3px;overflow:hidden;cursor:pointer;color:var(--muted)}.feedback-attachment-tile:hover{border-color:#aeb9ee;background:#f7f8ff}.feedback-attachment-tile.has-file{border-style:solid}.feedback-attachment-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.feedback-tile-plus{font-size:23px;line-height:1}.feedback-tile-text{font-size:10px}.feedback-tile-meta{position:absolute;left:4px;bottom:4px;padding:2px 4px;border-radius:5px;background:rgba(20,24,32,.68);color:#fff;font-size:8px;z-index:2}.feedback-tile-remove{position:absolute;right:4px;top:4px;width:20px;height:20px;border-radius:7px;background:rgba(255,255,255,.92);color:#b94f55;display:grid;place-items:center;font-weight:800;font-size:14px;z-index:3}.feedback-heic-icon{font-size:28px}.feedback-view-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-right:38px;margin-bottom:14px}.feedback-view-head h2{margin:0 0 4px}.feedback-view-head small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.feedback-view-message{padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fafbfc;line-height:1.55;overflow-wrap:anywhere}.feedback-view-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:12px}.feedback-view-image{display:block;aspect-ratio:4/3;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#eef0f3}.feedback-view-image img{width:100%;height:100%;object-fit:cover;display:block}
.feedback-admin-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}.feedback-status-tabs{margin:0!important}.feedback-status-tabs a{border:0;background:transparent;padding:7px 9px;border-radius:9px;color:var(--muted);font-size:12px}.feedback-status-tabs a.active{background:#f0f1f3;color:var(--text);font-weight:650}.feedback-admin-ticket{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.feedback-admin-fire{width:24px;text-align:center}.feedback-admin-view-card{width:min(850px,calc(100vw - 24px));max-height:94vh;overflow:auto}.feedback-admin-controls{display:grid;grid-template-columns:minmax(180px,260px) auto 1fr;align-items:end;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.feedback-admin-controls label{display:grid;gap:5px}.feedback-important-control{align-content:end}.feedback-important-toggle{width:42px;height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;filter:grayscale(1);opacity:.45;font-size:21px;cursor:pointer}.feedback-important-toggle.active{filter:none;opacity:1;background:#fff7e8;border-color:#f2d39a}.feedback-admin-controls .modal-actions{grid-column:1/-1;margin-top:0}.feedback-topics-card{width:min(820px,calc(100vw - 24px));max-height:92vh;overflow:auto}.feedback-topic-add{display:grid;grid-template-columns:minmax(0,1fr) 95px auto;gap:8px;margin:12px 0}.feedback-topic-add input,.feedback-topic-row input{border:1px solid #d8dce2;border-radius:9px;padding:8px 9px;min-width:0}.feedback-topic-list{display:grid;gap:7px}.feedback-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 82px auto auto auto;align-items:center;gap:7px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}.feedback-topic-active{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}.feedback-topic-active input{width:auto;padding:0}.feedback-modal .modal-card{transform:translateY(8px) scale(.985);transition:transform .18s ease}.feedback-modal.is-visible .modal-card{transform:translateY(0) scale(1)}.feedback-modal.is-closing .modal-card{transform:translateY(10px) scale(.985)}

@media(max-width:650px){
  .page-head{align-items:center;gap:8px}.page-head>div:first-child{min-width:0;flex:1}.page-head h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-profile-wrap{display:block}.mobile-profile-btn .avatar{width:30px;height:30px;flex:0 0 30px}.mobile-profile-btn{max-width:138px}.mobile-profile-menu{width:164px}
  #taskModal.task-modal-backdrop{overflow-x:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
  #taskModal>.task-modal-card{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
  #taskModal .task-view-layout,#taskModal .task-view-main,#taskModal .task-comments-panel,#taskModal .task-edit-pane,#taskModal .two-col-form,#taskModal .checklists-editor,#taskModal .checklist-editor-box,#taskModal .entity-attachment-editor{min-width:0!important;max-width:100%!important;width:100%!important}
  #taskModal input,#taskModal textarea,#taskModal select,#taskModal .input-with-action,#taskModal .bb-editor{max-width:100%!important;min-width:0!important}
  #taskModal .bb-toolbar{max-width:100%!important;overflow:hidden!important;flex-wrap:wrap!important}
  #taskModal .task-meta-grid,#taskModal .task-view-checklists{min-width:0!important}
  .feedback-ticket-card{align-items:flex-start}.feedback-ticket-title-row{display:grid;gap:3px}.feedback-ticket-title-row>span:not(.feedback-fire){white-space:normal}.feedback-status{flex:0 0 auto}.feedback-attachment-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.feedback-create-card,.feedback-view-card,.feedback-admin-view-card,.feedback-topics-card{width:100%!important;max-width:100%!important}.feedback-admin-ticket{grid-template-columns:auto minmax(0,1fr);align-items:start}.feedback-admin-ticket>.feedback-status{grid-column:2;justify-self:start}.feedback-admin-controls{grid-template-columns:1fr auto}.feedback-admin-controls>.ajax-status{grid-column:1/-1}.feedback-topic-add{grid-template-columns:minmax(0,1fr) 74px}.feedback-topic-add .btn{grid-column:1/-1}.feedback-topic-row{grid-template-columns:minmax(0,1fr) 70px}.feedback-topic-row .feedback-topic-active,.feedback-topic-row .btn{grid-column:auto}.feedback-topic-row .btn{font-size:10px;padding-left:7px;padding-right:7px}
}

/* v0.1.54 — feedback polish, storage transfer, tiered awards and mobile chrome. */
.admin-feedback-nav{position:relative}.admin-feedback-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e5484d;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800;line-height:1;box-shadow:0 0 0 2px #fff}
.feedback-importance-select{height:31px!important;min-height:31px!important;padding:5px 28px 5px 9px!important;border-radius:9px!important;font-size:11px!important;line-height:1.2!important}
.feedback-admin-ticket{grid-template-columns:auto auto minmax(0,1fr) auto!important;position:relative}.feedback-unread-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);opacity:0;transform:scale(.7);transition:.15s}.feedback-admin-ticket.is-unread{background:#f8faff;border-color:#cfd8ff}.feedback-admin-ticket.is-unread .feedback-unread-dot{opacity:1;transform:scale(1)}.feedback-admin-ticket.is-unread .feedback-ticket-title-row b{font-weight:800}.feedback-admin-ticket .feedback-ticket-preview{white-space:pre-line!important;overflow:hidden;text-overflow:clip!important;display:block!important;line-height:1.45;max-height:4.35em}
.feedback-admin-view-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-right:38px;margin-bottom:14px}.feedback-admin-view-top>div:first-child{min-width:0}.feedback-admin-view-top h2{margin:0 0 4px;font-size:19px}.feedback-admin-view-top small{display:block;color:var(--muted);font-size:10px;line-height:1.35}.feedback-admin-controls{display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;gap:7px!important;margin:0!important;padding:0!important;border:0!important;flex:0 0 auto;flex-wrap:wrap}.feedback-admin-controls label{display:grid;gap:3px!important;font-size:10px;color:var(--muted)}.feedback-admin-controls select{height:31px!important;min-height:31px!important;padding:5px 28px 5px 8px!important;font-size:11px!important}.feedback-admin-controls>.btn{height:31px!important;min-height:31px!important;padding:6px 10px!important;font-size:11px!important}.feedback-important-control{display:grid!important;justify-items:center!important}.feedback-important-toggle{width:31px!important;height:31px!important;border-radius:9px!important;font-size:16px!important;padding:0!important}.feedback-admin-controls .ajax-status{flex-basis:100%;text-align:right;margin:0!important;min-height:0}.feedback-admin-view-card .feedback-view-images{grid-template-columns:repeat(auto-fill,minmax(74px,86px))!important;justify-content:start;gap:7px!important}.feedback-admin-view-card .feedback-view-image{width:86px;max-width:100%;aspect-ratio:1!important;border-radius:9px!important}.feedback-admin-view-card .feedback-view-image img{object-fit:cover}
.storage-transfer-summary{padding:10px 11px;border-radius:10px;background:#f5f6f8;border:1px solid var(--line);font-size:12px;line-height:1.4}.storage-transfer-summary.success{background:#eef8f1;border-color:#cfe8d6;color:#2f6d43}.storage-transfer-summary.error{background:#fff1f1;border-color:#f0cece;color:#a33}
.award-tier-group{display:grid;gap:7px;margin-top:10px}.award-tier-group:first-child{margin-top:0}.award-tier-head{display:flex;align-items:center;gap:8px}.award-tier-head small{font-size:10px;color:var(--muted)}.award-picker-tier{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px}.award-picker-option{position:relative;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:9px;cursor:pointer;background:#fff}.award-picker-option input{width:auto;flex:0 0 auto}.award-picker-option.is-locked{opacity:.52;background:#f7f7f8;cursor:not-allowed}.award-picker-option.is-locked input{pointer-events:none}.award-picker-option .award-lock{margin-left:auto;font-size:11px}.award-tier-empty{font-size:11px;padding:4px 0}.award-picker{display:block!important}.award-picker-tier .award-icon{width:36px;height:36px;border-radius:10px;flex:0 0 auto}.award-picker-tier .award-icon img{width:100%;height:100%;object-fit:contain}
@media(max-width:650px){
  .mobile-nav{bottom:18px!important;padding-top:7px!important;padding-bottom:calc(7px + env(safe-area-inset-bottom))!important}
  .mobile-nav a{flex-basis:74px!important;min-width:74px!important;font-size:9.5px!important;padding:6px 3px!important}
  .mobile-icon{height:23px!important}.mobile-icon svg{width:22px!important;height:22px!important}
  .main{padding-bottom:96px!important}
  .mobile-profile-wrap{display:block!important;position:fixed!important;top:max(8px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;z-index:90!important}
  .mobile-profile-menu{position:absolute!important;right:0!important;top:calc(100% + 7px)!important}
  .page-head{padding-right:146px!important;min-height:43px}
  .feedback-admin-ticket{grid-template-columns:auto auto minmax(0,1fr)!important}.feedback-admin-ticket>.feedback-status{grid-column:3!important;justify-self:start}.feedback-admin-view-top{display:grid;grid-template-columns:1fr;padding-right:38px;gap:10px}.feedback-admin-controls{justify-content:flex-start!important}.feedback-admin-controls .ajax-status{text-align:left}.feedback-admin-view-card .feedback-view-images{grid-template-columns:repeat(4,minmax(0,1fr))!important}.feedback-admin-view-card .feedback-view-image{width:auto}
  .award-picker-tier{grid-template-columns:1fr 1fr}.award-picker-option{min-width:0}.award-picker-option>span:not(.award-icon):not(.award-lock){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* v0.1.55 — messenger replies, reactions, pins, polls, search and tariff storage controls. */
.admin-plan-price-grid{grid-template-columns:120px repeat(3,minmax(145px,1fr)) minmax(120px,.72fr) minmax(135px,.8fr)}

#attachmentModal,#pollCreateModal,#messageEditModal,#groupCreateModal,#groupSettingsModal,#groupAvatarCropModal{z-index:220}
.chat-contact-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}.chat-header-menu-btn{display:grid;place-items:center;padding:0;color:#626a76}.chat-header-menu-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chat-shell-wide:not(.chat-shell-idle){grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto auto!important}.chat-shell-wide:not(.chat-shell-idle)>#chatContact{grid-row:1}.chat-shell-wide:not(.chat-shell-idle)>#chatMessageSearch{grid-row:2}.chat-shell-wide:not(.chat-shell-idle)>#chatPinnedBar{grid-row:3}.chat-shell-wide:not(.chat-shell-idle)>#chatMessagesStage{grid-row:4}.chat-shell-wide:not(.chat-shell-idle)>#messageReplyBar{grid-row:5}.chat-shell-wide:not(.chat-shell-idle)>#messageEditBar{grid-row:6}.chat-shell-wide:not(.chat-shell-idle)>#messageForm{grid-row:7}.chat-shell-wide:not(.chat-shell-idle)>#uploadInfo{grid-row:8}
.chat-message-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto auto;align-items:center;gap:5px;padding:7px 9px;border-bottom:1px solid var(--line);background:#fff}.chat-message-search[hidden]{display:none}.chat-message-search input{min-width:0;height:34px;border:1px solid #d8dce2;border-radius:9px;padding:7px 9px;outline:0;font-size:12px}.chat-message-search input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.chat-message-search span{min-width:58px;text-align:center;color:var(--muted);font-size:10px;white-space:nowrap}.chat-message-search button{width:30px;height:30px;border:0;border-radius:8px;background:#f0f1f3;color:#616975;cursor:pointer;font-size:16px}.chat-message-search button:hover{background:#e7e9ed;color:var(--text)}
.chat-pinned-bar{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;text-align:left;border:0;border-bottom:1px solid var(--line);background:#f8f9fb;padding:7px 12px;cursor:pointer}.chat-pinned-bar[hidden]{display:none}.chat-pinned-bar:hover{background:#f3f5f8}.chat-pinned-icon{font-size:14px}.chat-pinned-bar>span:last-child{display:grid;min-width:0}.chat-pinned-bar b{font-size:10px;color:var(--accent)}.chat-pinned-bar small{font-size:10px;color:#626a76;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.message-reply-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 11px 7px 14px;border-top:1px solid var(--line);background:#f8f9fb;position:relative}.message-reply-bar:before{content:'';position:absolute;left:8px;top:8px;bottom:8px;width:3px;border-radius:99px;background:var(--accent)}.message-reply-bar[hidden]{display:none}.message-reply-bar>span{display:grid;min-width:0;padding-left:5px}.message-reply-bar b{font-size:10px;color:var(--accent)}.message-reply-bar small{font-size:10px;color:#616a76;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-reply-bar button{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}.message-reply-bar button:hover{background:#eceef1;color:var(--text)}
.message-reply-preview{width:100%;display:grid;grid-template-columns:3px minmax(0,1fr);gap:7px;border:0;background:transparent;padding:2px 27px 4px 0;text-align:left;cursor:pointer}.message-reply-preview>span:first-child{border-radius:99px;background:var(--accent)}.message-reply-preview>span:last-child{display:grid;min-width:0}.message-reply-preview b{font-size:10px;color:#405bc6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-reply-preview small{margin:1px 0 0!important;text-align:left!important;font-size:10px!important;line-height:1.25;color:#68717d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mine .message-reply-preview>span:first-child{background:#7187e8}
.message.is-pinned .bubble{box-shadow:0 0 0 1px rgba(74,103,232,.12),0 2px 6px rgba(30,36,48,.04)}.message-pin-mark{font-size:9px;opacity:.72}.message-highlight .bubble{animation:message-highlight-flash 1.55s ease}@keyframes message-highlight-flash{0%,100%{box-shadow:0 2px 5px rgba(30,36,48,.03)}25%,62%{box-shadow:0 0 0 3px rgba(74,103,232,.22),0 4px 14px rgba(49,72,176,.14)}}
.message-reactions{display:flex;align-items:center;justify-content:flex-start;gap:4px;flex-wrap:wrap;margin-top:5px}.mine .message-reactions{justify-content:flex-end}.message-reaction-chip{height:25px;display:inline-flex;align-items:center;gap:4px;border:1px solid #dfe3e9;background:#f7f8fa;border-radius:999px;padding:1px 7px;cursor:pointer;font-size:13px;line-height:1}.message-reaction-chip b{font-size:9px;font-weight:750;color:#68717d}.message-reaction-chip.active{background:#e9efff;border-color:#b9c7f7}.message-reaction-chip.active b{color:#405bc6}.message-quick-reactions{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:3px 3px 5px;border-bottom:1px solid #eceef1;margin-bottom:3px}.message-quick-reactions button{display:grid!important;place-items:center!important;width:34px!important;height:31px;padding:0!important;font-size:17px!important}.message-context-menu{min-width:172px!important}.message-context-menu>button{display:flex!important;align-items:center;gap:7px}.message-context-menu .danger{color:var(--danger)}
.chat-poll{display:grid;gap:8px;min-width:min(330px,70vw);padding:2px 0 3px}.chat-poll-question{font-size:13px;line-height:1.4;padding-right:25px}.chat-poll-options{display:grid;gap:5px}.chat-poll-option{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;min-height:35px;border:1px solid #dfe3e9;border-radius:9px;background:rgba(255,255,255,.74);padding:7px 9px;text-align:left;cursor:pointer}.chat-poll-option:hover:not(:disabled){border-color:#c6cfef}.chat-poll-option.active{border-color:#aebcf1}.chat-poll-option-fill{position:absolute;z-index:-1;left:0;top:0;bottom:0;background:rgba(74,103,232,.09);transition:width .2s ease}.chat-poll-option-label{font-size:11px;overflow-wrap:anywhere}.chat-poll-option-votes{font-size:9px;color:var(--muted);font-weight:700}.chat-poll-total{margin:0!important;text-align:left!important;font-size:9px!important}.chat-poll-modal{width:min(560px,calc(100vw - 24px))}.chat-poll-modal h2{margin:0 40px 17px 0}.chat-poll-option-editor{display:grid;gap:7px;margin-bottom:8px}.chat-poll-option-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}.chat-poll-option-row input{width:100%;min-width:0;border:1px solid #d8dce2;border-radius:9px;padding:9px 10px;outline:0}.chat-poll-option-row input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.chat-poll-remove-option{width:36px;height:36px;border:1px solid #e4e6ea;background:#fff;border-radius:9px;color:var(--danger);font-size:18px;cursor:pointer}.chat-poll-remove-option[hidden]{visibility:hidden}
.chat-attach-wrap{position:relative}.chat-attach-menu{position:absolute;z-index:30;left:0;bottom:calc(100% + 7px);width:170px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:4px;box-shadow:0 12px 30px rgba(30,36,48,.15)}.chat-attach-menu[hidden]{display:none}.chat-attach-menu button{width:100%;display:flex;align-items:center;gap:8px;border:0;background:#fff;border-radius:7px;padding:8px 9px;text-align:left;cursor:pointer;font-size:12px;color:var(--text)}.chat-attach-menu button:hover{background:#f1f2f4}.chat-attach-menu button span:first-child{width:18px;text-align:center;font-size:15px}
.chat-scroll-bottom{position:absolute;z-index:12;right:17px;bottom:69px;width:38px;height:38px;border:1px solid rgba(210,214,221,.9);border-radius:50%;background:rgba(255,255,255,.88);box-shadow:0 5px 18px rgba(30,36,48,.14);display:grid;place-items:center;color:#68717d;cursor:pointer;backdrop-filter:blur(6px);transition:.15s}.chat-scroll-bottom[hidden]{display:none}.chat-scroll-bottom:hover{background:#fff;color:var(--accent);transform:translateY(-1px)}.chat-scroll-bottom svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:900px){.admin-plan-price-grid{grid-template-columns:100px repeat(3,minmax(125px,1fr)) minmax(105px,.7fr) minmax(120px,.78fr)}}
@media(max-width:650px){
  .admin-plan-price-grid{grid-template-columns:1fr}
  .chat-message-search{grid-template-columns:minmax(0,1fr) auto auto auto;padding:6px}.chat-message-search span{grid-column:1/-1;grid-row:2;text-align:left;min-height:10px;padding-left:2px}.chat-message-search input{height:32px}.chat-message-search button{width:29px;height:29px}
  .chat-pinned-bar{padding:6px 10px}.message-reply-bar{padding-top:6px;padding-bottom:6px}.chat-poll{min-width:min(290px,76vw)}.chat-poll-option{min-height:37px}.message-context-menu{min-width:178px!important;max-width:calc(100vw - 16px)}.message-quick-reactions{grid-template-columns:repeat(4,1fr)}
  .chat-scroll-bottom{right:11px;bottom:66px;width:37px;height:37px}
  #attachmentModal,#pollCreateModal,#messageEditModal,#groupCreateModal,#groupSettingsModal,#groupAvatarCropModal{z-index:240!important}
}
.message-reaction-chip:disabled,.chat-poll-option:disabled{cursor:default;opacity:.82}

/* v0.1.56 — family sections, emoji/sticker sets and poll refinements. */
.custom-emoji{display:inline-block;width:1.35em;height:1.35em;object-fit:contain;vertical-align:-.28em;margin:0 .04em}.emoji-popover{display:block!important;width:min(360px,calc(100vw - 16px));padding:0;overflow:hidden;max-height:min(370px,calc(100vh - 20px))}.emoji-popover[hidden]{display:none!important}.emoji-set-tabs{display:flex;gap:3px;padding:7px;border-bottom:1px solid var(--line);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;background:#fafbfc}.emoji-set-tab{flex:0 0 34px!important;width:34px!important;height:34px!important;padding:4px!important;display:grid;place-items:center;border:0;background:transparent;border-radius:8px;cursor:pointer;font-size:20px}.emoji-set-tab img{width:25px;height:25px;object-fit:contain}.emoji-set-tab.active{background:#e9edff}.emoji-set-empty{padding:18px;color:var(--muted);font-size:12px;text-align:center}.emoji-set-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;padding:8px;max-height:290px;overflow-y:auto;overscroll-behavior:contain}.emoji-item-btn{width:100%!important;min-width:0;height:36px;display:grid!important;place-items:center;padding:3px!important;font-size:20px!important}.emoji-item-btn img{width:28px;height:28px;object-fit:contain}.message-text .custom-emoji,.entity-comment-content .custom-emoji,.feed-post-content .custom-emoji{width:1.55em;height:1.55em}.album-photo-caption-row .custom-emoji{width:1.45em;height:1.45em}
.chat-poll{min-width:0!important;width:100%;max-width:100%;box-sizing:border-box}.chat-poll-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}.chat-poll-question{min-width:0;padding-right:0!important;overflow-wrap:anywhere}.chat-poll-anon-badge{flex:0 0 auto;font-size:9px;color:var(--muted);background:#f0f1f3;border-radius:999px;padding:3px 6px}.chat-poll-option-wrap{position:relative;display:block;min-width:0;max-width:100%}.chat-poll-option{min-width:0!important;max-width:100%;box-sizing:border-box}.chat-poll-option-label{min-width:0}.chat-poll-voters-popover{position:absolute;z-index:95;left:10px;bottom:calc(100% + 6px);display:none;width:min(250px,calc(100vw - 48px));max-height:187px;overflow-y:auto;overscroll-behavior:contain;padding:6px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 12px 34px rgba(31,38,52,.18)}.chat-poll-option-wrap:hover .chat-poll-voters-popover,.chat-poll-option-wrap:focus-within .chat-poll-voters-popover{display:grid;gap:3px}.chat-poll-voter{display:flex;align-items:center;gap:8px;padding:4px 5px;border-radius:7px;font-size:11px;white-space:nowrap}.chat-poll-voter .avatar{width:27px;height:27px;min-width:27px}.chat-poll-anonymous{justify-self:start}.chat-poll-anonymous input{width:auto!important}
@media(max-width:650px){.emoji-set-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.message.mine .chat-poll-voters-popover{right:0;left:auto}.message:not(.mine) .chat-poll-voters-popover{left:0;right:auto}.chat-poll{min-width:0!important;width:100%!important;max-width:100%!important}.chat-poll-options,.chat-poll-option-wrap,.chat-poll-option{width:100%;max-width:100%;min-width:0}.chat-poll-voters-popover{left:4px;right:auto}.bubble{min-width:0}.message-body{min-width:0}}
.admin-section-list{display:grid;gap:7px}.admin-section-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}.admin-section-row>span:first-child{display:grid;gap:2px}.admin-section-row small{color:var(--muted);font-size:10px}.admin-emoji-set-list{display:grid;gap:6px}.admin-emoji-set-row{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:11px;color:inherit;text-decoration:none;background:#fff}.admin-emoji-set-row:hover,.admin-emoji-set-row.active{background:#f3f5fa;border-color:#ced5ed}.admin-emoji-set-row>span:last-child{display:grid;min-width:0}.admin-emoji-set-row small{color:var(--muted);font-size:10px}.admin-emoji-set-icon,.admin-emoji-item-preview{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:#f4f5f7;font-size:24px;overflow:hidden}.admin-emoji-set-icon img,.admin-emoji-item-preview img{width:100%;height:100%;object-fit:contain}.admin-emoji-item-list{display:grid;gap:6px}.admin-emoji-item-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto auto;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#fff}.admin-emoji-item-copy{display:grid;min-width:0}.admin-emoji-item-copy small{color:var(--muted);font-size:10px}.admin-emoji-order{display:flex;gap:3px}.admin-emoji-order .order-move{width:29px;height:29px}.admin-emoji-file-preview{display:block;margin-top:7px;width:64px;height:64px;border:1px dashed #d5d9e0;border-radius:10px;background:#fafbfc;overflow:hidden}.admin-emoji-file-preview:empty{display:none}.admin-emoji-file-preview img{width:100%;height:100%;object-fit:contain}
@media(max-width:700px){.admin-section-row{align-items:flex-start}.admin-emoji-item-row{grid-template-columns:40px minmax(0,1fr) auto}.admin-emoji-order{grid-column:2}.admin-emoji-item-row>.btn{grid-row:2}.admin-emoji-item-row>.btn:last-child{grid-column:3}}

/* v0.1.57 — emoji picker, feedback replies, tariff section access. */
.emoji-popover{width:min(326px,calc(100vw - 16px))!important;max-height:none!important;overflow:hidden!important}
.emoji-set-tabs{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none;overscroll-behavior-x:contain;touch-action:pan-x}
.emoji-set-tabs::-webkit-scrollbar,.emoji-set-grid::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.emoji-set-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-rows:40px;gap:4px!important;height:188px!important;max-height:188px!important;min-height:188px;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none;align-content:start;padding:8px!important;overscroll-behavior-y:contain;touch-action:pan-y}
.emoji-item-btn{height:40px!important;font-size:22px!important}.emoji-item-btn img{width:31px!important;height:31px!important}
.emoji-token-source{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;max-width:1px!important;max-height:1px!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important}
.emoji-rich-input{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;outline:0;color:var(--text);cursor:text}
.emoji-rich-input:empty::before{content:attr(data-placeholder);color:#9aa0aa;pointer-events:none}
.message-composer .emoji-rich-input{border:1px solid #d9dde2;border-radius:11px;padding:9px 10px;min-height:38px;max-height:130px;line-height:19px;overflow-y:auto;background:#fff}
.attachment-caption-row .emoji-rich-input{width:100%;border:1px solid #d8dce2;border-radius:10px;padding:10px 11px;min-height:74px;max-height:180px;overflow-y:auto;background:#fff}
.attachment-caption-row .emoji-rich-input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}
.emoji-rich-token{width:1.45em!important;height:1.45em!important;vertical-align:-.3em!important;user-select:all}
.chat-chip-preview .custom-emoji,.chat-row p .custom-emoji{width:1.15em;height:1.15em;vertical-align:-.2em;margin:0 .02em}
.feedback-ticket-side{display:grid;justify-items:end;gap:5px}.feedback-replied-badge{display:inline-flex;align-items:center;border-radius:99px;background:#edf7ef;color:#2f7b42;padding:4px 8px;font-size:10px;font-weight:700;white-space:nowrap}
.feedback-admin-answer{margin-top:14px;padding:13px 14px;border:1px solid #dfe5f8;border-left:3px solid var(--accent);border-radius:11px;background:#f7f9ff;line-height:1.5}.feedback-admin-answer-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.feedback-admin-answer-head small{color:var(--muted)}
.feedback-admin-reply-form{display:grid;gap:8px;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}.feedback-admin-reply-form label{display:grid;gap:6px}.feedback-admin-reply-form textarea{width:100%;resize:vertical}.feedback-admin-reply-meta{min-height:16px;color:var(--muted);font-size:10px}
.admin-section-row-plans{grid-template-columns:minmax(0,1fr) auto!important;gap:10px 18px!important}.admin-section-copy{display:grid;gap:2px}.admin-section-master{align-self:start}.admin-section-plan-access{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:7px;border-top:1px dashed #e4e6eb;font-size:11px}.admin-section-plan-access label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}.admin-section-plan-access input{accent-color:var(--accent)}
@media(max-width:650px){.emoji-popover{width:min(326px,calc(100vw - 12px))!important}.emoji-set-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;height:188px!important;max-height:188px!important;min-height:188px!important}.admin-section-row-plans{grid-template-columns:1fr!important}.admin-section-master{justify-self:start}.admin-section-plan-access{grid-column:1}}
@media(max-width:650px){.mobile-nav{scroll-snap-type:none!important}.mobile-nav a{scroll-snap-align:none!important}}

/* v0.1.59 — feed comment editor and 6x4 emoji picker fixes. */
.entity-comment-form>.emoji-rich-input{width:100%;min-height:64px;max-height:140px;border:1px solid #d8dce2;border-radius:11px;padding:9px 10px;font:inherit;line-height:normal;background:#fff;box-sizing:border-box;overflow-y:auto}
.entity-comment-form>.emoji-rich-input:focus{border-color:#aeb9ee!important;box-shadow:0 0 0 3px rgba(74,103,232,.08)}
.entity-comment-edit>.emoji-rich-input{width:100%;min-height:72px;border:1px solid #d8dce2;border-radius:10px;padding:9px 10px;font:inherit;background:#fff;box-sizing:border-box;overflow-y:auto}

/* v0.1.60 — unified reactions, mobile forms/modals and media downloads. */
.admin-reaction-settings{margin-bottom:14px}.admin-reaction-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}.admin-reaction-grid label{display:grid;gap:4px;color:var(--muted);font-size:10px}.admin-reaction-grid input{width:100%;min-width:0;height:42px;border:1px solid #d9dde4;border-radius:10px;background:#fff;text-align:center;font-size:23px;line-height:1;padding:5px}.admin-reaction-grid input:focus{outline:0;border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.admin-reaction-actions{display:flex;align-items:center;gap:10px;margin-top:10px}
.profile-name-line,.profile-birth-line{display:flex;align-items:center;gap:6px;min-width:0}.profile-name-line h2{margin:0;min-width:0;overflow-wrap:anywhere}.profile-birth-line{margin-top:4px}.profile-birth-line p{margin:0}.profile-inline-editor{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}.profile-inline-editor[hidden]{display:none!important}.profile-inline-editor input{min-width:min(250px,100%);border:1px solid #d9dde4;border-radius:9px;background:#fff;padding:7px 9px;outline:0}.profile-inline-editor input:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}.profile-gender-line{margin:5px 0 0;color:var(--muted);font-size:12px}
.media-download-btn{display:grid;place-items:center;text-decoration:none;cursor:pointer}.image-viewer-download{position:absolute;right:36px;top:-8px;z-index:3;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#333;font-size:22px;line-height:1;box-shadow:0 4px 20px rgba(0,0,0,.25)}.image-viewer-download:hover{color:var(--accent)}.image-viewer-card video{display:block;max-width:100%;max-height:90vh;object-fit:contain;border-radius:10px;background:#000;box-shadow:0 20px 70px rgba(0,0,0,.35)}.image-viewer-card video[hidden]{display:none!important}.album-photo-download{position:absolute;right:58px;top:12px;z-index:4;width:38px;height:38px;border-radius:11px;background:rgba(17,24,39,.64);color:#fff;font-size:21px}.album-photo-download:hover{background:rgba(17,24,39,.82);color:#fff}.album-fullscreen-download{position:absolute;right:74px;top:16px;z-index:4;width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.13);color:#fff;font-size:23px}.album-fullscreen-download:hover{background:rgba(255,255,255,.2);color:#fff}.chat-video-wrap{position:relative;display:block;width:max-content;max-width:100%;margin:0 0 6px}.chat-video-wrap .chat-video{margin:0}.chat-video-open{position:absolute;right:8px;top:8px;z-index:2;width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:9px;background:rgba(20,24,31,.62);color:#fff;display:grid;place-items:center;cursor:pointer;font-size:16px;backdrop-filter:blur(4px)}.chat-video-open:hover{background:rgba(20,24,31,.82)}
.message-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:5px;min-width:0}.message-footer .message-reactions{flex:1 1 auto;min-width:0;margin-top:0!important;justify-content:flex-start!important}.message-footer .message-meta{flex:0 0 auto;align-self:flex-end;margin-top:0!important}.mine .message-reactions{justify-content:flex-start!important}.bubble.has-reactions{min-width:min(230px,70vw)}
.emoji-popover{z-index:1600!important}
@media(max-width:700px){.admin-reaction-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,select,[contenteditable="true"],.emoji-rich-input{font-size:16px!important}}
@media(max-width:650px){
  .modal-backdrop:not(.image-viewer-modal)>.modal-card>.modal-close{position:sticky!important;top:0!important;right:auto!important;left:auto!important;float:none!important;display:grid!important;margin-left:auto!important;margin-right:0!important;margin-bottom:-34px!important;z-index:260!important;box-shadow:0 4px 16px rgba(30,36,48,.14)}
  .image-viewer-close{right:2px;top:2px}.image-viewer-download{right:46px;top:2px}.album-photo-download{right:56px;top:10px}.album-fullscreen-close{right:10px;top:10px}.album-fullscreen-download{right:62px;top:10px}.album-fullscreen img{max-width:calc(100vw - 18px);max-height:calc(100vh - 76px)}
  .profile-inline-editor{width:100%}.profile-inline-editor input{flex:1 1 180px;min-width:0}
  .bubble.has-reactions{min-width:min(220px,82vw)}
}

/* v0.1.61 — reaction catalog polish, messenger footer, profile legacy gender and media controls. */
.media-download-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.image-viewer-download,.album-photo-download,.album-fullscreen-download{font-size:0!important;transition:background .14s ease,color .14s ease,transform .14s ease}
.image-viewer-download:hover,.album-photo-download:hover,.album-fullscreen-download:hover{transform:translateY(-1px)}
.image-viewer-download .media-download-icon{width:19px;height:19px}.album-fullscreen-download .media-download-icon{width:22px;height:22px}

.message-footer{justify-content:flex-end!important;align-items:flex-end!important;gap:7px!important}
.message-footer .message-reactions{flex:0 1 auto!important;min-width:0!important;margin:0 auto 0 0!important;justify-content:flex-start!important}
.message-footer .message-meta{flex:0 0 auto!important;align-self:flex-end!important;margin:0 0 0 auto!important;white-space:nowrap!important}
.mine .message-footer .message-reactions{justify-content:flex-start!important}
.bubble.has-reactions{min-width:0!important}
.message-reaction-chip .custom-emoji,.message-quick-reactions .custom-emoji,.feed-reaction-chip .custom-emoji,.feed-reaction-picker .custom-emoji,.comment-reaction-chip .custom-emoji,.comment-reaction-picker .custom-emoji{width:19px!important;height:19px!important;vertical-align:middle!important;margin:0!important}
.message-quick-reactions button .custom-emoji{width:21px!important;height:21px!important}

.chat-pinned-bar{grid-template-columns:minmax(0,1fr) auto!important;gap:0!important;padding:0!important;cursor:default!important}
.chat-pinned-open{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;width:100%;min-width:0;border:0;background:transparent;padding:7px 10px 7px 12px;text-align:left;cursor:pointer;color:inherit}
.chat-pinned-open:hover{background:#f3f5f8}.chat-pinned-open>span:last-child{display:grid;min-width:0}
.chat-pinned-unpin{width:34px;height:34px;margin-right:7px;border:0;border-radius:9px;background:transparent;color:#7a818c;display:grid;place-items:center;cursor:pointer;font-size:20px;line-height:1}
.chat-pinned-unpin:hover{background:#e9ebef;color:#3f4754}

.admin-reaction-list{display:grid;gap:6px;margin-top:12px}
.admin-reaction-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#fff}
.admin-reaction-preview{display:grid;place-items:center;width:46px;height:46px;border-radius:9px;background:#f4f5f7;font-size:26px;overflow:hidden}
.admin-reaction-preview .custom-emoji{width:34px!important;height:34px!important;margin:0!important;vertical-align:middle!important}
.admin-reaction-copy{display:grid;min-width:0}.admin-reaction-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-reaction-copy small{color:var(--muted);font-size:10px}
.admin-reaction-modal-card{width:min(620px,calc(100vw - 24px))}
.admin-reaction-set-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;overflow-y:hidden;padding:7px 0 9px;scrollbar-width:none;-ms-overflow-style:none}
.admin-reaction-set-tabs::-webkit-scrollbar,.admin-reaction-choice-grid::-webkit-scrollbar{display:none;width:0;height:0}
.admin-reaction-set-tabs button{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;max-width:160px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:5px 8px;color:#59616d;cursor:pointer;font-size:11px}
.admin-reaction-set-tabs button.active{background:#eef2ff;border-color:#cfd8ff;color:#334fc6}.admin-reaction-tab-icon{display:grid;place-items:center;width:23px;height:23px;font-size:18px;overflow:hidden}.admin-reaction-tab-icon img{width:23px;height:23px;object-fit:contain}
.admin-reaction-choice-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;max-height:230px;overflow-y:auto;padding:8px;border:1px solid var(--line);border-radius:11px;background:#fafbfc;scrollbar-width:none}
.admin-reaction-choice-grid button{height:46px;min-width:0;border:1px solid transparent;border-radius:9px;background:#fff;display:grid;place-items:center;cursor:pointer;font-size:25px}.admin-reaction-choice-grid button:hover,.admin-reaction-choice-grid button.active{border-color:#c9d3ff;background:#eef2ff}.admin-reaction-choice-grid img{width:34px;height:34px;object-fit:contain}
.admin-reaction-selected{display:flex;align-items:center;gap:8px;min-height:34px;color:var(--muted);font-size:11px}.admin-reaction-selected strong{display:grid;place-items:center;min-width:32px;min-height:32px;font-size:23px;color:var(--text)}.admin-reaction-selected .custom-emoji{width:30px!important;height:30px!important;margin:0!important}

.profile-gender-row{display:flex;align-items:center;gap:6px}.profile-inline-editor select{min-width:min(250px,100%);border:1px solid #d9dde4;border-radius:9px;background:#fff;padding:7px 9px;outline:0}.profile-inline-editor select:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}
.profile-award-giver-link{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}.profile-award-giver-avatar{flex:0 0 18px;width:18px;height:18px;border-radius:50%;background:#e8ebf1;color:#5f6875;display:grid;place-items:center;overflow:hidden;font-size:8px;font-weight:750;line-height:1}.profile-award-giver-avatar img{width:100%;height:100%;object-fit:cover;display:block}

@media(max-width:700px){
  .admin-reaction-row{grid-template-columns:44px minmax(0,1fr) auto}.admin-reaction-row>.btn{grid-column:3}.admin-reaction-row .admin-emoji-order{grid-column:2;grid-row:2}.admin-reaction-choice-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .profile-inline-editor select{flex:1 1 180px;min-width:0}
  .chat-pinned-open{padding:6px 8px 6px 10px}.chat-pinned-unpin{margin-right:5px}
}

/* v0.1.62 — emoji previews, messenger quick reactions, mobile glass and family roles. */
.emoji-hover-preview{position:fixed;z-index:320;width:68px;height:68px;padding:7px;border:1px solid rgba(205,211,222,.88);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 14px 34px rgba(28,35,50,.22);pointer-events:none;display:grid;place-items:center;animation:emoji-hover-pop .12s ease-out both}
.emoji-hover-preview img{display:block;width:54px;height:54px;object-fit:contain}
@keyframes emoji-hover-pop{from{opacity:0;transform:translateY(3px) scale(.92)}to{opacity:1;transform:none}}

/* Reaction picker in admin: a selected custom image always uses the same preview box,
   regardless of the original uploaded file dimensions. */
.admin-reaction-selected strong{width:34px;height:34px;overflow:hidden}
.admin-reaction-selected strong>img,.admin-reaction-selected strong .custom-emoji{display:block!important;width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;object-fit:contain!important;margin:0!important}
.admin-reaction-choice-grid button>img{display:block;width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;object-fit:contain!important}

/* Messenger desktop hover reaction shortcut. */
.message-hover-react{position:relative;z-index:6;align-self:flex-start;display:none;width:28px;height:28px;margin-top:8px;flex:0 0 28px}
.message-hover-react-btn{width:28px;height:28px;border:1px solid rgba(210,215,224,.95);border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 5px 14px rgba(30,36,48,.12);display:grid;place-items:center;padding:0;color:#68717d;font-size:17px;line-height:1;cursor:pointer;opacity:0;transform:scale(.9);transition:opacity .12s ease,transform .12s ease,background .12s ease}
.message.theirs .message-hover-react{order:2;margin-left:-12px}
.message.mine .message-hover-react{order:-1;margin-right:-12px}
.message-hover-reaction-picker{position:absolute;z-index:25;top:32px;display:none;grid-template-columns:repeat(4,34px);gap:3px;padding:5px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(30,36,48,.16);width:max-content;max-width:158px}
.message.theirs .message-hover-reaction-picker{left:0}
.message.mine .message-hover-reaction-picker{right:0}
.message-hover-reaction-picker button{width:34px;height:32px;border:0;border-radius:8px;background:transparent;padding:2px;display:grid;place-items:center;cursor:pointer;font-size:18px}
.message-hover-reaction-picker button:hover{background:#f1f3f6}
.message-hover-reaction-picker .custom-emoji{width:22px!important;height:22px!important;margin:0!important;vertical-align:middle!important}
@media(hover:hover) and (pointer:fine){
  .message:not(.system-message)>.message-hover-react{display:block}
  .message:not(.system-message):hover .message-hover-react-btn,.message-hover-react:focus-within .message-hover-react-btn,.message-hover-react:hover .message-hover-react-btn{opacity:1;transform:none}
  .message-hover-react:hover .message-hover-reaction-picker,.message-hover-react:focus-within .message-hover-reaction-picker{display:grid}
}

/* Mobile Telegram-like long-press message menu. */
.message-menu-backdrop{position:absolute;inset:0;z-index:150;border:0;padding:0;margin:0;background:rgba(246,247,250,.30);-webkit-backdrop-filter:blur(7px) saturate(135%);backdrop-filter:blur(7px) saturate(135%);cursor:default}
.message-menu-backdrop[hidden]{display:none!important}
.message.mobile-menu-focus{position:relative;z-index:152}
.message.mobile-menu-focus .bubble{box-shadow:0 8px 28px rgba(24,31,48,.22),0 0 0 1px rgba(255,255,255,.6)}
.chat-shell-wide.message-menu-focus-open .message-actions.is-context-menu{z-index:160!important}

/* Family role management in Settings. */
.family-role-settings-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr);gap:18px;align-items:start}
.family-role-editor-column{display:grid;gap:12px;min-width:0}
.family-settings-role-list{margin-top:2px}
.family-member-role-list{display:grid;gap:7px;min-width:0}
.family-member-role-row{display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(220px,auto);gap:9px;align-items:center;padding:8px 9px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}
.family-member-role-copy{display:grid;min-width:0}.family-member-role-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.family-member-role-copy small{font-size:10px;color:var(--muted)}
.family-member-role-form{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.family-member-role-form select{min-width:145px;max-width:220px}

@media(max-width:650px){
  /* Glass-like navigation and nickname pill. */
  .mobile-nav{background:rgba(255,255,255,.70)!important;border-color:rgba(255,255,255,.72)!important;box-shadow:0 12px 34px rgba(30,39,58,.16),inset 0 1px 0 rgba(255,255,255,.72)!important;-webkit-backdrop-filter:blur(20px) saturate(165%);backdrop-filter:blur(20px) saturate(165%)}
  .mobile-nav a.active{background:rgba(238,241,248,.72)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.42)}
  .mobile-profile-btn{background:rgba(255,255,255,.70)!important;border-color:rgba(255,255,255,.75)!important;box-shadow:0 8px 24px rgba(30,39,58,.13),inset 0 1px 0 rgba(255,255,255,.72)!important;-webkit-backdrop-filter:blur(20px) saturate(165%);backdrop-filter:blur(20px) saturate(165%)}
  .mobile-profile-menu{background:rgba(255,255,255,.88)!important;border-color:rgba(255,255,255,.8)!important;-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%)}

  .message-menu-btn{display:none!important}
  .message:not(.system-message) .bubble,.message:not(.system-message) .message-text{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
  .message-hover-react{display:none!important}
  .message-actions.is-context-menu{max-width:min(260px,calc(100vw - 28px))!important}
  .family-role-settings-grid{grid-template-columns:1fr;gap:14px}
  .family-member-role-row{grid-template-columns:auto minmax(0,1fr);align-items:center}
  .family-member-role-row>.pill,.family-member-role-form{grid-column:2}
  .family-member-role-form{justify-content:flex-start;flex-wrap:wrap}.family-member-role-form select{flex:1 1 150px;max-width:none}
}

/* v0.1.63 — status emoji picker, click-only messenger reactions, focused mobile long-press menu and action notices. */
.action-notice{position:fixed;z-index:3000;top:max(14px,env(safe-area-inset-top));left:50%;transform:translate(-50%,-10px);display:flex;align-items:center;gap:9px;max-width:min(520px,calc(100vw - 24px));min-height:40px;padding:9px 13px;border:1px solid #dce6df;border-radius:11px;background:rgba(248,252,249,.97);box-shadow:0 12px 32px rgba(28,38,48,.15);color:#3d5e48;font:inherit;font-size:12px;font-weight:650;text-align:left;opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s ease;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.action-notice.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}.action-notice-icon{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border-radius:7px;background:#e2f2e6;color:#2e7142;font-size:13px;font-weight:900}.action-notice.error{border-color:#efd9db;background:rgba(255,248,248,.97);color:#8d3e45}.action-notice.error .action-notice-icon{background:#f8e3e5;color:#9b4048}
.profile-status-editor .emoji-rich-input{min-width:min(420px,70vw);flex:1 1 320px}.profile-status-emoji-btn{font-size:16px!important}

/* The desktop reaction shortcut belongs to the bubble itself, not to the full-width message row. */
.message-hover-react{position:absolute!important;z-index:12!important;bottom:-13px!important;top:auto!important;width:28px!important;height:28px!important;margin:0!important;display:none;flex:none!important}
.message.mine .message-hover-react{left:-14px!important;right:auto!important;order:initial!important}.message.theirs .message-hover-react{right:-14px!important;left:auto!important;order:initial!important}
.message-hover-reaction-picker{top:auto!important;bottom:34px!important;display:grid;grid-template-columns:repeat(4,34px);gap:3px;padding:5px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(30,36,48,.16);width:max-content;max-width:158px}
.message.mine .message-hover-reaction-picker{left:0!important;right:auto!important}.message.theirs .message-hover-reaction-picker{right:0!important;left:auto!important}.message-hover-reaction-picker[hidden]{display:none!important}
@media(hover:hover) and (pointer:fine){
  .message:not(.system-message) .bubble>.message-hover-react{display:block}
  .message:not(.system-message):hover .message-hover-react-btn{opacity:0;transform:scale(.9)}
  .message:not(.system-message) .bubble:hover .message-hover-react-btn,.message-hover-react.is-open .message-hover-react-btn,.message-hover-react:focus-within .message-hover-react-btn{opacity:1;transform:none}
  .message-hover-react.is-open .message-hover-reaction-picker{display:grid!important}
}

@media(max-width:650px){
  .profile-status-editor .emoji-rich-input{min-width:100%;width:100%;flex-basis:100%}
  .message:not(.system-message),.message:not(.system-message) .bubble{-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important}
  .message-menu-backdrop{z-index:145!important;background:rgba(246,247,250,.18)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .message.mobile-menu-focus{position:relative!important;z-index:152!important;filter:none!important;opacity:1!important}
  .message.mobile-menu-focus .bubble{position:relative!important;z-index:153!important;filter:none!important;opacity:1!important}
  .chat-shell-wide.message-menu-focus-open #messages>*:not(.mobile-menu-focus){filter:blur(6px);opacity:.72;transition:filter .12s ease,opacity .12s ease}
  .chat-shell-wide.message-menu-focus-open>#chatContact,.chat-shell-wide.message-menu-focus-open>#chatMessageSearch,.chat-shell-wide.message-menu-focus-open>#chatPinnedBar,.chat-shell-wide.message-menu-focus-open>#messageReplyBar,.chat-shell-wide.message-menu-focus-open>#messageEditBar,.chat-shell-wide.message-menu-focus-open>#messageForm,.chat-shell-wide.message-menu-focus-open>#uploadInfo{filter:blur(6px);opacity:.7;transition:filter .12s ease,opacity .12s ease}
  .chat-shell-wide.message-menu-focus-open .message-actions.is-context-menu{z-index:170!important;filter:none!important;opacity:1!important}
}


/* v0.1.64 — centered messenger reaction shortcut, mobile tap reactions and multiline profile status. */
.message-hover-react-btn{display:flex!important;align-items:center!important;justify-content:center!important;line-height:0!important}
.message-hover-react-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;transform:none!important}
.message-hover-react-icon .fill{fill:currentColor;stroke:none}
.message-menu-btn{display:none!important}
.message-context-menu .message-quick-reactions{display:none!important}
.profile-status-editor textarea{min-width:min(420px,70vw);min-height:72px;max-height:108px;border:1px solid #d8dce2;border-radius:10px;padding:9px 10px;outline:0;resize:none;overflow-y:auto;font:inherit;line-height:1.35;box-sizing:border-box}
.profile-status-editor textarea:focus{border-color:#aeb9ee;box-shadow:0 0 0 3px rgba(74,103,232,.08)}
.profile-status-editor .emoji-rich-input.emoji-rich-multiline{min-width:min(420px,70vw);min-height:72px!important;max-height:108px!important;flex:1 1 320px;overflow-y:auto!important;white-space:pre-wrap!important;line-height:1.35!important}
@media(max-width:650px){
  .profile-status-editor textarea,.profile-status-editor .emoji-rich-input.emoji-rich-multiline{min-width:100%;width:100%;flex-basis:100%}
  .message:not(.system-message) .bubble{touch-action:pan-y;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-tap-highlight-color:transparent}
  .message-hover-react.mobile-tap-open{display:block!important;opacity:1!important;pointer-events:auto!important}
  .message-hover-react.mobile-tap-open .message-hover-react-btn{opacity:1!important;transform:none!important}
  .message-hover-react.mobile-tap-open .message-hover-reaction-picker{display:grid!important;z-index:180!important}
  .chat-shell-wide.message-menu-focus-open .message-hover-react.mobile-tap-open{filter:none!important;opacity:1!important}
}

/* v0.1.65 — stable mobile reaction taps and polished focused message actions. */
@media(max-width:650px){
  .message-menu-backdrop{opacity:0!important;background:rgba(246,247,250,.16)!important;transition:opacity .22s ease!important;pointer-events:none!important}
  .message-menu-backdrop.is-visible{opacity:1!important;pointer-events:auto!important}
  .chat-shell-wide #messages>*{transition:filter .24s ease,opacity .24s ease!important}
  .chat-shell-wide>#chatContact,.chat-shell-wide>#chatMessageSearch,.chat-shell-wide>#chatPinnedBar,.chat-shell-wide>#messageReplyBar,.chat-shell-wide>#messageEditBar,.chat-shell-wide>#messageForm,.chat-shell-wide>#uploadInfo{transition:filter .24s ease,opacity .24s ease!important}
  .message:not(.system-message) .bubble{transition:box-shadow .24s ease,filter .24s ease,opacity .24s ease!important}
  .message.mobile-menu-focus .bubble{box-shadow:0 18px 46px rgba(24,31,48,.30),0 5px 14px rgba(24,31,48,.15),0 0 0 1px rgba(255,255,255,.82)!important}
  .message-actions.is-context-menu{overscroll-behavior:contain;scrollbar-width:none}
  .message-actions.is-context-menu::-webkit-scrollbar{display:none;width:0;height:0}
}

/* v0.1.66 — mobile messenger actions/reactions live above the blur layer. */
.message-mobile-reaction-palette{position:fixed;z-index:420;display:grid;grid-template-columns:repeat(4,38px);gap:4px;width:max-content;max-width:calc(100vw - 20px);padding:6px;border:1px solid rgba(211,216,225,.96);border-radius:13px;background:rgba(255,255,255,.98);box-shadow:0 16px 42px rgba(26,33,48,.23);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:manipulation}
.message-mobile-reaction-palette[hidden]{display:none!important}
.message-mobile-reaction-palette::-webkit-scrollbar{display:none;width:0;height:0}
.message-mobile-reaction-palette button{width:38px;height:36px;border:0;border-radius:9px;background:transparent;padding:3px;display:grid;place-items:center;cursor:pointer;font-size:20px;line-height:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.message-mobile-reaction-palette button:active{background:#eef1f5;transform:scale(.94)}
.message-mobile-reaction-palette .custom-emoji{display:block!important;width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;margin:0!important}
.message-actions.mobile-message-menu-portal{z-index:430!important;pointer-events:auto!important;touch-action:manipulation}
.message-actions.mobile-message-menu-portal button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(max-width:650px){
  /* On touch screens a tap on the bubble already opens reactions, so no extra smile button is shown. */
  .message-hover-react,.message-hover-react.mobile-tap-open{display:none!important}
  .message-mobile-reaction-palette{pointer-events:auto!important}
}

/* v0.1.68 — stable iOS messenger blur, lifted bottom-message actions and SDR media rendering. */
@supports (dynamic-range-limit:standard){
  html{dynamic-range-limit:standard}
}
@media(max-width:650px){
  /* Use one persistent backdrop layer instead of applying CSS filters to every message/media node.
     This avoids iOS/WebKit recompositing flashes when the focused-message UI closes. */
  .chat-shell-wide{isolation:isolate}
  .message-menu-backdrop{
    display:block;
    z-index:145!important;
    opacity:0!important;
    background:rgba(246,247,250,.16)!important;
    -webkit-backdrop-filter:blur(6px) saturate(118%)!important;
    backdrop-filter:blur(6px) saturate(118%)!important;
    transition:opacity .23s ease!important;
    pointer-events:none!important;
    will-change:opacity;
    -webkit-transform:translateZ(0);
    transform:translateZ(0)
  }
  .message-menu-backdrop[hidden]{display:none!important}
  .message-menu-backdrop.is-visible{opacity:1!important;pointer-events:auto!important}
  .chat-shell-wide.message-menu-focus-open #messages>*:not(.mobile-menu-focus),
  .chat-shell-wide.message-menu-focus-open>#chatContact,
  .chat-shell-wide.message-menu-focus-open>#chatMessageSearch,
  .chat-shell-wide.message-menu-focus-open>#chatPinnedBar,
  .chat-shell-wide.message-menu-focus-open>#messageReplyBar,
  .chat-shell-wide.message-menu-focus-open>#messageEditBar,
  .chat-shell-wide.message-menu-focus-open>#messageForm,
  .chat-shell-wide.message-menu-focus-open>#uploadInfo{
    filter:none!important;
    opacity:1!important;
    transition:none!important
  }
  .message.mobile-menu-focus{
    z-index:152!important;
    transform:translateY(calc(-1 * var(--mobile-message-lift,0px)));
    transition:transform .18s cubic-bezier(.2,.8,.2,1)!important
  }
  .message.mobile-menu-focus .bubble{
    z-index:153!important;
    box-shadow:0 20px 50px rgba(24,31,48,.32),0 7px 18px rgba(24,31,48,.17),0 0 0 1px rgba(255,255,255,.88)!important
  }
  .message-mobile-reaction-palette,.message-actions.mobile-message-menu-portal{
    transition:transform .18s cubic-bezier(.2,.8,.2,1)!important;
    will-change:transform
  }
}

/* v0.1.69 — mobile messenger lift polish and stronger glass navigation. */
@media(max-width:650px){
  /* Keep the selected bubble on its own compositor above the blur even while it is lifted. */
  .message.mobile-menu-focus{
    position:relative!important;
    z-index:360!important;
    isolation:isolate!important;
    -webkit-transform:translate3d(0,calc(-1 * var(--mobile-message-lift,0px)),0)!important;
    transform:translate3d(0,calc(-1 * var(--mobile-message-lift,0px)),0)!important;
    transition:-webkit-transform .25s cubic-bezier(.22,.78,.24,1),transform .25s cubic-bezier(.22,.78,.24,1)!important;
    will-change:transform;
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
    filter:none!important;
    opacity:1!important
  }
  .message.mobile-menu-focus .bubble{
    position:relative!important;
    z-index:361!important;
    isolation:isolate;
    -webkit-transform:translateZ(0);
    transform:translateZ(0);
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
    filter:none!important;
    opacity:1!important;
    box-shadow:0 22px 54px rgba(24,31,48,.34),0 8px 20px rgba(24,31,48,.18),0 0 0 1px rgba(255,255,255,.9)!important
  }
  .message-menu-backdrop{z-index:300!important;transition:opacity .25s ease!important}
  .message-mobile-reaction-palette{z-index:520!important}
  .message-actions.mobile-message-menu-portal{z-index:530!important}
  .message-mobile-reaction-palette,.message-actions.mobile-message-menu-portal{
    transition:transform .25s cubic-bezier(.22,.78,.24,1)!important
  }

  /* A more visible iOS-style frosted glass surface. The lower alpha lets real page
     content show through so the blur is visually apparent rather than just white. */
  .mobile-nav{
    background:linear-gradient(135deg,rgba(255,255,255,.54),rgba(244,248,255,.34))!important;
    border-color:rgba(255,255,255,.82)!important;
    box-shadow:0 14px 38px rgba(31,42,62,.18),inset 0 1px 0 rgba(255,255,255,.92),inset 0 -1px 0 rgba(255,255,255,.28)!important;
    -webkit-backdrop-filter:blur(26px) saturate(190%) contrast(104%)!important;
    backdrop-filter:blur(26px) saturate(190%) contrast(104%)!important
  }
  .mobile-nav a.active{
    background:rgba(255,255,255,.48)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.58),0 3px 10px rgba(39,56,88,.07)!important
  }
  .mobile-profile-btn{
    background:linear-gradient(135deg,rgba(255,255,255,.56),rgba(244,248,255,.34))!important;
    border-color:rgba(255,255,255,.84)!important;
    box-shadow:0 10px 30px rgba(31,42,62,.16),inset 0 1px 0 rgba(255,255,255,.94),inset 0 -1px 0 rgba(255,255,255,.25)!important;
    -webkit-backdrop-filter:blur(26px) saturate(190%) contrast(104%)!important;
    backdrop-filter:blur(26px) saturate(190%) contrast(104%)!important
  }
}

/* v0.1.70 — stable mobile focus portal, clearer glass and reply-safe scroll button. */
.chat-shell-wide.has-message-reply .chat-scroll-bottom{bottom:112px}
@media(max-width:650px){
  /* The selected message is temporarily portaled above the messenger stacking context.
     This prevents the shell backdrop-filter from blurring the focused bubble on iOS. */
  .message-mobile-focus-placeholder{display:block;flex:0 0 auto;width:100%;min-width:0;pointer-events:none;visibility:hidden}
  .message.mobile-focus-portal.mobile-menu-focus{
    z-index:510!important;
    pointer-events:none!important;
    transition:top .28s cubic-bezier(.22,.78,.24,1),left .28s cubic-bezier(.22,.78,.24,1),width .28s cubic-bezier(.22,.78,.24,1),-webkit-transform .28s cubic-bezier(.22,.78,.24,1),transform .28s cubic-bezier(.22,.78,.24,1)!important;
    -webkit-transform:translate3d(0,calc(-1 * var(--mobile-message-lift,0px)),0)!important;
    transform:translate3d(0,calc(-1 * var(--mobile-message-lift,0px)),0)!important;
    filter:none!important;
    opacity:1!important
  }
  .message.mobile-focus-portal.mobile-menu-focus .bubble{pointer-events:none!important;filter:none!important;opacity:1!important}
  .message-mobile-reaction-palette{z-index:520!important}
  .message-actions.mobile-message-menu-portal{z-index:530!important}

  /* More transparent frosted-glass surfaces: page content should remain visible
     through the navigation while the backdrop blur softens it. */
  .mobile-nav{
    background:linear-gradient(135deg,rgba(255,255,255,.30),rgba(241,247,255,.14))!important;
    border-color:rgba(255,255,255,.56)!important;
    box-shadow:0 14px 38px rgba(31,42,62,.15),inset 0 1px 0 rgba(255,255,255,.70),inset 0 -1px 0 rgba(255,255,255,.16)!important;
    -webkit-backdrop-filter:blur(28px) saturate(185%) contrast(102%)!important;
    backdrop-filter:blur(28px) saturate(185%) contrast(102%)!important
  }
  .mobile-nav a.active{
    background:rgba(255,255,255,.32)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.42),0 3px 10px rgba(39,56,88,.06)!important
  }
  .mobile-profile-btn{
    background:linear-gradient(135deg,rgba(255,255,255,.31),rgba(241,247,255,.14))!important;
    border-color:rgba(255,255,255,.58)!important;
    box-shadow:0 10px 30px rgba(31,42,62,.14),inset 0 1px 0 rgba(255,255,255,.72),inset 0 -1px 0 rgba(255,255,255,.15)!important;
    -webkit-backdrop-filter:blur(28px) saturate(185%) contrast(102%)!important;
    backdrop-filter:blur(28px) saturate(185%) contrast(102%)!important
  }
  .chat-shell-wide.has-message-reply .chat-scroll-bottom{bottom:110px}
}

/* v0.1.73 — stable mobile focus clone and safer scroll-to-bottom spacing. */
.chat-scroll-bottom{right:22px;bottom:76px}
.chat-shell-wide.has-message-reply .chat-scroll-bottom{bottom:120px}
@media(max-width:650px){
  .message.mobile-focus-clone.mobile-menu-focus{
    position:fixed!important;
    z-index:510!important;
    pointer-events:none!important;
    margin:0!important;
    filter:none!important;
    opacity:1!important;
    isolation:isolate!important;
    -webkit-transform:translate3d(0,calc(-1 * var(--mobile-message-lift,0px)),0)!important;
    transform:translate3d(0,calc(-1 * var(--mobile-message-lift,0px)),0)!important;
    transition:-webkit-transform .26s cubic-bezier(.22,.78,.24,1),transform .26s cubic-bezier(.22,.78,.24,1)!important;
    will-change:transform,top,left,width;
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden
  }
  .message.mobile-focus-clone.mobile-menu-focus .bubble{
    position:relative!important;
    z-index:511!important;
    pointer-events:none!important;
    filter:none!important;
    opacity:1!important;
    box-shadow:0 22px 54px rgba(24,31,48,.34),0 8px 20px rgba(24,31,48,.18),0 0 0 1px rgba(255,255,255,.9)!important
  }
  .chat-scroll-bottom{right:16px;bottom:74px}
  .chat-shell-wide.has-message-reply .chat-scroll-bottom{bottom:118px}
}
/* v0.1.74 — prevent iOS tap-highlight flash when dismissing mobile message overlays. */
@media(max-width:650px){
  .message-menu-backdrop{
    -webkit-appearance:none!important;
    appearance:none!important;
    -webkit-tap-highlight-color:transparent!important;
    outline:none!important;
    box-shadow:none!important;
    color:transparent!important;
    -webkit-touch-callout:none!important;
    -webkit-user-select:none!important;
    user-select:none!important
  }
  .message-menu-backdrop:active,.message-menu-backdrop:focus,.message-menu-backdrop:focus-visible{
    outline:none!important;
    box-shadow:none!important
  }
}

/* v0.1.75 — messenger polish, mobile navigation and modal chrome. */
@media (min-width:651px){
  .message-hover-reaction-picker{top:calc(100% + 7px)!important;bottom:auto!important}
}
@media (max-width:650px){
  body.messenger-chat-open .mobile-nav{display:flex!important;visibility:visible!important;pointer-events:auto!important;z-index:230!important}
  .messenger-page.mobile-chat-open .chat-shell-wide{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;height:auto!important;max-height:none!important}
  .modal-backdrop:not(.image-viewer-modal){align-items:flex-start!important;place-items:start center!important;overflow-y:auto!important;padding:26px 12px calc(26px + env(safe-area-inset-bottom,0px))!important}
  .modal-backdrop:not(.image-viewer-modal)>.modal-card{max-height:none!important;overflow:visible!important;margin-top:4px!important}
  .modal-backdrop:not(.image-viewer-modal)>.modal-card>.modal-close{position:absolute!important;top:-13px!important;right:-7px!important;left:auto!important;margin:0!important;z-index:280!important}
  .image-viewer-close{right:-7px!important;top:-10px!important}.image-viewer-download{right:36px!important;top:-10px!important}
  .mobile-focus-returning .bubble{box-shadow:0 6px 22px rgba(28,34,48,.10)!important;transition:box-shadow .30s cubic-bezier(.22,.78,.24,1)!important}
}

/* v0.1.75 — service administrator identity and compact feedback media. */
.service-admin-name{display:inline-flex;align-items:center;gap:5px;color:#2168d7!important;font-weight:700;text-shadow:0 0 7px rgba(132,70,255,.46),0 0 14px rgba(132,70,255,.22);text-decoration:none!important;white-space:nowrap}
.service-admin-icon{width:17px;height:17px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 0 4px rgba(132,70,255,.8)) drop-shadow(0 0 8px rgba(132,70,255,.35));flex:0 0 auto}
.service-admin-author{cursor:default}.message-author .service-admin-name{font-size:inherit}.message-author .service-admin-icon{width:15px;height:15px}
.feedback-view-card .feedback-view-images{grid-template-columns:repeat(auto-fill,minmax(74px,86px))!important;justify-content:start!important;gap:7px!important}
.feedback-view-card .feedback-view-image{width:86px!important;max-width:86px!important;aspect-ratio:1/1!important;border-radius:10px!important}
.plan-sections-feature{display:grid!important;gap:4px!important}.plan-sections-feature>b{font-weight:600!important;line-height:1.4!important}

/* v0.1.75 — administrator family-access surfaces. */
.admin-family-mode-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:10px 12px;border:1px solid rgba(121,86,218,.24);border-radius:13px;background:linear-gradient(135deg,rgba(239,235,255,.92),rgba(247,249,255,.96));box-shadow:0 8px 24px rgba(87,64,155,.08)}
.admin-family-mode-banner>span{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;font-weight:750;color:#4d3e86}.admin-family-mode-banner img{width:20px;height:20px;object-fit:contain;filter:drop-shadow(0 0 5px rgba(132,70,255,.6))}
.admin-access-indicator{display:inline-flex;align-items:center;gap:5px;color:#2b7a47;font-size:11px;font-weight:750;white-space:nowrap}.admin-access-indicator:before{content:'';width:7px;height:7px;border-radius:50%;background:#43a866;box-shadow:0 0 0 3px rgba(67,168,102,.12)}
.admin-family-access-card .card-head{align-items:flex-start}.admin-family-access-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.admin-family-access-actions form{margin:0}.admin-family-access-actions .inline-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.admin-family-access-actions label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.admin-family-access-actions input[type=date]{border:1px solid #d8dce2;border-radius:9px;padding:8px 9px;background:#fff;color:var(--text)}
.admin-access-user-card{margin-bottom:14px}.admin-access-user-list{display:grid;gap:8px}.admin-access-user-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:#fafbfc}.admin-access-user-row>div:first-child{display:grid;gap:3px;min-width:0}.admin-access-user-row small{color:var(--muted);font-size:10px}.admin-access-user-row .actions-row{align-items:center;justify-content:flex-end}.admin-access-user-row form{display:flex;gap:6px;flex-wrap:wrap}
.feedback-admin-access-form{display:grid;grid-template-columns:minmax(180px,260px) auto minmax(0,1fr);align-items:end;gap:10px;margin-top:14px;padding:12px;border:1px solid #e2e5eb;border-radius:12px;background:#fafbfc}.feedback-admin-access-form label{display:grid;gap:5px;font-size:11px}.feedback-admin-access-form input[type=date]{border:1px solid #d8dce2;border-radius:9px;padding:8px 9px;background:#fff}.feedback-admin-access-form .ajax-status{align-self:center}
.admin-profile-card{max-width:760px}.admin-profile-main{display:flex;align-items:center;gap:13px;margin:10px 0 18px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fafbfc}.admin-profile-copy{display:grid;gap:5px;min-width:0}.admin-profile-copy>b{font-size:17px;overflow-wrap:anywhere}
@media(max-width:650px){.admin-family-mode-banner,.admin-access-user-row{align-items:flex-start;flex-direction:column}.admin-family-mode-banner .btn{width:100%;justify-content:center}.feedback-admin-access-form{grid-template-columns:1fr}.admin-family-access-actions{align-items:stretch;flex-direction:column}.admin-family-access-actions form,.admin-family-access-actions .inline-form{width:100%}.admin-family-access-actions .btn{width:100%;justify-content:center}}

/* Keep the mobile focused-message closing effects synchronized. */
@media(max-width:650px){
  .message-menu-backdrop{transition:opacity .30s cubic-bezier(.22,.78,.24,1)!important}
  .mobile-focus-returning .bubble{box-shadow:0 0 0 rgba(28,34,48,0)!important;transition:box-shadow .30s cubic-bezier(.22,.78,.24,1)!important}
}

/* v0.1.76 — reaction timing, adaptive desktop palette, restored compact mobile chat and task modal safety. */
@media (min-width:651px){
  .message-hover-reaction-picker{top:calc(100% + 7px)!important;bottom:auto!important}
  .message-hover-reaction-picker.open-up{top:auto!important;bottom:calc(100% + 7px)!important}
}
@media (max-width:650px){
  /* The open conversation keeps the original full-height layout: the global section bar stays hidden. */
  body.messenger-chat-open .mobile-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}
  .messenger-page.mobile-chat-open .chat-shell-wide{bottom:max(8px,env(safe-area-inset-bottom))!important;height:auto!important;max-height:none!important}

  /* Fade the focused-message elevation at the same time as backdrop and return animation. */
  .message.mobile-focus-clone.mobile-menu-focus.mobile-focus-returning .bubble{
    box-shadow:0 0 0 rgba(24,31,48,0),0 0 0 rgba(24,31,48,0),0 0 0 1px rgba(255,255,255,0)!important;
    transition:box-shadow .30s cubic-bezier(.22,.78,.24,1)!important
  }

  /* The task window always starts below the iOS safe area and owns its vertical scroll. */
  #taskModal.task-modal-backdrop{
    align-items:flex-start!important;
    place-items:start center!important;
    padding-top:max(38px,calc(env(safe-area-inset-top,0px) + 24px))!important;
    padding-bottom:max(18px,env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important
  }
  #taskModal>.task-modal-card{
    margin-top:0!important;
    max-height:calc(100dvh - max(56px,calc(env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px) + 36px)))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important
  }
}

/* v0.1.76 — align administrator family-access actions. */
.admin-family-access-actions>form{align-self:flex-end;display:flex;align-items:flex-end}
.admin-family-access-actions .inline-form{align-items:flex-end!important}
.admin-family-access-actions .inline-form>.btn,.admin-family-access-actions>form>.btn{align-self:flex-end;margin-bottom:0}
@media(max-width:650px){
  .admin-family-access-actions>form{align-self:stretch}
}


/* v0.1.77 — admin-context AJAX, mobile focus clone, desktop reaction bounds and task close. */
@media (min-width:651px){
  .message-hover-reaction-picker.open-up{top:auto!important;bottom:calc(100% + 7px)!important}
}
@media (max-width:650px){
  /* The real row keeps its layout slot but disappears while the focused visual clone is shown. */
  .message.mobile-menu-focus-origin{visibility:hidden!important}
  /* Keep the task close button outside the scrollable task card so iOS cannot clip it. */
  #taskModal>.task-modal-card>.modal-close{
    position:fixed!important;
    top:max(23px,calc(env(safe-area-inset-top,0px) + 10px))!important;
    right:2px!important;
    left:auto!important;
    margin:0!important;
    z-index:650!important
  }
}

/* Keep all administrator family-access actions on one button baseline. */
.admin-family-access-actions{align-items:flex-end!important}
.admin-family-access-request{display:flex!important;align-items:flex-end!important;gap:8px!important;margin:0!important}
.admin-family-access-buttons{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;align-self:flex-end}
.admin-family-access-buttons form{display:flex;align-items:flex-end;margin:0!important}
.admin-family-access-actions .btn{min-height:38px}
@media(max-width:650px){
  .admin-family-access-request,.admin-family-access-buttons{width:100%}
  .admin-family-access-request{align-items:stretch!important;flex-direction:column}
  .admin-family-access-buttons{align-items:stretch;flex-direction:column}
  .admin-family-access-buttons form,.admin-family-access-buttons .btn{width:100%}
}

/* v0.1.78 — stable mobile message geometry and universal floating modal close controls. */
.modal-close-source{display:none!important}
.modal-close-float{
  position:fixed!important;
  width:38px!important;height:38px!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:50%!important;
  background:#fff!important;color:#333!important;
  box-shadow:0 4px 20px rgba(0,0,0,.25)!important;
  z-index:900!important;
  transform:none!important;
  display:grid!important;place-items:center!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important
}
.modal-close-float::before,.modal-close-float::after{width:14px!important;height:2px!important;background:currentColor!important}
.profile-award-admin-delete{margin-top:8px;display:flex;justify-content:flex-end}
@media(max-width:650px){
  .message.mobile-focus-clone.mobile-menu-focus{box-sizing:border-box!important}
  .message.mobile-focus-clone.mobile-menu-focus>.bubble{box-sizing:border-box!important}
  .modal-close-float{width:38px!important;height:38px!important}
}


/* v0.1.79 — stable modal close placement and pixel-stable mobile focused messages. */
.modal-close-float{
  visibility:hidden!important;
  opacity:0!important;
  transition:left .16s ease,top .16s ease,opacity .12s ease!important;
}
.modal-close-float.is-ready{visibility:visible!important;opacity:1!important}
@media(max-width:650px){
  .message.mobile-focus-clone.mobile-menu-focus{overflow:visible!important}
  .message.mobile-focus-clone.mobile-menu-focus>.bubble{overflow:visible!important}
}

/* v0.1.82 — smooth messenger bubble growth and reaction pop animation. */
.bubble.message-reaction-layout-animating{
  box-sizing:border-box!important;
  transition:width .23s cubic-bezier(.22,.78,.24,1),height .23s cubic-bezier(.22,.78,.24,1)!important;
  will-change:width,height
}
.message-reaction-chip.message-reaction-chip-pending{
  opacity:0!important;
  transform:translateY(4px) scale(.72)!important
}
.message-reaction-chip.message-reaction-chip-pop{
  animation:message-reaction-chip-pop .34s cubic-bezier(.18,.88,.26,1.25) both!important;
  transform-origin:center
}
@keyframes message-reaction-chip-pop{
  0%{opacity:0;transform:translateY(5px) scale(.68)}
  58%{opacity:1;transform:translateY(-1px) scale(1.10)}
  78%{transform:translateY(0) scale(.96)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:650px){
  .message.mobile-focus-clone.mobile-menu-focus{
    will-change:transform,left,width,height!important
  }
  .message.mobile-focus-clone.mobile-menu-focus>.bubble{
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:100%!important;
    max-height:100%!important
  }
}

/* v0.1.83 — mobile messenger reaction resize follows the desktop timing. */
@media(max-width:650px){
  .message.mobile-focus-clone.mobile-menu-focus>.bubble.message-mobile-reaction-resizing{
    overflow:hidden!important;
  }
  .message.mobile-focus-clone.mobile-menu-focus>.bubble.message-mobile-reaction-resizing .message-meta{
    will-change:transform;
  }
}


/* v0.1.84 — reserve reaction row, incoming footer order, mobile picker/resize polish. */
.message-footer{min-height:25px!important}
.message.theirs .message-footer .message-meta{order:1!important;margin:0 auto 0 0!important;justify-content:flex-start!important}
.message.theirs .message-footer .message-reactions{order:2!important;margin:0 0 0 auto!important;justify-content:flex-end!important}
@media(max-width:650px){
  .emoji-popover{max-height:calc(100dvh - 16px)!important}
}

.message-reaction-chip.message-reaction-chip-removing{
  animation:message-reaction-chip-pop .23s cubic-bezier(.18,.88,.26,1.25) reverse both!important;
  transform-origin:center
}
/* v0.1.86 — keep mobile reaction resizing smooth even under the focused-message transition rules. */
@media(max-width:650px){
  .message:not(.system-message) .bubble.message-reaction-layout-animating{
    transition:width .23s cubic-bezier(.22,.78,.24,1),height .23s cubic-bezier(.22,.78,.24,1),box-shadow .24s ease,filter .24s ease,opacity .24s ease!important;
    will-change:width,height
  }
}

/* v0.1.87 — synchronized reaction removal and stable poll message width. */
.message.poll-message .bubble{
  width:390px;
  max-width:min(70%,700px);
  box-sizing:border-box
}
.message.poll-message .chat-poll{
  width:100%!important;
  max-width:100%!important
}
@media(max-width:650px){
  .message.poll-message .bubble{
    width:86%;
    max-width:86%!important
  }
}

/* v0.1.88 — shared reaction animations and configurable tariff presentation. */
.project-reaction-pop-in{
  animation:message-reaction-chip-pop .34s cubic-bezier(.18,.88,.26,1.25) both!important;
  transform-origin:center
}
.project-reaction-pop-out{
  animation:message-reaction-chip-pop .23s cubic-bezier(.18,.88,.26,1.25) reverse both!important;
  transform-origin:center;
  pointer-events:none!important
}
.feed-like-btn>span:first-child.project-reaction-pop-in,
.feed-like-btn>span:first-child.project-reaction-pop-out,
.comment-like>span:first-child.project-reaction-pop-in,
.comment-like>span:first-child.project-reaction-pop-out{
  display:inline-block
}
.plan-section-lines{display:grid;gap:3px;font-weight:600!important}
.plan-section-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:baseline}
.plan-section-line em{font-style:normal;color:var(--muted);font-weight:650}
.admin-plan-settings-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.admin-plan-settings-card{border:1px solid var(--line);border-radius:16px;background:var(--card2);padding:14px;display:grid;gap:12px}
.admin-plan-settings-title{display:flex;align-items:center;justify-content:space-between;min-height:30px}
.admin-plan-settings-fields{display:grid;gap:9px}
.admin-plan-settings-fields>label{display:grid;grid-template-columns:minmax(0,1fr) minmax(118px,.72fr);gap:10px;align-items:center;margin:0;font-size:12px;font-weight:650;color:#4f5865}
.admin-plan-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
.admin-plan-input input{width:100%;min-width:0}
.admin-plan-input small{font-size:10px;color:var(--muted);white-space:nowrap;font-weight:600}
@media(max-width:1100px){.admin-plan-settings-cards{grid-template-columns:1fr}.admin-plan-settings-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-plan-settings-fields>label{grid-template-columns:minmax(0,1fr) minmax(110px,.7fr)}}
@media(max-width:650px){.admin-plan-settings-fields{grid-template-columns:1fr}.admin-plan-settings-fields>label{grid-template-columns:minmax(0,1fr) minmax(105px,.72fr)}.plan-section-line{grid-template-columns:minmax(0,1fr) auto}}

/* v0.1.89 — wider tariff chooser, aligned plan actions and stable messenger reaction removal. */
#planSelectModal .plan-modal-card{
  width:min(1320px,calc(100vw - 36px));
  max-width:1320px
}
#planSelectModal .plan-compare-grid{align-items:stretch}
#planSelectModal .plan-compare-card{min-width:0;height:100%}
#planSelectModal .plan-feature-list>li:not(.plan-sections-feature){white-space:nowrap}
#planSelectModal .plan-compare-card>.btn{margin-top:auto;width:100%}
.message-reaction-chip-ghost{
  position:absolute!important;
  z-index:7!important;
  margin:0!important;
  pointer-events:none!important;
  box-sizing:border-box!important
}
@media(max-width:980px){
  #planSelectModal .plan-modal-card{width:min(760px,calc(100vw - 24px));max-width:760px}
  #planSelectModal .plan-feature-list>li:not(.plan-sections-feature){white-space:normal}
}


/* v0.1.90 — stable messenger reaction geometry and clean poll footer. */
.message-reaction-footer-animating{
  visibility:hidden!important
}
.message-reaction-anim-layer{
  position:absolute!important;
  inset:0!important;
  z-index:9!important;
  display:block!important;
  overflow:visible!important;
  pointer-events:none!important
}
.message-reaction-anim-item{
  position:absolute!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
  will-change:transform
}
.message-reaction-anim-item>.message-reaction-chip{
  margin:0!important;
  width:100%!important;
  height:100%!important;
  box-sizing:border-box!important;
  pointer-events:none!important
}
.message-reaction-anim-meta{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  margin:0!important;
  white-space:nowrap!important;
  width:max-content!important;
  height:100%!important;
  box-sizing:border-box!important;
  pointer-events:none!important
}
.message-reaction-chip.message-reaction-chip-unselecting{
  animation:message-reaction-chip-unselect .23s cubic-bezier(.22,.78,.24,1) both!important;
  transform-origin:center
}
@keyframes message-reaction-chip-unselect{
  0%{opacity:1;transform:scale(1)}
  48%{opacity:.62;transform:scale(.84)}
  100%{opacity:1;transform:scale(1)}
}

/* v0.1.93 — mobile reactions grow/shrink in place and push neighbouring chips smoothly. */
.bubble.message-reaction-layout-animating{
  transition:width .26s cubic-bezier(.22,.78,.24,1),height .26s cubic-bezier(.22,.78,.24,1)!important
}
.message-reaction-chip.message-reaction-chip-pending{
  opacity:0!important;
  transform:scale(.05)!important
}
.message-reaction-chip.message-reaction-chip-pop{
  animation:message-reaction-chip-grow-v0193 .26s cubic-bezier(.18,.88,.26,1.16) both!important;
  transform-origin:center
}
.message-reaction-chip.message-reaction-chip-removing{
  animation:message-reaction-chip-shrink-v0193 .26s cubic-bezier(.48,.04,.78,.30) both!important;
  transform-origin:center;
  pointer-events:none!important
}
@keyframes message-reaction-chip-grow-v0193{
  0%{opacity:0;transform:scale(.05)}
  68%{opacity:1;transform:scale(1.08)}
  100%{opacity:1;transform:scale(1)}
}
@keyframes message-reaction-chip-shrink-v0193{
  0%{opacity:1;transform:scale(1)}
  100%{opacity:0;transform:scale(.05)}
}
@media(max-width:650px){
  .message:not(.system-message) .bubble.message-reaction-layout-animating{
    transition:width .26s cubic-bezier(.22,.78,.24,1),height .26s cubic-bezier(.22,.78,.24,1),box-shadow .24s ease,filter .24s ease,opacity .24s ease!important
  }
}

/* v0.1.94 — larger menus, slightly larger mobile chat and 15-reaction palettes. */
.feed-reaction-picker{grid-template-columns:repeat(5,38px);max-width:min(220px,calc(100vw - 16px))}
.comment-reaction-picker{grid-template-columns:repeat(5,30px)!important}
.message-hover-reaction-picker{grid-template-columns:repeat(5,34px)!important;max-width:min(194px,calc(100vw - 20px))!important}
.message-quick-reactions{grid-template-columns:repeat(5,1fr)!important}
.message-mobile-reaction-palette{grid-template-columns:repeat(5,40px)!important;max-width:calc(100vw - 20px)}
.message-mobile-reaction-palette button{width:40px;height:38px;font-size:21px}
.message-mobile-reaction-palette .custom-emoji{width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important}

/* Keep the established menu design, only make tap/click targets and text easier to read. */
.feed-post-menu,.task-more-menu,.goal-view-menu,.message-actions{min-width:154px!important;padding:5px!important;border-radius:10px!important}
.feed-post-menu button,.task-more-menu button,.goal-view-menu button,.message-actions button{padding:8px 10px!important;border-radius:7px!important;font-size:13px!important;line-height:1.3!important}
.message-context-menu{min-width:190px!important;max-width:min(270px,calc(100vw - 16px))!important}
.profile-menu{padding:5px!important;border-radius:10px!important}
.profile-menu a{padding:8px 10px!important;border-radius:7px!important;font-size:13px!important;line-height:1.3!important}
.entity-comment-more-menu{min-width:150px!important;padding:5px!important;border-radius:10px!important}
.entity-comment-more-menu button{padding:8px 10px!important;border-radius:7px!important;font-size:13px!important;line-height:1.3!important}
.album-photo-more-menu{min-width:170px!important;padding:5px!important;border-radius:10px!important}
.album-photo-more-menu button{padding:8px 10px!important;border-radius:7px!important;font-size:13px!important;line-height:1.3!important}
.mobile-profile-menu{width:185px!important;padding:5px!important;border-radius:10px!important}
.mobile-profile-menu a{padding:9px 10px!important;border-radius:7px!important;font-size:13px!important;line-height:1.3!important}
.chat-attach-menu{width:185px!important;padding:5px!important;border-radius:10px!important}
.chat-attach-menu button{padding:9px 10px!important;border-radius:7px!important;font-size:13px!important;line-height:1.3!important}
.mention-menu,.assignee-menu{min-width:min(280px,calc(100vw - 20px))}
.mention-option,.assignee-option{padding:9px 10px!important;font-size:13px!important;line-height:1.3!important}

#adminEmojiItemsPanel{transition:opacity .14s ease}
#adminEmojiItemsPanel.admin-panel-loading{opacity:.52;pointer-events:none}

@media(max-width:650px){
  /* The mobile messenger was noticeably smaller than the rest of the project. */
  .messenger-page #messages .message-text{font-size:15px;line-height:1.5}
  .messenger-page #messages .message-author{font-size:12px}
  .messenger-page #messages .message-meta{font-size:11px}
  .messenger-page #messages .edited-mark{font-size:10px}
  .messenger-page #messages .message-reply-preview b,.messenger-page #messages .message-reply-preview small{font-size:11px}
  .messenger-page #messages .message-reaction-chip{height:27px;padding:1px 8px;font-size:14px}
  .messenger-page #messages .message-reaction-chip b{font-size:10px}
  .messenger-page #messages .message-reaction-chip .custom-emoji{width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important}
  .messenger-page #messages .chat-poll-question{font-size:14px}
  .messenger-page #messages .chat-poll-option-label{font-size:12px}
  .messenger-page #messages .chat-poll-option-votes,.messenger-page #messages .chat-poll-total{font-size:10px!important}
  .messenger-page #messages .chat-date-separator{font-size:12px}
  .message-actions.is-context-menu{min-width:196px!important}
}

/* v0.1.95 — keep mobile focused-message clones at the same scale and enlarge chat emoji/reactions. */
@media(max-width:650px){
  /* The focused bubble is cloned directly under <body> while reaction/menu animations run.
     Mirror every mobile chat scale rule on that clone so text and footer never shrink mid-animation. */
  .messenger-page #messages .message-text,
  .message.mobile-focus-clone .message-text{font-size:16px!important;line-height:1.5!important}
  .messenger-page #messages .message-author,
  .message.mobile-focus-clone .message-author{font-size:12.5px!important}
  .messenger-page #messages .message-meta,
  .message.mobile-focus-clone .message-meta{font-size:11px!important}
  .messenger-page #messages .edited-mark,
  .message.mobile-focus-clone .edited-mark{font-size:10px!important}
  .messenger-page #messages .message-reply-preview b,
  .messenger-page #messages .message-reply-preview small,
  .message.mobile-focus-clone .message-reply-preview b,
  .message.mobile-focus-clone .message-reply-preview small{font-size:11px!important}

  .messenger-page #messages .message-text .custom-emoji,
  .message.mobile-focus-clone .message-text .custom-emoji{width:1.7em!important;height:1.7em!important;vertical-align:-.34em!important}

  .messenger-page #messages .message-reaction-chip,
  .message.mobile-focus-clone .message-reaction-chip{height:29px!important;padding:1px 9px!important;font-size:15px!important;gap:5px!important}
  .messenger-page #messages .message-reaction-chip b,
  .message.mobile-focus-clone .message-reaction-chip b{font-size:11px!important}
  .messenger-page #messages .message-reaction-chip .custom-emoji,
  .message.mobile-focus-clone .message-reaction-chip .custom-emoji{width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important}

  .messenger-page #messages .chat-poll-question,
  .message.mobile-focus-clone .chat-poll-question{font-size:15px!important}
  .messenger-page #messages .chat-poll-option-label,
  .message.mobile-focus-clone .chat-poll-option-label{font-size:13px!important}
  .messenger-page #messages .chat-poll-option-votes,
  .messenger-page #messages .chat-poll-total,
  .message.mobile-focus-clone .chat-poll-option-votes,
  .message.mobile-focus-clone .chat-poll-total{font-size:10.5px!important}

  /* Reaction palette: keep 5 columns, but give the emoji themselves a clearer mobile size. */
  .message-mobile-reaction-palette{grid-template-columns:repeat(5,42px)!important}
  .message-mobile-reaction-palette button{width:42px!important;height:40px!important;font-size:23px!important}
  .message-mobile-reaction-palette .custom-emoji{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important}

  /* General emoji picker/editor on phones. */
  .emoji-item-btn{font-size:24px!important}
  .emoji-item-btn img{width:33px!important;height:33px!important}
  .emoji-set-tab{font-size:22px!important}
  .emoji-set-tab img{width:27px!important;height:27px!important}
  .emoji-rich-token{width:1.55em!important;height:1.55em!important;vertical-align:-.32em!important}
}
\n\n/* v0.1.96 — sidebar plan badge alignment, symmetric mobile event modal and single floating modal close. */
/* Keep the version and plan badge on one clean baseline next to the logo. */
.brand-copy>small{display:flex;align-items:center;gap:5px;white-space:nowrap}
.brand-plan-badge{margin-left:0!important;font-size:9px!important;padding:2px 7px!important;letter-spacing:.045em!important;line-height:1.15!important}

@media(max-width:650px){
  /* Event modal must respect the backdrop's equal horizontal padding on both sides. */
  #eventModal>.event-modal-card{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}

  /* Mobile modals use the floating close control only. Hide every in-card source close,
     including less common nested modal cards, so two X buttons can never be visible. */
  .modal-backdrop:not(.image-viewer-modal) .modal-card .modal-close:not(.modal-close-float){display:none!important}
}

/* v0.1.97 — stable viewport-aware @mention autocomplete. */
.mention-menu{z-index:1850!important}
@media(max-width:650px){
  .mention-menu{max-width:none!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
}

/* v0.1.108 — reaction trigger gap, Board text polish and mobile goal/modal fixes. */
.board-calendar-copy{display:grid;min-width:0;gap:2px}
.board-calendar-copy b,.board-calendar-copy small{display:block;min-width:0}
.board-calendar-copy small{color:var(--muted);font-size:11px;line-height:1.25}
.board-tasks .custom-emoji,.board-notes .custom-emoji,.board-calendar .custom-emoji,.board-albums .custom-emoji,.board-events .custom-emoji,.board-goals .custom-emoji{width:1.35em!important;height:1.35em!important;vertical-align:-.25em!important;margin:0 .04em!important}
.media-download-busy{opacity:.62!important;cursor:progress!important}
@media(max-width:650px){
  /* Match the already-correct Events modal: equal left/right breathing room on Goals. */
  #goalModal>.goal-modal-card{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
}

/* iPhone photo saving: Safari only exposes “Save to Photos” reliably from the
   native long-press menu of a real image. Keep that menu enabled while the
   user is in save mode and show a lightweight in-app hint instead of leaving
   the service for a separate download page. */
.ios-photo-save-target{-webkit-touch-callout:default!important;-webkit-user-select:none!important;user-select:none!important;-webkit-user-drag:none!important;touch-action:auto!important}
body.ios-photo-save-open{overflow:hidden!important}
.ios-photo-save-page{position:fixed;inset:0;z-index:15000;background:#fff;display:flex;align-items:center;justify-content:center;padding:max(54px,calc(env(safe-area-inset-top,0px) + 42px)) 12px max(92px,calc(env(safe-area-inset-bottom,0px) + 78px));opacity:0;transition:opacity .14s ease;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}
.ios-photo-save-page.show{opacity:1}
.ios-photo-save-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;-webkit-touch-callout:default!important;-webkit-user-select:none!important;user-select:none!important;-webkit-user-drag:none!important;touch-action:auto!important;-webkit-tap-highlight-color:transparent}
.ios-photo-save-back{position:fixed;left:max(12px,calc(env(safe-area-inset-left,0px) + 8px));top:max(12px,calc(env(safe-area-inset-top,0px) + 8px));z-index:1;width:40px;height:40px;border:1px solid #d9e2ef;border-radius:50%;background:rgba(255,255,255,.96);color:#22324a;font:400 34px/34px Arial,sans-serif;display:grid;place-items:center;padding:0 2px 3px 0;box-shadow:0 5px 18px rgba(31,50,78,.12);-webkit-tap-highlight-color:transparent}
.ios-photo-save-caption{position:fixed;left:16px;right:16px;bottom:max(18px,calc(env(safe-area-inset-bottom,0px) + 12px));text-align:center;color:#53657d;font-size:14px;line-height:1.4;padding:8px 10px;background:rgba(255,255,255,.94)}

/* v0.1.116 — browser autoplay guard for incoming-message sound. */

/* v0.1.122 — persistent shell navigation and normal mobile bar geometry. */
@media(max-width:650px){
  html.ohs-in-app-shell .mobile-nav{
    bottom:18px!important;
    height:auto!important;
    min-height:0!important;
    padding-top:7px!important;
    padding-right:max(6px,env(safe-area-inset-right))!important;
    padding-bottom:7px!important;
    padding-left:max(6px,env(safe-area-inset-left))!important;
    align-items:center!important;
  }
  html.ohs-in-app-shell .mobile-nav a{
    align-self:center!important;
  }
}

/* v0.1.123 — feed reaction placement, comment reaction trigger, composer sizing. */
.comment-reaction-add{
  border:1px solid var(--line)!important;
  background:#fff!important;
  border-radius:999px!important;
  min-height:29px!important;
  padding:4px 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#646c78!important;
  line-height:1!important;
  transition:background .14s ease,border-color .14s ease,color .14s ease!important;
}
.comment-reaction-add:hover{background:#f3f5f8!important;border-color:#d5dae3!important;color:#3f4754!important}
.message-composer .send-btn{height:38px!important;min-height:38px!important;padding-top:0!important;padding-bottom:0!important}
@media(max-width:650px){.message-composer .send-btn{height:38px!important;min-height:38px!important}}

/* v0.1.127 — persistent mobile chrome lives in app-shell.php. */
@media(max-width:650px){
  html.ohs-in-app-shell .mobile-nav,
  html.ohs-in-app-shell .mobile-profile-wrap{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

/* v0.1.129 — album emoji sizing and symmetric mobile photo viewer spacing */
.album-card-copy p .custom-emoji,.album-description .custom-emoji{display:inline-block!important;width:1.25em!important;height:1.25em!important;max-width:1.25em!important;max-height:1.25em!important;object-fit:contain!important;vertical-align:-.22em!important;margin:0 .03em!important}
.album-card-copy p{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(max-width:650px){
  #albumPhotoModal{padding-left:8px!important;padding-right:8px!important}
  #albumPhotoModal .album-photo-modal{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
}

/* v0.1.130: note title is a stable single-line field; custom emoji button stays on the right. */
.note-title-wrap{width:100%;min-width:0}
.note-title-wrap .note-title,.note-title-wrap .emoji-rich-input.emoji-rich-single{box-sizing:border-box;border:1px solid #d8dce2;border-radius:10px;background:#fff;padding:9px 11px;height:40px!important;min-height:40px!important;max-height:40px!important;line-height:20px!important;overflow:hidden!important;white-space:nowrap!important}
.note-title-wrap .field-icon-btn{flex:0 0 40px;width:40px;min-width:40px;height:40px;margin-left:auto}
.note-card-head h3 .custom-emoji,.note-view h2 .custom-emoji{width:1.25em!important;height:1.25em!important;max-width:1.25em!important;max-height:1.25em!important;vertical-align:-.22em!important;margin:0 .03em!important}
@media(max-width:650px){.note-top{display:block!important}.note-title-wrap{display:flex!important;align-items:center!important;gap:8px!important}.note-title-wrap .note-title,.note-title-wrap .emoji-rich-input.emoji-rich-single{font-size:16px!important;font-weight:600!important;flex:1 1 auto!important;width:auto!important}.note-title-wrap .field-icon-btn{margin-left:auto!important}}

/* v0.1.131: mobile note title stays one line and emoji button is pinned to the right. */
@media(max-width:650px){
  .note-editor .note-top{display:block!important;padding:12px 14px!important;box-sizing:border-box!important;overflow:visible!important}
  .note-editor .note-title-wrap{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:40px!important;padding:0 48px 0 0!important;box-sizing:border-box!important;overflow:visible!important}
  .note-editor .note-title-wrap .note-title,
  .note-editor .note-title-wrap .emoji-rich-input.emoji-rich-single{display:block!important;position:relative!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:9px 11px!important;flex:none!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;overflow-wrap:normal!important;word-break:normal!important;line-height:20px!important;font-size:16px!important;font-weight:600!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .note-editor .note-title-wrap .emoji-rich-input.emoji-rich-single::-webkit-scrollbar{display:none}
  .note-editor .note-title-wrap .field-icon-btn{position:absolute!important;right:0!important;top:0!important;display:grid!important;place-items:center!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:0!important;z-index:2}
  .note-editor .note-title-wrap .emoji-rich-token{width:1.25em!important;height:1.25em!important;max-width:1.25em!important;max-height:1.25em!important;vertical-align:-.22em!important;margin:0 .03em!important;transform:none!important}
}

/* v0.1.132: rebuild mobile Notes layout to prevent horizontal overflow and editor stretching. */
.notes-grid,.note-card,.note-card-head,.note-card-head h3,.note-card p,.note-view,.note-view-head,.note-view-head>div,.note-view h2,.note-editor,.note-editor form,.note-top,.note-title-wrap,.note-attachment-editor,.note-editor .entity-attachment-edit-list,.note-editor .entity-attachment-card,.note-editor .entity-attachment-open,.note-editor .entity-attachment-copy,.note-editor .editor-status{min-width:0;max-width:100%;box-sizing:border-box}
.note-card{overflow:hidden}
.note-card-head h3,.note-view h2{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.note-card p{overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.note-card-head time{flex:0 0 auto}

@media(max-width:650px){
  /* Notes list: nothing may enlarge the page beyond the viewport. */
  .notes-grid{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .notes-grid .note-card{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  .notes-grid .note-card-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;width:100%!important;max-width:100%!important;gap:8px!important}
  .notes-grid .note-card-head h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important;line-height:1.35!important}
  .notes-grid .note-card-head time{max-width:82px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .notes-grid .note-card p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:5!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:pre-line!important}

  /* Open note view. */
  .note-view{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .note-view-head{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .note-view-head>div:first-child{width:100%!important;max-width:100%!important;min-width:0!important}
  .note-view h2{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important}
  .note-view-content{width:100%!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;overflow-x:hidden!important}

  /* Edit card is a fixed-width mobile column; children can never widen it. */
  .note-editor{width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;overflow:hidden!important}
  .note-editor form{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  .note-editor .note-top{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;padding:12px 14px!important;margin:0!important;overflow:hidden!important;border-bottom:1px solid var(--line)!important}
  .note-editor .note-title-wrap{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:40px!important;padding:0 48px 0 0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important}
  .note-editor .note-title-wrap .note-title,
  .note-editor .note-title-wrap .emoji-rich-input.emoji-rich-single{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:9px 11px!important;box-sizing:border-box!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;overflow-wrap:normal!important;word-break:normal!important;line-height:20px!important;font-size:16px!important;font-weight:600!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
  .note-editor .note-title-wrap .note-title::-webkit-scrollbar,
  .note-editor .note-title-wrap .emoji-rich-input.emoji-rich-single::-webkit-scrollbar{display:none!important}
  .note-editor .note-title-wrap .field-icon-btn{position:absolute!important;right:0!important;top:0!important;display:grid!important;place-items:center!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0!important;z-index:3!important}

  /* Formatting tools stay in one row instead of pushing the editor down unpredictably. */
  .note-editor .bb-toolbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;padding:8px 10px!important;border-left:0!important;border-right:0!important;border-radius:0!important;box-sizing:border-box!important;position:relative!important;z-index:1!important}
  .note-editor .bb-toolbar::-webkit-scrollbar{display:none!important}
  .note-editor .bb-toolbar button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:34px!important;padding:0!important;display:grid!important;place-items:center!important}

  /* The real textarea is replaced by an emoji-rich contenteditable. Keep both variants constrained. */
  .note-editor #noteContent,
  .note-editor #noteContent + .emoji-rich-input.emoji-rich-multiline,
  .note-editor .emoji-rich-input.emoji-rich-multiline[data-emoji-source="noteContent"]{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:clamp(260px,42vh,390px)!important;min-height:260px!important;max-height:390px!important;margin:0!important;padding:14px!important;box-sizing:border-box!important;border-left:0!important;border-right:0!important;border-radius:0!important;resize:none!important;overflow-y:auto!important;overflow-x:hidden!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.55!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important}
  .note-editor #noteContent + .emoji-rich-input.emoji-rich-multiline::-webkit-scrollbar,
  .note-editor .emoji-rich-input.emoji-rich-multiline[data-emoji-source="noteContent"]::-webkit-scrollbar{display:none!important}
  .note-editor #noteContent + .emoji-rich-input.emoji-rich-multiline .emoji-rich-token,
  .note-editor .emoji-rich-input.emoji-rich-multiline[data-emoji-source="noteContent"] .emoji-rich-token{max-width:1.45em!important;max-height:1.45em!important;transform:none!important}

  /* Attachments and action row also stay inside the card. */
  .note-editor .note-attachment-editor{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;margin:12px!important;padding:10px!important;overflow:hidden!important}
  .note-editor .checklists-editor-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .note-editor .checklists-editor-head>div{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
  .note-editor .checklists-editor-head .btn{align-self:flex-start!important;max-width:100%!important}
  .note-editor .entity-attachment-edit-list{grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .note-editor .entity-attachment-card,.note-editor .entity-attachment-open,.note-editor .entity-attachment-copy{width:100%!important;max-width:100%!important;min-width:0!important}
  .note-editor .entity-attachment-copy b{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .note-editor .editor-status{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px 12px!important;overflow:hidden!important}
  .note-editor .editor-status>span{max-width:100%!important;overflow-wrap:anywhere!important}
  .note-editor .editor-status>div{display:flex!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;gap:7px!important}
}

/* v0.1.133 — stable mobile note-title emoji button and rich-editor caret retention. */
@media(max-width:650px){
  .note-editor .note-title-wrap{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 40px!important;
    align-items:center!important;
    column-gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:40px!important;
    padding:0!important;
    overflow:visible!important;
  }
  .note-editor .note-title-wrap .note-title,
  .note-editor .note-title-wrap .emoji-rich-input.emoji-rich-single{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .note-editor .note-title-wrap .field-icon-btn{
    position:static!important;
    grid-column:2!important;
    grid-row:1!important;
    justify-self:stretch!important;
    align-self:stretch!important;
    display:grid!important;
    place-items:center!important;
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:0!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}


/* v0.1.136 — stable mobile Board width and messenger-style comment reactions. */
@media(max-width:650px){
  /* A plain 1fr track can still honor a child's min-content width. Keep every Board
     column and card genuinely shrinkable so one long title/date cannot widen the page. */
  .board-grid{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .board-grid>.card{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .board-grid .task-row{grid-template-columns:auto minmax(0,1fr) auto!important;min-width:0!important;max-width:100%!important}
  .board-grid .task-row>div,.board-grid .chat-row>div,.board-grid .board-calendar-copy,.board-grid .board-event-row>span:not(.board-event-icon),.board-grid .board-feed-row>span:nth-child(2),.board-grid .board-album-card>span:last-child,.board-grid .board-goal-heading{min-width:0!important;max-width:100%!important}
  .board-grid .task-row b,.board-grid .task-row small,.board-grid .note-row b,.board-grid .board-calendar-copy b,.board-grid .board-event-row b,.board-grid .board-feed-row p,.board-grid .board-goal-heading b{overflow-wrap:anywhere!important;word-break:break-word!important}
}

/* Comments use the same interaction model as chat bubbles: desktop hover trigger,
   mobile tap-focus with a blurred backdrop and floating reaction palette. */
.entity-comment-body{position:relative}
.comment-hover-react{position:absolute;z-index:92;left:-14px;bottom:-14px;width:28px;height:28px;display:none}
.comment-hover-react-btn{width:28px;height:28px;border:1px solid rgba(210,215,224,.95);border-radius:50%;background:rgba(255,255,255,.97);box-shadow:0 5px 14px rgba(30,36,48,.12);display:grid;place-items:center;padding:0;color:#68717d;cursor:pointer;opacity:0;transform:scale(.9);transition:opacity .12s ease,transform .12s ease,background .12s ease,border-color .12s ease}
.comment-hover-react-btn:hover{background:#fff;border-color:#cfd5df;color:#4e5968}
.comment-hover-react-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.comment-hover-react-icon .fill{fill:currentColor;stroke:none}
.comment-floating-reaction-palette{position:fixed;z-index:5202;display:grid;grid-template-columns:repeat(5,34px);gap:3px;width:max-content;max-width:calc(100vw - 20px);padding:6px;border:1px solid rgba(211,216,225,.98);border-radius:13px;background:rgba(255,255,255,.99);box-shadow:0 16px 42px rgba(26,33,48,.20);box-sizing:border-box}
.comment-floating-reaction-palette[hidden]{display:none!important}
.comment-floating-reaction-palette button{width:34px;height:34px;border:0;border-radius:8px;background:transparent;padding:2px;display:grid;place-items:center;cursor:pointer;font-size:18px;line-height:1;-webkit-tap-highlight-color:transparent}
.comment-floating-reaction-palette button:hover{background:#f1f3f6}
.comment-floating-reaction-palette .custom-emoji{display:block!important;width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;object-fit:contain!important;margin:0!important;vertical-align:middle!important}
@media(min-width:651px){
  .entity-comment-body:hover>.comment-hover-react,.comment-hover-react:focus-within{display:block}
  .entity-comment-body:hover>.comment-hover-react .comment-hover-react-btn,.comment-hover-react:focus-within .comment-hover-react-btn{opacity:1;transform:none}
}
@media(max-width:650px){
  .comment-hover-react{display:none!important}
  .comment-mobile-focus-backdrop{position:fixed;inset:0;z-index:5200;display:block;background:rgba(246,247,250,.18);-webkit-backdrop-filter:blur(6px) saturate(118%);backdrop-filter:blur(6px) saturate(118%);opacity:0;pointer-events:none;transition:opacity .20s ease;will-change:opacity}
  .comment-mobile-focus-backdrop[hidden]{display:none!important}
  .comment-mobile-focus-backdrop.is-visible{opacity:1;pointer-events:auto}
  .comment-mobile-focus-clone{position:fixed!important;z-index:5201!important;box-sizing:border-box!important;margin:0!important;max-width:none!important;overflow:visible!important;pointer-events:none!important;box-shadow:0 20px 50px rgba(24,31,48,.30),0 7px 18px rgba(24,31,48,.16),0 0 0 1px rgba(255,255,255,.88)!important;transform:translateZ(0) scale(1.01);transform-origin:center center}
  .comment-mobile-focus-clone .entity-comment-more-menu,.comment-mobile-focus-clone .comment-hover-react{display:none!important}
  .comment-floating-reaction-palette.is-mobile{grid-template-columns:repeat(5,38px);gap:4px;padding:6px;z-index:5203;max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .comment-floating-reaction-palette.is-mobile::-webkit-scrollbar{display:none}
  .comment-floating-reaction-palette.is-mobile button{width:38px;height:36px;font-size:20px;border-radius:9px;touch-action:manipulation}
  .comment-floating-reaction-palette.is-mobile button:active{background:#eef1f5;transform:scale(.94)}
  .comment-floating-reaction-palette.is-mobile .custom-emoji{width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important}
  .entity-comment.comment-mobile-focus-origin>.entity-comment-body{visibility:hidden!important}
}

/* v0.1.137 — feed reactions, album batch actions and taller messenger workspace. */
.feed-post-main{position:relative;min-width:0}
.feed-hover-react{position:absolute;z-index:92;left:-14px;bottom:-14px;width:28px;height:28px;display:none}
.feed-hover-react-btn{width:28px;height:28px;border:1px solid rgba(210,215,224,.95);border-radius:50%;background:rgba(255,255,255,.97);box-shadow:0 5px 14px rgba(30,36,48,.12);display:grid;place-items:center;padding:0;color:#68717d;cursor:pointer;opacity:0;transform:scale(.9);transition:opacity .12s ease,transform .12s ease,background .12s ease,border-color .12s ease}
.feed-hover-react-btn:hover{background:#fff;border-color:#cfd5df;color:#4e5968}
.feed-hover-react-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.feed-hover-react-icon .fill{fill:currentColor;stroke:none}
.feed-floating-reaction-palette{position:fixed;z-index:5202;display:grid;grid-template-columns:repeat(5,38px);gap:4px;width:max-content;max-width:calc(100vw - 20px);padding:6px;border:1px solid rgba(211,216,225,.98);border-radius:13px;background:rgba(255,255,255,.99);box-shadow:0 16px 42px rgba(26,33,48,.20);box-sizing:border-box}
.feed-floating-reaction-palette[hidden]{display:none!important}.feed-floating-reaction-palette button{width:38px;height:36px;border:0;border-radius:9px;background:transparent;padding:2px;display:grid;place-items:center;cursor:pointer;font-size:20px;line-height:1;-webkit-tap-highlight-color:transparent}.feed-floating-reaction-palette button:hover{background:#f1f3f6}.feed-floating-reaction-palette .custom-emoji{display:block!important;width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;margin:0!important;vertical-align:middle!important}
@media(min-width:651px){.feed-post-main:hover>.feed-hover-react,.feed-hover-react:focus-within{display:block}.feed-post-main:hover>.feed-hover-react .feed-hover-react-btn,.feed-hover-react:focus-within .feed-hover-react-btn{opacity:1;transform:none}}
@media(max-width:650px){
  .feed-hover-react{display:none!important}
  .feed-mobile-focus-backdrop{position:fixed;inset:0;z-index:5200;display:block;background:rgba(246,247,250,.18);-webkit-backdrop-filter:blur(6px) saturate(118%);backdrop-filter:blur(6px) saturate(118%);opacity:0;pointer-events:none;transition:opacity .20s ease;will-change:opacity}.feed-mobile-focus-backdrop[hidden]{display:none!important}.feed-mobile-focus-backdrop.is-visible{opacity:1;pointer-events:auto}
  .feed-mobile-focus-clone{position:fixed!important;z-index:5201!important;box-sizing:border-box!important;margin:0!important;max-width:none!important;overflow:visible!important;pointer-events:none!important;background:#fff!important;border-radius:15px!important;box-shadow:0 20px 50px rgba(24,31,48,.30),0 7px 18px rgba(24,31,48,.16),0 0 0 1px rgba(255,255,255,.88)!important;transform:translateZ(0) scale(1.01);transform-origin:center center}
  .feed-mobile-focus-clone .feed-hover-react,.feed-mobile-focus-clone .feed-post-actions{display:none!important}
  .feed-floating-reaction-palette.is-mobile{z-index:5203;max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}.feed-floating-reaction-palette.is-mobile::-webkit-scrollbar{display:none}.feed-floating-reaction-palette.is-mobile button:active{background:#eef1f5;transform:scale(.94)}
  .feed-post.feed-mobile-focus-origin>.feed-post-main{visibility:hidden!important}
}

.album-head-actions{flex-wrap:wrap;justify-content:flex-end}
.album-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 13px}.album-selection-bar>div:first-child{display:grid;gap:2px;min-width:0}.album-selection-bar small{color:var(--muted);font-size:11px}.album-selection-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.album-photo-select-mark{left:auto!important;right:8px!important;top:8px!important;bottom:auto!important;width:27px!important;height:27px!important;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.96)!important;color:var(--accent)!important;border:2px solid #d5dbe7!important;display:grid!important;place-items:center!important;font-size:15px!important;font-weight:900!important;line-height:1!important;opacity:0;transform:scale(.88);transition:opacity .14s ease,transform .14s ease,background .14s ease,border-color .14s ease;box-shadow:0 4px 12px rgba(30,36,48,.12);z-index:4;text-align:center!important;overflow:visible!important}
.album-gallery.selection-mode .album-photo-select-mark{opacity:1;transform:none}.album-gallery.selection-mode .album-photo-tile:hover>img{transform:none}.album-gallery.selection-mode .album-photo-tile{cursor:pointer}.album-gallery.selection-mode .album-photo-tile.selected{box-shadow:0 0 0 3px rgba(74,103,232,.42);background:#e9edff}.album-gallery.selection-mode .album-photo-tile.selected>.album-photo-select-mark{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}.album-move-modal select{width:100%}
@media(max-width:650px){.album-selection-bar{align-items:stretch;flex-direction:column}.album-selection-actions{justify-content:flex-start}.album-selection-actions .btn{flex:1 1 auto}.album-head-actions{width:100%;justify-content:flex-start}}

body.page-messenger .page-head{display:none!important}
@media(min-width:651px){body.page-messenger .main{padding-top:18px;padding-bottom:18px}body.page-messenger .messenger-layout{height:calc(100dvh - 36px)!important;min-height:520px!important}}
@media(max-width:650px){body.page-messenger.messenger-chat-open .page-head,body.page-messenger .page-head{display:none!important}}

/* v0.1.138 — mobile messenger spacing, centered album empty state and admin grouped navigation. */
.album-grid>.empty-state{grid-column:1/-1;width:100%;box-sizing:border-box;text-align:center}

@media(max-width:650px){
  html.ohs-in-app-shell body.page-messenger:not(.messenger-chat-open) .main{
    box-sizing:border-box!important;
    height:100dvh!important;
    max-height:100dvh!important;
    padding:58px 12px 72px!important;
    overflow:hidden!important;
  }
  html.ohs-in-app-shell body.page-messenger:not(.messenger-chat-open) .messenger-page,
  html.ohs-in-app-shell body.page-messenger:not(.messenger-chat-open) .messenger-layout{
    height:100%!important;
    min-height:0!important;
  }
}
.admin-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.admin-nav-group{position:relative}.admin-nav-group::after{content:"";position:absolute;left:0;right:0;top:100%;height:8px}
.admin-nav-group>.btn{display:inline-flex;align-items:center;gap:6px}
.admin-nav-caret{font-size:10px;line-height:1;opacity:.65;transition:transform .15s ease}
.admin-nav-dropdown{position:absolute;z-index:260;top:calc(100% + 7px);left:0;min-width:220px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 44px rgba(36,42,58,.14);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-4px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease}
.admin-nav-dropdown a{display:flex;align-items:center;min-height:38px;padding:8px 10px;border-radius:8px;color:var(--text);font-size:13px;white-space:nowrap}
.admin-nav-dropdown a:hover,.admin-nav-dropdown a.active{background:var(--hover);color:var(--accent)}
.admin-nav-group:hover .admin-nav-dropdown,.admin-nav-group:focus-within .admin-nav-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.admin-nav-group:hover .admin-nav-caret,.admin-nav-group:focus-within .admin-nav-caret{transform:rotate(180deg)}
.admin-sections-modal-card{width:min(900px,calc(100vw - 28px));max-height:90vh;overflow:auto}
.admin-families-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:900px){.admin-topbar{align-items:flex-start;flex-direction:column}.admin-nav{justify-content:flex-start}.admin-nav-dropdown{left:0;right:auto}}


/* v0.1.139 — requested UI polish: family label, modal click guard support, task observers, album chooser and overflow fixes. */
.sidebar-family-name{margin:-12px 8px 14px;padding:0 2px;color:var(--text);font-size:14px;font-weight:650;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;flex:0 0 auto}
@media(max-width:820px){.sidebar-family-name{display:none}}

/* Feed keeps only the separator after the reaction area (the comments separator). */
.feed-reactions{border-top:0!important;padding-top:0!important;min-height:30px}
.feed-reactions.is-empty{min-height:30px}

/* Long calendar task/event titles must stay inside the day cell. */
.calendar-cell,.calendar-cell-items,.calendar-item{min-width:0}
.calendar-item b{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Multi-person observers reuse the existing square family-member cards. */
.task-observer-editor{display:grid;gap:8px}
.task-observer-grid{grid-template-columns:repeat(auto-fit,minmax(126px,1fr))}
.task-meta-observers{grid-column:1/-1}
.task-observer-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.task-observer-links a{display:inline-flex;align-items:center;gap:4px;min-width:0}

/* Album destination chooser: 5 columns x 5 rows (25 per page) on desktop. */
.album-move-modal{width:min(980px,calc(100vw - 28px));max-height:92vh;overflow:auto}
.album-move-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.album-move-target{min-width:0;border:1px solid var(--line);border-radius:13px;background:#fff;padding:7px;display:grid;gap:7px;text-align:left;cursor:pointer;transition:.14s ease;color:var(--text)}
.album-move-target:hover{border-color:#cfd6ea;box-shadow:0 7px 18px rgba(30,36,48,.08);transform:translateY(-1px)}
.album-move-target.selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(74,103,232,.14)}
.album-move-cover{aspect-ratio:1.35/1;border-radius:9px;overflow:hidden;background:#eef0f3;display:grid;place-items:center;font-size:28px}
.album-move-cover img{width:100%;height:100%;display:block;object-fit:cover}
.album-move-copy{display:grid;gap:2px;min-width:0}
.album-move-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.album-move-copy small{font-size:10px;color:var(--muted)}
.album-move-pagination{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}
.album-move-pagination .btn.active{background:#f0f1f3;color:var(--accent);font-weight:700}
@media(max-width:650px){.album-move-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.album-move-modal{width:calc(100vw - 14px)}}

/* A few extra pixels keep the persistent mobile section bar clear of the messenger list. */
@media(max-width:650px){html.ohs-in-app-shell body.page-messenger:not(.messenger-chat-open) .main{padding-bottom:90px!important}}

/* Administrator grouped navigation is hover-only; clicking the group button no longer pins it open through :focus-within. */
.admin-nav-group:hover .admin-nav-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.admin-nav-group:hover .admin-nav-caret{transform:rotate(180deg)}
.admin-nav-group:focus-within .admin-nav-dropdown{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-4px)}
.admin-nav-group:focus-within .admin-nav-caret{transform:none}
.admin-nav-group:hover:focus-within .admin-nav-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.admin-nav-group:hover:focus-within .admin-nav-caret{transform:rotate(180deg)}

/* v0.1.142 — mobile reactions, compact event dialogs, square calendar, preferences and messenger backgrounds */
@media(max-width:650px){
  .feed-hover-react{display:block!important;left:5px!important;bottom:-14px!important;z-index:96}
  .feed-hover-react-btn{opacity:1!important;transform:none!important;pointer-events:auto!important}
  .feed-floating-reaction-palette.is-mobile{z-index:1005}
}
.event-modal-card,.event-modal-card form,.event-modal-card label,.event-date-line,.event-date-line>*{min-width:0}
.event-modal-card input,.event-modal-card select,.event-modal-card textarea{box-sizing:border-box;max-width:100%;width:100%;min-width:0}
.event-modal-card .input-with-action,.event-modal-card .textarea-with-action,.event-participant-picker{min-width:0;max-width:100%}
@media(max-width:650px){
  .event-modal-card{width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;padding:16px!important}
  .event-date-line{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .event-member-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  .event-member-option.square-member-option{width:100%!important;min-width:0!important;max-width:none!important;overflow:hidden}
  .event-member-option.square-member-option>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
.calendar-grid{align-items:start}
.calendar-cell{aspect-ratio:1/1;min-height:0!important;height:auto!important;display:flex;flex-direction:column;overflow:hidden}
.calendar-cell-head{flex:0 0 auto;min-width:0}
.calendar-cell-head-actions{display:flex;align-items:center;gap:5px;margin-left:auto}
.calendar-add-event{width:23px;height:23px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--accent);font-size:17px;line-height:1;cursor:pointer;font-weight:700}
.calendar-add-event:hover{background:var(--hover)}
.calendar-cell-items{min-height:0;overflow:hidden}
.calendar-item{min-width:0;overflow:hidden}
.calendar-item b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:650px){
  .calendar-cell{aspect-ratio:1/1!important;min-height:0!important;padding:3px!important;border-radius:7px!important}
  .calendar-cell-head{margin-bottom:2px!important}
  .calendar-cell-head-actions>span{display:none}
  .calendar-add-event{width:18px;height:18px;border-radius:5px;font-size:14px}
  .calendar-cell-items{gap:1px!important}
  .calendar-item{padding:2px!important;gap:2px!important;font-size:8px!important;line-height:1.1!important}
  .calendar-item span{display:none!important}
  .calendar-item b{display:block!important;max-width:100%}
  .calendar-more{font-size:8px!important}
}
.messenger-background-current{display:flex;align-items:center;gap:12px;margin-top:8px}
.messenger-background-preview{width:92px;height:64px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,var(--hover),var(--panel));background-size:cover;background-position:center;flex:0 0 auto}
.messenger-background-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:62vh;overflow:auto;padding:2px}
.messenger-background-option{appearance:none;border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:7px;display:grid;gap:6px;cursor:pointer;text-align:left;color:var(--text)}
.messenger-background-option:hover,.messenger-background-option.selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(74,103,232,.08)}
.messenger-background-option b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.messenger-background-thumb{height:90px;border-radius:9px;background-size:cover;background-position:center;background-color:var(--hover);display:grid;place-items:center;color:var(--muted);font-size:12px}
.messenger-background-thumb.no-background{background:linear-gradient(135deg,var(--hover) 25%,var(--panel) 25%,var(--panel) 50%,var(--hover) 50%,var(--hover) 75%,var(--panel) 75%);background-size:18px 18px}
.messenger-background-thumb.inherit-background{background:var(--hover);font-weight:700}
@media(max-width:650px){.messenger-background-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.messenger-background-thumb{height:82px}.messenger-background-current{align-items:flex-start}}
.messages.has-chat-background{background-size:cover;background-position:center;background-attachment:local;background-repeat:no-repeat}
.pending-message.send-failed .bubble{border-color:rgba(185,79,85,.35)}
.message-delivery.failed{color:#d84049!important;font-weight:900}
.message-retry{border:0;background:transparent;color:#d84049;padding:0 2px;cursor:pointer;font-size:17px;line-height:1;font-weight:800}
.pending-message .bubble{position:relative}
.pending-message-menu{position:absolute;right:8px;bottom:32px;z-index:45;min-width:165px;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 34px rgba(20,25,35,.18)}
.pending-message-menu button{width:100%;border:0;background:transparent;color:var(--text);padding:9px 10px;text-align:left;border-radius:7px;cursor:pointer}
.pending-message-menu button:hover{background:var(--hover)}
.pending-message-menu button.danger{color:var(--danger)}
.admin-chat-background-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.admin-chat-background-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel)}
.admin-chat-background-card.is-disabled{opacity:.6}
.admin-chat-background-image{aspect-ratio:16/10;background-size:cover;background-position:center;background-color:var(--hover)}
.admin-chat-background-info{padding:10px;display:grid;gap:5px}
.admin-chat-background-actions{display:flex;gap:6px;margin-top:4px}.admin-chat-background-actions form{margin:0}
@media(max-width:900px){.admin-chat-background-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.admin-chat-background-grid{grid-template-columns:1fr}}

/* Personal dark theme. Keep the existing accent and component geometry. */
body.theme-dark{color-scheme:dark;--bg:#11151b;--panel:#1a2029;--text:#edf1f7;--muted:#98a3b2;--line:#303844;--accent-soft:#252c37;--hover:#242b35;--shadow:0 12px 30px rgba(0,0,0,.24);background:var(--bg);color:var(--text)}
body.theme-dark .sidebar,body.theme-dark .card,body.theme-dark .panel,body.theme-dark .profile-btn,body.theme-dark .profile-menu,body.theme-dark .mobile-nav,body.theme-dark .mobile-profile-menu,body.theme-dark .modal-card,body.theme-dark .chat-contacts-panel,body.theme-dark .chat-shell,body.theme-dark .chat-contact,body.theme-dark .message-composer,body.theme-dark .chat-message-search,body.theme-dark .chat-pinned-bar{background:var(--panel);border-color:var(--line);color:var(--text)}
body.theme-dark .form-stack input,body.theme-dark .form-stack select,body.theme-dark .form-stack textarea,body.theme-dark .inline-form input,body.theme-dark input,body.theme-dark select,body.theme-dark textarea{background:#151a22;border-color:#36404d;color:var(--text)}
body.theme-dark .nav a.active,body.theme-dark .side-action.active,body.theme-dark .person-tile,body.theme-dark .member-card,body.theme-dark .pet-mini,body.theme-dark .pet-card,body.theme-dark .invite-box,body.theme-dark .news-placeholder,body.theme-dark .event-view-box,body.theme-dark .event-view-grid>div,body.theme-dark .goal-view-box,body.theme-dark .calendar-cell,body.theme-dark .calendar-agenda-row,body.theme-dark .board-order-item{background:#202731;border-color:var(--line)}
body.theme-dark .nav a:hover,body.theme-dark .side-action:hover,body.theme-dark .profile-menu a:hover,body.theme-dark .btn:hover{background:var(--hover);color:var(--text)}
body.theme-dark .btn{background:#202731;border-color:#3a4452;color:var(--text)}
body.theme-dark .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
body.theme-dark .btn.danger{background:#202026;border-color:#69434a;color:#ef9ca3}
body.theme-dark .avatar{background:#2a313c;color:#d4d9e1}
body.theme-dark .flash{background:#202731;border-color:var(--line)}
body.theme-dark .flash.success{background:#17271e;color:#a7d8b5;border-color:#31523b}
body.theme-dark .flash.error{background:#2b1d20;color:#efabb0;border-color:#56363b}
body.theme-dark .message.mine .bubble{background:#334b96;color:#fff}
body.theme-dark .message:not(.mine) .bubble{background:#242c37;color:var(--text)}
body.theme-dark .chat-contact-chip:hover,body.theme-dark .chat-contact-chip.active{background:var(--hover)}
body.theme-dark .feed-post,body.theme-dark .feed-post-main{border-color:var(--line)}
body.theme-dark .feed-floating-reaction-palette,body.theme-dark .feed-post-menu,body.theme-dark .message-actions,body.theme-dark .emoji-popover{background:var(--panel);border-color:var(--line);color:var(--text)}
body.theme-dark .calendar-cell.muted-month{opacity:.48}
body.theme-dark .calendar-cell.today{box-shadow:inset 0 0 0 2px var(--accent)}
body.theme-dark .mobile-profile-btn{background:var(--panel);border-color:var(--line);color:var(--text)}

/* v0.1.143 — tiled chat backgrounds, mobile feed reaction spacing, event field safety,
   grouped personal preferences and a complete dark-surface pass. */

/* Chat wallpapers behave like Telegram-style tiles instead of stretching with chat height. */
.messages.has-chat-background{
  background-size:auto!important;
  background-position:top left!important;
  background-repeat:repeat!important;
  background-attachment:local!important;
}

/* Personal interface settings are visually separated by purpose. */
.preference-settings-form{gap:12px!important}
.preference-settings-group{display:grid;gap:11px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fafbfc}
.preference-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.preference-settings-head b{display:block;font-size:13px}
.preference-settings-head small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4;font-weight:400}
.preference-settings-group>label{margin:0}
.preference-toggle-row{border-bottom:0!important;padding:2px 0!important}

@media(max-width:650px){
  /* Keep the reaction trigger in the post padding, to the left of the first reaction chip. */
  .feed-hover-react{left:-15px!important;bottom:-14px!important}

  /* iOS/Safari can give datetime-local an intrinsic width larger than its grid track. */
  .event-modal-card .event-date-line,
  .event-modal-card .event-date-line>label{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  .event-modal-card input[type="datetime-local"]{
    display:block!important;
    box-sizing:border-box!important;
    inline-size:100%!important;
    width:100%!important;
    max-inline-size:100%!important;
    max-width:calc(100vw - 64px)!important;
    min-inline-size:0!important;
    min-width:0!important;
    -webkit-min-logical-width:0!important;
  }
  .event-modal-card input[type="datetime-local"]::-webkit-date-and-time-value{min-width:0!important;text-align:left!important}

  .preference-settings-group{padding:12px}
}

/* Dark theme: shared surfaces. */
body.theme-dark{
  --dark-soft:#202731;
  --dark-soft-2:#242c37;
  --dark-input:#151a22;
  --dark-hover:#29323e;
  --dark-border:#36404d;
  --dark-secondary:#c7d0dc;
}
body.theme-dark .main{color:var(--text)}
body.theme-dark .card:hover{border-color:#414c5b}
body.theme-dark .nav a{color:#b9c3d0}
body.theme-dark .nav a.active,body.theme-dark .side-action.active{background:#29323e;color:#f3f6fb}
body.theme-dark .nav a:hover,body.theme-dark .side-action:hover{background:#242c37;color:#fff}
body.theme-dark .brand-copy small,body.theme-dark .profile-status{color:#aeb9c8}

/* Soft cards and rows used throughout Board, family, tasks, calendar, events and goals. */
body.theme-dark .preference-settings-group,
body.theme-dark .board-order-item,
body.theme-dark .invite-box,
body.theme-dark .person-tile,
body.theme-dark .member-card,
body.theme-dark .pet-mini,
body.theme-dark .pet-card,
body.theme-dark .pet-notes,
body.theme-dark .task-meta-item,
body.theme-dark .task-view-checklist label,
body.theme-dark .task-view-checklist-group,
body.theme-dark .checklist-editor-box,
body.theme-dark .event-card,
body.theme-dark .goal-card,
body.theme-dark .event-member-option,
body.theme-dark .event-view-grid>div,
body.theme-dark .event-view-box,
body.theme-dark .goal-view-box,
body.theme-dark .album-move-target,
body.theme-dark .album-move-cover,
body.theme-dark .feedback-card,
body.theme-dark .family-manage-row{
  background:var(--dark-soft)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
body.theme-dark .person-tile:hover,
body.theme-dark .member-card:hover,
body.theme-dark .task-list-item:hover,
body.theme-dark .album-move-target:hover{background:var(--dark-hover)!important}
body.theme-dark .event-member-option:has(input:checked){background:#273250!important;border-color:#5367aa!important}
body.theme-dark .goal-completed{background:#17271e!important;border-color:#31523b!important}
body.theme-dark .goal-overdue{background:#2b1d20!important;border-color:#56363b!important}

/* Comments: prevent light bubbles / controls with light text. */
body.theme-dark .entity-comment-body,
body.theme-dark .feed-comments .entity-comment-body{
  background:var(--dark-soft-2)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
body.theme-dark .comment-like,
body.theme-dark .comment-reaction-chip,
body.theme-dark .comment-reaction-add,
body.theme-dark .comment-emoji-trigger{
  background:var(--dark-soft)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-secondary)!important;
}
body.theme-dark .comment-like:hover,
body.theme-dark .comment-reaction-chip:hover,
body.theme-dark .comment-reaction-add:hover,
body.theme-dark .comment-emoji-trigger:hover{background:var(--dark-hover)!important;color:#fff!important;border-color:#465363!important}
body.theme-dark .comment-like.active,
body.theme-dark .comment-reaction-chip.active{background:#28345a!important;border-color:#5367aa!important;color:#afbdff!important}
body.theme-dark .comment-reaction-picker,
body.theme-dark .comment-floating-reaction-palette,
body.theme-dark .entity-comment-more-menu{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
body.theme-dark .comment-reaction-picker button,
body.theme-dark .comment-floating-reaction-palette button,
body.theme-dark .entity-comment-more-menu button{background:transparent!important;color:var(--text)!important}
body.theme-dark .comment-reaction-picker button:hover,
body.theme-dark .comment-floating-reaction-palette button:hover,
body.theme-dark .entity-comment-more-menu button:hover{background:var(--dark-hover)!important}

/* Editors, pickers and menus that have their own legacy light backgrounds. */
body.theme-dark .emoji-rich-input,
body.theme-dark .message-composer .emoji-rich-input,
body.theme-dark .attachment-caption-row .emoji-rich-input,
body.theme-dark .entity-comment-form>.emoji-rich-input,
body.theme-dark .entity-comment-edit>.emoji-rich-input,
body.theme-dark .bb-editor,
body.theme-dark #taskDescription,
body.theme-dark .checklist-title-input,
body.theme-dark .checklist-items-editor input,
body.theme-dark .assignee-picker-btn,
body.theme-dark .compact-select select,
body.theme-dark .profile-inline-editor input,
body.theme-dark .profile-inline-editor select,
body.theme-dark .goal-value-input input,
body.theme-dark .chat-poll-option-row input{
  background:var(--dark-input)!important;
  border-color:var(--dark-border)!important;
  color:var(--text)!important;
}
body.theme-dark .bb-toolbar,
body.theme-dark .emoji-set-tabs{background:var(--dark-soft)!important;border-color:var(--line)!important}
body.theme-dark .bb-toolbar button,
body.theme-dark .field-icon-btn,
body.theme-dark .order-move,
body.theme-dark .checklist-remove,
body.theme-dark .feed-post-more,
body.theme-dark .chat-poll-remove-option,
body.theme-dark .attach-btn{
  background:var(--dark-soft)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-secondary)!important;
}
body.theme-dark .bb-toolbar button:hover,
body.theme-dark .field-icon-btn:hover,
body.theme-dark .order-move:hover,
body.theme-dark .feed-post-more:hover,
body.theme-dark .attach-btn:hover{background:var(--dark-hover)!important;color:#fff!important}
body.theme-dark .assignee-menu,
body.theme-dark .mention-menu,
body.theme-dark .emoji-popover,
body.theme-dark .feed-post-menu,
body.theme-dark .task-more-menu,
body.theme-dark .goal-view-menu,
body.theme-dark .album-photo-more-menu,
body.theme-dark .pending-message-menu{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
body.theme-dark .assignee-option,
body.theme-dark .mention-option,
body.theme-dark .emoji-popover button,
body.theme-dark .feed-post-menu button,
body.theme-dark .task-more-menu button,
body.theme-dark .goal-view-menu button,
body.theme-dark .album-photo-more-menu button,
body.theme-dark .pending-message-menu button{background:transparent!important;color:var(--text)!important}
body.theme-dark .assignee-option:hover,
body.theme-dark .mention-option:hover,
body.theme-dark .mention-option.active,
body.theme-dark .emoji-popover button:hover,
body.theme-dark .feed-post-menu button:hover,
body.theme-dark .task-more-menu button:hover,
body.theme-dark .goal-view-menu button:hover,
body.theme-dark .album-photo-more-menu button:hover,
body.theme-dark .pending-message-menu button:hover{background:var(--dark-hover)!important}
body.theme-dark .emoji-set-tab.active{background:#2a3557!important}

/* Feed / photo / task detail surfaces. */
body.theme-dark .feed-post-content,
body.theme-dark .entity-comment-text,
body.theme-dark .task-description-view,
body.theme-dark .event-description,
body.theme-dark .goal-description{color:var(--text)!important}
body.theme-dark .task-main p,
body.theme-dark .task-list-excerpt,
body.theme-dark .checklist label,
body.theme-dark .bb-view blockquote{color:#b8c2cf!important}
body.theme-dark .bb-view code{background:var(--dark-soft)!important;color:#e8edf4!important}
body.theme-dark .album-photo-caption-row{background:var(--panel)!important;color:var(--text)!important}
body.theme-dark .feed-post-image,body.theme-dark .album-move-cover{background:#161c24!important}
body.theme-dark .feed-hover-react-btn,body.theme-dark .comment-hover-react-btn{background:var(--panel)!important;border-color:#46515f!important;color:#c6cfdb!important}
body.theme-dark .feed-floating-reaction-palette{background:var(--panel)!important;border-color:var(--line)!important}
body.theme-dark .feed-floating-reaction-palette button{color:var(--text)!important}
body.theme-dark .feed-floating-reaction-palette button:hover{background:var(--dark-hover)!important}

/* Messenger stays dark even when no wallpaper is selected. */
body.theme-dark .messages{background:#11161d;color:var(--text)}
body.theme-dark .messages.has-chat-background{background-color:#11161d}
body.theme-dark .message:not(.mine) .bubble{border-color:#35404d!important}
body.theme-dark .message.mine .bubble{border-color:#415baf!important}
body.theme-dark .message-composer{background:var(--panel)!important}
body.theme-dark .message-composer textarea{background:var(--dark-input)!important;border-color:var(--dark-border)!important;color:var(--text)!important}
body.theme-dark .chat-poll-option{background:rgba(32,39,49,.9)!important;border-color:#3b4655!important;color:var(--text)!important}
body.theme-dark .chat-poll-option-fill{background:rgba(97,124,230,.18)!important}
body.theme-dark .chat-poll-anon-badge{background:#303947!important;color:#c1cad6!important}
body.theme-dark .chat-poll-voters-popover{background:var(--panel)!important;border-color:var(--line)!important}

/* Calendar/event accents remain readable instead of becoming washed out. */
body.theme-dark .event-time-badge{background:#28345a!important;color:#bdc8ff!important}
body.theme-dark .event-time-badge.past{background:#29313c!important;color:#aab4c1!important}
body.theme-dark .goal-state{background:#303947!important;color:#c1cad6!important}
body.theme-dark .goal-state.completed{background:#20392a!important;color:#a7d8b5!important}
body.theme-dark .goal-state.overdue{background:#44262c!important;color:#efabb0!important}
body.theme-dark .calendar-add-event{background:var(--dark-soft)!important;border-color:var(--dark-border)!important;color:#9cafFF!important}
body.theme-dark .calendar-add-event:hover{background:var(--dark-hover)!important}

/* Mobile section bar gets stronger contrast in dark mode. */
@media(max-width:650px){
  body.theme-dark{background:var(--bg)!important}
  body.theme-dark .mobile-nav{background:#1a2029!important;border-color:#394351!important;box-shadow:0 12px 30px rgba(0,0,0,.38)!important}
  body.theme-dark .mobile-nav a{color:#c0cad7!important;opacity:1!important}
  body.theme-dark .mobile-nav a .mobile-icon{color:#c0cad7!important;opacity:1!important}
  body.theme-dark .mobile-nav a.active{background:#2a3442!important;color:#9fb0ff!important}
  body.theme-dark .mobile-nav a.active .mobile-icon{color:#9fb0ff!important}
}

/* Dark theme: remaining user-facing legacy surfaces and icon buttons. */
body.theme-dark .unread-row,
body.theme-dark .note-card,
body.theme-dark .editor-toolbar,
body.theme-dark .editor-status,
body.theme-dark .message-edit-bar,
body.theme-dark .attachment-preview-item,
body.theme-dark .task-description-section,
body.theme-dark .profile-status-bubble,
body.theme-dark .family-role-row,
body.theme-dark .notification-card,
body.theme-dark .event-completed-card,
body.theme-dark .album-viewers,
body.theme-dark .pet-avatar-add-row,
body.theme-dark .profile-award-item,
body.theme-dark .family-award-row,
body.theme-dark .plan-price-options>div,
body.theme-dark .feedback-ticket-card,
body.theme-dark .feedback-view-message,
body.theme-dark .feedback-topic-row,
body.theme-dark .chat-pinned-bar,
body.theme-dark .message-reply-bar,
body.theme-dark .chat-list-footer{
  background:var(--dark-soft)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
body.theme-dark .notification-card.is-unread,
body.theme-dark .feedback-admin-ticket.is-unread{background:#222c3c!important}
body.theme-dark .chip,
body.theme-dark .pill,
body.theme-dark .tabs a.active,
body.theme-dark .task-scope-tabs button.active,
body.theme-dark .event-status-tabs button.active,
body.theme-dark .feedback-status-tabs a.active{background:#2b3441!important;color:#dce3ed!important}
body.theme-dark .modal-close,
body.theme-dark .modal-close-float,
body.theme-dark .editor-toolbar button,
body.theme-dark .message-actions button,
body.theme-dark .composer-emoji,
body.theme-dark .task-more-btn,
body.theme-dark .status-edit-btn,
body.theme-dark .profile-inline-edit,
body.theme-dark .profile-role-icon-btn,
body.theme-dark .family-inline-edit-btn,
body.theme-dark .family-inline-save-btn,
body.theme-dark .family-inline-cancel-btn,
body.theme-dark .chat-header-menu-btn,
body.theme-dark .award-icon-edit,
body.theme-dark .chat-mobile-back,
body.theme-dark .chat-message-search button,
body.theme-dark .chat-pinned-open,
body.theme-dark .chat-scroll-bottom,
body.theme-dark .image-viewer-close,
body.theme-dark .image-viewer-download{
  background:var(--dark-soft)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-secondary)!important;
}
body.theme-dark .modal-close:hover,
body.theme-dark .modal-close-float:hover,
body.theme-dark .editor-toolbar button:hover,
body.theme-dark .task-more-btn:hover,
body.theme-dark .status-edit-btn:hover,
body.theme-dark .profile-role-icon-btn:hover,
body.theme-dark .chat-header-menu-btn:hover,
body.theme-dark .chat-mobile-back:hover,
body.theme-dark .chat-message-search button:hover,
body.theme-dark .chat-pinned-open:hover,
body.theme-dark .chat-scroll-bottom:hover{background:var(--dark-hover)!important;color:#fff!important}
body.theme-dark .message-actions,
body.theme-dark .chat-attach-menu,
body.theme-dark .message-hover-reaction-picker{background:var(--panel)!important;border-color:var(--line)!important;color:var(--text)!important}
body.theme-dark .message-actions button,
body.theme-dark .chat-attach-menu button,
body.theme-dark .message-hover-reaction-picker button{background:transparent!important;color:var(--text)!important}
body.theme-dark .message-actions button:hover,
body.theme-dark .chat-attach-menu button:hover,
body.theme-dark .message-hover-reaction-picker button:hover{background:var(--dark-hover)!important}
body.theme-dark .chat-contact-chip,
body.theme-dark .chat-group-member-option,
body.theme-dark .chat-group-member-row{background:var(--dark-soft)!important;border-color:var(--line)!important;color:var(--text)!important}
body.theme-dark .chat-contact-chip:hover,
body.theme-dark .chat-contact-chip.active,
body.theme-dark .chat-group-member-row:hover{background:var(--dark-hover)!important}
body.theme-dark .chat-list-tools input[type="search"],
body.theme-dark .chat-message-search,
body.theme-dark .family-manage-editor input[name="role_name"],
body.theme-dark .family-manage-editor input[name="species_name"],
body.theme-dark .profile-role-manager select,
body.theme-dark .profile-role-editor select,
body.theme-dark .note-title-wrap .note-title,
body.theme-dark .note-title-wrap .emoji-rich-input.emoji-rich-single{
  background:var(--dark-input)!important;
  border-color:var(--dark-border)!important;
  color:var(--text)!important;
}
body.theme-dark .feed-like-btn,
body.theme-dark .feed-reaction-chip,
body.theme-dark .feed-reaction-add,
body.theme-dark .message-reaction-chip{
  background:var(--dark-soft)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-secondary)!important;
}
body.theme-dark .feed-like-btn:hover,
body.theme-dark .feed-reaction-chip:hover,
body.theme-dark .feed-reaction-add:hover{background:var(--dark-hover)!important;color:#fff!important}
body.theme-dark .feed-like-btn.active,
body.theme-dark .feed-reaction-chip.active,
body.theme-dark .message-reaction-chip.active{background:#28345a!important;border-color:#5367aa!important;color:#afbdff!important}
body.theme-dark .feed-reaction-picker{background:var(--panel)!important;border-color:var(--line)!important}
body.theme-dark .feed-reaction-picker button{background:transparent!important;color:var(--text)!important}
body.theme-dark .feed-reaction-picker button:hover{background:var(--dark-hover)!important}
body.theme-dark .pending-message.send-failed .bubble{background:#321e23!important;border-color:#75444d!important}
body.theme-dark .event-participant-chip{background:#2a323e!important;border-color:var(--line)!important;color:var(--text)!important}
body.theme-dark .calendar-item{background:#252d39!important;color:var(--text)!important}
body.theme-dark .calendar-item.birthday{background:#443a22!important;color:#f2d991!important}
body.theme-dark .calendar-agenda-row.birthday{background:#3b321f!important}
body.theme-dark .album-card,
body.theme-dark .album-sort-item,
body.theme-dark .album-viewers label{background:var(--dark-soft)!important;border-color:var(--line)!important;color:var(--text)!important}
body.theme-dark .album-cover,body.theme-dark .board-album-cover{background:#171d25!important}
body.theme-dark .award-icon{background:#2a323e!important;color:#d7dee8!important}
body.theme-dark .feedback-ticket-card:hover{background:var(--dark-hover)!important}
body.theme-dark .feedback-status.deferred{background:#45361f!important;color:#efd294!important}
body.theme-dark .feedback-status.rejected{background:#44262c!important;color:#efabb0!important}
body.theme-dark .feedback-attachment-tile{background:var(--dark-soft)!important;border-color:var(--line)!important}
body.theme-dark .feedback-attachment-tile:hover{background:var(--dark-hover)!important}
body.theme-dark .feedback-important-toggle{background:var(--dark-soft)!important;border-color:var(--dark-border)!important;color:var(--dark-secondary)!important}
body.theme-dark .feedback-important-toggle.active{background:#44361f!important;color:#f0cf84!important}

/* v0.1.144 — fixed chat wallpaper layer, robust event date/time controls, light-only UI. */
.chat-messages-stage{
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
  background:#f6f6f6;
}
.chat-messages-stage .chat-background-layer{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-color:#f6f6f6;
}
.chat-messages-stage .messages{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  background:transparent!important;
}
.chat-messages-stage:not(.has-chat-background) .chat-background-layer{background-image:none!important}
.messages.has-chat-background{background-image:none!important;background-attachment:scroll!important;background-repeat:no-repeat!important}

.event-datetime-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(96px,.62fr);
  gap:8px;
  width:100%;
  min-width:0;
  max-width:100%;
}
.event-datetime-split>input{
  display:block;
  box-sizing:border-box;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
@media(max-width:650px){
  .event-modal-card .event-date-line{overflow:visible!important}
  .event-modal-card .event-date-line>label{overflow:visible!important;min-width:0!important;width:100%!important}
  .event-datetime-split{grid-template-columns:minmax(0,1fr);gap:7px}
  .event-datetime-split>input{font-size:16px!important;inline-size:100%!important;max-inline-size:100%!important}
}

/* v0.1.145 — configurable messenger bubble colors, stable mobile chat width and admin preview. */
.chat-messages-stage{
  --chat-mine-bg:#eef2ff;
  --chat-mine-text:#202532;
  --chat-theirs-bg:#ffffff;
  --chat-theirs-text:#202532;
}
.chat-messages-stage .message.mine:not(.system-message)>.bubble{
  background:var(--chat-mine-bg)!important;
  color:var(--chat-mine-text)!important;
  border-color:rgba(46,58,78,.14)!important;
}
.chat-messages-stage .message.theirs:not(.system-message)>.bubble{
  background:var(--chat-theirs-bg)!important;
  color:var(--chat-theirs-text)!important;
  border-color:rgba(46,58,78,.14)!important;
}
.chat-messages-stage .message.mine:not(.system-message)>.bubble .message-text,
.chat-messages-stage .message.theirs:not(.system-message)>.bubble .message-text{color:inherit}

.admin-chat-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.admin-chat-color-grid label{min-width:0}
.admin-chat-color-grid input[type="color"],.admin-chat-card-color-form input[type="color"]{width:100%;height:40px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}
.admin-chat-live-preview{position:relative;height:260px;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#f2f4f7}
.admin-chat-live-preview-bg{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat}
.admin-chat-live-preview-messages{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;padding:18px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(20,25,35,.07))}
.admin-chat-preview-bubble{max-width:78%;padding:9px 11px;border-radius:13px;box-shadow:0 2px 7px rgba(30,36,48,.09);font-size:12px;line-height:1.4}
.admin-chat-preview-bubble.theirs{align-self:flex-start;border-bottom-left-radius:4px}
.admin-chat-preview-bubble.mine{align-self:flex-end;border-bottom-right-radius:4px}
.admin-chat-background-image{position:relative}
.admin-chat-card-bubbles{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:10px;background:linear-gradient(180deg,transparent 42%,rgba(18,23,32,.13))}
.admin-chat-card-bubbles span{display:block;width:max-content;max-width:78%;padding:6px 8px;border-radius:10px;box-shadow:0 2px 6px rgba(30,36,48,.08);font-size:10px}
.admin-chat-card-bubbles .theirs{align-self:flex-start;border-bottom-left-radius:3px}
.admin-chat-card-bubbles .mine{align-self:flex-end;border-bottom-right-radius:3px}
.admin-chat-card-color-form{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px;padding-top:8px;border-top:1px solid var(--line)}
.admin-chat-card-color-form label{display:grid;gap:4px;color:var(--muted);font-size:10px;font-weight:650}
.admin-chat-card-color-form .btn{grid-column:1/-1;justify-self:start}

#chatBackgroundModal{z-index:8000!important}
@media(max-width:650px){
  .admin-chat-color-grid{grid-template-columns:1fr}
  .admin-chat-live-preview{height:230px}
  .admin-chat-card-color-form{grid-template-columns:1fr 1fr}

  body.page-messenger.messenger-chat-open,
  body.page-messenger.messenger-chat-open .main,
  body.page-messenger.messenger-chat-open .messenger-page,
  body.page-messenger.messenger-chat-open .messenger-layout{max-width:100vw!important;overflow-x:hidden!important}
  .messenger-page.mobile-chat-open .chat-shell-wide{
    box-sizing:border-box!important;
    max-width:calc(100vw - max(16px,env(safe-area-inset-left,0px) + env(safe-area-inset-right,0px) + 16px))!important;
    overflow:hidden!important;
  }
  .messenger-page.mobile-chat-open #chatContact{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .messenger-page.mobile-chat-open .chat-contact-main{flex:1 1 0!important;min-width:0!important;overflow:hidden!important}
  .messenger-page.mobile-chat-open .chat-contact-main>div{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important}
  .messenger-page.mobile-chat-open .chat-contact-name-link{display:block!important;width:100%!important;min-width:0!important;overflow:hidden!important}
  .messenger-page.mobile-chat-open .chat-contact-name-link b{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .messenger-page.mobile-chat-open .chat-contact-actions{display:flex!important;flex:0 0 auto!important;min-width:0!important;max-width:45%!important;gap:4px!important;overflow:hidden!important}
  .messenger-page.mobile-chat-open .chat-header-menu-btn{flex:0 0 31px!important;width:31px!important;min-width:31px!important}
  .messenger-page.mobile-chat-open .chat-group-action-btn{flex:0 1 auto!important;min-width:0!important;max-width:76px!important;padding-left:7px!important;padding-right:7px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  #chatBackgroundModal{padding-top:max(18px,env(safe-area-inset-top,0px) + 12px)!important}
  #chatBackgroundModal>.modal-card{width:min(560px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;overflow:auto!important;max-height:calc(100dvh - 40px)!important}
}

/* Optimistic text messages use the same visual geometry as confirmed messages. */
.pending-message:not(.send-failed)>.bubble{opacity:1!important}
.pending-message .message-footer{min-height:25px!important}
.pending-message .message-meta{min-height:16px!important}
.pending-message .message-delivery{width:16px!important;min-width:16px!important;height:16px!important;line-height:16px!important}


/* v0.1.145 — final mobile messenger geometry and identical pending/confirmed delivery metrics. */
.message-delivery{
  width:16px!important;
  min-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  line-height:16px!important;
  box-sizing:border-box!important;
}
.chat-messages-stage .message:not(.system-message)>.bubble .message-meta{
  color:inherit;
  opacity:.58;
}
.chat-messages-stage .message:not(.system-message)>.bubble .message-delivery{color:inherit!important;opacity:.76}
.chat-messages-stage .message:not(.system-message)>.bubble .message-delivery.read{opacity:1}

@media(max-width:650px){
  .messenger-page.mobile-chat-open .chat-shell-wide{
    left:max(6px,env(safe-area-inset-left,0px))!important;
    right:max(6px,env(safe-area-inset-right,0px))!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .messenger-page.mobile-chat-open #chatContact{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:5px!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  .messenger-page.mobile-chat-open .chat-contact-main{
    display:grid!important;
    grid-template-columns:32px 32px minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
  }
  .messenger-page.mobile-chat-open .chat-contact-main>div{width:100%!important;min-width:0!important}
  .messenger-page.mobile-chat-open .chat-contact-actions{
    max-width:none!important;
    width:auto!important;
    overflow:visible!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
  }
  .messenger-page.mobile-chat-open .chat-group-action-btn{
    max-width:58px!important;
    min-width:0!important;
    font-size:10px!important;
    padding-left:5px!important;
    padding-right:5px!important;
  }
  .messenger-page.mobile-chat-open .message-composer,
  .messenger-page.mobile-chat-open .chat-message-search,
  .messenger-page.mobile-chat-open .chat-pinned-bar,
  .messenger-page.mobile-chat-open .message-reply-bar,
  .messenger-page.mobile-chat-open .message-edit-bar,
  .messenger-page.mobile-chat-open #chatMessagesStage{
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    box-sizing:border-box!important;
  }
  .messenger-page.mobile-chat-open .message-composer textarea{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .chat-contact-chip{touch-action:manipulation}

  #chatBackgroundModal{
    position:fixed!important;
    inset:0!important;
    z-index:2147482000!important;
    box-sizing:border-box!important;
    overflow:auto!important;
  }
  #chatBackgroundModal>.modal-card{
    position:relative!important;
    z-index:1!important;
    margin:auto!important;
  }
}

/* v0.1.146 — current bubble colors in mobile focus, clearer bubbles and compact group management. */
.chat-messages-stage .message:not(.system-message)>.bubble{
  border-width:1px!important;
  border-style:solid!important;
  border-color:rgba(46,58,78,.18)!important;
  box-shadow:0 2px 8px rgba(30,36,48,.075),0 1px 2px rgba(30,36,48,.035)!important;
}
.chat-messages-stage .message.mine:not(.system-message)>.bubble{
  border-color:rgba(50,71,130,.20)!important;
}
.pending-message-geometry-anchor{display:none!important}
.chat-group-action-btn.chat-group-manage-icon{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  padding:0!important;
  border-radius:10px!important;
  flex:0 0 34px!important;
}
.chat-group-action-btn.chat-group-manage-icon svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
@media(max-width:650px){
  .messenger-page.mobile-chat-open .chat-group-action-btn.chat-group-manage-icon{
    width:31px!important;
    min-width:31px!important;
    max-width:31px!important;
    height:31px!important;
    padding:0!important;
    font-size:0!important;
    flex:0 0 31px!important;
  }
  .message.mobile-focus-clone.mobile-menu-focus>.bubble{
    border-width:1px!important;
    border-style:solid!important;
  }
}


/* v0.1.147 — extend the active chat wallpaper to the messenger page background. */
body.page-messenger{
  --messenger-page-bg-image:none;
}
body.page-messenger .main{
  background-color:#f5f6f8;
  background-image:var(--messenger-page-bg-image);
  background-position:center top;
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment:fixed;
}
body.page-messenger.messenger-page-has-bg .main{
  background-color:#eee9f7;
}
@media(max-width:650px){
  body.page-messenger .main{
    background-attachment:scroll;
    background-position:center center;
  }
}


/* v0.1.148 — one continuous messenger wallpaper across the whole workspace. */
body.page-messenger .main{
  max-width:none;
  margin:0;
  background-attachment:scroll;
  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
}
body.page-messenger.messenger-page-has-bg .chat-shell-wide{
  background:transparent;
}
body.page-messenger.messenger-page-has-bg .chat-messages-stage{
  background:transparent!important;
}
body.page-messenger.messenger-page-has-bg .chat-messages-stage .chat-background-layer{
  display:none!important;
  background-image:none!important;
}
body.page-messenger.messenger-page-has-bg .chat-messages-stage .messages{
  background:transparent!important;
}
/* Header/composer stay readable while only the message viewport reveals the shared wallpaper. */
body.page-messenger.messenger-page-has-bg .chat-contact,
body.page-messenger.messenger-page-has-bg .chat-message-search,
body.page-messenger.messenger-page-has-bg .chat-pinned-bar,
body.page-messenger.messenger-page-has-bg .message-reply-bar,
body.page-messenger.messenger-page-has-bg .message-edit-bar,
body.page-messenger.messenger-page-has-bg .message-composer,
body.page-messenger.messenger-page-has-bg .upload-info{
  background:#fff;
}
@media(max-width:650px){
  body.page-messenger .main{
    max-width:none!important;
    background-position:center center;
    background-size:cover;
  }
}


/* v0.1.149 — mobile transparent chat must reveal wallpaper, not the chat list underneath. */
@media(max-width:650px){
  body.page-messenger.messenger-chat-open .messenger-page.mobile-chat-open .chat-contacts-panel{
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
}
.admin-chat-card-image-form{
  display:grid;
  gap:7px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--line);
}
.admin-chat-card-image-form label{
  display:grid;
  gap:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:650;
}
.admin-chat-card-image-form input[type="file"]{
  width:100%;
  min-width:0;
  font-size:11px;
}
.admin-chat-card-image-form .btn{justify-self:start}


/* v0.1.150 — reliable target-message highlight and wallpaper without excessive zoom. */
.message:not(.system-message)>.bubble::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:inherit;
  pointer-events:none;
  opacity:0;
  box-shadow:0 0 0 0 rgba(74,103,232,0),0 0 0 rgba(74,103,232,0);
}
.message.message-highlight:not(.system-message)>.bubble::after{
  animation:message-target-highlight 1.6s ease both;
}
@keyframes message-target-highlight{
  0%{opacity:0;box-shadow:0 0 0 0 rgba(74,103,232,0),0 0 0 rgba(74,103,232,0)}
  18%{opacity:1;box-shadow:0 0 0 3px rgba(74,103,232,.32),0 5px 18px rgba(49,72,176,.20)}
  58%{opacity:1;box-shadow:0 0 0 3px rgba(74,103,232,.24),0 4px 15px rgba(49,72,176,.14)}
  100%{opacity:0;box-shadow:0 0 0 6px rgba(74,103,232,0),0 2px 8px rgba(49,72,176,0)}
}
body.page-messenger .main{
  background-size:100% 100%;
}
@media(max-width:650px){
  body.page-messenger .main{
    background-size:100% 100%;
  }
}


/* v0.1.151 — messenger wallpaper belongs only to the conversation viewport. */
body.page-messenger .main{
  max-width:1480px;
  margin:0 auto;
  background-image:none!important;
  background-color:transparent!important;
  background-attachment:scroll!important;
}
body.page-messenger .chat-shell-wide{
  background:#fff;
}
body.page-messenger .chat-messages-stage{
  background:#f6f6f6!important;
}
body.page-messenger .chat-messages-stage.has-chat-background{
  background:transparent!important;
}
body.page-messenger .chat-messages-stage .chat-background-layer{
  display:block!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
body.page-messenger .chat-messages-stage:not(.has-chat-background) .chat-background-layer{
  background-image:none!important;
}
body.page-messenger .chat-messages-stage .messages{
  background:transparent!important;
}
@media(max-width:650px){
  body.page-messenger .main{
    max-width:1480px!important;
    background-image:none!important;
    background-color:transparent!important;
  }
}
