.messages-page{position:fixed;inset:0;max-width:480px;margin:auto;z-index:10;background:var(--bg,#11091e);color:#faf5ff;padding-top:var(--zwin-host-safe-top,env(safe-area-inset-top,0px));display:flex;flex-direction:column;overflow:hidden}.messages-page[hidden]{display:none}.messages-page:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#11091e22 0,#11091e55 60px,#11091ebb 108px,#11091e 146px),url('assets/header.webp') top center/200% auto no-repeat;z-index:-1}.messages-page button{color:inherit}.msg-header{height:76px;flex:none;display:flex;align-items:center;gap:15px;padding:10px 15px}.msg-header h1{font:700 18px/1.2 Inter,system-ui;margin:0;flex:1;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.msg-tab{font-size:18px;padding:8px 0;color:#a89ab9!important;position:relative}.msg-tab[aria-selected=true]{color:#faf5ff!important;font-weight:750}.msg-tab[aria-selected=true]:after{content:'';position:absolute;left:9px;right:9px;bottom:0;height:3px;background:#edcf85;border-radius:4px}.msg-icon{width:32px;height:36px;display:grid;place-items:center;padding:4px;flex:none;font:25px/1 system-ui}.msg-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.msg-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding-bottom:calc(100px + var(--zwin-host-safe-bottom,env(safe-area-inset-bottom,0px)))}.messages-page[data-detail] .msg-scroll{padding-bottom:18px}.messages-page[data-detail] .msg-header{height:60px;background:#11091e80;gap:8px}.msg-header-avatar{width:35px;height:35px;object-fit:cover;border-radius:50%}.msg-shortcuts{display:flex;justify-content:space-around;padding:5px 12px 20px}.msg-shortcut{position:relative;display:grid;place-items:center;gap:5px;font-size:14px;min-width:86px;padding:0}.msg-shortcut-art{width:76px;height:76px;background-image:url('assets/messages-shortcuts.webp');background-size:300% 100%;background-repeat:no-repeat}.msg-shortcut-art[data-art="1"]{background-position:50% 0}.msg-shortcut-art[data-art="2"]{background-position:100% 0}.msg-count{background:#edcf85;color:#21152f;min-width:17px;height:17px;border-radius:12px;font:11px/17px system-ui;text-align:center;padding:0 4px;white-space:nowrap}.msg-shortcut .msg-count{position:absolute;top:4px;right:12px}.msg-row{position:relative;display:flex;align-items:center;gap:8px;width:100%;height:70px;padding:10px 15px;text-align:start;background:transparent;border:0;color:#faf5ff}.msg-avatar-wrap{position:relative;flex:none}.msg-avatar{display:block;width:50px;height:50px;border-radius:50%;object-fit:cover}.msg-avatar-wrap .msg-count{position:absolute;right:-2px;top:-3px}.msg-channel-avatar{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#9b6cff25;color:#d3b5ff;font-size:25px}.msg-channel-avatar img{width:43px;height:43px;object-fit:contain}.msg-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.msg-copy strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msg-copy small{color:#a89ab9;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msg-row time{align-self:flex-start;margin-top:7px;color:#a89ab9;font-size:11px;white-space:nowrap}.msg-empty{text-align:center;color:#a89ab9;font-size:13px;padding:50px 24px}.msg-empty img{display:block;width:70px;height:70px;margin:0 auto 15px;object-fit:contain}.msg-list-filters{display:flex;gap:8px;padding:0 15px 10px}.msg-list-filters button{padding:8px 13px;border-radius:20px;font-size:13px;background:#ffffff0b;color:#a89ab9}.msg-list-filters button[aria-selected=true]{background:#9b6cff35;color:#faf5ff}.msg-follower{display:flex;gap:10px;padding:14px 13px;align-items:flex-start}.msg-follower .msg-copy{border-bottom:1px solid #ffffff12;min-height:83px;padding-bottom:13px;gap:8px}.msg-follower time{font-size:11px;color:#a89ab9}.msg-follower .msg-follow{padding:6px 17px;border-radius:20px;background:#9b6cff;color:#fff;font-size:13px;min-width:80px}.msg-follower .msg-follow[aria-pressed=true]{background:#ffffff14}.msg-follower-body{display:flex;justify-content:space-between;gap:8px}.msg-date{text-align:center;color:#a89ab9;font-size:12px;margin:15px 0 10px}.msg-message{display:flex;gap:10px;margin:0 15px 12px;align-items:flex-start}.msg-message .msg-avatar,.msg-message .msg-channel-avatar{width:44px;height:44px;flex:none}.msg-bubble{font-size:15px;line-height:1.5;background:#ffffff26;color:#faf5ff;padding:12px 15px;border-radius:0 12px 12px;max-width:calc(100% - 55px);overflow-wrap:anywhere;white-space:pre-wrap;text-align:start;min-width:30px}.msg-message[data-outgoing]{justify-content:flex-end}.msg-message[data-outgoing] .msg-bubble{background:#9b6cff55;border-radius:12px 0 12px 12px}.msg-composer{flex:none;padding:8px 10px calc(12px + var(--zwin-host-safe-bottom,env(safe-area-inset-bottom,0px)));display:flex;align-items:end;gap:8px;background:#11091e}.msg-composer textarea{flex:1;min-width:0;resize:none;height:42px;max-height:108px;border:0;border-radius:24px;background:#ffffff16;color:#faf5ff;padding:11px 15px;font:15px/20px Inter,system-ui;margin:0}.msg-composer button{border-radius:50%;width:38px;height:38px;background:#9b6cff44;flex:none;font-size:19px}.msg-composer button:disabled{opacity:.4}.msg-notice{font:12px/1.4 system-ui;color:#edcf85;padding:5px 15px;flex:none}.msg-more{display:block;margin:10px auto;padding:8px 18px;border-radius:20px;background:#ffffff14;font-size:13px}.msg-search{display:block;width:calc(100% - 30px);margin:0 15px 10px;padding:10px 14px;background:#ffffff16;border:0;border-radius:20px;color:#faf5ff;font:14px system-ui}.msg-nav-badge{position:absolute;top:0;right:calc(50% - 30px)}.bottom-nav [data-page=messages]{position:relative}.msg-action-sheet{background:#faf6ff;color:#30243f;border:0;border-radius:18px;padding:20px;width:min(340px,90vw);box-sizing:border-box}.msg-action-sheet::backdrop{background:#0008}.msg-action-sheet h2{font-size:17px;margin:0 0 14px}.msg-action-sheet button{display:block;width:100%;padding:12px;text-align:start;border-radius:9px;color:#30243f;font-size:14px}.msg-action-sheet button:hover{background:#9b6cff14}.msg-action-sheet textarea{width:100%;height:90px;box-sizing:border-box;margin:10px 0}.msg-action-sheet select{width:100%;padding:10px}.msg-action-sheet p{font-size:13px}.msg-action-sheet .msg-danger{color:#b02549}
/* Main tabs retain the shared footer; detail pages cover it with their own controls. */
.messages-page{z-index:4}.messages-page[data-detail]{z-index:10}

.msg-service-art{display:block;width:46px;height:46px;background:url('assets/messages-shortcuts.webp') 0 0/300% 100% no-repeat}.msg-service-art[data-art="1"]{background-position:50% 0}

.messages-page:not([data-detail]) .msg-scroll{padding-bottom:calc(70px + var(--zwin-host-safe-bottom,env(safe-area-inset-bottom,0px)))}
