/* Pulse Phase 67 · Capsules + Trails + authoritative mobile repair */
.phase67-kicker{display:block;color:#b8a7ff;font-size:.72rem;letter-spacing:.18em;font-weight:950}.phase67-hero{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:250px;padding:clamp(1.2rem,4vw,2.3rem);background:radial-gradient(circle at 88% 10%,rgba(139,92,246,.3),transparent 30%),linear-gradient(145deg,rgba(22,16,41,.98),rgba(8,9,20,.98))}.phase67-hero h1{margin:.35rem 0;font-size:clamp(2rem,5vw,4.2rem);line-height:.96;letter-spacing:-.045em}.phase67-hero p{max-width:780px;color:var(--muted);font-size:1.02rem}.phase67-hero-mark{font-size:clamp(4rem,10vw,8rem);filter:drop-shadow(0 15px 40px rgba(139,92,246,.35));opacity:.9}.phase67-capsule-hero{border-color:rgba(174,130,255,.28)}.phase67-trail-hero{background:radial-gradient(circle at 85% 15%,rgba(6,182,212,.22),transparent 30%),linear-gradient(145deg,rgba(16,16,42,.98),rgba(7,13,22,.98))}.phase67-two-col{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:1rem;align-items:start;margin-top:1rem}.phase67-create-card{position:sticky;top:88px}.phase67-section-head{display:flex;justify-content:space-between;align-items:end;margin:1rem 0 .7rem}.phase67-section-head h2{margin:.12rem 0}.phase67-card-grid{display:grid;gap:.8rem}.phase67-capsule-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1rem;text-decoration:none;color:inherit}.phase67-card-cover,.phase67-trail-cover{position:relative;border-radius:20px;overflow:hidden;min-height:140px;background:linear-gradient(145deg,rgba(139,92,246,.24),rgba(6,182,212,.12));display:grid;place-items:center}.phase67-card-cover img,.phase67-trail-cover img{width:100%;height:100%;object-fit:cover}.phase67-card-cover span,.phase67-trail-cover>span{font-size:3.2rem}.phase67-capsule-card small,.phase67-trail-card small{color:#b9a8ff;font-weight:900;letter-spacing:.05em}.phase67-capsule-card h3{font-size:1.35rem;margin:.25rem 0}.phase67-capsule-card p,.phase67-trail-card p{color:var(--muted)}.phase67-form{display:grid;gap:.72rem}.phase67-form label{display:grid;gap:.32rem;color:var(--muted);font-size:.82rem;font-weight:850}.phase67-form-grid{grid-template-columns:1fr 1fr}.phase67-wide{grid-column:1/-1}.phase67-empty{display:flex;align-items:center;gap:1rem;grid-column:1/-1}.phase67-empty>span{font-size:3rem}.phase67-empty h3{margin:.1rem 0}.phase67-capsule-detail,.phase67-trail-detail{display:grid;grid-template-columns:minmax(240px,38%) minmax(0,1fr);gap:1.3rem;align-items:center}.phase67-capsule-cover,.phase67-trail-detail-cover{height:320px;border-radius:22px;overflow:hidden;background:linear-gradient(145deg,rgba(139,92,246,.28),rgba(6,182,212,.15));display:grid;place-items:center}.phase67-capsule-cover img,.phase67-trail-detail-cover img{width:100%;height:100%;object-fit:cover}.phase67-capsule-cover span,.phase67-trail-detail-cover span{font-size:5rem}.phase67-capsule-detail h1,.phase67-trail-detail h1{font-size:clamp(2.1rem,5vw,4rem);line-height:.98;margin:.35rem 0}.phase67-member-stack{display:flex;margin:.8rem 0}.phase67-member-stack a{margin-left:-8px}.phase67-member-stack a:first-child{margin-left:0}.phase67-member-stack img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:3px solid #0d1020}.phase67-countdown{display:grid;gap:.15rem;padding:.8rem 1rem;border-radius:16px;background:rgba(139,92,246,.12);border:1px solid rgba(139,92,246,.22);max-width:430px}.phase67-countdown strong{font-size:1.25rem}.phase67-people-list{display:grid;gap:.5rem}.phase67-people-list a,.phase67-owner-link{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:inherit;padding:.4rem;border-radius:12px}.phase67-people-list a:hover,.phase67-owner-link:hover{background:rgba(255,255,255,.05)}.phase67-people-list img,.phase67-owner-link img{width:42px;height:42px;border-radius:50%;object-fit:cover}.phase67-people-list span,.phase67-owner-link span{display:grid}.phase67-people-list small,.phase67-owner-link small{color:var(--muted)}.phase67-inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;margin-top:.9rem}.phase67-memory-stream{display:grid;gap:.8rem}.phase67-memory-item{max-width:800px;margin:0 auto;width:100%}.phase67-memory-item header a{display:flex;align-items:center;gap:.55rem;text-decoration:none}.phase67-memory-item header img{width:42px;height:42px;border-radius:50%;object-fit:cover}.phase67-memory-item header span{display:grid}.phase67-memory-note{font-size:1.08rem;line-height:1.65}.phase67-memory-item>img,.phase67-memory-item>video{width:100%;max-height:70vh;object-fit:contain;border-radius:18px;background:#05060b}.phase67-lock-screen{text-align:center;max-width:700px;margin:8vh auto}.phase67-lock-screen>span{font-size:5rem}.phase67-trail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.phase67-trail-card{text-decoration:none;color:inherit;padding:0;overflow:hidden}.phase67-trail-cover{height:230px;border-radius:0}.phase67-trail-cover b{position:absolute;right:.7rem;bottom:.7rem;background:rgba(4,5,12,.76);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:.35rem .55rem;font-size:.72rem}.phase67-trail-card>div:last-child{padding:1rem}.phase67-trail-card h2{margin:.3rem 0}.phase67-trail-author{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--muted)}.phase67-trail-author img{width:28px;height:28px;border-radius:50%;object-fit:cover}.phase67-create-drawer{margin-top:1rem}.phase67-create-drawer summary{cursor:pointer;font-weight:900}.phase67-create-drawer form{margin-top:1rem}.phase67-trail-builder{margin-top:1rem}.phase67-timeline{position:relative;max-width:900px;margin:1rem auto;display:grid;gap:0}.phase67-timeline:before{content:"";position:absolute;left:24px;top:0;bottom:0;width:2px;background:linear-gradient(#8b5cf6,#06b6d4,transparent)}.phase67-timeline-row{display:grid;grid-template-columns:50px minmax(0,1fr);gap:.8rem;position:relative;padding-bottom:1rem}.phase67-timeline-rail{position:relative;z-index:2}.phase67-timeline-rail b{width:48px;height:48px;border-radius:17px;background:linear-gradient(135deg,#8b5cf6,#06b6d4);display:grid;place-items:center;box-shadow:0 12px 30px rgba(139,92,246,.25)}.phase67-timeline-card{min-width:0}.phase67-timeline-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem}.phase67-timeline-card header small{color:var(--muted)}.phase67-timeline-card h2{margin:.18rem 0}.phase67-timeline-card>img,.phase67-timeline-card>video{width:100%;max-height:620px;object-fit:contain;border-radius:18px;background:#03050a}.phase67-icon-btn{border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--muted);width:34px;height:34px;border-radius:50%;cursor:pointer}.phase67-linked-pulse{display:inline-flex;margin-top:.6rem;color:#c4b5fd;font-weight:850}.phase67-owner-link{width:max-content;margin:.7rem 0}

/* Phase 67 mobile authority layer. It loads after every previous phase. */
html,body{max-width:100%;overflow-x:hidden}body.phase67-mobile{touch-action:pan-y}.shell,.phase16-shell{min-width:0}.card,.post,.post-card,.composer,.profile-page,.phase63-world,.phase64-circle-page,.phase65-live-grid,.phase66-local-shell{min-width:0;max-width:100%}img,video,canvas,iframe{max-width:100%}input,textarea,select,button{max-width:100%}.actions,.post-actions,.stats,.profile-tabs{min-width:0}
@media(max-width:900px){
  :root{--phase67-mobile-bottom:calc(82px + env(safe-area-inset-bottom));--phase67-edge:10px}
  body{padding-bottom:calc(98px + env(safe-area-inset-bottom))!important}
  .shell,.phase16-shell{width:calc(100% - 16px)!important;margin:.55rem 8px calc(1rem + var(--phase67-mobile-bottom))!important;padding-left:0!important;padding-right:0!important}
  .topbar{position:sticky!important;top:0!important;grid-template-columns:minmax(0,1fr) auto!important;gap:.5rem!important;padding:max(.5rem,env(safe-area-inset-top)) 9px .5rem!important;width:100%!important;min-width:0!important}
  .topbar .brand,.compact-brand{min-width:0!important;overflow:hidden}.topbar .brand strong{max-width:48vw}.brand-mark{width:40px;height:40px;border-radius:14px}.top-search{grid-column:1/-1!important;width:100%!important;min-width:0}.top-search input{height:40px!important;min-height:40px!important}.nav-toggle{min-width:44px;min-height:42px}.phase16-status-pill{display:none!important}
  .bottom-nav.phase10-bottom-nav{left:7px!important;right:7px!important;bottom:calc(7px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:.4rem!important;border-radius:22px!important}.bottom-nav a,.bottom-nav button{min-width:0!important;padding:.28rem .1rem!important}.bottom-nav small{font-size:.61rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .phase59-messenger-launcher{right:13px!important;bottom:calc(88px + env(safe-area-inset-bottom))!important;width:50px!important;height:50px!important;z-index:72!important}.phase59-floating-messenger{position:fixed!important;left:8px!important;right:8px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;height:min(610px,calc(100dvh - 105px - env(safe-area-inset-top)))!important;max-height:calc(100dvh - 105px - env(safe-area-inset-top))!important;border-radius:22px!important;z-index:90!important}.phase59-messenger-body,.phase59-mini-chat,.phase59-mini-chat-stream{min-height:0!important}.phase60-mini-tools{overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}.phase60-mini-tool,.phase60-mini-file-label{flex:0 0 38px}.phase60-mini-panel{max-height:42dvh!important;overflow:auto!important}.phase60-emoji-grid{grid-template-columns:repeat(7,minmax(34px,1fr))!important}.phase60-mini-input-row{grid-template-columns:minmax(0,1fr) 42px!important}
  .grid,.app-grid,.phase62-feed-layout,.phase63-world-layout,.phase64-circle-grid,.phase65-discovery-layout,.phase66-local-shell{grid-template-columns:minmax(0,1fr)!important}.right-rail,.left-rail,.phase64-circle-rail,.phase66-local-aside{position:static!important;max-width:100%!important}.right-rail{order:2}
  .card{border-radius:18px!important;padding:.78rem!important}.post,.post-card{border-radius:18px!important}.post-head{gap:.55rem}.post-head .avatar{width:42px;height:42px}.post-menu{gap:.15rem}.post-menu .btn,.post-menu button{padding:.45rem .55rem!important}.post-content{font-size:.98rem}.media-grid{border-radius:15px!important;gap:2px!important}.media-grid.count-1 img{border-radius:15px!important;max-height:none!important;height:auto!important;object-fit:contain!important}.media-grid.count-2,.media-grid.count-3,.media-grid.count-4,.media-grid.count-many{grid-template-columns:repeat(2,minmax(0,1fr))!important}.post-actions,.actions{gap:.3rem!important}.post-actions>a,.post-actions>button,.post-actions>form>button,.actions>.btn{min-height:40px;padding:.48rem .62rem!important;font-size:.82rem}.reaction-picker,.comment-reaction-picker{max-width:calc(100vw - 20px)!important}
  .profile-cover{border-radius:20px!important;min-height:155px!important}.profile-cover img{height:180px!important}.profile-head{margin-top:-42px!important;padding:0 .5rem .6rem!important;gap:.7rem!important}.profile-id{display:flex!important;align-items:flex-end!important;min-width:0}.profile-id>div{min-width:0}.profile-id h1{font-size:1.45rem!important;overflow-wrap:anywhere}.avatar.big{width:88px!important;height:88px!important}.profile-tabs{padding:0 .25rem .7rem!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}.profile-tabs a{white-space:nowrap!important;flex:none!important}
  .phase63-world-grid,.phase63-world-editor-grid,.phase63-builder-grid,.phase63-module-grid{grid-template-columns:1fr!important}.phase63-world-module{grid-column:1!important}.phase63-world-hero{border-radius:20px!important}.phase63-world-toolbar,.phase63-world-tabs{overflow-x:auto!important;flex-wrap:nowrap!important}.phase63-world-toolbar>*{flex:none}
  .phase64-circle-hero-content{grid-template-columns:60px minmax(0,1fr)!important;gap:.7rem!important;padding:.8rem!important}.phase64-circle-symbol{width:60px!important;height:60px!important;font-size:1.9rem!important}.phase64-circle-copy h1{font-size:2rem!important}.phase64-circle-hero-actions{grid-column:1/-1!important;justify-content:flex-start!important}.phase64-circle-tabs,.phase64-discovery-tabs{overflow-x:auto!important;max-width:100%!important}.phase64-member-grid,.phase64-studio-grid{grid-template-columns:1fr!important}.phase64-media-wall{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .phase65-live-grid,.phase65-live-side{grid-template-columns:1fr!important;grid-template-rows:auto!important}.phase65-stage-column{min-height:0!important}.phase65-stage,.phase65-stage-media{min-height:52vw!important;max-height:48dvh!important}.phase65-chat{min-height:48dvh!important;max-height:58dvh!important}.phase65-live-side>.card{min-height:220px!important}.phase65-reaction-dock{max-width:calc(100vw - 30px)!important;overflow-x:auto!important}.phase65-reaction-dock button{flex:0 0 36px!important}.phase65-room-head-actions{width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important}.phase65-room-head-actions>*{flex:none!important}
  .phase66-local-tabs{max-width:100%!important;overflow-x:auto!important;top:calc(94px + env(safe-area-inset-top))!important}.phase66-area-search{grid-template-columns:minmax(0,1fr) auto!important}.phase66-event-grid,.phase66-place-grid,.phase66-people-grid,.phase66-circle-grid{grid-template-columns:1fr!important}.phase66-place-card{grid-template-columns:82px minmax(0,1fr)!important}.phase66-event-card{grid-template-columns:58px minmax(0,1fr)!important}
  /* Immersive media viewer: fit the viewport, never wider than the phone. */
  .phase32-media-modal{padding:0!important;align-items:stretch!important}.phase32-media-shell{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important}.phase47-media-viewer,.phase32-media-viewer{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.phase47-media-stage,.phase32-media-stage{flex:0 0 auto!important;min-height:0!important;height:min(43dvh,390px)!important;max-height:43dvh!important;width:100%!important}.phase47-media-stage img,.phase47-media-stage video,.phase32-media-stage img,.phase32-media-stage video{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}.phase47-media-panel,.phase32-media-panel{flex:1 1 auto!important;min-height:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}.phase47-media-conversation,.phase59-conversation-stack{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important}.phase47-media-comment-scroll,.phase60-viewer-comments{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:none!important}.phase47-media-comment-form,.phase61-comment-studio{position:relative!important;bottom:auto!important;max-width:100%!important}.phase32-media-next,.phase32-media-prev,.phase47-media-next,.phase47-media-prev{top:calc(21dvh)!important;transform:translateY(-50%)!important;z-index:20!important}.phase32-media-prev,.phase47-media-prev{left:5px!important;right:auto!important}.phase32-media-next,.phase47-media-next{right:5px!important;left:auto!important}.phase32-media-close{top:max(7px,env(safe-area-inset-top))!important;right:7px!important}
  .phase59-profile-hover-card,.phase59-commenter-popover{display:none!important}
  .table-wrap,.responsive-table{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.form-grid,.phase64-two,.phase66-two,.phase67-form-grid{grid-template-columns:1fr!important}.form-grid>*,.phase67-form-grid>*{min-width:0}.phase67-wide{grid-column:auto!important}
}
@media(max-width:680px){
  .phase67-hero{min-height:0;align-items:flex-start;flex-direction:column}.phase67-hero-mark{font-size:4rem;align-self:flex-end;margin-top:-2.2rem}.phase67-two-col{grid-template-columns:1fr}.phase67-create-card{position:static}.phase67-capsule-card{grid-template-columns:96px minmax(0,1fr);gap:.7rem}.phase67-card-cover{min-height:108px}.phase67-capsule-card h3{font-size:1.1rem}.phase67-capsule-detail,.phase67-trail-detail{grid-template-columns:1fr}.phase67-capsule-cover,.phase67-trail-detail-cover{height:220px}.phase67-inline-form{grid-template-columns:1fr}.phase67-trail-grid{grid-template-columns:1fr}.phase67-trail-cover{height:200px}.phase67-timeline{margin-left:0}.phase67-timeline:before{left:16px}.phase67-timeline-row{grid-template-columns:34px minmax(0,1fr);gap:.55rem}.phase67-timeline-rail b{width:34px;height:34px;border-radius:12px;font-size:.75rem}.phase67-timeline-card{padding:.7rem!important}.phase67-memory-item>img,.phase67-memory-item>video,.phase67-timeline-card>img,.phase67-timeline-card>video{max-height:60dvh}.phase67-owner-link{width:100%;max-width:100%}
}
@media(max-width:390px){.shell,.phase16-shell{width:calc(100% - 10px)!important;margin-left:5px!important;margin-right:5px!important}.card{padding:.68rem!important;border-radius:16px!important}.phase60-emoji-grid{grid-template-columns:repeat(6,minmax(32px,1fr))!important}.phase67-capsule-card{grid-template-columns:78px minmax(0,1fr)}.phase67-card-cover{min-height:92px}.bottom-nav small{font-size:.56rem!important}}
@media(max-width:900px){
  .phase16-drawer{left:7px!important;right:7px!important;top:calc(58px + env(safe-area-inset-top))!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 145px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important;padding:.6rem!important}.phase16-section,.phase16-admin-section,.phase56-section-links,.phase56-admin-section .phase56-section-links{grid-template-columns:1fr!important}.drawer-link{max-width:100%!important}.footer,.phase5-footer{width:calc(100% - 16px)!important;margin:1rem 8px calc(100px + env(safe-area-inset-bottom))!important}.footer-links{display:flex!important;gap:.45rem!important;justify-content:center!important;overflow-x:auto!important;flex-wrap:wrap!important}.composer-top{min-width:0}.composer textarea{min-width:0}.composer .actions{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:.2rem}.composer .actions>*{flex:none!important}.phase50-report-problem{bottom:calc(86px + env(safe-area-inset-bottom))!important;left:10px!important;right:auto!important;max-width:46px!important;overflow:hidden!important}.phase50-report-problem span{display:none!important}
}
